@charset "UTF-8";

/* HIRABOについて: 品質（#quality）・キャンピングカーができるまで（Figma「下層 / HIRABOについて / PC」2041:4403 の 06・04） */

/*
 * 品質と製作体制（Figma「06 QUALITY」PC 2041:4777 / SP 2041:6745）。背景は白、下の山は次の「キャンピングカーができるまで」の背景色。
 * 工程ごとの担当は、SP は見出し → 文章 → 写真、PC は写真と文章を交互に並べる
 */
.quality-system {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    overflow: hidden;
    padding: 56px 20px 82px;
    background-color: var(--color-white);
}

/* 等高線の模様（Figma「Deco / Topo pattern」: SP は右上に幅 193px、PC は右上に幅 350px） */
.quality-system::before {
    position: absolute;
    top: 0;
    right: -10px;
    width: 193px;
    height: 329px;
    background: url("../img/top/deco-topo.svg") left top / auto 100% no-repeat;
    pointer-events: none;
    content: "";
}

/* 境目の山（TOP のラインナップの山と同じ形・大きさ。色は次のセクションの背景色） */
.quality-system::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: max(640px, 100%);
    aspect-ratio: 1280 / 114;
    background-color: var(--color-pale);
    -webkit-mask: url("../img/lineup/divider-mountain.svg?v=2") center bottom / 100% 100% no-repeat;
    mask: url("../img/lineup/divider-mountain.svg?v=2") center bottom / 100% 100% no-repeat;
    pointer-events: none;
    content: "";
}

.quality-system__intro,
.quality-system__text {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* SP は文節で折り返す。320px で 1 文節が入りきらないときだけ文節の途中で折り返す */
.quality-system .section-head__title > span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.quality-system__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 335 / 260;
}

.quality-divisions {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.quality-division {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quality-division__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 335 / 211;
}

.quality-division__text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

/* 見出しと担当の札を横に並べる（背景の大きな番号 01〜03 は先方指示で削除。2026-10-21） */
.quality-division__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* 札の左（見出しとの間）は 24px（14px + 10px。先方指示。11/6 の Figma は PC 12px / SP 10px だが、確認が取れるまで指示のまま） */
    gap: 8px 24px;
}

/* 見出しの左の緑の線（SP は高さ 28px で見出しの上下中央。PC は見出しの高さいっぱい） */
.quality-division__title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-family: var(--font-serif);
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.quality-division__title::before {
    flex-shrink: 0;
    width: 4px;
    height: 28px;
    background-color: var(--color-green);
    content: "";
}

/*
 * SP は 見出し → 写真 → 文章 の順（Figma SP 2291:625・2291:617。2026-11-11 Chatwork「タイトル > 画像 > 文章の順に」。10/21 の「見出し → 文章 → 写真」から変更）。
 * HTML は 写真 → 見出し・文章 なので、見出しと文章の箱を解いて（display: contents）見出しを先頭に出す。冒頭（見出し・文章・写真）も同じ並びにする。PC は左右に並べる
 */
@media (max-width: 1023px) {
    .quality-division__text,
    .quality-system__text {
        display: contents;
    }

    .quality-division__head {
        order: -1;
    }

    .quality-system__text > .lead {
        order: 1;
    }
}

.quality-division__tag {
    position: relative;
    padding: 3px 12px;
    color: var(--color-white);
    background-color: var(--color-green);
    font-size: 0.8125rem; /* 13px */
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 22px;
}

/* 本文（SP は段落の間を空けない。Figma 2041:6921） */
.quality-division__body {
    position: relative;
    color: #333;
    font-size: 1rem; /* 16px */
    line-height: 30px;
}

/*
 * キャンピングカーができるまで（Figma「04 PROCESS」PC 2041:4980 / SP 2041:6940）。背景は薄い緑、下の山は次の「購入後サポート」の背景色（白）
 */
.about-process {
    --divider-color: var(--color-white);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: hidden;
    padding: 56px 20px 82px;
    background-color: var(--color-pale);
}

.about-process::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: max(640px, 100%);
    aspect-ratio: 1280 / 114;
    background-color: var(--divider-color);
    -webkit-mask: url("../img/lineup/divider-mountain.svg?v=2") center bottom / 100% 100% no-repeat;
    mask: url("../img/lineup/divider-mountain.svg?v=2") center bottom / 100% 100% no-repeat;
    pointer-events: none;
    content: "";
}

