/* page-first.php（初めての方へ）専用CSS */

/* デザインカンプがSP専用・750px幅の1枚のみのため、
    ページ全体で --w-ref:750 を共通基準にする。
    各セクションは --f-base（カンプで測った数値）だけ指定すればいい
   ※#app_first（body）に付けるとフッター等の共通パーツにも継承されて崩れるため、main.contents に限定する */
#app_first .contents {
    --w-ref: 750;
}

/* ==============================
    【伸び縮みさせたい数値の書き方（コピペ用）】2026-09-08更新
    font-size / height / width / max-width / border-radius / margin など
    カンプ（750px幅）で測った数値をそのまま使いたい時はこの形をコピペする。

    --任意の名前-base: カンプで測った数値;
   プロパティ名: calc(100cqw * var(--任意の名前-base) / var(--w-ref));

    例）ボタンの上のmarginがカンプで24pxだった場合
    --mt-base: 24;
   margin-top: calc(100cqw * var(--mt-base) / var(--w-ref));

    意味：コンテナ幅が750px未満（ほぼ全SP機種）は比率で伸び縮み、
    750px以上（ほぼ全PC）になったらカンプの数値でピタッと固定される。
    ブレイクポイント（@media）は使わなくていい。

    【重要・必須セット】
    この計算式はcqw（container-typeを付けた要素自身の幅）が基準。
    だから `container-type: inline-size;` を付けたセクションには、
    必ず同じ要素に `max-width: 750px;`（＝--w-refと同じ数値）もセットで付けること。
    付け忘れると、画面が750pxを超えた時にcqwの基準幅が青天井に広がり
    文字や余白がカンプより大きくなるバグになる.

    また、`.first-about-section`のように`container-type`を付けた
    要素自身には、左右のpadding/margin（padding-inline等）を足さないこと。
    サイト共通CSSの`section{padding:0 1rem}`のような余白も同様にcqw計算をズレさせる。
    左右の余白がほしい場合は、`.first-chosen-inner`や
    `.first-about-inner`のような「中の子要素」側に付ける
    ============================*/

body img {
    width: 100%;
}

.titleMain--main {
    font-weight: bold;
}

@media (min-width:768px) {
    .media_bg {
        width: 100% !important;
    }
}

/* ==============================
    ▼▼▼ FVエリア（店舗数・クチコミ%オーバーレイ） ▼▼▼
    ============================*/
.first_fv_wrap {
    position: relative;
    container-type: inline-size;
}

.first_fv_wrap img {
    width: 100%;
    display: block;
}

