@charset "UTF-8";

/* =========================================================
   クチコミセクション 全体背景
========================================================= */
/* 背景をFigmaのような薄いクリーム色に変更 */
#category-voice-top-section-wrap {
    background-color: #FFFCF4 !important;
    background-image: none !important;
}

#category-voice-top-section-wrap .voice_section_voice_list_wrap {
    padding-bottom: 0 !important;
}

/* =========================================================
   クチコミカード（スライダー内の各カード）
========================================================= */
/* カードの背景を白にし、枠線と薄い影をつける */
#category-voice-top-section-wrap .review-box {
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 2.5cqw !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    padding: 4cqw !important;
}

/* スライダーの左右の矢印ボタンをFigmaデザイン（白背景＋赤矢印＋影）に変更 */
#category-voice-top-section-wrap .splide__arrow {
    background-color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    opacity: 1 !important;
    border: 1px solid #f0f0f0 !important;
}

#category-voice-top-section-wrap .splide__arrow svg {
    fill: #990000 !important;
}

/* =========================================================
   クチコミをもっと見る ボタン（最新買取実績と同じデザインに統一）
========================================================= */
.contents #category-voice-top-section-wrap .voice_section_avoice_list_under_content .common-link-wrap {
    margin-top: 5cqw !important;
}

/* ▼詳細度を最強にするため、.contents とタグ名 a、クラス名を重複させて指定 */
.contents #category-voice-top-section-wrap .voice_section_avoice_list_under_content .common-link-wrap a.common-link-btn.common-link-btn {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 2cqw !important;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3) !important;
    color: #333333 !important;
    font-weight: bold !important;
    padding: 5cqw 10cqw 5cqw 6cqw !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    --f-base: 15;
    font-size: var(--f-cq-calc) !important;
}

/* ホバー時の挙動 */
.contents #category-voice-top-section-wrap .voice_section_avoice_list_under_content .common-link-wrap a.common-link-btn.common-link-btn:hover {
    background-color: #fafafa !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px) !important;
    transition: all 0.3s ease !important;
}

/* 既存の共通矢印アイコンを非表示 */
.contents #category-voice-top-section-wrap .voice_section_avoice_list_under_content .common-link-wrap a.common-link-btn.common-link-btn::before {
    display: none !important;
    background-image: none !important;
}

/* 右端の赤い矢印アイコン（SVG）を新たに追加 */
.contents #category-voice-top-section-wrap .voice_section_avoice_list_under_content .common-link-wrap a.common-link-btn.common-link-btn::after {
    content: "" !important;
    position: absolute !important;
    right: 4cqw !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 6cqw !important;
    height: 6cqw !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23990000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7-7 7"/></svg>') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: none !important;
    display: block !important;
}

#category-voice-top-section-wrap .voice_section_avoice_list_under_content {
    padding: 0 6cqw 12cqw;
}

/* =========================================================
   査定員からのご挨拶 カード
========================================================= */
/* 背景を白にして独立したカードデザインにする */
#category-voice-top-section-wrap .appraiser-card {
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 2cqw !important;
    padding: 6cqw 4cqw 2cqw !important;
    margin-top: 5cqw !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

/* タイトルの装飾（中央寄せ、査定員名を赤文字化） */
#category-voice-top-section-wrap .appraiser-card .appraiser-title {
    text-align: center !important;
    color: #333333 !important;
    margin-bottom: 4cqw !important;
    border-bottom: none !important;
}

#category-voice-top-section-wrap .appraiser-card .appraiser-kanteinin {
    color: #990000 !important;
}

#category-voice-top-section-wrap .appraiser-card .common-view-limit-wrap:not(.is-opened) {
    min-height: 240px !important;
}

/* ▼修正：ボタンエリアを下端に固定し、フェード領域を綺麗に確保する */
#category-voice-top-section-wrap .appraiser-card .limit-btn-area.js-limit-mask {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 35cqw !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    padding-bottom: 2cqw !important;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 75%) !important;
    box-sizing: border-box !important;
}

#category-voice-top-section-wrap .appraiser-card .limit-trigger-btn {
    background-color: #fffaeb !important;
    color: #333333 !important;
    padding: 1.25cqw 3cqw !important;
    border-radius: 1cqw !important;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3) !important;
    margin: 0 auto !important;
    display: block !important;
    cursor: pointer !important;
    --f-base: 11;
    font-weight: normal !important;
    text-align: center !important;
}

/* =========================================================
   見出し上のアイコンを非表示
========================================================= */
#category-voice-top-section-wrap .title-wrap::before,
#category-voice-top-section-wrap .title-wrap::after {
    display: none !important;
    background-image: none !important;
}

/* =========================================================
   見出しとリード文のデザイン調整
========================================================= */
/* タイトルエリア全体の余白と中央揃え */
#category-voice-top-section-wrap .title-wrap {
    text-align: center !important;
    margin-bottom: 6cqw !important;
}

/* 大見出し（お客さまのクチコミ） */
#category-voice-top-section-wrap .title-wrap .title {
    font-family: serif !important;
    font-weight: bold !important;
    color: #333333 !important;
    padding: 12cqw 0 4cqw !important;
    --f-base: 22;
    font-size: var(--f-cq-calc) !important;
    border: none !important;
    background: transparent !important;
}