.about-process__steps {
    position: relative;
    display: grid;
    gap: 36px;
    padding-top: 8px;
}

.about-process-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-process-step__title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-family: var(--font-serif);
    font-size: 1.1875rem; /* 19px */
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

/* 番号の四角（Figma「No / Box」SP 36px / PC 44px） */
.about-process-step__number {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-white);
    background-color: var(--color-green);
    font-family: var(--font-num);
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
}

.about-process-step__text {
    color: #333;
    font-size: 1rem; /* 16px */
    line-height: 30px;
}

.about-process-step__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 550 / 326;
}

/* SP は 見出し → 写真 → 文章 の順（Figma SP 2291:657。2026-11-11 Chatwork。HTML は文章 → 写真） */
@media (max-width: 1023px) {
    .about-process-step__text {
        order: 1;
    }
}

/* 製作の様子の動画のカード（車種のページの .model-movie と同じ形。SP は写真が上） */
.about-movie {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    box-shadow: 0 8px 16px rgb(0 0 0 / 8%);
}

.about-movie__thumb {
    position: relative;
    display: block;
    overflow: hidden;
}

.about-movie__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 338;
    transition: transform 0.4s ease;
}

/* 再生ボタン（Figma「Icon / Play」SP 60px。白い丸に緑の三角）。写真に焼き込まれた再生ボタン（中心が上から 48.2%）に重ねて隠す */
.about-movie__play {
    position: absolute;
    top: 48.2%;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgb(255 255 255 / 95%);
    transform: translate(-50%, -50%);
}

.about-movie__play::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25%;
    height: 30%;
    background-color: var(--color-green);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    /* 三角の重心を丸の中心に合わせる（Figma どおり少し右へ） */
    transform: translate(-40%, -50%);
    content: "";
}

.about-movie__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 20px;
}

/* Figma: 13px・字間 2.08px */
.about-movie__eyebrow {
    color: var(--color-green);
    font-family: var(--font-en);
    font-size: 0.8125rem; /* 13px */
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.2;
}