.first_fv_wrap .shop_num,
.first_fv_wrap .google_review_num {
    position: absolute;
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    font-weight: 700;
    color: #96051d;
    display: flex;
    align-items: baseline;
    justify-content: center;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

.first_fv_wrap .annotation {
    position: absolute;
    font-weight: 600;
    color: #333;
}

/* --- PC版：店舗数・クチコミ%の位置 --- */
.first_fv_wrap.is-pc .shop_num {
    left: 74%;
    top: 42%;
    font-size: 6.8cqw;
    letter-spacing: -0.06em;
}

.first_fv_wrap.is-pc .google_review_num {
    left: 80.5%;
    top: 88%;
    font-size: 4.5cqw;
}

.first_fv_wrap.is-pc .google_review_num_dec {
    font-size: 0.646em;
    margin-left: 0.2cqw;
}

.first_fv_wrap.is-pc .annotation {
    left: 1.5%;
    top: 90%;
    width: 60%;
    font-size: 1.1cqw;
}

/* --- SP版：店舗数・クチコミ%の位置 --- */
.first_fv_wrap.is-sp .shop_num {
    left: 30%;
    top: 28.2%;
    font-size: 16cqw;
    letter-spacing: -0.06em;
}

.first_fv_wrap.is-sp .google_review_num {
    left: 66%;
    top: 83.5%;
    font-size: 16cqw;
}

.first_fv_wrap.is-sp .google_review_num_dec {
    font-size: 0.646em;
    margin-left: 0.3cqw;
}

.first_fv_wrap.is-sp .annotation {
    left: 3%;
    top: 93%;
    width: 94%;
    font-size: 2.5cqw;
}

/* ==============================
    ▼▼▼ 3つのお約束 ▼▼▼
    ============================*/
.first-promise-section {
    text-align: center;
    container-type: inline-size;
    max-width: 750px;
    margin: 0 auto;
    padding: 0;
    background-image: url(/assets/img/first/first_promise_bg.webp);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* media-slider.php（共通パーツ）が.slider_containerにmargin-bottom:-10%を
   付けており、SP幅でこのセクションの頭に重なるため、ここだけで打ち消す */
@media (max-width: 767px) {
    .first-promise-section {
        margin-top: 10%;
    }
}

.first-promise-inner {
    padding: 25% 7% 14%;
}

.first-promise-pretitle {
    --f-base: 39;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-promise-title {
    font-weight: bold;
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
}

.first-promise-title-num {
    --f-base: 114;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    color: #860d0e;
}

.first-promise-title-mid {
    --f-base: 68;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    letter-spacing: -.04em;
}

.first-promise-title-em {
    --f-base: 87;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-promise-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.first-promise-list li:not(:first-child) {
    margin-top: 10%;
}

.first-promise-list-heading {
    --f-base: 36;
    font-weight: bold;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    padding-bottom: 3%;
    border-bottom: 1px solid #000;
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    padding-left: 1.2em;
    text-indent: -1.2em;
}

.first-promise-list-body {
    --f-base: 26;
    margin-top: 3%;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    /* デザイナーFB（9/18）：文字間が詰まって見えるため広げる。3か所同じ値 */
    letter-spacing: 0.05em;
}

/* ==============================
    ▼▼▼ おたからやとは ▼▼▼
    ============================*/
.first-about-section {
    text-align: center;
    background-color: #ede2e2;
    container-type: inline-size;
    max-width: 750px;
    padding-block: 10%;
    padding-inline: 0;
}

.first-about-inner {
    padding-inline: 5%;
}

.first-about-lead {
    --f-base: 30;
    max-width: 600px;
    margin: 2% auto 0;
    font-weight: 500;
    text-align: left;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    /* デザイナーFB（9/18）：文字間が詰まって見えるため広げる。3か所同じ値 */
    letter-spacing: 0.05em;
}

.first-about-section img {
    margin: 2em 0 1em 0;
}

.first_p_link_area .btn__wrap {
    --w-base: 650;
    max-width: calc(100cqw * var(--w-base) / var(--w-ref));
    margin-inline: auto;
    --mt-base: 30;
    margin-top: calc(100cqw * var(--mt-base) / var(--w-ref));

}

.first_p_link_area .btn__wrap a {
    --f-base: 32;
    letter-spacing: 0.1em;
    font-weight: 500;
    background-color: #44030a;
    border: none;
    --r-base: 20;
    border-radius: calc(100cqw * var(--r-base) / var(--w-ref));
    /* 高さだけ上限を意図的に100pxに絞っている（数値120のまま伸ばすと大きすぎたため） */
    height: min(calc(100cqw * 120 / var(--w-ref)), 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.first_p_link_area .btn__wrap a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* title */
.first-about-title .first-about-title,
.first-about-title .first-about-title-suffix {
    --f-base: 44;
    color: #000;
    font-weight: 500;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-about-title .first-about-title-suffix {
    --f-base: 54;
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    -webkit-text-stroke: 0.8px currentColor;
}

.first-about-title .first-about-title-brand {
    --f-base: 80;
    color: #860d0e;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    font-weight: 900;
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    -webkit-text-stroke: 0.6px currentColor;
}

.first_p_link_area {
    display: grid;
    grid-template-columns: 1fr;
}

.first_p_link_area .btn__red>a::after {
    --f-base: 16;
    width: calc(100cqw * var(--f-base) / var(--w-ref));
    height: calc(100cqw * var(--f-base) / var(--w-ref));
    margin-top: 0;
    background: none;
    border: none;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease;
}

.first_p_link_area .btn__wrap a:hover::after {
    transform: translateY(calc(-50% + 4px)) rotate(45deg);
}

/* ==============================
    ▼▼▼ こんな方に選ばれています ▼▼▼
    ============================*/
.contents__left .first-chosen-section {
    text-align: center;
    background-color: #ede2e2;
    margin-top: 0;
    container-type: inline-size;
    max-width: 750px;
    padding-bottom: 10%;
    padding-inline: 0;
    overflow: visible;
}

.first-chosen-title {
    margin-top: 0;
    font-weight: bold;
}

.first-chosen-title-brand,
.first-chosen-title-main,
.first-chosen-title-em {
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    -webkit-text-stroke: 0.6px currentColor;
}

.first-chosen-title-brand,
.first-chosen-title-main {
    letter-spacing: -0.1em;
}

.first-chosen-title-brand {
    --f-base: 54;
    color: #860d0e;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-chosen-title-main {
    --f-base: 54;
    color: #000000;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-chosen-title-em {
    --f-base: 73;
    color: #860d0e;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-chosen-lead {
    --f-base: 45;
    margin-top: 8%;
    font-weight: bold;
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-chosen-lead-brand {
    color: #860d0e;
    font-weight: bold;
}

.first-chosen-inner {
    position: relative;
    background-color: #fff;
    padding: 8% 3% 0;
    margin: 4% 4% 0;
}

.first-chosen-people-wrap {
    position: relative;
    margin-top: 6%;
}

.first-chosen-people {
    --w-base: 500;
    width: calc(100cqw * var(--w-base) / var(--w-ref));
    display: block;
    margin-left: auto;
    position: relative;
    right: -6%;
}

.first-chosen-badge {
    position: absolute;
    left: -6%;
    top: 8%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1 / 1;
    --w-base: 300;
    width: calc(100cqw * var(--w-base) / var(--w-ref));
    border-radius: 50%;
    background-color: #9b181e;
    color: #fff;
    font-weight: bold;
    transform: rotate(-7.72deg);
    --f-base: 37;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-chosen-checklist {
    list-style: none;
    padding: 0;
    text-align: left;
    --mt-base: 80;
    margin-top: calc(100cqw * var(--mt-base) / var(--w-ref));
}

.first-chosen-checklist li {
    --f-base: 32;
    font-weight: bold;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    /* デザイナーFB（9/18）：文字間が詰まって見えるため広げる。3か所同じ値 */
    letter-spacing: 0.05em;
}

.first-chosen-checklist li + li {
    --gap-base: 60;
    margin-top: calc(100cqw * var(--gap-base) / var(--w-ref));
}

.first-chosen-check-icon {
    vertical-align: middle;
    margin-right: 0.5em;
    --f-base: 40;
    width: calc(100cqw * var(--f-base) / var(--w-ref));
    height: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-chosen-highlight {
    background-image: linear-gradient(transparent 60%, #f2dfa2 60%);
}

/* ==============================
    ▼▼▼ お客様の声 ▼▼▼
    ============================*/
.first-voice-section #category-voice-top-section-wrap .title-wrap .title {
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    border-bottom: none;
    --f-base: 27;
}

.first-voice-section #category-voice-top-section-wrap .title-wrap .title span {
    color: #860d0e;
    --f-base: 37;
}

.first-voice-section #category-voice-top-section-wrap .title-lead {
    padding: 0 5cqw;
}

.first-voice-section #category-voice-top-section-wrap .review-box {
    border-radius: 0;
    padding-top: 9.33cqw;
    background: #fffcf5;
    margin: 0 17.5cqw;
    width: calc(100% - 35cqw);
}

.first-voice-section #category-voice-top-section-wrap .common-link-wrap {
    display: none;
}

.first-voice-section #category-voice-top-section-wrap .splide__arrow {
    background-color: #000000;
    border: none;
    width: 7cqw;
    height: 7cqw;
    background-size: 2cqw 3.4cqw;
    /* 共通はtop:50%のため「続きを読む」でカードが伸びると矢印が下へ動く。閉じた状態のカード中央あたりに固定 */
    top: 34cqw;
}

.first-voice-section #category-voice-top-section-wrap .splide__arrow:hover {
    background-color: #333333;
    border: none;
}

.first-voice-section #category-voice-top-section-wrap .splide__arrow--prev {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='20' viewBox='0 0 12 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0121 2.99726L4.22205 9.78726L11.0121 16.5773C11.6946 17.2598 11.6946 18.3623 11.0121 19.0448C10.3296 19.7273 9.22705 19.7273 8.54455 19.0448L0.512051 11.0123C-0.170448 10.3298 -0.170448 9.22726 0.512052 8.54476L8.54455 0.512266C9.22705 -0.170233 10.3296 -0.170233 11.0121 0.512266C11.6771 1.19477 11.6946 2.31477 11.0121 2.99726Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
    left: 7cqw;
}

.first-voice-section #category-voice-top-section-wrap .splide__arrow--next {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='20' viewBox='0 0 12 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.511875 16.5594L7.30188 9.76938L0.511875 2.97937C-0.170625 2.29688 -0.170625 1.19438 0.511875 0.511875C1.19437 -0.170625 2.29687 -0.170625 2.97937 0.511875L11.0119 8.54438C11.6944 9.22688 11.6944 10.3294 11.0119 11.0119L2.97937 19.0444C2.29687 19.7269 1.19437 19.7269 0.511875 19.0444C-0.153125 18.3619 -0.170625 17.2419 0.511875 16.5594Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
    right: 7cqw;
}

/* カード内のテキストを明朝体に（デザインカンプ準拠） */
.first-voice-section #category-voice-top-section-wrap .review-title,
.first-voice-section #category-voice-top-section-wrap .user-name,
.first-voice-section #category-voice-top-section-wrap .store-name,
.first-voice-section #category-voice-top-section-wrap .product-name,
.first-voice-section #category-voice-top-section-wrap .review-body {
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
}

.first-voice-section #category-voice-top-section-wrap .user-info {
    align-items: flex-start;
}