/* 既存のspan要素（赤文字指定など）があればリセットして黒単色にする */
#category-voice-top-section-wrap .title-wrap .title span {
    color: #333333 !important;
    font-size: inherit !important;
    border: none !important;
}

/* リード文（ご利用いただいた〜） */
#category-voice-top-section-wrap .title-wrap .title-lead {
    color: #333333 !important;
    --f-base: 13;
    font-size: var(--f-cq-calc) !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

#category-voice-top-section-wrap .title-lead {
    padding: 0 !important;
}

/* =========================================================
   査定員カードの内容レイアウト修正（Gridによる並び替え）
========================================================= */
/* 親ラッパーをGridレイアウトにし、エリアを定義する */
#category-voice-top-section-wrap .appraiser-card .limit-list-body.appraiser-flex-container-wrap {
    display: grid !important;
    grid-template-columns: 16cqw 1fr !important;
    grid-template-areas:
        "text text"
        "avatar name"
        "hobby hobby"
        "other other" !important;
    gap: 0 4cqw !important;
}

/* 途中の不要なラッパー要素を透過させ、子要素を直接Gridで制御できるようにする */
#category-voice-top-section-wrap .appraiser-flex-container,
#category-voice-top-section-wrap .appraiser-flex-hobby-container,
#category-voice-top-section-wrap .appraiser-info,
#category-voice-top-section-wrap .appraiser-flex-hobby-info {
    display: contents !important;
}

/* 長文挨拶エリアを一番上に配置 */
#category-voice-top-section-wrap .appraiser-text {
    grid-area: text !important;
    margin-bottom: 0 !important;
    color: #333333 !important;
    line-height: 1.7 !important;
    text-align: justify !important;
    font-family: "Noto Sans JP", sans-serif !important;
    padding: 0 !important;
    --f-base: 12 !important;
}

/* アバター画像 */
#category-voice-top-section-wrap .appraiser-avatar {
    grid-area: avatar !important;
    align-self: center !important;
}

#category-voice-top-section-wrap .appraiser-avatar img {
    width: 100% !important;
    height: auto !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

/* 名前と肩書き */
#category-voice-top-section-wrap .appraiser-name {
    grid-area: name !important;
    align-self: center !important;
    color: #333333 !important;
    margin: 0 0 0 4cqw !important;
    line-height: 1.6 !important;
    font-family: "Noto Sans JP", sans-serif !important;
}

/* 趣味などのリストエリア */
#category-voice-top-section-wrap .appraiser-flex-hobby-info>div:not(.appraiser-name) {
    grid-area: hobby !important;
    margin-top: 5cqw !important;
}

/* 各リスト項目（横並びにして縦を揃える） */
#category-voice-top-section-wrap .appraiser-flex-hobby-info>div:not(.appraiser-name)>div {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 2cqw !important;
    color: #333333 !important;
    font-family: "Noto Sans JP", sans-serif !important;
    line-height: 1.5 !important;
    --f-base: 12 !important;
}

#category-voice-top-section-wrap .appraiser-flex-hobby-info>div:not(.appraiser-name)>div span.small-bold-text {
    color: #990000 !important;
    font-weight: bold !important;
    min-width: 25cqw !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    --f-base: 12 !important;
}

/* プロフィールコメント */
#category-voice-top-section-wrap .other-wrap {
    grid-area: other !important;
    margin-top: 3cqw !important;
    color: #333333 !important;
    line-height: 1.7 !important;
    text-align: justify !important;
    font-family: "Noto Sans JP", sans-serif !important;
}

#category-voice-top-section-wrap .other-wrap p {
    --f-base: 12 !important;
}

#category-voice-top-section-wrap .appraiser-header {
    background: none !important;
    gap: 0 !important;
    height: 0 !important;
}

/* =========================================================
   査定員カード 展開時（閉じる状態）のボタンエリア調整
========================================================= */
/* 枠が開いた状態（is-opened）のときのボタンエリア */
#category-voice-top-section-wrap .appraiser-card .common-view-limit-wrap.is-opened .limit-btn-area.js-limit-mask {
    position: relative !important;
    background: transparent !important;
    height: auto !important;
    padding-top: 5cqw !important;
    padding-bottom: 0 !important;
    align-items: center !important;
}

/* 展開時はボタンが枠内に自然に収まるため、枠自体に余分な高さを確保しない */
#category-voice-top-section-wrap .appraiser-card .common-view-limit-wrap.is-opened {
    padding-bottom: 0 !important;
}

@media (min-width: 767px) {
    #category-voice-top-section-wrap .g-kome-wrap {
        --f-base: 9;
    }
}

/* =========================================================
   SP版（スマホ）向けレイアウト調整（見切れ防止）
========================================================= */
@media (max-width: 767px) {

    /* スライダーの大枠が画面幅をはみ出さないように制御 */
    #category-voice-top-section-wrap {
        overflow: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #category-voice-top-section-wrap .voice_section_voice_list_wrap {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 各スライドアイテムのカード内の余白をSP向けに少し狭める */
    #category-voice-top-section-wrap .review-box {
        padding: 5cqw !important;
        margin: 0 auto !important;
        width: 98% !important;
        min-height: auto !important;
    }

    /* 矢印ボタンが画面外にはみ出さないように位置を内側に寄せる */
    #category-voice-top-section-wrap .splide__arrow--prev {
        left: 2cqw !important;
    }

    #category-voice-top-section-wrap .splide__arrow--next {
        right: 2cqw !important;
    }
}