.about-movie__title {
    color: #333;
    font-family: var(--font-serif);
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.about-movie__text {
    color: #333;
    font-size: 1rem; /* 16px */
    line-height: 30px;
}

/* 「動画を見る」。SP は共通の .button のまま。PC の幅は下の 1024px〜 で Figma に合わせる */
.about-movie__button {
    margin-top: 0;
}

@media (hover: hover) {
    .about-movie__thumb:hover .about-movie__photo {
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-movie__photo {
        transition: none;
    }
}

/* タブレット（768px〜1023px）: 工程のカードを 2 列にする */
@media (min-width: 768px) {
    .about-process__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 32px;
    }

    /* 同じ段の 2 つは左 → 右の順に出す（右を 0.6 秒遅らせる。速さは SUZY の 1日の流れと同じ） */
    .about-process-step:nth-child(even) {
        --fade-delay: 0.6s;
    }
}

/* PC（1024px〜）。中身の幅は 1140px（Figma 1280px の左右 70px） */
@media (min-width: 1024px) {
    /* 品質と製作体制 */
    .quality-system {
        gap: 0;
        padding: 100px 70px 190px;
    }

    .quality-system::before {
        top: 31px;
        right: 4px;
        width: 350px;
        height: 613px;
    }

    .quality-system__intro,
    .quality-divisions {
        width: min(100%, 1140px);
        margin-inline: auto;
    }

    /* 文章 580px と写真 640px（Figma「Quality / Intro」） */
    .quality-system__intro {
        flex-direction: row;
        align-items: flex-start;
        gap: 64px;
    }

    .quality-system__text {
        flex: 0 1 580px;
        gap: 28px;
        min-width: 0;
    }

    /* PC は Figma の改行どおり 3 行 */
    .quality-system .section-head__title > span {
        display: block;
    }

    .quality-system__photo {
        flex: 0 1 640px;
        width: 640px;
        min-width: 0;
        aspect-ratio: 640 / 520;
    }

    .quality-divisions {
        gap: 72px;
        padding-top: 96px;
    }

    /* 写真 520px と文章を交互に左右に置く（Figma「Division」のジグザグ。01・03 は右に 60px 空ける） */
    .quality-division {
        flex-direction: row;
        align-items: flex-start;
        gap: 56px;
        padding-right: 60px;
    }

    /*
     * 写真が右の段（02）は、写真の左端を上の段の文章の左端（写真 520px + 間 56px = 576px の位置）にそろえる。
     * 右の余白 = 行の幅 - 576px - 写真 520px（% は親の幅に対する割合。狭い画面では 0）
     */
    .quality-division:nth-child(even) {
        flex-direction: row-reverse;
        padding-right: max(0px, 100% - 1096px);
    }

    .quality-division__photo {
        flex: 0 1 520px;
        width: 520px;
        min-width: 0;
        aspect-ratio: 520 / 330;
    }

    .quality-division__text {
        position: static;
        flex: 1;
        gap: 16px;
        min-width: 0;
    }

    .quality-division__title {
        align-items: stretch;
        gap: 12px;
        font-size: 1.375rem; /* 22px */
        letter-spacing: 1px;
        line-height: 34px;
    }

    .quality-division__title::before {
        height: auto;
    }

    .quality-division__tag {
        padding: 4px 14px;
        font-size: 0.875rem; /* 14px */
        line-height: 24px;
    }

    /* 段落の間は 12px（Figma 2041:4958） */
    .quality-division__body {
        display: flex;
        flex-direction: column;
        gap: 12px;
        font-size: 1rem; /* 16px */
        line-height: 32px;
    }

    /* キャンピングカーができるまで */
    .about-process {
        gap: 0;
        padding: 100px 70px 191px;
    }

    .about-process > * {
        width: min(100%, 1140px);
        margin-inline: auto;
    }

    /* PC は見出しを中央に置く */
    .about-process__head {
        align-items: center;
        text-align: center;
    }

    /* 550px × 2 列、間は横 40px・縦 56px（Figma「Process / Cards」） */
    .about-process__steps {
        gap: 56px 40px;
        padding-top: 56px;
    }

    .about-process-step {
        gap: 16px;
    }

    .about-process-step__title {
        gap: 14px;
        font-size: 1.25rem; /* 20px */
    }

    .about-process-step__number {
        width: 44px;
        height: 44px;
        font-size: 1.375rem; /* 22px */
    }

    .about-process-step__text {
        font-size: 1rem; /* 16px */
        letter-spacing: 0.02em;
        line-height: 32px;
    }

    /* 動画のカード: 写真 600px（左）と文章（Figma「Process / Video」） */
    .about-process > .about-movie {
        margin-top: 72px;
    }

    /* PC は影なし（Figma PC 1237:319。SP 1305:349 は影あり） */
    .about-movie {
        flex-direction: row;
        align-items: center;
        box-shadow: none;
    }

    .about-movie__thumb {
        flex: 0 0 52.63%; /* 600 / 1140 */
    }

    .about-movie__play {
        width: 72px;
        height: 72px;
    }

    .about-movie__body {
        flex: 1;
        gap: 18px;
        min-width: 0;
        padding: 0 56px;
    }

    .about-movie__title {
        font-size: 1.625rem; /* 26px */
    }

    /* Figma の改行どおり「で」のあとで改行する */
    .about-movie__text {
        letter-spacing: 0.02em;
    }

    .about-movie__text > span {
        display: block;
    }

    /*
     * Figma「Button / 動画を見る」2041:5060: 240×60px、左右 28px、16px、字間 0.02em（車種のページの .model-movie__button と同じ）。
     * 共通の .button は 1024px 以上で最小 398×66px・18px なので、最小の大きさと文字の大きさを上書きする（width だけでは min-width に負ける）
     */
    .about-movie__button {
        min-width: 240px;
        min-height: 60px;
        margin-top: 8px;
        padding-inline: 28px;
        font-size: 1rem; /* 16px */
        letter-spacing: 0.02em;
    }
}

/*
 * 1280px〜: Figma「Quality / Intro」どおり、文章 580px・写真 640px のまま縮めない。
 * 合計 1284px は中身の幅 1140px より広いので写真が右へはみ出し、.quality-system の overflow: hidden で切れる（1280px では画面の右端まで届く）
 */
@media (min-width: 1280px) {
    .quality-system__text,
    .quality-system__photo {
        flex-shrink: 0;
    }
}