.first-voice-section #category-voice-top-section-wrap .user-meta {
    min-width: 0;
    flex: 1;
}

.first-voice-section #category-voice-top-section-wrap .user-name {
    width: auto;
    white-space: normal;
    word-break: break-word;
}

.first-voice-section #category-voice-top-section-wrap .review-header {
    gap: 4cqw;
}

.first-voice-section #category-voice-top-section-wrap .tag {
    border-radius: 0;
}

.first-voice-section #category-voice-top-section-wrap .stars {
    color: #ffa300;
}

.first-voice-section #category-voice-top-section-wrap .rating-score {
    color: #ffa300;
}

/* 「新着」バッジをデザインカンプの位置・色に（左上角に食い込ませ、タイトルは下に配置） */
.first-voice-section #category-voice-top-section-wrap .ico-new {
    flex-direction: column;
    align-items: flex-start;
    gap: 3cqw;
}

.first-voice-section #category-voice-top-section-wrap .new-text {
    background: #5f0102;
    margin: -4.5cqw 0 0 -4.5cqw;
    padding: 1.5cqw calc(4cqw - .5em) 1.5cqw 4cqw;
    width: auto;
    display: inline-block;
    flex: none;
    letter-spacing: .5em;
}

/* ==============================
    ▼▼▼ 選べる5つの査定方法 ▼▼▼
    ============================*/
.first-method-section {
    text-align: center;
    container-type: inline-size;
    max-width: 750px;
    margin: 0 auto;
    padding: 0;
}

.first-method-inner {
    padding-inline: 7%;
    padding-block: 10% 14%;
}

