@charset "UTF-8";
/* =========================================================
   住宅展示場ネット｜CGスクールLP v2（A/Bテスト）
   ・モバイルファースト設計（base → 768px → 1024px）
   ・ネイビー×ゴールドのブランドトーンを継承
   ========================================================= */
/* =========================
   0. ROOT / TOKENS
========================= */ :root {
    /* Navy */
    --navy: #010A22;
    --navy-2: #04142d;
    --navy-3: #071f46;
    --navy-4: #0b1f3f;
    --navy-panel: #0e1c38;
    --navy-card: #10233f;
    /* Gold */
    --gold: #d4af37;
    --gold-deep: #c89211;
    --gold-light: #f5d76e;
    /* Neutral (light sections) */
    --light: #f6f6f4;
    --light-2: #eef1f5;
    --ink: #0f172a;
    --ink-2: #475569;
    --ink-3: #64748b;
    /* Text on navy */
    --on-navy: #e6edf3;
    --on-navy-mut: rgba(255, 255, 255, .72);
    /* Lines / borders */
    --line-gold: rgba(212, 175, 55, .30);
    --line-white: rgba(255, 255, 255, .10);
    /* Layout */
    --wide: 1320px;
    --mid: 1040px;
    --narrow: 820px;
    /* Fonts */
    --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
    --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
/* =========================
   1. BASE / RESET
========================= */
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: var(--sans);
    background: var(--navy);
    color: var(--on-navy);
    line-height: 1.8;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
p, h1, h2, h3, h4 {
    margin-top: 0;
}
section {
    padding: clamp(48px, 8vw, 96px) 0;
}
/* コンテナ */
.inner {
    width: 100%;
    max-width: var(--wide);
    margin: 0 auto;
    padding: 0 20px;
}
.inner > * {
    min-width: 0;
}
.inner--mid {
    max-width: var(--mid);
}
.inner--narrow {
    max-width: var(--narrow);
}
@media (min-width: 768px) {
    .inner {
        padding: 0 32px;
    }
}
@media (min-width: 1024px) {
    .inner {
        padding: 0 48px;
    }
}
/* SP/PC 表示切替 */
.sp {
    display: inline;
}
.pc {
    display: none;
}
@media (min-width: 768px) {
    .sp {
        display: none;
    }
    .pc {
        display: inline;
    }
}
/* アクセシビリティ：モーション配慮 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        transition: none !important;
        animation: none !important;
    }
}
/* =========================
   2. 共通見出し
========================= */
.section-title {
    font-size: clamp(21px, 5.4vw, 32px);
    line-height: 1.45;
    text-align: center;
    font-weight: 700;
    color: #fff;
    margin: 0 0 clamp(20px, 4vw, 28px);
    letter-spacing: 0.04em;
    font-family: var(--serif);
}
.section-title span {
    color: var(--gold);
}
.section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 14px auto 0;
    border-radius: 2px;
}
/* 明るい背景での見出し */
.is-light .section-title {
    color: var(--ink);
}
.section-lead {
    text-align: center;
    font-size: clamp(14px, 3.6vw, 16px);
    line-height: 1.9;
    color: var(--on-navy-mut);
    max-width: 760px;
    margin: 0 auto clamp(28px, 5vw, 40px);
}
.is-light .section-lead {
    color: var(--ink-2);
}
/* =========================
   3. ボタン
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    padding: 16px 24px;
    border: 0;
    border-radius: 10px;
    font-family: var(--sans);
    font-size: clamp(15px, 4vw, 17px);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 55%, var(--gold-light) 100%);
    color: #16233d;
    border: 1px solid var(--gold);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .32);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .4);
}
.btn-primary svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.4;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .btn {
        width: auto;
        min-width: 320px;
        padding: 18px 34px;
    }
}
/* =========================
   4. FV（ヒーロー）
========================= */
.fv {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 72px 0 56px;
    color: var(--ink);
}
/* 左：白グラデーションオーバーレイ（強め）／背景画像は自然に透過 */
.fv-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .99) 0%, rgba(255, 255, 255, .97) 32%, rgba(255, 255, 255, .86) 54%, rgba(255, 255, 255, .52) 74%, rgba(255, 255, 255, .12) 90%, rgba(255, 255, 255, 0) 100%), url("../images/fv-bg.webp") center / cover no-repeat;
}
.fv-inner {
    position: relative;
    z-index: 1;
}
.fv-content {
    max-width: 680px;
}
/* 補足テキスト（バッジ） */
.fv-eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--gold);
    background: var(--navy-card);
    backdrop-filter: blur(4px);
    color: var(--gold);
    font-size: clamp(11px, 3.2vw, 13px);
    font-weight: 600;
    letter-spacing: 0.08em;
}
/* 見出し：ネイビー／「決められる」はゴールド維持 */
.fv-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 23px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    margin: 0 0 22px;
    color: var(--ink);
}
.fv-title span {
    color: var(--gold-deep);
}
.fv-subtitle {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin: 0 0 20px;
}
/* 区切り線（見出しとサブキャッチの間） */
.fv-divider {
    display: block;
    width: 100%;
    max-width: 460px;
    height: 1px;
    margin: 0 0 22px;
    background: linear-gradient(90deg, rgba(212, 175, 55, .9) 0%, rgba(212, 175, 55, .35) 70%, rgba(212, 175, 55, 0) 100%);
}
/* 見出し直下のサブキャッチ（訴求文・ネイビー） */
.fv-lead {
    font-size: clamp(14px, 3.9vw, 17px);
    font-weight: 600;
    line-height: 1.85;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin: 0 0 16px;
}
/* 開催条件の補足メタ行（サブキャッチより一段小さく・淡いネイビー） */
.fv-sub {
    font-size: clamp(12.5px, 3.4vw, 15px);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--ink-2);
    margin: 0 0 28px;
}
.fv-cta {
    margin-top: 8px;
}
@media (min-width: 1024px) {
    .fv {
        min-height: 660px;
        padding: 120px 0;
    }
    .fv-bg {
        background:
            radial-gradient(circle at left center, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .72) 26%, rgba(255, 255, 255, .42) 48%, rgba(255, 255, 255, .14) 68%, rgba(255, 255, 255, 0) 86%), linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .82) 22%, rgba(255, 255, 255, .48) 40%, rgba(255, 255, 255, .16) 56%, rgba(255, 255, 255, 0) 70%), url("../images/fv-bg.webp") 62% center / cover no-repeat;
    }
    .fv-title {
        font-size: clamp(20px, 5.8vw, 46px);
        line-height: 1.8;
    }
    .fv-subtitle {
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.7;
    letter-spacing: 0.04em;
    margin-bottom: 22px;
  }
}
/* =========================
   5. 実績（result）
========================= */
.result {
    background: var(--navy-3);
    padding: clamp(40px, 6vw, 64px) 0;
}
.result-heading {
    text-align: center;
    font-size: clamp(14px, 3.6vw, 18px);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #fff;
    margin: 0 0 22px;
}
.result-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.result-item {
    text-align: center;
    padding: 20px 12px;
    border: 1px solid var(--line-gold);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
}
.result-label, .result-number {
    font-family: var(--serif);
}
.result-label {
    display: block;
    font-size: clamp(16px, 6vw, 24px);
    color: #fff;
    margin-bottom: 6px;
}
.result-number {
    display: block;
    font-size: clamp(16px, 6vw, 24px);
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}
.result-number b {
    color: var(--gold);
    font-size: 1.45em;
}
.result-item::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 10px auto 0;
}
@media (min-width: 768px) {
    .result-list {
        gap: 32px;
    }
    .result-number b {
        font-size: 1.65em;
        letter-spacing: 0.65rem;
    }
}
/* =========================
   6. 課題（problem）
========================= */
.problem {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: clamp(24px, 4vw, 40px);
}
.problem-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(16, 34, 68, .9) 0%, rgba(7, 22, 46, .96) 100%);
    border: 1px solid var(--line-white);
}
.problem-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(212, 175, 55, .08);
    color: var(--gold);
}
.problem-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.6;
}
.problem-body {
    flex: 1;
    min-width: 0;
}
.problem-card h3 {
    margin: 0 0 6px;
    font-size: clamp(14px, 3.8vw, 16px);
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
}
.problem-card p {
    margin: 0;
    font-size: clamp(14px, 3.3vw, 16px);
    line-height: 1.7;
    color: var(--on-navy-mut);
    font-weight: 600;
}
/* 768px以上：2カラム（カード内は縦積みへ戻す） */
@media (min-width: 768px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .problem-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 28px 22px;
    }
    .problem-icon {
        width: 52px;
        height: 52px;
    }
    .problem-icon svg {
        width: 32px;
        height: 32px;
    }
    .problem-card h3 {
        font-size: 17px;
    }
    .problem-card p {
        font-size: 16px;
        text-align: left;
    }
}
/* 1024px以上：4カラム */
@media (min-width: 1024px) {
    .problem-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .problem-card {
        padding: 32px 20px;
    }
}
/* =========================
   7. 原因（cause）
========================= */
.cause {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}
/* 背景：画像＋白グラデーション（左を強く、右は自然に透過） */
.cause-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .99) 0%, rgba(255, 255, 255, .96) 30%, rgba(255, 255, 255, .82) 48%, rgba(255, 255, 255, .42) 66%, rgba(255, 255, 255, .08) 82%, rgba(255, 255, 255, 0) 100%), url("../images/cause_bg.webp") center / cover no-repeat;
}
.cause-inner {
    position: relative;
    z-index: 1;
}
.cause-copy {
    max-width: 560px;
}
.cause-title {
    font-family: var(--serif);
    font-size: clamp(22px, 6vw, 40px);
    line-height: 1.65;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin: 0 0 20px;
}
.cause-title span {
    color: var(--gold-deep);
}
.cause-text {
    font-size: clamp(14px, 3.6vw, 16px);
    line-height: 2;
    color: var(--ink-2);
    margin: 0;
    font-weight: 600;
}
@media (min-width: 1024px) {
    .cause {
        min-height: 560px;
    }
    .cause-bg {
        background:
            linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .94) 24%, rgba(255, 255, 255, .72) 42%, rgba(255, 255, 255, .34) 58%, rgba(255, 255, 255, .06) 72%, rgba(255, 255, 255, 0) 86%), url("../images/cause_bg.webp") 68% center / cover no-repeat;
    }
    .cause-copy {
        max-width: 620px;
    }
}
/* =========================
   8. CGギャラリー（最重要）
========================= */
.cg-gallery {
    background: var(--navy);
}
.gallery-note {
    max-width: 720px;
    margin: 0 auto clamp(28px, 5vw, 40px);
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-gold);
    font-size: clamp(13px, 3.2vw, 14px);
    line-height: 1.7;
    color: var(--on-navy-mut);
}
.gallery-note b {
    color: var(--gold);
    font-weight: 700;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .gallery-note {
        max-width: 960px;
        font-size: clamp(14px, 3.6vw, 16px);
        font-weight: 600;
    }
}
.gallery-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--line-white);
    cursor: pointer;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-gold);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
}
.gallery-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}
/* サムネイル（画像は後から差し替え可）
   画像を入れる場合： .gallery-thumb 内先頭に <img class="gallery-thumb-img" src="..."> を追加 */
