
  /* ============================================================
     RESET
  ============================================================ */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: auto; }
  body, h1, h2, h3, p, ul, ol, li, figure, dl, dd { margin: 0; padding: 0; }
  ul, ol { list-style: none; }
  img { display: block; max-width: 100%; height: auto; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; }

  /* ============================================================
     DESIGN TOKENS
  ============================================================ */
  :root {
    /* ダーク区間（シーン1〜5） */
    --night: #031024;
    --paper: #f2f0ea;
    --paper-dim: #9aa3b2;
    --glow: #4fa8e6;
    --amber: #f5c14f;
    /* ライト区間（シーン6〜9） */
    --ink: #101319;
    --ink-sub: #4b5563;
    --navy: #041f42;
    --blue: #3e91d6;
    --blue-deep: #2e78b8;
    --bg: #ffffff;
    --bg-alt: #eaf4fc;
    --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

    /* spacing (8pt grid) */
    --sp-1: 0.5rem;
    --sp-2: 1rem;
    --sp-3: 1.5rem;
    --sp-4: 2rem;
    --sp-6: 3rem;
    --sp-8: 4rem;
    --sp-12: 6rem;
    --sp-16: 8rem;

    /* type scale */
    --fs-eyebrow: 0.8125rem;
    --fs-h1: clamp(2.2rem, 1rem + 2.6vw, 3.5rem);
    --fs-h2: clamp(1.75rem, 4vw, 2.75rem);
    --fs-h3: clamp(1.15rem, 2.2vw, 1.4rem);
    --fs-lead: clamp(1.05rem, 1.6vw, 1.3rem);
    --fs-body: 1rem;
    --fs-max: clamp(2rem, 6vw, 4.5rem);

    /* dsl-hero（demo/移植）用トークン。既存トークンと同値のものは参照でつなぐ */
    --dsl-shell: min(1240px, 100% - 48px);
    --dsl-teal: #74c6c0;
    --dsl-green: #70bd84;
    --dsl-blue: #4a8dd8;
    --dsl-amber: var(--amber);
  }

  html, body { background: var(--bg); }
  body {
    font-family: var(--font);
    color: var(--ink);
    line-height: 1.8;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    text-wrap: pretty;
    overflow-x: hidden; /* dsl-hero: sticky演出中の横スクロール発生を防ぐ（必須） */
  }
  h1, h2, h3 { line-height: 1.4; font-weight: 700; text-wrap: balance; }

  /* ============================================================
     LAYOUT PRIMITIVES
  ============================================================ */
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* 高さは内容準拠。100vh基準だと縦長ウィンドウでコンテンツの少ないシーンの
     下部余白が間延びするため（ピン演出のヒーローと全画面演出の#scene-ctaのみ100vh） */
  .scene { position: relative; width: 100%; padding-block: var(--sp-12); overflow: hidden; scroll-margin-top: 4.5rem; }
  .scene-inner {
    position: relative; z-index: 1;
    max-width: 72rem; margin-inline: auto; padding-inline: var(--sp-4);
    display: flex; flex-direction: column; gap: var(--sp-6);
  }
  .scene--light { background: var(--bg); color: var(--ink); }
  .scene--light h2 { color: var(--navy); }
  #scene-trust.scene--light { background: var(--bg-alt); }
  #scene-problem.scene--light, #scene-flow.scene--light { background: var(--bg-alt); } /* 2026-10-15: SNSは白へ（更新の流れと同色で境界が消えていた） */
  .scene--navy { background: var(--navy); color: var(--paper); }

  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); }
  .lead { font-size: var(--fs-lead); color: var(--ink-sub); max-width: 42rem; }
  .scene--light p { color: var(--ink-sub); }

  /* ============================================================
     BUTTONS
  ============================================================ */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--sp-1); min-height: 3rem; padding: 0.9rem 1.75rem;
    border-radius: 999px; font-weight: 700; font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
  }
  .btn-primary { background: var(--blue-deep); color: #fff; box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--blue-deep) 70%, transparent); }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--blue-deep) 80%, transparent); }
  .btn-primary:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
  .btn-outline { background: transparent; border: 1.5px solid color-mix(in srgb, var(--paper) 45%, transparent); color: var(--paper); }
  .btn-outline:hover { background: color-mix(in srgb, var(--paper) 10%, transparent); }
  .btn-outline:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
  /* ライト文脈（ヘッダーis-light時のCTA、mini-cta内ボタン）は白/淡青地のため、
     --glowの約2.6:1では非テキストのコントラスト基準（3:1）を満たさない。
     より濃い--blue-deepへ上書きする（ダーク文脈のヒーロー・navy CTAは--glowのまま現状維持） */
  .site-header.is-light .btn-primary:focus-visible,
  .site-header.is-light .btn-outline:focus-visible,
  .mini-cta-btn:focus-visible {
    outline-color: var(--blue-deep);
  }

  /* ============================================================
     HEADER（固定ガラスバー。ヒーローが白地のため初期からis-light。scene-cta以降のみダーク）
  ============================================================ */
  .site-header {
    position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
    background: color-mix(in srgb, var(--night) 82%, transparent);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
    transition: background-color 0.3s ease, border-color 0.3s ease;
  }
  /* ヒーロー（dslStage、ダーク）を抜けるとJSが付与するバリアント。scene-cta（navy）
     到達後はダークへ復帰する（initLightSectionsが単一の真実として管理）。
     無JS/reduced-motion時は常時ダークガラスのまま（固定バーは背景の影響を受けにくく可読） */
  .site-header.is-light {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    border-bottom-color: color-mix(in srgb, var(--ink) 10%, transparent);
  }
  .header-inner {
    max-width: 78rem; margin-inline: auto; padding: 0.75rem var(--sp-4);
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  }
  .header-logo { display: flex; align-items: center; gap: 0.6rem; }
  /* ロゴのネイビーは暗地で消えるため、ブランド背景色のチップに載せる */
  .header-logo-chip {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 9px;
    background: #e7f4fd; overflow: hidden;
  }
  .header-logo-chip img { height: 26px; width: auto; }
  .header-logo-name {
    font-weight: 800; font-size: 1.05rem; letter-spacing: 0.04em;
    color: var(--paper); transition: color 0.3s ease;
  }
  .site-header.is-light .header-logo-name { color: var(--navy); }
  @media (min-width: 640px) {
    .header-logo-chip { width: 40px; height: 40px; }
    .header-logo-chip img { height: 30px; }
  }
  .header-actions { display: flex; align-items: center; gap: var(--sp-3); }
  .header-tel { display: none; font-weight: 700; font-feature-settings: "tnum"; color: var(--paper); transition: color 0.3s ease; }
  .site-header.is-light .header-tel { color: var(--ink); }
  .header-cta { padding: 0.6rem 1.25rem; font-size: 0.875rem; }

  @media (min-width: 640px) {
    .header-tel { display: inline; }
  }

  /* ============================================================
     SCENE 1: HERO（demo/移植: スクロール連動3シーン＋WebGL気体）
  ============================================================ */
  .dsl-stage { position: relative; height: 200vh; height: 200svh; } /* 2シーン＝遷移1回ぶん */
  .dsl-hero {
    position: sticky; top: 0; height: 100vh; height: 100svh;
    overflow: hidden; isolation: isolate; display: flex; align-items: center;
  }

  .dsl-scenes { position: absolute; inset: 0; z-index: 0; background: #fff; } /* 線画の地色に合わせる */
  .dsl-scene { position: absolute; inset: 0; margin: 0; opacity: 0; will-change: opacity; }
  .dsl-scene img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transform-origin: 60% 52%; will-change: transform; /* 実際の値はJSのreframe()が写真ごとに入れる */
    filter: saturate(1.1) contrast(1.03); /* 上に色を重ねるぶん、写真側で少し取り戻す */
  }

  /* 白で沈める（線画の左側をコピーの下地として薄める）。--dsl-scはJSがシーンごとに差し替える */
  .dsl-scrim {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    --dsl-sc: 255,255,255;
    background:
      linear-gradient(94deg, rgba(var(--dsl-sc),.96) 0%, rgba(var(--dsl-sc),.74) 38%, rgba(var(--dsl-sc),.16) 64%, rgba(var(--dsl-sc),0) 84%),
      linear-gradient(180deg, rgba(var(--dsl-sc),.34) 0%, transparent 16%, transparent 66%, rgba(var(--dsl-sc),.52) 100%);
  }

  #dslVapor { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; display: block; pointer-events: none; }

  /* ---- コピー（配置の土台。タイポ・ボタンはLP部品の.hero-copy/.btnをそのまま使う） ---- */
  .dsl-hero__in { position: relative; z-index: 3; width: var(--dsl-shell); margin-inline: auto; padding: 96px 0 120px; }
  .dsl-hero__copy { max-width: min(640px, 100%); position: relative; isolation: isolate; }
  /* 2026-10-15: 線画の看板文字がロゴ・見出しの下に透けて読みにくかったため、
     コピー塊の背後だけに白の楕円プレートを敷く（全面スクリムを強めると右のサイネージまで白んでしまうので局所化）。
     気体の泡はプレートの縁で薄く見える程度に残す */
  .dsl-hero__copy::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    inset: -3rem -9rem -3rem -5rem;
    background: radial-gradient(ellipse at 42% 50%,
      rgba(255,255,255,.97) 0%, rgba(255,255,255,.94) 42%, rgba(255,255,255,.7) 64%, rgba(255,255,255,0) 100%);
  }
  @media (max-width: 720px) { .dsl-hero__copy::before { content: none; } } /* モバイルは帯スクリムで既に白地 */

  .hero-copy { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 40rem; }
  /* bodyの基準色をライトテーマ化でvar(--ink)へ変更したため、ダーク地のヒーロー上では
     継承だけだと黒文字になり写真に埋もれて読めなくなる（Task5検証で発見・実測390pxで確認）。
     h1もleadと同じく明示的にpaperへ戻す（ヒーローは本タスクの対象外＝維持） */
  /* 2026-08-31: ヒーローが白地の線画になったため、コピーはネイビー基準へ戻す */
  .hero-copy h1 { font-size: var(--fs-h1); color: var(--ink); }
  .hero-copy h1 rt { font-size: 0.38em; font-weight: 500; color: var(--ink-sub); letter-spacing: 0; }
  .hero-copy .lead { color: var(--ink-sub); }
  .dsl-hero .btn-outline { border-color: color-mix(in srgb, var(--ink) 35%, transparent); color: var(--ink); }
  .dsl-hero .btn-outline:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .hero-copy .cta-actions { margin-top: var(--sp-2); }
  /* 透過ロゴを白地へ直置き（プレート・影なし） */
  .hero-logo-plate { width: clamp(240px, 28vw, 380px); }
  .hero-logo-plate img { width: 100%; height: auto; }
  @media (max-width: 639px) {
    .hero-logo-plate { width: clamp(180px, 44vw, 240px); }
  }

  /* ---- 設置シーンのラベル ---- */
  .dsl-scenebar {
    position: absolute; z-index: 3; left: 0; right: 0; bottom: 34px;
    width: var(--dsl-shell); margin-inline: auto;
    display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap;
  }
  .dsl-scenebar__now { min-height: 44px; }
  .dsl-scenebar__place {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: .28em;
    color: var(--blue-deep); margin-bottom: 7px; /* 白地なのでティールでは薄い。AA確保の暗色ランプへ */
  }
  .dsl-scenebar__line { display: block; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
  .dsl-scenebar__now > span { transition: opacity .34s ease, transform .34s cubic-bezier(.2,.7,.3,1); }
  .dsl-scenebar__now.dsl-is-swapping > span { opacity: 0; transform: translateY(6px); }

  /* ロゴのモニターの9マスを3つに縮めた進行表示 */
  .dsl-tiles { display: flex; gap: 7px; margin: 0 0 4px auto; padding: 0; list-style: none; }
  .dsl-tiles li {
    width: 16px; height: 16px; border-radius: 4px;
    border: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent);
    overflow: hidden;
  }
  .dsl-tiles i { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .3s ease; }
  .dsl-tiles li:nth-child(1) i { background: var(--dsl-amber); }
  .dsl-tiles li:nth-child(2) i { background: var(--dsl-blue); }

  /* 縦長では写真が大きく切り取られ、暗い左側が減るので、沈める量を増やす */
  @media (max-aspect-ratio: 5/4) {
    .dsl-scrim {
      background:
        linear-gradient(94deg, rgba(var(--dsl-sc),.98) 0%, rgba(var(--dsl-sc),.9) 36%, rgba(var(--dsl-sc),.55) 54%, rgba(var(--dsl-sc),.12) 68%, rgba(var(--dsl-sc),0) 84%),
        linear-gradient(180deg, rgba(var(--dsl-sc),.34) 0%, transparent 14%, transparent 62%, rgba(var(--dsl-sc),.58) 100%);
    }
  }

  @media (max-width: 720px) {
    :root { --dsl-shell: calc(100% - 36px); }
    /* 2026-08-31: 線画×フルカラーのサイネージにコピーが重なると読めないため、
       モバイルでは線画を下部64%の帯に置き、帯の上端から白→透明で沈めてコピーの下地を確保する */
    .dsl-scene { top: auto; height: 50%; }
    .dsl-scrim {
      background:
        linear-gradient(180deg, rgba(var(--dsl-sc),1) 0%, rgba(var(--dsl-sc),1) 50%, rgba(var(--dsl-sc),.92) 62%, rgba(var(--dsl-sc),.35) 72%, rgba(var(--dsl-sc),0) 80%),
        linear-gradient(94deg, rgba(var(--dsl-sc),.55) 0%, rgba(var(--dsl-sc),0) 45%);
    }
    /* コピー塊を縦に詰めて、サイネージの主役部分（帯の下半分）を空ける */
    .dsl-hero .hero-copy { gap: var(--sp-3); }
    .dsl-hero .hero-logo-plate { width: 150px; }
    .dsl-scenebar__now { display: none; } /* 場所・一行文はサイネージに重なるため非表示（タイルのみ残す） */
    .dsl-hero__in { padding: 80px 0 150px; }
    .dsl-scenebar { bottom: 26px; flex-direction: column; align-items: flex-start; gap: 14px; }
    .dsl-tiles { margin: 0; }
  }

  /* ============================================================
     SCENE 3: PROBLEM
  ============================================================ */
  /* 写真＋一文のカード3枚。白カード（bg-alt地）・角丸14px・写真はモノクロ寄せで「止まった状態」を示す。
     番号は琥珀×navyの細字（バッジではなくエディトリアル表記） */
  .problem-cards {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
  }
  .problem-card {
    display: flex; flex-direction: column;
    background: #fff; border-radius: 14px; overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  }
  .problem-card figure { margin: 0; aspect-ratio: 3/4; min-height: 0; background: #dceaf5; } /* 元画像が縦長（675×900）なので縦位置で見せる */
  .problem-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.85); display: block; }
  .problem-card-text {
    display: flex; align-items: baseline; gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-3) var(--sp-3);
    font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.6;
  }
  .problem-card-no {
    flex: none; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em;
    color: color-mix(in srgb, var(--amber) 70%, var(--navy)); font-feature-settings: "tnum";
  }
  @media (max-width: 879px) {
    .problem-cards { grid-template-columns: 1fr; max-width: 30rem; }
    .problem-card { flex-direction: row; align-items: stretch; }
    .problem-card figure { flex: 0 0 38%; aspect-ratio: 1 / 1; }
    .problem-card-text { align-self: center; }
  }

  /* ============================================================
     SCENE 2: SERVICE（サービス概要・新設）
     エディトリアル調: ドット＋レタースペーシングの小ラベル＋本文1行。
     塗りつぶしのピル型バッジは使わず、線・ドット・余白で区切る
  ============================================================ */
  /* 支給イラスト4パネル。透明PNGなので白地のまま置き、列数だけ幅で切り替える */
  .service-steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-3); max-width: 64rem;
  }
  .service-steps img { display: block; width: 100%; height: auto; }
  @media (max-width: 879px) { .service-steps { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); } }
  @media (max-width: 559px) { .service-steps { grid-template-columns: 1fr; max-width: 20rem; margin-inline: auto; } }

  /* ============================================================
     SCENE 4: EVIDENCE（看板効果のエビデンス・数値カード4枚）
     長文の論拠は資料請求PDFへ譲り、LP上は結論の数値のみを見せる。
     4枚は同じ段高さで揃える（≥700pxはsubgridで数値行・本文行を厳密に同期）
  ============================================================ */
  /* 2026-10-15 作り直し: イラスト（左）＋特大数値・本文（右）の横組みカードを2×2に。
     枠は作らず、各カードの左にヘアライン＋数値色で区切る。数値色は泡4色（更新の流れ・SNSと呼応） */
  .evidence-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr; gap: var(--sp-4) var(--sp-6);
  }
  .evidence-item:nth-child(1) { --bubble: #5cb7ca; }
  .evidence-item:nth-child(2) { --bubble: #70bd84; }
  .evidence-item:nth-child(3) { --bubble: #f5c14f; }
  .evidence-item:nth-child(4) { --bubble: #9678b8; }
  .evidence-item {
    display: grid; grid-template-columns: 6.5rem 1fr; column-gap: var(--sp-3); align-items: center;
    padding-left: var(--sp-2);
    border-left: 2px solid color-mix(in srgb, var(--bubble) 70%, transparent);
  }
  .evidence-illust { margin: 0; }
  .evidence-illust img { display: block; width: 100%; height: auto; }
  .evidence-num {
    font-size: clamp(1.8rem, 4.4vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em;
    color: color-mix(in srgb, var(--bubble) 55%, var(--navy)); font-feature-settings: "tnum"; word-break: keep-all;
  }
  .evidence-num small { font-size: 0.55em; font-weight: 800; margin-left: 0.1em; }
  .evidence-body { margin-top: 0.5rem; color: var(--ink-sub); font-size: 0.95rem; }
  .evidence-conclusion {
    margin-top: var(--sp-2); padding-left: var(--sp-3); max-width: 46rem;
    border-left: 3px solid var(--blue); font-weight: 700; font-size: 1.05rem; line-height: 1.8; color: var(--ink);
  }
  .evidence-conclusion strong { color: var(--blue-deep); }
  @media (min-width: 880px) {
    .evidence-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-8); }
    .evidence-item { grid-template-columns: minmax(9rem, 13rem) 1fr; column-gap: var(--sp-4); padding-left: var(--sp-3); }
  }

  /* ============================================================
     中間CTA共通コンポーネント（④⑥⑧末尾）
     エディトリアル調: ドット＋レタースペーシング小ラベル＋フェード罫線＋テキストリンク。
     ボディ全区間がライト化したため、旧scene--light側の配色を基本形として使う
  ============================================================ */
  .section-cta { margin-top: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); max-width: 34rem; }
  .section-cta::before {
    content: ""; display: block; width: 100%; height: 1px; margin-bottom: var(--sp-3);
    background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 35%, transparent), transparent);
  }
  p.section-cta-label {
    display: flex; align-items: center; gap: 0.55rem;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.22em; color: color-mix(in srgb, var(--blue-deep) 85%, var(--navy) 15%);
  }
  .section-cta-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }
  .section-cta-text { font-size: 0.95rem; color: var(--ink-sub); }
  .section-cta-links { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); }
  .section-cta-link { font-weight: 700; color: color-mix(in srgb, var(--blue-deep) 85%, var(--navy) 15%); }
  .section-cta-link:hover { text-decoration: underline; }

  /* ============================================================
     SCENE 7: SNS（テーマカードウォール・縮小版）
     スマホモックは廃止し、日々のコンテンツ群を2行の全幅カルーセルで流して
     「同じ素材がSNSにもあわせて展開される」ことを装飾的に体感させる。
     行ごとに速度・方向・位相・カード幅を変え、規則的なグリッドに見えない
     「バラバラ感」を出す（v3改訂で4行から2行へ縮小＝物量訴求は行わない）
  ============================================================ */
  /* v5フィードバック案A: コピーは帯の上に独立配置（見出し級タイポ・左寄せ）、
     コラージュはその下の帯として分離する（重なり・ビネットは廃止） */
  #scene-sns { display: block; }
  .sns-head { position: relative; z-index: 1; align-items: flex-start; text-align: left; gap: var(--sp-4); }
  /* 泡4色のドット列（エビデンス・更新の流れとの色呼応） */
  .sns-head::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5cb7ca;
    box-shadow: 18px 0 0 #70bd84, 36px 0 0 #f5c14f, 54px 0 0 #9678b8;
  }
  .sns-head p {
    font-size: var(--fs-h2); font-weight: 700; line-height: 1.5; color: var(--navy);
    max-width: 40rem; text-wrap: balance;
  }
  .sns-wall {
    position: relative; inset: auto; height: 46vh; margin-top: var(--sp-8);
    display: flex; flex-direction: column; gap: var(--sp-3);
    justify-content: center; overflow: hidden;
    /* わずかな回転＋拡大でコラージュの勢いを出す（拡大は回転で生じる四隅の欠けの補償） */
    transform: rotate(-4deg) scale(1.14);
    pointer-events: none;
  }
  .sns-row { overflow: hidden; flex: 0 0 auto; }
  /* 各行のトラックは同一カード列の2連結。translateX(-50%)がちょうど連結境目と
     一致するため継ぎ目なくループする。--dur/--delay/--card-w は行ごとにHTML側で
     指定し、速度・位相・カードサイズをずらす */
  .sns-row-track {
    display: flex; width: max-content;
    animation: sns-wall-scroll var(--dur, 48s) linear infinite;
    animation-delay: var(--delay, 0s);
  }
  .sns-row--reverse .sns-row-track { animation-direction: reverse; }
  .sns-wall-card {
    width: var(--card-w, 13rem); flex: 0 0 auto; margin-right: 1.1rem;
    border-radius: 12px; overflow: hidden; background: var(--bg-alt);
    border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  }
  .sns-wall-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
  .sns-wall-card figcaption {
    font-size: 0.78rem; padding: 0.45rem 0.65rem; color: var(--ink-sub);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  @keyframes sns-wall-scroll { to { transform: translateX(-50%); } }
  /* JS有効時はCSSマーキーを止め、GSAP駆動（スクロール速度連動の加速・慣性減衰）へ
     切り替える。CSSマーキーは無JS環境向けの保険として残す */
  html.js-motion .sns-row-track { animation: none; }
  @media (max-width: 768px) {
    /* モバイル簡略化: カードを一回り小さくする（縮小後の2行構成でも
       縦長ビューポートの面を適度に埋める） */
    .sns-wall-card { width: calc(var(--card-w, 13rem) * 0.66); }
  }
  /* reduced-motion時はグローバルの保険（animation-duration:0.01ms・1回）により
     トラックが translateX(-50%) で静止するが、2連結トラックのためその静止フレームは
     先頭表示と同一の見た目になり、破綻なく「静的なカードの帯」として成立する */

  /* ============================================================
     SCENE 5: FLOW（更新の流れ・4STEP）
  ============================================================ */
  /* v5改訂2でカードの「枠」をやめたセクション。2026-10-15に破線トラックも廃止し、支給アイコン主体の構成へ */
  /* 2026-10-15 作り直し: 4ステップを「上下の通し罫で囲った帯」として1ブロックにまとめ、
     余白を帯の内側に閉じ込める（以前は見出し→ステップ→注記→次セクションの余白が全部同じ幅で、
     どこまでがこのセクションか読めなかった）。順序は左→右の読み順＋列境界の矢印チップで示す。
     文字（STEP番号・見出し・説明）は支給図解（STEP.png）のものを使わずHTMLで持ち、
     アイコン4点だけを図解から切り出して使う（モバイルでの可読性と、図解内文字の生成由来の欠けのため） */
  #scene-flow .scene-inner { gap: var(--sp-4); }
  #scene-flow .lead { margin-bottom: var(--sp-2); }
  .flow-wrap { position: relative; }
  .flow-line {
    display: grid; grid-template-columns: 1fr;
    border-top: 1px solid color-mix(in srgb, var(--navy) 22%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--navy) 22%, transparent);
  }
  /* エビデンス4カラムと同じ泡4色をSTEP順に。STEP番号前のドットと番号色に使う */
  .flow-node:nth-child(1) { --bubble: #5cb7ca; }
  .flow-node:nth-child(2) { --bubble: #70bd84; }
  .flow-node:nth-child(3) { --bubble: #f5c14f; }
  .flow-node:nth-child(4) { --bubble: #9678b8; }
  /* モバイル: アイコン左・文章右の行を、ヘアラインで区切って縦に積む */
  .flow-node {
    position: relative;
    display: grid; grid-template-columns: 5.5rem 1fr; column-gap: var(--sp-3); align-items: center;
    padding: var(--sp-3) 0;
  }
  .flow-node + .flow-node { border-top: 1px solid color-mix(in srgb, var(--navy) 10%, transparent); }
  .flow-icon { grid-row: 1 / span 3; height: 5rem; display: flex; align-items: flex-end; }
  /* picture要素を素通しにしてimgを直接フレックス子要素にする（pictureが子要素だとimgのheight:100%が解決できない） */
  .flow-icon picture { display: contents; }
  .flow-icon img { width: 100%; height: 100%; object-fit: contain; object-position: left bottom; }
  p.flow-num {
    display: flex; align-items: center; gap: 0.55rem;
    font-size: 0.78rem; font-weight: 800; letter-spacing: 0.22em;
    color: color-mix(in srgb, var(--bubble, var(--blue)) 45%, var(--navy)); font-feature-settings: "tnum"; margin-bottom: 0.3rem;
  }
  p.flow-num::before {
    content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none;
    background: var(--bubble, var(--blue));
    box-shadow: 0 0 12px color-mix(in srgb, var(--bubble, var(--blue)) 70%, transparent);
  }
  .flow-node h3 {
    margin-bottom: 0.2rem; color: var(--ink);
    /* 語中折返し（「チャットツ/ール」等）を避け、約物でのみ折り返す */
    font-size: clamp(1.05rem, 1.6vw, 1.2rem); word-break: keep-all; overflow-wrap: anywhere;
  }
  .flow-node h3 + p { color: var(--ink-sub); font-size: 0.95rem; }
  /* 注記は帯の直下に小さく添える（以前のleadサイズ＋大余白をやめる） */
  .flow-note {
    margin-top: var(--sp-2); font-size: 0.9rem; color: var(--ink-sub); max-width: none;
    display: flex; align-items: center; gap: 0.55rem;
  }
  .flow-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }

  @media (min-width: 700px) {
    /* デスクトップ: 4カラム。各段をsubgridで揃え、列境界のヘアライン上に矢印チップを置いて進行方向を示す */
    .flow-line {
      grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto auto 1fr;
      column-gap: 0; padding: var(--sp-4) 0;
    }
    .flow-node {
      display: grid; grid-row: span 4; grid-template-rows: subgrid; grid-template-columns: 1fr;
      column-gap: 0; align-items: start; padding: 0 var(--sp-3) 0 0;
    }
    .flow-node + .flow-node {
      border-top: 0; border-left: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
      padding-left: var(--sp-4);
    }
    /* 矢印チップ: 列境界の線上・アイコン段の中央。bg-altで線を切って丸く浮かせる */
    .flow-node + .flow-node::before {
      content: ""; position: absolute; left: -13px; top: calc(var(--flow-icon-h) / 2 - 13px);
      width: 26px; height: 26px; border-radius: 50%;
      background: var(--bg-alt);
      border: 1px solid color-mix(in srgb, var(--navy) 18%, transparent);
    }
    .flow-node + .flow-node::after {
      content: ""; position: absolute; left: -4px; top: calc(var(--flow-icon-h) / 2 - 4px);
      width: 7px; height: 7px;
      border-right: 2px solid var(--navy); border-top: 2px solid var(--navy);
      transform: rotate(45deg) translate(-2px, 2px);
    }
    .flow-line { --flow-icon-h: clamp(7rem, 10vw, 9rem); }
    .flow-icon { grid-row: auto; height: var(--flow-icon-h); margin-bottom: var(--sp-3); }
  }

  /* ============================================================
     SCENE 8: PRICE（具体額は非公開。「他社の2分の1」訴求のみ）
  ============================================================ */
  .card {
    background: var(--bg); border: 1px solid #dceaf5; border-radius: 18px;
    padding: var(--sp-6); box-shadow: 0 16px 40px -26px rgba(16,19,25,0.2);
  }
  /* h2直下のキーワード「2分の1」。このセクションはscene--light（ライト区間）のため、
     ライト区間のアクセント(--blue-deep)で強調する */
  .price-kw { color: var(--blue-deep); font-weight: 800; }

  /* 相場比較（相場100% vs 当社50%）。金額は出さず、バーの長さの対比とバッジ「1/2」のみで
     価格優位性を視覚化する。既存のdata-target-width / initPriceCompareの演出機構を流用 */
  .price-compare { margin-top: var(--sp-2); display: flex; flex-direction: column; gap: var(--sp-3); max-width: 48rem; }
  .price-compare-lead { color: var(--ink-sub); }
  .price-compare-bars { display: flex; flex-direction: column; gap: var(--sp-3); }
  .price-compare-bar { display: flex; flex-direction: column; gap: 0.35rem; }
  .price-compare-label { font-size: 0.85rem; font-weight: 700; color: var(--ink-sub); }
  /* 2本のバーが同一スケールであることが伝わるよう、背景に全幅のレール（トラック）を敷く。
     overflow: visible にして、「1/2」バッジがバー終端の外側にはみ出せるようにする */
  .price-compare-track { height: 2rem; border-radius: 999px; background: var(--bg-alt); overflow: visible; position: relative; box-shadow: inset 0 0 0 1px #dceaf5; }
  .price-compare-fill { height: 100%; border-radius: 999px; position: relative; width: 0; }
  .price-compare-fill--market { background: color-mix(in srgb, var(--ink-sub) 45%, transparent); }
  /* blueバーだけ、グラデーション＋うっすら発光でメリハリを付ける（grayバーは控えめのまま） */
  .price-compare-fill--ours {
    background: linear-gradient(90deg, var(--blue), color-mix(in srgb, var(--blue) 55%, var(--blue-deep)));
    box-shadow: 0 0 20px 2px color-mix(in srgb, var(--blue) 45%, transparent);
  }
  /* バー終端にポップインする「1/2」バッジ。.price-compare-fillの右端(left:100%)に
     配置し、位置決めをtransformに頼らないことで、GSAPのscaleアニメーションと競合しない */
  .price-compare-badge {
    position: absolute; left: 100%; top: 0; height: 100%; margin-left: 0.6rem;
    display: inline-flex; align-items: center; white-space: nowrap;
    background: var(--blue); color: #fff; font-weight: 800; font-size: 0.85rem;
    padding: 0 0.85rem; border-radius: 999px;
    box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--blue) 70%, transparent);
  }
  .price-compare-note { color: var(--ink-sub); font-size: 0.9rem; }

  /* ============================================================
     SCENE 9: TRUST + FAQ
  ============================================================ */
  /* 導入事例3件（実写素材）。TODOだった実績写真の差し込みを実装。
     同シーン下部のFAQが「白カードの縦積み」なので、事例は構造を重ねないよう
     evidenceと同じ罫線＋特大番号のエディトリアル行で組み、写真を左右交互に置く。
     番号・ラベル・線画の彩色はevidence同様ロゴの泡色×navyのmixで呼応させる（塗り禁止） */
  .cs-list { border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
  .cs-row {
    display: grid; grid-template-columns: 1fr; gap: var(--sp-3);
    padding-block: var(--sp-4);
    border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  }
  /* ロゴの泡色（evidenceの1〜3枚目と同順）を事例1〜3へ */
  .cs-row:nth-child(1) { --bubble: #5cb7ca; }
  .cs-row:nth-child(2) { --bubble: #70bd84; }
  .cs-row:nth-child(3) { --bubble: #f5c14f; }
  .cs-media img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  }
  /* 見出し行: 特大番号 → 設置タイプラベル → フェード罫 → 設置構造の線画 */
  .cs-meta { display: flex; align-items: center; gap: var(--sp-2); }
  p.cs-no {
    font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; line-height: 1;
    color: color-mix(in srgb, var(--bubble, var(--blue)) 60%, var(--navy));
    font-feature-settings: "tnum"; letter-spacing: -0.01em;
  }
  .cs-type {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em;
    color: color-mix(in srgb, var(--bubble, var(--blue)) 40%, var(--navy));
  }
  .cs-type i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--bubble) 75%, var(--navy)); flex: none; }
  .cs-fade { flex: 1; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 35%, transparent), transparent); }
  .cs-glyph { width: 40px; height: 30px; flex: none; color: color-mix(in srgb, var(--bubble, var(--blue)) 60%, var(--navy)); }
  .cs-h { margin-top: var(--sp-2); font-size: var(--fs-h3); color: var(--ink); }
  .cs-client { margin-top: 0.4rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-sub); }
  .cs-t { margin-top: var(--sp-2); font-size: 0.95rem; line-height: 1.9; }
  @media (min-width: 900px) {
    .cs-row { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--sp-6); align-items: center; }
    .cs-row:nth-child(even) .cs-media { order: 2; }
  }

  .faq { display: flex; flex-direction: column; gap: var(--sp-3); }
  .faq-item {
    /* #scene-faq は白背景のため、カードは淡青（bg-alt）にして面差を作る */
    background: var(--bg-alt); border-radius: 12px; padding: var(--sp-3) var(--sp-4);
    border: 1px solid #dceaf5;
    box-shadow: 0 8px 24px -18px rgba(16,19,25,0.18);
  }
  .faq-item summary {
    cursor: pointer; font-weight: 700; color: var(--ink);
    list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--blue); flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  .faq-item[open] summary::after { transform: rotate(45deg); }
  .faq-item p { margin-top: var(--sp-2); color: var(--ink-sub); }

  /* ============================================================
     SCENE 10: CTA（three.js演出: フラスコ＋サイネージがCTAを配信する）
  ============================================================ */
  #scene-cta {
    /* 縦長ウィンドウで上部の紺空間が間延びしないよう、100vhに上限キャップを設ける。
       フラスコ→泡アーチの演出が使う上方向の余白は54remあれば収まる */
    min-height: min(100vh, 54rem); display: flex; flex-direction: column;
    justify-content: flex-end; align-items: center; padding-block: 0 7vh;
  }
  .cta-visual { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .cta-visual canvas { display: block; }
  .cta-content { position: relative; z-index: 2; text-align: center; padding-inline: 6%; }
  .cta-lead { color: var(--paper); opacity: .85; }
  .cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
  .cta-content .cta-actions { margin-top: var(--sp-3); justify-content: center; align-items: center; }

  /* ============================================================
     MINI CTA（画面下追従／静的ベースでは常時表示）
  ============================================================ */
  .mini-cta {
    position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 90;
    display: flex; gap: 0.75rem; padding: 0.75rem var(--sp-3);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    box-shadow: 0 -8px 24px -18px rgba(16,19,25,0.2);
    transform: translateY(0);
    transition: transform 0.35s ease;
  }
  .mini-cta-btn {
    flex: 1 1 0; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 999px; font-weight: 700; font-size: 0.9rem; padding-inline: 1rem;
  }
  .mini-cta-form { background: var(--blue); color: #fff; }
  .mini-cta-tel { background: transparent; border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); color: var(--ink); }

  /* JS(Task5〜)がhtmlへ .js-motion を付与した時だけ、初期状態は隠す。無JSでは常時表示のまま */
  html.js-motion .mini-cta { transform: translateY(100%); }
  html.js-motion .mini-cta.is-visible { transform: translateY(0); }

  /* ============================================================
     FOOTER
  ============================================================ */
  .site-footer {
    background: var(--night); color: var(--paper-dim);
    padding: var(--sp-8) var(--sp-4) calc(var(--sp-8) + 4.5rem);
    font-size: 0.9rem;
  }
  .footer-inner { max-width: 72rem; margin-inline: auto; display: flex; flex-direction: column; gap: var(--sp-2); }
  .footer-company { color: var(--paper); font-weight: 700; font-size: 1.05rem; }
  .footer-tel a { font-feature-settings: "tnum"; text-decoration: underline; text-underline-offset: 3px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
  .footer-links a { text-decoration: underline; text-underline-offset: 3px; }
  /* 70%透過だと実効コントラストが4.40:1まで落ちるため、var(--paper-dim)そのまま
     （nightとのコントラスト約7.8:1）に変更してWCAG AA(4.5:1)を満たす */
  .footer-copyright { margin-top: var(--sp-2); color: var(--paper-dim); font-size: 0.8rem; }

  /* ============================================================
     JS 有効時に重ね合わせレイアウトへ切り替える下地
     （Task 5以降のGSAP実装が .js-motion 付与時のみ有効化する。
       静的ベースでは効果なし＝ここでは何も見た目を変えない）
  ============================================================ */
  /* ============================================================
     REDUCED MOTION（CSSアニメーション（SNSマーキー等）とtransitionを停止する保険）
  ============================================================ */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .dsl-scene img { transform: none !important; }
  }