.first-method-title {
    --f-base: 43;
    font-weight: 500;
    color: #000;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-method-title-num,
.first-method-title-em {
    color: #860d0e;
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    -webkit-text-stroke: 2px currentColor;
}

.first-method-title-num {
    --f-base: 87;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-method-title-em {
    --f-base: 80;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

/* archecoの.common-style-area配下じゃないので、text-red/text-boldはこのセクション内だけで定義 */
.first-method-section .text-red {
    color: #860d0e;
}

.first-method-section .text-bold {
    font-weight: bold;
}

.first-method-list {
    display: flex;
    flex-direction: column;
    /* column方向flexのgapは%だと高さ基準(auto)になり0扱いになるためcqwで指定 */
    gap: calc(100cqw * 105 / var(--w-ref));
    list-style: none;
    padding: 0;
    margin-top: 8%;
    text-align: left;
}

.first-method-item {
    display: flex;
    flex-direction: column;
    gap: calc(100cqw * 45 / var(--w-ref));
}

.first-method-item-badge {
    position: relative;
    background-color: #860d0e;
    border-radius: 16px;
    padding: 1% 4%;
    text-align: center;
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
}

.first-method-item-badge::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(calc(100% - 1px));
    width: 0;
    height: 0;
    border-left: calc(100cqw * 20 / var(--w-ref)) solid transparent;
    border-right: calc(100cqw * 20 / var(--w-ref)) solid transparent;
    border-top: calc(100cqw * 40 / var(--w-ref)) solid #860d0e;
}

.first-method-item-heading {
    --f-base: 59;
    color: #fff;
    font-weight: bold;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-method-item-catch {
    --f-base: 33;
    color: #f2dfa2;
    font-weight: bold;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-method-item-figure {
    margin: 0;
}

.first-method-item-img {
    width: 100%;
    display: block;
}

.first-method-item-text {
    display: flex;
    flex-direction: column;
    gap: calc(100cqw * 30 / var(--w-ref));
}

.first-method-item-lead {
    --f-base: 36;
    font-weight: bold;
    color: #000;
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    -webkit-text-stroke: 0.5px currentColor;
}

.first-method-item-lead--center {
    text-align: center;
}

.first-method-item-desc,
.first-method-item-features {
    --f-base: 28;
    font-weight: 400;
    line-height: 1.7;
    color: #000;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-method-item-features {
    list-style: none;
    padding: 0;
}

.first-method-item-btn {
    --f-base: 38;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4% 8%;
    background-color: #eee6d1;
    border: 2px solid #44030a;
    border-radius: calc(100cqw * 20 / var(--w-ref));
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    color: #44030a;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.first-method-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(68, 3, 10, 0.2);
}

.first-method-item-btn::after {
    content: "";
    position: absolute;
    right: 6%;
    width: 6%;
    aspect-ratio: 1;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.5 7L14 12L9.5 17' stroke='%2344030a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.2s ease;
}

.first-method-item-btn:hover::after {
    transform: translateX(4px);
}

/* ==============================
    ▼▼▼ 主な取引先・メディア掲載 ▼▼▼
    2つを分けず1セクションにまとめる
    ============================*/
.first-partner-section {
    background-color: #7f6b47;
    text-align: center;
    container-type: inline-size;
    max-width: 750px;
    margin: 0 auto;
    padding: 0;
}

.first-partner-inner {
    padding-block: 15%;
    padding-inline: 2.67%;
}

.first-partner-title {
    --f-base: 52;
    color: #fff;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    font-weight: 700;
    letter-spacing: .1em;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-partner-lead {
    --f-base: 28;
    margin-top: 3%;
    color: #fff;
    font-weight: 500;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-partner-img {
    margin-top: 6%;
}

.first-partner-media {
    margin-top: 14%;
    overflow: hidden;
}

/* ==============================
    ▼▼▼ どのようなお品物でも査定いたします ▼▼▼
    ============================*/
.first-bad-purchase-section {
    /* カンプの「大歓迎」文字色がサイト標準の--theme_color(#e60012)と
        異なる(#9b181e)ため、このセクション内だけ変数を上書きする */
    --theme_color: #9b181e;
    text-align: center;
    container-type: inline-size;
    max-width: 750px;
    margin: 0 auto;
    padding: 0;
}

.first-bad-purchase-inner {
    padding-block-start: 10%;
    padding-inline: 2.67%;
}

.first-bad-purchase-title {
    --f-base: 43.5;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    font-weight: 700;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-bad-purchase-title-em {
    --f-base: 87;
    display: block;
    color: #860d0e;
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-bad-purchase-lead {
    --f-base: 30;
    margin-top: 3%;
    font-weight: 400;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-bad-purchase-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    padding: 4% 2.67%;
    margin: 6% -2.67% 0;
    background-color: #f2ead3;
}

.first-bad-purchase-item {
    --w-base: 226;
    width: calc(100cqw * var(--w-base) / var(--w-ref));
    margin-bottom: 6%;
}

.first-bad-purchase-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.first-bad-purchase-item-text {
    --f-base: 20;
    margin-top: 4%;
    font-weight: 500;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

/* ==============================
    ▼▼▼ よくある質問 ▼▼▼
    共通パーツ(template-parts/faq/faq.php)を読み込んでいるため、
    HTML構造は変えずCSSだけでこのページ専用の見た目にする
    ============================*/
.first-faq-section {
    /* header-menu-new20250131.phpの.qa__list__q::beforeが
        background-color: var(--theme_color) !important; のため、
       変数の中身をこのセクション内だけ差し替える */
    --theme_color: #860d0e;
    /* header-menu-new20250131.phpの.titleMain--mainが
       font-size: var(--font-2xl) !important; のため、同様に変数だけ上書きする */
    --font-2xl: calc(100cqw * 87 / var(--w-ref));
    padding-block: 10%;
    container-type: inline-size;
    max-width: 750px;
    margin: 0 auto;
}

.first-faq-section .titleMain--main {
    --f-base: 87;
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    font-weight: 700;
    color: #000;
    text-align: center;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

.first-faq-section .titleMain--main span {
    color: #860d0e;
}

.first-faq-section .titleMain--wrapper::before {
    display: none;
}

.first-faq-section .qa__wrap {
    --gap-base: 40;
    margin-top: 10%;
    display: flex;
    flex-direction: column;
    gap: calc(100cqw * var(--gap-base) / var(--w-ref));
    padding-inline: 2%;
}

.first-faq-section .qa__list {
    border-radius: calc(100cqw * 16 / var(--w-ref));
    overflow: hidden;
}

.first-faq-section .qa__wrap .qa__list {
    border-bottom: none;
    padding: 0;
}

.first-faq-section .qa__list__inner {
    display: block;
    min-height: 0;
}

.first-faq-section .qa__list__q,
.first-faq-section .qa__list__a {
    --f-base: 36;
    --gap-base: 20;
    display: flex;
    align-items: center;
    gap: calc(100cqw * var(--gap-base) / var(--w-ref));
    padding: calc(100cqw * 20 / var(--w-ref)) calc(100cqw * 15 / var(--w-ref));
    font-weight: 500;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    color: #000;
}

.first-faq-section .qa__wrap .qa__list__q::before,
.first-faq-section .qa__wrap .qa__list__a::before {
    content: "Q";
    position: static;
    flex-shrink: 0;
    width: calc(100cqw * 55 / var(--w-ref));
    height: calc(100cqw * 55 / var(--w-ref));
    border-radius: 50%;
    background-color: #860d0e;
    color: #fff;
    font-weight: 700;
    --f-base: 28;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    display: flex;
    align-items: center;
    justify-content: center;
}

.first-faq-section .qa__list__q {
    background-color: #ededed;
    border-bottom: 1px dashed #b5b4b4;
}

.first-faq-section .qa__wrap .qa__list__q {
    font-size: calc(100cqw * 36 / var(--w-ref));
    font-weight: 600;
}

.first-faq-section .qa__list__a {
    --f-base: 28;
    font-weight: 400;
    line-height: 1.7;
    align-items: flex-start;
}

.first-faq-section .qa__wrap .qa__list__a {
    font-size: calc(100cqw * 28 / var(--w-ref));
}

.first-faq-section .qa__wrap .qa__list__a::before {
    content: "A";
    background-color: #44030a;
    border: none;
}

.first-faq-section .qa__list__button {
    text-align: center;
    padding-bottom: calc(100cqw * 20 / var(--w-ref));
}

.first-faq-section .btn__wrap.btn__red {
    --w-base: 650;
    max-width: calc(100cqw * var(--w-base) / var(--w-ref));
    margin: 8% auto 0;
}

.first-faq-section .btn__wrap.btn__red a {
    --f-base: 32;
    letter-spacing: 0.1em;
    font-weight: 500;
    background-color: #44030a;
    border: none;
    border-radius: calc(100cqw * 20 / var(--w-ref));
    height: min(calc(100cqw * 110 / var(--w-ref)), 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.first-faq-section .btn__wrap.btn__red a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(100cqw * 30 / var(--w-ref));
    width: calc(100cqw * 16 / var(--w-ref));
    height: calc(100cqw * 16 / var(--w-ref));
    margin-top: 0;
    background: none;
    border: none;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-50%) rotate(-45deg);
    transition: transform 0.2s ease;
}

.first-faq-section .btn__wrap.btn__red a:hover::after {
    transform: translateX(4px) translateY(-50%) rotate(-45deg);
}

.first-faq-section .btn__wrap.btn__red a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* ==============================
    ▼▼▼ 買取に必要なもの ▼▼▼
    共通パーツ(assets/purchase_need.php)を使っているため、
    /first/限定の文言・マーカーはPHP側でslug分岐して出し分け、
    見た目はここでCSS上書きする
    ============================*/
#purchase-need-wrap.common-style-area {
    container-type: inline-size;
    max-width: 750px;
    /* .common-style-areaはarcheco_common.css側で--w-ref:375を
        独自に持っているため、ここだけ750に強制上書きしてカンプの生値をそのまま使えるようにする */
    --w-ref: 750;
}

#purchase-need-wrap.common-style-area .title-wrap {
    background-color: #ede2e2;
    padding-block: 8%;
}

#purchase-need-wrap.common-style-area .title-wrap .title {
    /* archeco_common.cssの.common-style-area .titleが赤いborder-bottomを打ち消す */
    border-bottom: none;
    padding-bottom: 0;
    --f-base: 43.5;
    color: #000;
    font-weight: 500;
    text-align: center;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

#purchase-need-wrap.common-style-area .title-wrap .title .theme-color-red {
    --f-base: 87;
    display: block;
    color: #860d0e;
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    font-weight: 700;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

#purchase-need-wrap.common-style-area .titleMain--lead {
    --mt-base: 50;
    --mx-base: 50;
    margin-top: calc(100cqw * var(--mt-base) / var(--w-ref));
    margin-inline: calc(100cqw * var(--mx-base) / var(--w-ref));
}

#purchase-need-wrap.common-style-area .titleMain--lead p {
    --f-base: 30;
    color: #000;
    font-weight: 500;
    text-align: left;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

#purchase-need-wrap.common-style-area .purchase_need_section_content_header {
    --mt-base: 60;
    --mx-base: 50;
    margin-top: calc(100cqw * var(--mt-base) / var(--w-ref));
    margin-inline: calc(100cqw * var(--mx-base) / var(--w-ref));
}

#purchase-need-wrap.common-style-area .purchase_need_section_content_img_area_wrap {
    --mt-base: 75;
    --rg-base: 40;
    margin-top: calc(100cqw * var(--mt-base) / var(--w-ref));
    /* 行と行の間(①と③の間など)。画像のpadding-bottom:2cqw(共通パーツ)を
        差し引いた値。列の間は共通パーツ側の指定のまま */
    row-gap: calc(100cqw * var(--rg-base) / var(--w-ref));
}

#purchase-need-wrap.common-style-area .purchase_need_section_content_img_wrap {
    /* カード内の見出しと画像の間 */
    --g-base: 35;
    gap: calc(100cqw * var(--g-base) / var(--w-ref));
}

#purchase-need-wrap.common-style-area .first-need-emphasis {
    background-color: transparent;
    padding: 0;
    /* 余白は親の.purchase_need_section_content_headerで取るので0 */
    margin: 0;
    /* 共通パーツ側のtext-align:centerを打ち消してカンプ通り左揃え */
    text-align: left;
    --f-base: 36;
    color: #9b181e;
    font-weight: 700;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

#purchase-need-wrap.common-style-area .first-need-mark {
    /* 文字の高さ全部でなく下半分だけにマーカーがかかるよう
        グラデーションで帯の高さを絞る */
    background-color: transparent;
    background-image: linear-gradient(180deg, transparent 60%, #f2ead3 40%);
}

#purchase-need-wrap.common-style-area .purchase_need_section_content_nem {
    /* 元のCSSはpaddingだけで丸を作っていて、中の文字によって
        楕円につぶれるため、固定の幅・高さ+50%で真円にする */
    --d-base: 50;
    width: calc(100cqw * var(--d-base) / var(--w-ref));
    height: calc(100cqw * var(--d-base) / var(--w-ref));
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: #860d0e;
    /* .x-small-bold-textの共通デフォルト(--f-base:12)がカンプの
        数値(25px)より小さいため上書き */
    --f-base: 25;
    color: #fff;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

#purchase-need-wrap.common-style-area .purchase_need_section_content_img_text_wrap h3 {
    --f-base: 26;
    color: #000;
    font-weight: 700;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
}

/* ==============================
    ▼▼▼ おたからや店舗エリア一覧 ▼▼▼
    共通パーツ(template-parts/shop/shop_guide_parts2.php)を使っているため、
    HTMLは変えずタイトル部分だけCSSで上書きする。県名リストは既存のまま
    ※#brand_tokei_sec15は共通パーツ側に元から付いているID（ブランド時計ページ由来の名前）。
    page_first.cssは/first/でしか読み込まないので、他ページには影響しない
    ============================*/
#brand_tokei_sec15 .titleMain--wrapper {
    container-type: inline-size;
    max-width: 750px;
    margin-inline: auto;
    /* 共通の4rem固定だとPCで詰まって見えるため、PCは10%まで広げる(SPは4remのまま) */
    margin-top: max(4rem, 10%);
}

/* タイトル上の赤い棒を消す */
#brand_tokei_sec15 .titleMain::before,
#brand_tokei_sec15 .titleMain--wrapper::before {
    display: none;
}

#brand_tokei_sec15 .titleMain--main {
    /* header-menu-new20250131.phpの.titleMain--mainが
        font-size: var(--font-2xl) !important; のため、変数の中身だけ上書きする */
    --font-2xl: calc(100cqw * 59 / var(--w-ref));
    /* 同じく「エリア一覧」のspanが color: var(--theme_color) !important; のため、
        タイトル内だけ黒に差し替える */
    --theme_color: #000;
    color: #000;
    text-align: center;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

/* カンプ通り「エリア一覧」を2行目にする */
#brand_tokei_sec15 .titleMain--main span {
    display: block;
}