.gallery-thumb {
    position: relative;
    overflow: hidden; /* ← 追加：はみ出し防止の保険 */
    aspect-ratio: 16 / 11;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(212, 175, 55, .12), transparent 60%), linear-gradient(135deg, var(--navy-4), var(--navy-2));
}
.gallery-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08); /* ← 追加：四辺を均等に少しクロップし、YouTube側の縁を隠す */
    transform-origin: center;
}
/* 動画準備中バッジ（未設定） */
.gallery-pending {
    position: relative;
    z-index: 2;
    display: none;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .5);
    border: 1px solid var(--line-white);
    color: var(--on-navy);
    font-size: clamp(11px, 3vw, 13px);
    font-weight: 600;
    letter-spacing: 0.04em;
}
/* 状態切替 */
.gallery-card.is-pending {
    cursor: default;
}
.gallery-card.is-pending:hover {
    transform: none;
    border-color: var(--line-white);
    box-shadow: none;
}
.gallery-card.is-pending .gallery-play {
    display: none;
}
.gallery-card.is-pending .gallery-pending {
    display: inline-flex;
}
.gallery-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    text-align: center;
    font-size: clamp(12px, 3.4vw, 15px);
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}
.gallery-label svg {
    width: 17px;
    height: 17px;
    color: var(--gold);
    flex-shrink: 0;
}
/* =========================
   8b. 動画モーダル（ギャラリー共通）
========================= */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .9);
    justify-content: center;
    align-items: center;
    padding: 16px;
}
.video-modal.is-active {
    display: flex;
}
.video-modal-inner {
    width: 100%;
    max-width: 960px;
}
.video-modal-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
/* =========================
   9. 導入事例（case）
========================= */
.case {
    background: linear-gradient(180deg, var(--light) 0%, var(--light-2) 100%);
}
.case-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: clamp(24px, 4vw, 40px);
}
.case-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}
.case-thumb {
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 30% 25%, rgba(212, 175, 55, .18), transparent 55%), linear-gradient(135deg, var(--navy-4), var(--navy-2));
    background-size: cover;
    background-position: center;
}
.case-thumb--01 {
    background-image:
        linear-gradient(135deg, rgba(4, 20, 45, .15), rgba(1, 10, 34, .15)), url("../images/case_01.webp");
}
.case-thumb--02 {
    background-image:
        linear-gradient(135deg, rgba(4, 20, 45, .15), rgba(1, 10, 34, .15)), url("../images/case_02.webp");
}
.case-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 20px 24px;
}
.case-tag {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--navy-3);
    padding: 5px 12px;
    border-radius: 6px;
}
.case-title {
    margin: 0;
    font-size: clamp(17px, 4.6vw, 22px);
    font-weight: 800;
    line-height: 1.45;
    color: var(--ink);
    letter-spacing: 0.02em;
}
.case-text {
    margin: 0;
    font-size: clamp(13.5px, 3.6vw, 15px);
    line-height: 1.8;
    color: #334155;
}
.case-purpose {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 4px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(212, 175, 55, .12);
    border: 1px solid var(--line-gold);
    color: #7a5c12;
    font-size: clamp(12px, 3.2vw, 13.5px);
    font-weight: 700;
}
.case-purpose svg {
    width: 15px;
    height: 15px;
}
@media (min-width: 768px) {
    .case-card {
        flex-direction: row;
        align-items: stretch;
    }
    .case-thumb {
        flex: 0 0 40%;
        aspect-ratio: auto;
    }
    .case-body {
        flex: 1;
        justify-content: center;
        padding: 26px 26px;
    }
}
@media (min-width: 1024px) {
    .case-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .case-card {
        flex-direction: column;
    }
    .case-thumb {
        flex: none;
        aspect-ratio: 16 / 9;
    }
    .case-body {
        padding: 26px 26px 28px;
    }
}

