@charset "utf-8";

/* ====================================
   Customer Reviews Plugin
   プレフィックス: cr-
   フォントサイズ: テーマ標準の calc(N * 1) を採用
   ==================================== */

/* ── コンテナ ── */
.cr-section {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-family: "Noto Sans JP", "Noto Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "palt" 1;
}

/* ============================================
   ページタイトルエリア
   ============================================ */
.cr-page-title {
    background: #fff;
    text-align: center;
    padding: 40px 20px;
}

.cr-page-title__heading {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.cr-page-title__lead {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* SP専用の改行: PC時は非表示 */
.cr-sp-br {
    display: none !important;
}


/* ============================================
   フィルタ
   ============================================ */
.cr-filter {
    position: relative;
    z-index: 1;
    padding: 28px 32px 24px;
    margin-bottom: 30px;
}

.cr-filter::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background-image: linear-gradient(90deg, rgb(240 251 246), rgb(214 250 255 / 66%) 55%);
    z-index: -1;
}

/* チェックボックス行 */
.cr-filter__checkboxes {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.cr-filter__group-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    color: #333;
}

.cr-filter__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cr-filter__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    letter-spacing: 0.03em;
}

.cr-filter__checkbox input[type="checkbox"] {
    display: inline-block !important;
    /* common.css の display:none を上書き */
    width: 18px;
    height: 18px;
    border: 2px solid #888;
    border-radius: 3px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.cr-filter__checkbox input[type="checkbox"]:checked {
    background: #333;
    border-color: #333;
}

.cr-filter__checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 4px;
    width: 6px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

/* ラジオボタン（文字数フィルター用） */
.cr-filter__checkbox input[type="radio"] {
    width: 18px;
    height: 18px;
    border: 2px solid #888;
    border-radius: 50%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.cr-filter__checkbox input[type="radio"]:checked {
    border-color: #333;
}

.cr-filter__checkbox input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
}

/* ドロップダウン行 */
.cr-filter__selects {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.cr-filter__select-wrap {
    position: relative;
    width: 200px;
}

.cr-filter__select {
    width: 100%;
    height: 44px;
    padding: 0 32px 0 10px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-align-last: center;
    color: #333;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cr-filter__select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #82c3c9;
    pointer-events: none;
}

.cr-filter__select-separator {
    color: #999;
    font-size: 12px;
}

/* ============================================
   レビューカード
   構造: ヘッダー(日付+年代性別) → 評価 → 本文 → タグ
   ============================================ */
.cr-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    -webkit-text-size-adjust: 100%;
    /* iOS Safariによる勝手な文字拡大（特に小さいタグの文字）を無効化 */
    text-size-adjust: 100%;
}

.cr-card {
    border-bottom: 1px dashed #aeb4b8;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
}

.cr-card:first-child {
    border-top: 1px dashed #aeb4b8;
}

/* 順番制御 (Mobile default) */
.cr-card__header {
    order: 1;
    margin-bottom: 12px;
}

.cr-card__rating {
    order: 2;
    margin-bottom: 12px;
}

.cr-card__body {
    order: 3;
    margin-bottom: 12px;
}

.cr-card__tags {
    order: 4;
    justify-content: flex-end;
    margin-bottom: 0;
}

.cr-card__reply-toggle {
    order: 5;
}

.cr-card__reply {
    order: 6;
}

/* PC・SP 分離用ユーティリティ (PCデフォルト状態) */
.cr-card__tags--sp,
.cr-card__rating--sp {
    display: none !important;
}

.cr-card__rating--pc {
    display: block;
}

/* ヘッダー */
.cr-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cr-card__header-left,
.cr-card__header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cr-card__header-right {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.cr-card__date {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.05em;
    line-height: 20px;
}

.cr-card__gender--female {
    color: #ff8b8b !important;
}

.cr-card__gender--male {
    color: #004aad !important;
}

/* 評価（ヘッダー直下） */
.cr-card__rating {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    line-height: 20px;
}

.cr-card__rating-score {
    color: #82c3c9 !important;
}

.cr-card__rating-star {
    font-style: normal;
}

/* 本文 */
.cr-card__body {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    letter-spacing: 0.075em;
    width: 100%;
}

/* タグ行（カード下部: 種類 + プラン + 店舗名） */
.cr-card__tags {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.cr-card__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    height: 22px;
    /* ブラウザごとの余白差異をなくすための絶対値指定 */
    padding: 0 12px;
    /* 上下パディングを「0」にして高さを固定化 */
    border-radius: 9999px;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
    /* letter-spacingによる右へのズレを相殺し中央に保つ */
    line-height: 1;
    /* フォント本来の内部余白を完全に削除 */
    box-sizing: border-box;
}

/* タグ色 */
.cr-card__tag--shukatsu {
    background: #85ccc6 !important;
    color: #fff !important;
}

.cr-card__tag--tenshoku {
    background: #ffbcbc !important;
    color: #fff !important;
}

.cr-card__tag--makeup-yes {
    background: #FA9A9A !important;
    color: #fff !important;
}

.cr-card__tag--makeup-no {
    background: #a4a4a4 !important;
    color: #fff !important;
}

.cr-card__tag--area-kanto {
    background: #233F9A !important;
    color: #fff !important;
}

.cr-card__tag--area-kansai {
    background: #00B5F0 !important;
    color: #fff !important;
}

.cr-card__tag--area-other {
    background: #DCAA0D !important;
    color: #fff !important;
}

.cr-card__tag--studio {
    background: #fef3c7;
    color: #333;
}

/* 文字数表示 */
.cr-card__charcount {
    display: inline;
    color: #999;
}

/* 返信トグルリンク */
.cr-card__reply-toggle {
    font-size: 14px;
    color: #2AACAC;
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
    letter-spacing: 0.03em;
    transition: opacity 0.2s;
}

.cr-card__reply-toggle:hover {
    opacity: 0.7;
}

.cr-card__reply-arrow {
    font-size: 11px;
    display: inline-block;
    transition: transform 0.2s;
}

/* 店舗返信 */
.cr-card__reply {
    background: #f7f7f7;
    margin-top: 12px;
    padding: 20px;
    border-radius: 4px;
    position: relative;
}

.cr-card__reply-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cr-card__reply-label::before {
    content: '💬';
    font-size: 14px;
}

.cr-card__reply-body {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

.cr-card__reply-date {
    text-align: right;
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

/* ============================================
   PCレイアウト (1025px以上)
   ============================================ */
@media screen and (min-width: 1025px) {
    .cr-list {
        width: 70%;
        margin: 0 auto;
    }

    .cr-card {
        display: block;
    }

    .cr-card__header {
        margin-bottom: 12px;
    }

    .cr-card__body {
        margin-bottom: 12px;
        width: 100%;
    }

    .cr-card__rating {
        text-align: right;
    }

    .cr-card__reply-toggle {
        margin-top: 16px;
    }
}

/* ============================================
   ローディング
   ============================================ */
.cr-loader {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 0;
}

.cr-loader.is-loading {
    display: flex;
}

.cr-loader__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #233F9A;
    animation: crDotPulse 1.2s ease-in-out infinite;
}

.cr-loader__dot:nth-child(2) {
    animation-delay: 0.15s;
}

.cr-loader__dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes crDotPulse {

    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ============================================
   結果なし
   ============================================ */
.cr-empty {
    text-align: center;
    padding: 50px 20px;
    color: #999;
    font-size: 15px;
}

/* ============================================
   全部見るボタン
   ============================================ */
.cr-load-more {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.cr-load-more__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.cr-load-more__btn:hover {
    color: #666;
}

.cr-load-more__btn:disabled {
    cursor: default;
    opacity: 0.5;
}

.cr-load-more__btn svg {
    transition: transform 0.2s;
}

.cr-load-more__btn:not(:disabled):hover svg {
    transform: translateY(3px);
}

/* ============================================
   レスポンシブ（750px以下）
   CSS変数を使わず vw 直書きで iOS Safari 確実対応
   計算式: N ÷ 750 × 100 = vw値
   ============================================ */
@media screen and (max-width: 750px) {
    .cr-section {
        padding: 0 5.33vw 16vw;
        /* 40, 120 */
    }

    .cr-page-title {
        padding: 10.67vw 5.33vw;
        /* 80, 40 */
    }

    .cr-page-title__heading {
        font-size: 6.4vw;
        /* 48 */
        margin-bottom: 4.27vw;
        /* 32 */
    }

    .cr-page-title__lead {
        font-size: 11px;
    }

    /* SP時のみ改行を有効化 */
    .cr-sp-br {
        display: inline !important;
    }

    /* フィルタ */
    .cr-filter {
        padding: 7.47vw 2.13vw 6.4vw;
        /* 56, 16, 48 */
        margin-bottom: 8vw;
        /* 60 */
    }

    .cr-filter__checkboxes {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4.27vw 6.4vw;
        /* 32, 48 */
        margin-bottom: 6.4vw;
        /* 48 */
    }

    .cr-filter__group-label {
        font-size: 4vw;
        /* 30 */
        margin-bottom: 2.67vw;
        /* 20 */
        text-align: center;
        font-weight: bold;
    }

    .cr-filter__options {
        gap: 2.13vw;
        /* 16 */
    }

    .cr-filter__checkbox {
        font-size: 3.73vw;
        /* 28 */
        letter-spacing: 0;
        gap: 1.33vw;
        /* 10 */
    }

    .cr-filter__checkbox input[type="checkbox"] {
        width: 4.8vw;
        /* 36 */
        height: 4.8vw;
        border-width: 0.53vw;
        /* 4 */
        border-radius: 0.8vw;
        /* 6 */
    }

    .cr-filter__checkbox input[type="radio"] {
        width: 4.8vw;
        /* 36 */
        height: 4.8vw;
        border-width: 0.53vw;
        /* 4 */
        border-radius: 50%;
    }

    .cr-filter__checkbox input[type="checkbox"]:checked::after {
        top: 0.27vw;
        /* 2 */
        left: 1.6vw;
        /* 12 */
        width: 1.07vw;
        /* 8 */
        height: 2.67vw;
        /* 20 */
        border-width: 0.53vw;
        /* 4 */
    }

    .cr-filter__checkbox input[type="radio"]:checked::after {
        top: 0.8vw;
        /* 6 */
        left: 0.8vw;
        width: 2.13vw;
        /* 16 */
        height: 2.13vw;
    }

    .cr-filter__selects {
        display: flex;
        justify-content: space-between;
        gap: 2.13vw;
        /* 16 */
        flex-wrap: nowrap;
    }

    .cr-filter__select-wrap {
        width: calc(50% - 1.07vw);
        /* 50% - 8 */
    }

    .cr-filter__select {
        height: 11.73vw;
        /* 88 */
        font-size: 3.73vw;
        /* 28 */
        padding: 0 6.4vw 0 2.13vw;
        /* 0 48 0 16 */
        border-radius: 1.07vw;
        /* 8 */
    }

    .cr-filter__select-arrow {
        right: 2.67vw;
        /* 20 */
        border-left-width: 1.33vw;
        /* 10 */
        border-right-width: 1.33vw;
        border-top-width: 1.87vw;
        /* 14 */
    }

    .cr-filter__select-separator {
        display: none;
    }

    /* レビューカード */
    .cr-card {
        padding: 6.4vw 0;
        /* 48 */
    }

    .cr-card__header {
        margin-bottom: 3.2vw;
        /* 24 */
        gap: 2.13vw;
        /* 16 */
    }

    .cr-card__header-left,
    .cr-card__header-right {
        gap: 2.67vw;
        /* 20 */
    }

    .cr-card__header-right {
        font-size: 3.47vw;
        /* 26 */
    }

    .cr-card__date,
    .cr-card__rating {
        font-size: 3.47vw;
        /* 26 */
        line-height: 5.33vw;
        /* 40 */
    }

    .cr-card__rating {
        margin-bottom: 3.2vw;
        /* 24 */
    }

    .cr-card__body {
        font-size: 3.73vw;
        /* 28 */
        margin-bottom: 3.73vw;
        /* 28 */
    }

    .cr-card__tags {
        gap: 2.13vw;
        /* 16 */
    }

    /* PC要素の非表示 */
    .cr-card__tag-pc,
    .cr-card__rating--pc {
        display: none !important;
    }

    /* SP要素の表示 */
    .cr-card__tags--sp {
        display: flex !important;
        flex-wrap: wrap;
        gap: 2.13vw;
        /* 16 */
        margin-top: 2.13vw;
        justify-content: flex-end;
    }

    .cr-card__rating--sp {
        display: block !important;
        margin-bottom: 3.2vw;
        /* 24 */
        text-align: left;
    }

    .cr-card__tag {
        font-size: 3.2vw;  /* 実質およそ12px相当。vwにすることでブラウザ間の表示倍率バグを完全無力化 */
        height: 5.86vw;    /* 実質およそ22px相当。絶対値(vw)での高さ縛りプロトコルを維持 */
        padding: 0 3.2vw;  /* 上下padding 0 により行間ズレを無効化 */
        line-height: 1;
    }

    /* ボタン */
    .cr-load-more {
        padding: 8vw 0;
        /* 60 */
    }

    .cr-load-more__btn {
        font-size: 4.27vw;
        /* 32 */
        gap: 2.13vw;
        /* 16 */
        padding: 3.73vw 6.4vw;
        /* 28, 48 */
    }

    .cr-load-more__btn svg {
        width: 4.27vw;
        /* 32 */
        height: 4.27vw;
    }
}