#brand_tokei_sec15 .titleMain--lead {
    /* .titleMain--leadが font-size: var(--font-l) !important; のため変数で上書き */
    --font-l: calc(100cqw * 30 / var(--w-ref));
    color: #000;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

/* ==============================
    ▼▼▼ 査定方法診断 ▼▼▼
    HTML/JSはpage-first.phpに直書き。質問4枚＋結果5枚(.first-chart-step)を
    全部入れておき、JSでhidden属性を切り替えて1枚だけ表示する
    ============================*/
/* ---------- 入り口（750基準の数値） ---------- */
.first-chart-section {
    position: relative;
    container-type: inline-size;
    max-width: 750px;
    margin: 0 auto;
    padding: 0;
    background-color: #f2ead3;
    text-align: center;
}

.first-chart-inner {
    --pb-base: 85;
    padding-block: calc(100cqw * var(--pb-base) / var(--w-ref));
}

.first-chart-catch {
    --w-base: 598;
    width: calc(100cqw * var(--w-base) / var(--w-ref));
    margin: 0 auto;
}

.first-chart-catch img {
    display: block;
    width: 100%;
}

.first-chart-lead {
    --mt-base: 27;
    --f-base: 32;
    margin-top: calc(100cqw * var(--mt-base) / var(--w-ref));
    font-weight: 500;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    line-height: 1.52;
    color: #000;
}