/* =========================
   9b. 中盤CTA
========================= */
.mid-cta {
  background:
    radial-gradient(circle at 50% 0%, rgba(212,175,55,.1), transparent 50%),
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 0;
}
.mid-cta-text {
  font-family: var(--serif);
  font-size: clamp(17px, 4.6vw, 26px);
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 22px;
}
.mid-cta-btn { display: flex; justify-content: center; }
.mid-cta-note {
  margin: 14px 0 0;
  font-size: clamp(12px, 3.2vw, 13.5px);
  letter-spacing: 0.06em;
  color: var(--on-navy-mut);
}

/* =========================
   10. 使い分け（compare）
========================= */
.compare-flow {
    background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy-4) 55%, var(--navy-2) 100%);
}
.compare-flow-sub-title {
    font-size: clamp(12px, 3.2vw, 13.5px);
    text-align: center;
}
/* ---------- 768px未満：縦積みカード ---------- */
.compare-mobile {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: clamp(24px, 4vw, 40px);
}
.compare-mobile-card {
    border: 1px solid var(--line-white);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, .03);
}
.compare-mobile-aspect {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .05);
    border-bottom: 1px solid var(--line-white);
    font-weight: 700;
    font-size: clamp(14px, 3.8vw, 16px);
    color: #fff;
}
.compare-mobile-aspect svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
    flex-shrink: 0;
}
.compare-mobile-row {
    display: flex;
}
.compare-mobile-val {
    flex: 1;
    padding: 12px 14px;
    font-size: clamp(12.5px, 3.2vw, 14.5px);
    font-weight: 600;
    line-height: 1.65;
}
.compare-mobile-val--a {
    color: var(--on-navy-mut);
}
.compare-mobile-val--a::before {
    content: "AIパース";
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color:#fff;
    margin-bottom: 4px;
}
.compare-mobile-val--b {
    background: rgba(212, 175, 55, .1);
    color: #fff;
}
.compare-mobile-val--b::before {
    content: "CAD連携CG動画";
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

/* ---------- 768px以上：ラベル列＋2カード＋× ---------- */
.compare-desktop {
    display: none;
}
@media (min-width: 768px) {
    .compare-mobile {
        display: none;
    }
    .compare-desktop {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        margin-top: clamp(32px, 4vw, 48px);
    }
    .compare-flow-sub-title {
        font-size: clamp(16px, 5.6vw, 18px);
        text-align: center;
    }
    /* 行の高さを一箇所で固定管理（ラベル列・カード列で共通利用） */
    .compare-labels, .compare-card {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }
    /* ラベル列 */
    .compare-labels {
        flex: 0 0 180px;
        display: flex;
        flex-direction: column;
    }
    .compare-labels-head {
        box-sizing: border-box;
        flex: 0 0 56px;
        height: 56px;
    }
    /* 本体（表現力〜メリット）だけを箱として囲む */
    .compare-labels-box {
        border: 1px solid var(--line-white);
        border-radius: 14px;
        background: rgba(255, 255, 255, .03);
        overflow: hidden;
    }
    .compare-label-row {
        box-sizing: border-box;
        flex: 0 0 76px;
        height: 76px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 16px;
        font-weight: 700;
        font-size: 15px;
        color: #fff;
    }
    /* 行と行の間だけ線（1行目の上には何もつかない＝箱の上端そのもの） */
    .compare-label-row + .compare-label-row {
        border-top: 1px solid var(--line-white);
    }
    .compare-label-row svg {
        width: 18px;
        height: 18px;
        color: var(--gold);
        flex-shrink: 0;
    }
    /* カード2枚＋中央×アイコン */
    .compare-cards {
        position: relative;
        flex: 1;
        display: flex;
        gap: 0;
    }
    .compare-card {
        flex: 1;
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid var(--line-white);
    }
    .compare-card--a {
        background: rgba(255, 255, 255, .03);
        margin-right: 26px;
    }
    .compare-card--b {
        border-color: rgba(212, 175, 55, .5);
        margin-left: 26px;
    }
    .compare-card-head {
        box-sizing: border-box;
        flex: 0 0 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-weight: 700;
        font-size: 16px;
    }
    .compare-card--a .compare-card-head {
        background: rgba(255, 255, 255, .06);
        color: #fff;
    }
    .compare-card--b .compare-card-head {
        background: linear-gradient(135deg, var(--gold-deep), var(--gold));
        color: #16233d;
    }
    .compare-card--b .compare-card-head svg {
        width: 18px;
        height: 18px;
    }
    .compare-card-row {
        box-sizing: border-box;
        flex: 0 0 76px;
        height: 76px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 18px;
        text-align: center;
        font-size: 16px;
        line-height: 1.55;
        font-weight: 600;
    }
    .compare-card-row + .compare-card-row {
        border-top: 1px solid var(--line-white);
    }
    .compare-card--a .compare-card-row {
        color: var(--on-navy-mut);
    }
    .compare-card--b .compare-card-row {
        background: rgba(246, 246, 244, .97);
        color: var(--ink);
        border-top-color: rgba(15, 23, 42, .08);
        font-weight: 600;
    }
    /* 中央 × アイコン */
    .compare-x {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 46px;
        height: 46px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--gold-deep), var(--gold));
        color: #16233d;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
        z-index: 3;
    }
    .compare-x svg {
        width: 22px;
        height: 22px;
        stroke-width: 3;
    }
}
/* =========================
   11. 実演会の流れ（flow）
========================= */
.flow {
    background: linear-gradient(180deg, var(--light) 0%, var(--light-2) 100%);
}
.flow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: clamp(24px, 4vw, 40px);
}
.flow-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    padding: 24px 20px 22px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}
.flow-num {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 18px 8px 14px;
    background: linear-gradient(135deg, var(--gold-deep), var(--gold));
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    border-radius: 16px 0 16px 0;
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}
.flow-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 12px;
}
.flow-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(4,20,45,.06);
  color: var(--navy-3);
}
.flow-icon svg { width: 32px; height: 32px; stroke-width: 1.6; }
.flow-card h3 {
  margin: 0;
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.flow-card p {
    margin: 0;
    font-size: clamp(13px, 3.4vw, 14.5px);
    line-height: 1.75;
    color: #475569;
}
@media (min-width: 1024px) {
  .flow-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }

  /* PC：アイコン中央大きめ／見出しは下段中央 */
  .flow-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }
  .flow-icon {
    width: 76px; height: 76px;
    margin-bottom: 16px;
    border-radius: 16px;
  }
  .flow-icon svg { width: 42px; height: 42px; }
  .flow-card h3 {
    font-size: 17px;
    text-align: center;
  }
  .flow-card p {
    text-align: left;
    font-size: clamp(13.5px,3.6vw, 16px);
  }

  /* ステップ間の矢印 */
  .flow-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -14px;
    width: 12px; height: 12px;
    border-top: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    transform: translateY(-50%) rotate(45deg);
    z-index: 2;
  }
}
/* =========================
   12. お客様の声（voice）
========================= */
.voice {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.voice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: clamp(24px, 4vw, 40px);
}
.voice-card {
    position: relative;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--line-white);
    border-radius: 16px;
    padding: 26px 22px 22px;
}
.voice-quote {
    color: var(--gold);
    margin-bottom: 10px;
}
.voice-quote svg {
    width: 30px;
    height: 30px;
}
.voice-text {
    margin: 0 0 16px;
    font-size: clamp(14px, 3.6vw, 16px);
    line-height: 1.85;
    color: #fff;
}
.voice-name {
    margin: 0;
    text-align: right;
    font-size: clamp(12px, 3.2vw, 14px);
    font-weight: 600;
    color: var(--gold);
}
@media (min-width: 1024px) {
    .voice-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .voice-card {
        padding: 32px 28px 26px;
    }
}
/* =========================
   13. クロージング（closing）
========================= */
.closing {
    background:
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, .1), transparent 45%), linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
    text-align: center;
}
.closing-title {
    font-family: var(--serif);
    font-size: clamp(20px, 5.6vw, 34px);
    line-height: 1.55;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    margin: 0 0 clamp(24px, 4vw, 34px);
}
.closing-title span {
    color: var(--gold);
}
.closing-cta {
    display: flex;
    justify-content: center;
}
.closing-note {
    margin: 18px 0 0;
    font-size: clamp(14px, 3.2vw, 16px);
    letter-spacing: 0.06em;
    color: var(--on-navy-mut);
    font-weight: 700;
}
/* =========================
   14. フッター
========================= */
.footer {
    border-top: 1px solid var(--line-white);
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    color: #E2E8F3;
    background: var(--navy);
}
.footer-org {
    margin-bottom: 6px;
}
.footer-copy {
    margin: 0;
}
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 84px;              /* ← 追従バーの上に逃がす */
  z-index: 900;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #16233d;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top svg { width: 22px; height: 22px; stroke-width: 2.4; }
@media (min-width: 1024px) {
  .back-to-top { right: 32px; bottom: 32px; width: 56px; height: 56px; }
}

/* =========================
   14b. 追従CTAバー（モバイルのみ）
========================= */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 880;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(1,10,34,.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-gold);
  transform: translateY(110%);
  transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 55%, var(--gold-light) 100%);
  color: #16233d;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.sticky-cta-btn svg { width: 18px; height: 18px; stroke-width: 2.4; }

/* PCでは非表示 */
@media (min-width: 1024px) {
  .sticky-cta { display: none; }
}

/* =========================
   16. 代表動画（将来追加用・任意）
   HTMLのコメントを外すと有効化されます
========================= */
.main-movie {
    background: var(--navy);
}
.video-wrap {
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}
.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
