@charset "utf-8";

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

/* ── コンテナ ── */
.cr-section {
    width: 100%;
    max-width: calc(1100 * var(--width-ratio));
    margin: 0 auto;
    padding: 0 calc(20 * var(--width-ratio)) calc(60 * var(--width-ratio));
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

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

.cr-page-title__heading {
    font-size: calc(28 * var(--width-ratio));
    font-weight: 700;
    color: #333;
    margin-bottom: calc(16 * var(--width-ratio));
    letter-spacing: 0.05em;
}

.cr-page-title__lead {
    font-size: calc(14 * var(--width-ratio));
    color: #666;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

/* ============================================
   フィルタ
   ============================================ */
.cr-filter {
    background-image: linear-gradient(90deg, rgb(240 251 246), rgb(214 250 255 / 66%) 55%);
    padding: calc(28 * var(--width-ratio)) calc(32 * var(--width-ratio)) calc(24 * var(--width-ratio));
    margin-bottom: calc(30 * var(--width-ratio));
}

/* チェックボックス行 */
.cr-filter__checkboxes {
    display: flex;
    justify-content: center;
    gap: calc(40 * var(--width-ratio));
    margin-bottom: calc(20 * var(--width-ratio));
}

.cr-filter__group-label {
    display: block;
    font-size: calc(15 * var(--width-ratio));
    font-weight: 700;
    text-align: center;
    margin-bottom: calc(10 * var(--width-ratio));
    letter-spacing: 0.05em;
    color: #333;
}

.cr-filter__options {
    display: flex;
    flex-direction: column;
    gap: calc(6 * var(--width-ratio));
}

.cr-filter__checkbox {
    display: flex;
    align-items: center;
    gap: calc(6 * var(--width-ratio));
    font-size: calc(14 * var(--width-ratio));
    color: #333;
    cursor: pointer;
    letter-spacing: 0.03em;
}

.cr-filter__checkbox input[type="checkbox"] {
    display: inline-block !important;
    /* common.css の display:none を上書き */
    width: calc(16 * var(--width-ratio));
    height: calc(16 * var(--width-ratio));
    border: 2px solid #888;
    border-radius: 2px;
    -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: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

/* ラジオボタン（文字数フィルター用） */
.cr-filter__checkbox input[type="radio"] {
    width: calc(16 * var(--width-ratio));
    height: calc(16 * var(--width-ratio));
    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: 6px;
    height: 6px;
    border-radius: 50%;
    background: #333;
}

/* ドロップダウン行 */
.cr-filter__selects {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(12 * var(--width-ratio));
}

.cr-filter__select-wrap {
    position: relative;
    width: calc(200 * var(--width-ratio));
}

.cr-filter__select {
    width: 100%;
    height: calc(40 * var(--width-ratio));
    padding: 0 calc(32 * var(--width-ratio)) 0 calc(14 * var(--width-ratio));
    font-size: calc(14 * var(--width-ratio));
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: calc(4 * var(--width-ratio));
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.cr-filter__select-arrow {
    position: absolute;
    right: calc(12 * var(--width-ratio));
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
}

.cr-filter__select-separator {
    color: #999;
    font-size: calc(12 * var(--width-ratio));
}

/* ============================================
   レビューカード
   構造: ヘッダー(日付+年代性別) → 評価 → 本文 → タグ
   ============================================ */
.cr-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cr-card {
    border-bottom: 1px solid #e8e8e8;
    padding: calc(24 * var(--width-ratio)) calc(16 * var(--width-ratio));
}

.cr-card:first-child {
    border-top: 1px solid #e8e8e8;
}

/* ヘッダー: 日付（左） + 年代・性別（右） */
.cr-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(8 * var(--width-ratio));
}

.cr-card__date {
    font-size: calc(14 * var(--width-ratio));
    color: #666;
    letter-spacing: 0.03em;
}

.cr-card__meta {
    font-size: calc(14 * var(--width-ratio));
    color: #333;
    text-align: right;
    white-space: nowrap;
}

.cr-card__meta span {
    margin-left: 0.75em;
}

/* 評価（ヘッダー直下） */
.cr-card__rating {
    font-size: calc(14 * var(--width-ratio));
    color: #333;
    margin-bottom: calc(10 * var(--width-ratio));
}

.cr-card__rating-star {
    color: #2AACAC;
    font-style: normal;
}

/* 本文 */
.cr-card__body {
    font-size: calc(15 * var(--width-ratio));
    color: #333;
    line-height: 1.8;
    margin-bottom: calc(12 * var(--width-ratio));
    letter-spacing: 0.03em;
}

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

.cr-card__tag {
    display: inline-block;
    font-size: calc(12 * var(--width-ratio));
    font-weight: 600;
    padding: calc(4 * var(--width-ratio)) calc(16 * var(--width-ratio));
    border-radius: calc(20 * var(--width-ratio));
    letter-spacing: 0.03em;
}

.cr-card__tag--shukatsu {
    background: #e0f5e9;
    color: #2d8a56;
}

.cr-card__tag--tenshoku {
    background: #fce4ec;
    color: #c0392b;
}

.cr-card__tag--makeup-yes {
    background: #e0f5e9;
    color: #2d8a56;
}

.cr-card__tag--makeup-no {
    background: #fce4ec;
    color: #c0392b;
}

.cr-card__tag--studio {
    background: #f5f0d8;
    color: #7a6e39;
}

/* 文字数表示は JS 側で削除済みなので非表示 */
.cr-card__charcount {
    display: none;
}

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

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

.cr-card__reply-arrow {
    font-size: calc(10 * var(--width-ratio));
    display: inline-block;
    transition: transform 0.2s;
}

/* 店舗返信 */
.cr-card__reply {
    background: #f7f7f7;
    margin-top: calc(12 * var(--width-ratio));
    padding: calc(20 * var(--width-ratio));
    border-radius: calc(4 * var(--width-ratio));
    position: relative;
}

.cr-card__reply-label {
    font-size: calc(13 * var(--width-ratio));
    font-weight: 600;
    color: #555;
    margin-bottom: calc(10 * var(--width-ratio));
    display: flex;
    align-items: center;
    gap: calc(6 * var(--width-ratio));
}

.cr-card__reply-label::before {
    content: '💬';
    font-size: calc(14 * var(--width-ratio));
}

.cr-card__reply-body {
    font-size: calc(14 * var(--width-ratio));
    color: #555;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

.cr-card__reply-date {
    text-align: right;
    font-size: calc(13 * var(--width-ratio));
    color: #999;
    margin-top: calc(10 * var(--width-ratio));
}

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

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

.cr-loader__dot {
    width: calc(10 * var(--width-ratio));
    height: calc(10 * var(--width-ratio));
    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: calc(50 * var(--width-ratio)) calc(20 * var(--width-ratio));
    color: #999;
    font-size: calc(15 * var(--width-ratio));
}

/* ============================================
   全部見るボタン
   ============================================ */
.cr-load-more {
    display: flex;
    justify-content: center;
    padding: calc(30 * var(--width-ratio)) 0;
}

.cr-load-more__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(6 * var(--width-ratio));
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: calc(14 * var(--width-ratio));
    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以下）
   PCと同じレイアウトを --width-ratio で縮小表示
   ============================================ */
@media screen and (max-width: 750px) {
    .cr-filter__select-separator {
        display: none;
    }

    .cr-filter__selects {
        flex-wrap: nowrap;
    }

    .cr-filter__select-wrap {
        width: calc(50% - calc(4 * var(--width-ratio)));
    }
}