/* マス目6つを入れる箱。各マスはこの箱を基準にabsoluteで置く */
.first-chart-tiles {
    position: relative;
    z-index: 1;
    --mt-base: 38;
    --w-base: 637.64;
    --h-base: 340.8;
    width: calc(100cqw * var(--w-base) / var(--w-ref));
    height: calc(100cqw * var(--h-base) / var(--w-ref));
    margin: calc(100cqw * var(--mt-base) / var(--w-ref)) auto 0;
    padding: 0;
}

.first-chart-tile {
    position: absolute;
    --size-base: 159.41;
    --border-base: 3;
    --f-base: 129;
    left: calc(100cqw * var(--left-base) / var(--w-ref));
    top: calc(100cqw * var(--top-base) / var(--w-ref));
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: calc(100cqw * var(--size-base) / var(--w-ref));
    height: calc(100cqw * var(--size-base) / var(--w-ref));
    border: calc(100cqw * var(--border-base) / var(--w-ref)) solid #860d0e;
    /* カンプは貂明朝。サイトのAdobe Fontsキットに無いため游明朝で代用 */
    font-family: 'yu-mincho-pr6n', 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    font-weight: 400;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    line-height: 1;
}

.first-chart-tile-white {
    background-color: #fff;
    color: #000;
}

.first-chart-tile-red {
    background-color: #5f0102;
    color: #fff;
}

/* 位置はマス目の箱の左上からの距離（カンプの座標から箱の左上56,2841を引いた値） */
.first-chart-tile-1 {
    --left-base: 0;
    --top-base: 22;
}

.first-chart-tile-2 {
    --left-base: 159.41;
    --top-base: 0;
}

.first-chart-tile-3 {
    --left-base: 318.82;
    --top-base: 0;
}

.first-chart-tile-4 {
    --left-base: 478.23;
    --top-base: 22;
}

.first-chart-tile-5 {
    --left-base: 159.41;
    --top-base: 181.4;
}

.first-chart-tile-6 {
    --left-base: 318.82;
    --top-base: 181.4;
}

/* 人物はマス目より上・ボタンより下に重ねる。
    PC/SPで文字の高さが変わってもズレないよう、足元をセクション下端に揃える */
.first-chart-person {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: calc(100cqw * var(--left-base) / var(--w-ref));
    width: calc(100cqw * var(--w-base) / var(--w-ref));
    height: auto;
}

.first-chart-person-left {
    --left-base: 10.64;
    --w-base: 232.3;
}

.first-chart-person-right {
    --left-base: 506.44;
    --w-base: 243.56;
}

.first-chart-start-btn {
    position: relative;
    z-index: 3;
    --mt-base: 71;
    --w-base: 543.59;
    --h-base: 117;
    --radius-base: 20;
    --gap-base: 30;
    --f-base: 39;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(100cqw * var(--gap-base) / var(--w-ref));
    width: calc(100cqw * var(--w-base) / var(--w-ref));
    height: calc(100cqw * var(--h-base) / var(--w-ref));
    margin: calc(100cqw * var(--mt-base) / var(--w-ref)) auto 0;
    padding: 0;
    border: none;
    border-radius: calc(100cqw * var(--radius-base) / var(--w-ref));
    background-color: #860d0e;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.6);
    color: #fff;
    font-weight: 700;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* ホバー：影を消し「押し込む」動きにする */
.first-chart-start-btn:hover {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.6);
}

.first-chart-start-icon {
    --icon-base: 62;
    width: calc(100cqw * var(--icon-base) / var(--w-ref));
    height: calc(100cqw * var(--icon-base) / var(--w-ref));
    transition: transform 0.3s;
}

.first-chart-start-btn:hover .first-chart-start-icon {
    transform: translateX(4px);
}

/* ---------- ポップアップ ---------- */
/* hidden属性の要素は、他のdisplay指定があっても必ず隠す */
.first-chart-step[hidden],
.first-chart-back[hidden] {
    display: none;
}

/* <dialog>本体。showModal()で開くとブラウザが最前面・画面中央に表示する
    カンプ通り、ベージュの枠（幅750）の中に白い箱（上下70・左右50あける）を置く。
    container-type を付けて、中の数値をカンプ（750）の数値のまま書けるようにする。
    幅は「画面幅の650/750（左右に暗い背景を見せる）」「750px」「画面の高さに収まる幅（全体の高さ915）」のうち一番小さいもの。
    中身はすべてcqwなので、ここの幅を変えるだけで全体が同じ比率で縮む
    ※paddingを付けるとcqwの基準（中身の幅）が変わるため、枠の余白は白い箱のmarginで作る */
.first-chart-popup {
    container-type: inline-size;
    width: min(calc(100vw * 650 / 750), 750px, calc(90vh * 750 / 915));
    max-width: none;
    max-height: none;
    padding: 0;
    border: none;
    /* ✕と‹が白い箱からはみ出すため、切り取らない */
    overflow: visible;
    background-color: #f2ead3;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: #000;
    text-align: center;
}

/* 開いている間の後ろの暗い背景 */
.first-chart-popup::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

/* 白い箱（カンプの幅650・高さ775） */
.first-chart-popup-inner {
    position: relative;
    --my-base: 70;
    --mx-base: 50;
    margin: calc(100cqw * var(--my-base) / var(--w-ref)) calc(100cqw * var(--mx-base) / var(--w-ref));
    background-color: #fff;
}

/* ✕（右上の黒丸）と‹（左の中央のえんじ丸）の共通 */
.first-chart-close,
.first-chart-back {
    position: absolute;
    z-index: 1;
    --size-base: 61;
    width: calc(100cqw * var(--size-base) / var(--w-ref));
    height: calc(100cqw * var(--size-base) / var(--w-ref));
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.first-chart-close {
    --top-base: -25.5;
    --right-base: -20.5;
    top: calc(100cqw * var(--top-base) / var(--w-ref));
    right: calc(100cqw * var(--right-base) / var(--w-ref));
    background-color: #000;
    transition: transform 0.3s;
}

/* ホバー：✕がくるっと90度回る */
.first-chart-close:hover {
    transform: rotate(90deg);
}

/* ✕の線2本（::before と ::after を45度ずつ回転） */
.first-chart-close::before,
.first-chart-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    --line-w-base: 38;
    --line-h-base: 3;
    width: calc(100cqw * var(--line-w-base) / var(--w-ref));
    height: calc(100cqw * var(--line-h-base) / var(--w-ref));
    background-color: #fff;
}

.first-chart-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.first-chart-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.first-chart-back {
    --left-base: -30.5;
    top: 50%;
    left: calc(100cqw * var(--left-base) / var(--w-ref));
    transform: translateY(-50%);
    background-color: #44030a;
}

/* ‹（線2本の角をborderで作り、45度回転） */
.first-chart-back::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    --arrow-base: 18;
    --arrow-line-base: 3;
    width: calc(100cqw * var(--arrow-base) / var(--w-ref));
    height: calc(100cqw * var(--arrow-base) / var(--w-ref));
    border-bottom: calc(100cqw * var(--arrow-line-base) / var(--w-ref)) solid #fff;
    border-left: calc(100cqw * var(--arrow-line-base) / var(--w-ref)) solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform 0.3s;
}

/* ホバー：矢印だけ左へ動かす（入り口ボタンの虫めがねが右へ動くのと逆向き）
    丸本体はtranslateY(-50%)で位置を決めているので、動かすのは矢印だけ
    スマホはタップ後もホバー状態が残り矢印がずれたままになるため、マウス操作の端末だけに限定 */
@media (hover: hover) {
    .first-chart-back:hover::before {
        transform: translate(calc(-50% - 4px), -50%) rotate(45deg);
    }
}

/* ---------- 質問画面 ---------- */
.first-chart-question {
    --pb-base: 44;
    padding-bottom: calc(100cqw * var(--pb-base) / var(--w-ref));
}

/* Q.○（白枠の上端にくっついた、えんじの半円） */
.first-chart-question-num {
    --w-base: 199;
    --h-base: 99.5;
    --f-base: 48;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100cqw * var(--w-base) / var(--w-ref));
    height: calc(100cqw * var(--h-base) / var(--w-ref));
    margin: 0 auto;
    border-radius: 0 0 calc(100cqw * var(--h-base) / var(--w-ref)) calc(100cqw * var(--h-base) / var(--w-ref));
    background-color: #59060a;
    color: #fff;
    font-weight: 700;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    line-height: 1;
}

.first-chart-question-text {
    --mt-base: 44;
    --f-base: 42;
    margin-top: calc(100cqw * var(--mt-base) / var(--w-ref));
    font-weight: 700;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    line-height: 1.62;
}

.first-chart-answers {
    --mt-base: 72;
    --w-base: 550;
    --gap-base: 47.5;
    display: flex;
    flex-direction: column;
    gap: calc(100cqw * var(--gap-base) / var(--w-ref));
    width: calc(100cqw * var(--w-base) / var(--w-ref));
    margin: calc(100cqw * var(--mt-base) / var(--w-ref)) auto 0;
}

/* A/Bのボタン本体（角丸の四角）。A/Bの丸は上辺の中央にabsoluteで乗せる */
.first-chart-answer {
    position: relative;
    --h-base: 166.5;
    --radius-base: 20;
    --pt-base: 20;
    --f-base: 34;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100cqw * var(--h-base) / var(--w-ref));
    padding: calc(100cqw * var(--pt-base) / var(--w-ref)) 0 0;
    border: none;
    border-radius: calc(100cqw * var(--radius-base) / var(--w-ref));
    color: #000;
    font-family: inherit;
    font-weight: 700;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    line-height: 1.4;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ホバー：他セクションのボタン（.first-method-item-btn等）と同じく、クイッと浮かせる
    SPはホバーが無いので、指で触れている間（:active）も同じ動きにする */
.first-chart-answer:hover,
.first-chart-answer:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.first-chart-answer-a {
    background-color: #ffe6e6;
}

.first-chart-answer-b {
    background-color: #e4eaef;
}

.first-chart-answer-label {
    position: absolute;
    top: 0;
    left: 50%;
    --size-base: 75;
    --f-base: 46;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100cqw * var(--size-base) / var(--w-ref));
    height: calc(100cqw * var(--size-base) / var(--w-ref));
    border-radius: 50%;
    color: #fff;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    line-height: 1;
    transform: translate(-50%, -50%);
}

.first-chart-answer-a .first-chart-answer-label {
    background-color: #994261;
}

.first-chart-answer-b .first-chart-answer-label {
    background-color: #728da5;
}

/* ---------- 結果画面 ---------- */
.first-chart-result {
    --pt-base: 55;
    --px-base: 61;
    --pb-base: 45;
    padding: calc(100cqw * var(--pt-base) / var(--w-ref)) calc(100cqw * var(--px-base) / var(--w-ref)) calc(100cqw * var(--pb-base) / var(--w-ref));
}

.first-chart-result-pretitle {
    --f-base: 32;
    font-weight: 700;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    line-height: 1.5;
    /* Androidは文字幅が広く0.1emだと「】」だけ2行目に落ちるため、字間を詰めて1行に固定 */
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* タイトル画像は5枚とも元画像がカンプの約3倍（幅1535〜1597px）。幅をそろえて表示する */
.first-chart-result-title {
    --mt-base: 36;
    --w-base: 512;
    width: calc(100cqw * var(--w-base) / var(--w-ref));
    margin: calc(100cqw * var(--mt-base) / var(--w-ref)) auto 0;
}

.first-chart-result-title img {
    display: block;
    width: 100%;
    height: auto;
}

.first-chart-result-text {
    --mt-base: 53;
    --f-base: 27;
    margin-top: calc(100cqw * var(--mt-base) / var(--w-ref));
    font-weight: 700;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    line-height: 2;
    letter-spacing: 0.08em;
    text-align: justify;
}

/* 結果ボタン。右下の斜線の影は「a自身の背景」、えんじの本体は「::before」で作る。
    aを影の位置（本体から右下に6ずらした位置）に置き、::beforeを左上に6戻して重ねる */
.first-chart-result-btn {
    position: relative;
    z-index: 0;
    --mt-base: 33;
    --w-base: 544;
    --h-base: 117.5;
    --radius-base: 22;
    --shadow-base: 6;
    --pl-base: 38;
    --pr-base: 26;
    --f-base: 32;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: calc(100cqw * var(--w-base) / var(--w-ref));
    height: calc(100cqw * var(--h-base) / var(--w-ref));
    margin: calc(100cqw * var(--mt-base) / var(--w-ref)) auto 0;
    /* 文字は::beforeの本体の中で上下中央に見えるよう、下側に影の分×2の余白 */
    padding: 0 calc(100cqw * var(--pr-base) / var(--w-ref)) calc(100cqw * var(--shadow-base) * 2 / var(--w-ref)) calc(100cqw * var(--pl-base) / var(--w-ref));
    left: calc(100cqw * var(--shadow-base) / 2 / var(--w-ref));
    border-radius: calc(100cqw * var(--radius-base) / var(--w-ref));
    background: repeating-linear-gradient(135deg, #333 0, #333 1px, transparent 1px, transparent 4px);
    color: #fff;
    font-weight: 700;
    font-size: calc(100cqw * var(--f-base) / var(--w-ref));
    line-height: 1;
    text-align: left;
    text-decoration: none;
    transition: padding 0.3s;
}

.first-chart-result-btn::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: calc(100cqw * var(--shadow-base) * -1 / var(--w-ref));
    left: calc(100cqw * var(--shadow-base) * -1 / var(--w-ref));
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: #44030a;
    transition: transform 0.3s;
}

/* 右端の「>」 */
.first-chart-result-btn::after {
    content: ">";
    font-weight: 400;
}

/* ホバー：本体を影の位置まで動かして「押し込む」
    （左+6・右-6で右へ、下の余白を0にして下へ） */
.first-chart-result-btn:hover {
    padding: 0 calc(100cqw * (var(--pr-base) - var(--shadow-base)) / var(--w-ref)) 0 calc(100cqw * (var(--pl-base) + var(--shadow-base)) / var(--w-ref));
}

.first-chart-result-btn:hover::before {
    transform: translate(calc(100cqw * var(--shadow-base) / var(--w-ref)), calc(100cqw * var(--shadow-base) / var(--w-ref)));
}

