  /* ============================================================
     トークン定義
     Hatsucla本体（apps/hatsucla_app）の実画面（ホーム／発注履歴）に
     直接合わせる。白背景・薄いボーダーのカード・最小限の影。
     参照元：src/theme.ts／CButton.tsx のprimary（#4262ff）／
     実画面のgray・green・red（要対応＝赤、解決済み＝緑）。
     ダークテーマは持たない。本体もダークモード非対応であり、
     「かっこいいSaaS風」ではなく「静かな実務ツール」のトーンを
     単一のライトテーマで通す（意図的な選択）。
     ============================================================ */
  :root {
    --bg: #ffffff;
    --bg-subtle: #f7f8fa;
    --surface: #ffffff;
    --surface-tint-blue: #eaefff;
    --surface-tint-green: #f0fdf4;
    --surface-tint-red: #fef2f2;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --ink: #111827;
    --ink-soft: #6b7280;
    --ink-faint: #9ca3af;
    --blue: #4262ff;
    --blue-dark: #2c3fc9;
    --blue-tint: #c7d2fe;
    --green: #16a34a;
    --green-dark: #166534;
    --green-soft: #dcfce7;
    --red: #dc2626;
    --red-dark: #b91c1c;
    --red-soft: #fecaca;
    --on-blue: #ffffff;
    --focus-ring: #93c5fd;

    --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1.25rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4.5rem;
    --space-7: 6.5rem;

    --radius-s: 6px;
    --radius-m: 10px;
    --max: 1200px;
    /* ヘッダーだけ、本文より広く余白を取る（invoxのような横幅の使い方） */
    --max-wide: 1600px;
  }

  /* ============================================================
     リセット・共通
     ============================================================ */
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
  }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }
  img { max-width: 100%; display: block; }
  h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.4; margin: 0; text-wrap: balance; color: var(--ink); }
  p { margin: 0; }
  a { color: inherit; }
  ul, ol { margin: 0; padding: 0; list-style: none; }
  button { font: inherit; color: inherit; }
  table { border-collapse: collapse; }
  :focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 2px;
  }

  .wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--space-3); }
  @media (min-width: 720px) { .wrap { padding-inline: var(--space-4); } }

  .section { padding-block: var(--space-6); }
  .section--subtle { background: var(--bg-subtle); }
  @media (min-width: 960px) { .section { padding-block: var(--space-7); } }

  .kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--blue);
    margin-bottom: var(--space-2);
  }
  .kicker::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--green);
    display: inline-block;
  }

  .section-head { max-width: 40rem; margin-bottom: var(--space-5); }
  .section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }
  .section-head p { margin-top: var(--space-2); color: var(--ink-soft); font-size: 1.02rem; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.85em 1.6em;
    border-radius: var(--radius-s);
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease;
  }
  @media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
  .btn--primary { background: var(--blue); color: var(--on-blue); }
  .btn--primary:hover { background: var(--blue-dark); }
  .btn--vendor { background: var(--green-dark); color: var(--on-blue); }
  .btn--vendor:hover { background: #14532d; }

  .tag {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding: 0.25em 0.7em;
    border-radius: 999px;
    font-weight: 600;
  }
  .tag--buyer { background: var(--surface-tint-blue); color: var(--blue); border: 1px solid var(--blue-tint); }
  .tag--vendor { background: var(--surface-tint-green); color: var(--green-dark); border: 1px solid var(--green-soft); }

  .icon { width: 26px; height: 26px; stroke: var(--blue); fill: none; stroke-width: 1.6; flex-shrink: 0; }

  /* ============================================================
     共通部品：リスト型カード（本体のホーム画面「アイコン＋見出し＋
     説明文＋右端に件数／矢印」の行を再利用する）
     ============================================================ */
  .list-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
  }
  .list-row__icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .list-row__icon svg { width: 20px; height: 20px; stroke-width: 2; fill: none; }
  .list-row__icon--red { background: var(--surface-tint-red); }
  .list-row__icon--red svg { stroke: var(--red); }
  .list-row__icon--green { background: var(--surface-tint-green); }
  .list-row__icon--green svg { stroke: var(--green); }
  .list-row__icon--blue { background: var(--surface-tint-blue); }
  .list-row__icon--blue svg { stroke: var(--blue); }
  .list-row__body { flex: 1; min-width: 0; }
  .list-row__body h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.2em; }
  .list-row__body p { font-size: 0.9rem; color: var(--ink-soft); }
  .list-row__meta { flex-shrink: 0; display: flex; align-items: center; gap: 0.5em; padding-top: 0.35em; }
  .list-row__count { font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
  .list-row__count--red { color: var(--red); }
  .list-row__count--green { color: var(--green); }
  .list-row__arrow { width: 16px; height: 16px; stroke: var(--ink-faint); stroke-width: 2; fill: none; flex-shrink: 0; }

  /* ============================================================
     ヘッダー
     ============================================================ */
  .site-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    /* 下スクロールで隠す・上スクロールで戻す（script側でクラスを切り替える） */
    transition: transform 0.4s ease-in-out;
  }
  .site-header--hidden { transform: translateY(-100%); }
  .site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-3); max-width: var(--max-wide); }
  /* ロゴ本体とサブテキストはフォントサイズの差が大きいため、
     中央揃えだと文字の重心がズレて見える。ベースラインで揃える */
  /* スマホ幅を基準に小さめのサイズから始め、720px以上でロゴ・ボタンを拡大する
     （デスクトップ向けに拡大したときにスマホでヘッダーが収まらなくなったための対応） */
  .brand { display: flex; align-items: baseline; gap: 0.4em; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
  .brand__mark { width: 28px; height: 28px; flex-shrink: 0; align-self: center; }
  /* 「ハツクラ」と「｜発注・納品管理」は1つの塊として読ませたいので、
     .brandのgapが2つの間に入らないよう1つのspanにまとめて渡す。
     スマホ幅では収まりきらないため非表示にする */
  .brand__sub { display: none; align-items: baseline; }
  .brand span { font-family: var(--font-mono); font-weight: 500; font-size: 0.85rem; color: var(--ink-faint); letter-spacing: 0.05em; }
  .brand__reading { color: var(--blue); font-weight: 700; }
  .site-header .btn { padding: 0.55em 0.9em; font-size: 0.8rem; white-space: nowrap; }
  @media (min-width: 720px) {
    .brand { gap: 0.6em; font-size: 1.75rem; }
    .brand__mark { width: 40px; height: 40px; }
    .brand__sub { display: inline-flex; }
    .site-header .btn { padding: 0.6em 1.2em; font-size: 0.88rem; }
  }

  /* ============================================================
     1. ヒーロー
     ============================================================ */
  .hero {
    padding-block: var(--space-6) var(--space-7);
    background:
      radial-gradient(ellipse 60% 55% at 82% 8%, rgba(66, 98, 255, 0.10), transparent 60%),
      radial-gradient(ellipse 50% 45% at 8% 92%, rgba(22, 163, 74, 0.06), transparent 65%),
      linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  }
  @media (min-width: 960px) { .hero { padding-block: var(--space-5) var(--space-6); } }
  /* 見出しは中央に寄せ、その下に「発注元」「仕入先」の2つの入口を並べる。
     2枚は1つの記録（中央）でつながっている——「同じ画面で同じ数字」を
     入口の形そのもので見せる（左右に分かれた入口を並べるだけにしない） */
  .hero__head { max-width: 46rem; margin-inline: auto; text-align: center; }
  .hero__head .hero__body { margin-inline: auto; max-width: 48em; text-wrap: pretty; }
  /* 文の切れ目で改行するのは広い画面だけ。狭い画面では自然に折り返させる
     （入れたままだと「ない。」だけの行ができる） */
  @media (max-width: 719px) { .br-wide { display: none; } }
  .hero__eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--surface-tint-blue);
    border: 1px solid var(--blue-tint);
    padding: 0.4em 0.9em;
    border-radius: 999px;
    margin-bottom: var(--space-3);
  }
  .hero h1 {
    font-size: clamp(2rem, 4.6vw, 3.15rem);
    font-weight: 700;
    letter-spacing: -0.01em;
  }
  /* 文節ごとに<span>で区切り、改行は必ずこの境目で起こす
     （助詞や活用語尾だけが次行に孤立するのを防ぐ） */
  .hero__line { display: inline-block; }
  .hero__sub {
    margin-top: var(--space-3);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    font-weight: 700;
    color: var(--blue-dark, var(--blue));
    line-height: 1.7;
  }
  .hero__sub mark {
    background: none;
    color: inherit;
    font-weight: 700;
    box-shadow: inset 0 -0.42em 0 var(--green-soft);
    padding-inline: 0.05em;
  }
  .hero__body { margin-top: var(--space-4); font-size: 1.02rem; color: var(--ink-soft); max-width: 34em; }
  .hero__actions { margin-top: var(--space-5); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-3); }
  .link-quiet { font-weight: 600; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: var(--border-strong); }
  .link-quiet:hover { color: var(--blue); text-decoration-color: var(--blue); }

  /* ---- 2つの入口（発注元・仕入先）と、それをつなぐ記録 ---- */
  .routes {
    --route-line: linear-gradient(90deg, #9fb0ff, #86d9a4);
    position: relative;
    margin-top: var(--space-5);
    display: grid;
    gap: var(--space-4);
    align-items: stretch;
  }
  /* つなぐ線。カードは地が白いので、線はカードの間にだけ見える。
     スマホ幅では縦に積むので、線も縦に通す */
  .routes::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%; top: 0; bottom: 0;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #9fb0ff, #86d9a4);
    border-radius: 3px;
  }
  @media (min-width: 960px) {
    .routes { grid-template-columns: 1fr minmax(260px, 330px) 1fr; gap: var(--space-5); }
    .routes::before {
      left: 0; right: 0; top: 50%; bottom: auto;
      width: auto; height: 3px;
      transform: translateY(-50%);
      background: var(--route-line);
    }
  }
  .route { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--space-2); }
  .route__card { flex: 1; }
  .route__go { margin-top: auto; }
  .shared-record { align-self: center; }
  .route__card {
    --role: var(--blue);
    --role-dark: var(--blue-dark);
    --role-tint: var(--surface-tint-blue);
    --role-border: var(--blue-tint);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 5px solid var(--role);
    border-radius: var(--radius-m);
    box-shadow: 0 18px 36px -28px rgba(17, 24, 39, 0.35);
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  }
  .route--vendor .route__card {
    --role: var(--green);
    --role-dark: var(--green-dark);
    --role-tint: var(--surface-tint-green);
    --role-border: var(--green-soft);
  }
  .route__card:hover { border-color: var(--role-border); border-top-color: var(--role); box-shadow: 0 22px 40px -24px rgba(17, 24, 39, 0.38); }
  @media (prefers-reduced-motion: no-preference) { .route__card:hover { transform: translateY(-2px); } }
  @media (prefers-reduced-motion: reduce) { .route__card { transition: none; } }
  .route__want {
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--role-dark);
    background: var(--role-tint);
    border: 1px solid var(--role-border);
    padding: 0.3em 0.9em;
    border-radius: 999px;
  }
  .route__title { display: block; font-family: var(--font-display); font-weight: 700; line-height: 1.4; font-size: clamp(1.35rem, 2.4vw, 1.6rem); color: var(--role-dark); }
  .route__desc { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.75; }
  .route__who {
    margin-top: var(--space-1);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
  }
  .route__go {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 700;
    color: var(--role);
  }
  .route__go svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
  /* 行数が左右で違うと、上のカードの高さがずれるので2行分を取っておく */
  .route__note { font-size: 0.84rem; color: var(--ink-soft); text-align: center; line-height: 1.6; min-height: 3.2em; }
  /* スマホ幅では縦のつなぐ線が注記の下を通るので、文字の後ろだけ地の色で抜く */
  @media (max-width: 959px) { .route__note span { background: var(--bg); } }
  .route__note span { padding-inline: 0.5em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .route__note strong { color: var(--ink); }

  /* 中央：1つの記録に、発注元と仕入先が交互に書き込む */
  .shared-record {
    position: relative;
    z-index: 1;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-m);
    box-shadow: 0 24px 48px -28px rgba(17, 24, 39, 0.4);
    overflow: hidden;
  }
  .shared-record__head {
    padding: var(--space-2) var(--space-3);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--ink-soft);
    line-height: 1.5;
  }
  .shared-record__head strong { display: block; color: var(--ink); font-size: 0.95rem; }
  .shared-record__rows { padding: var(--space-1) var(--space-3); }
  .shared-record__row {
    display: grid;
    grid-template-columns: 3.2em 1fr auto;
    align-items: center;
    gap: var(--space-2);
    padding-block: 0.55em;
    font-size: 0.9rem;
  }
  .shared-record__row + .shared-record__row { border-top: 1px dashed var(--border); }
  .shared-record__label { color: var(--ink-soft); font-size: 0.82rem; }
  .shared-record__num { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; }
  .shared-record__num--red { color: var(--red); }
  .shared-record__foot {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: var(--space-2) var(--space-3);
    background: var(--surface-tint-green);
    border-top: 1px solid var(--green-soft);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--green-dark);
  }
  .shared-record__foot svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; fill: none; }
  .shared-record figcaption {
    padding: 0 var(--space-3) var(--space-2);
    background: var(--surface-tint-green);
    font-size: 0.78rem;
    color: var(--ink-soft);
    line-height: 1.5;
  }

  /* ヒーロー・ビジュアル：実スクリーンショットの差し込み位置（下の
     screenshot-slot--marker を参照）。高さはヒーローの左カラムに合わせる */
  .hero .screenshot-slot--marker { margin-top: 0; min-height: 280px; display: flex; flex-direction: column; justify-content: center; }

  /* ============================================================
     2. 段階的に使える
     ============================================================ */
  .compare { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface); }
  .compare table { width: 100%; min-width: 640px; font-size: 0.95rem; }
  .compare th, .compare td { text-align: left; padding: var(--space-2) var(--space-3); vertical-align: top; }
  .compare thead th { font-family: var(--font-display); font-weight: 700; background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
  .compare thead th:first-child { color: var(--ink-faint); font-weight: 500; }
  .compare tbody th { font-weight: 700; color: var(--blue); width: 9em; border-right: 1px solid var(--border); background: var(--bg-subtle); }
  .compare tbody tr + tr th, .compare tbody tr + tr td { border-top: 1px solid var(--border); }
  .compare td.is-before { color: var(--ink-soft); }
  .compare td.is-after { color: var(--ink); font-weight: 500; }
  .compare td.is-after::before { content: "✓ "; color: var(--green); font-weight: 700; }
  /* テーブルの表示幅(640px)が入り切らない画面では、右端が切れていることを
     フェードで示す（横スクロールできることに気づけないままにしない）。 */
  .compare::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 28px;
    background: linear-gradient(to right, transparent, rgba(17, 24, 39, 0.08));
    pointer-events: none;
  }
  @media (min-width: 720px) { .compare::after { display: none; } }
  .compare-hint {
    display: none;
    margin-top: var(--space-2);
    font-size: 0.82rem;
    color: var(--ink-faint);
  }
  @media (max-width: 719px) { .compare-hint { display: block; } }

  .no-burden {
    margin-top: var(--space-4);
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-4);
    background: var(--surface-tint-green);
    border: 1px solid var(--green-soft);
    border-radius: var(--radius-m);
  }
  .no-burden .icon { stroke: var(--green-dark); }
  .no-burden p { font-size: 0.98rem; }
  .no-burden strong { color: var(--green-dark); }

  /* 導入のしかた（発注元から始める）：見出しと実画面を横に並べる。
     実画面の右下に案内イラストがはみ出すので、下に余白を取る */
  .intro-split { display: grid; gap: var(--space-5); align-items: center; margin-bottom: var(--space-6); }
  .intro-split .section-head { margin-bottom: 0; }
  @media (min-width: 960px) { .intro-split { grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-bottom: calc(var(--space-7) + var(--space-3)); } }
  .intro-split .hero__visual { margin-right: 6%; }
  .role-kicker--buyer { color: var(--blue); }
  .role-kicker--vendor { color: var(--green-dark); }
  .role-kicker--vendor::before { background: var(--green); }

  /* ============================================================
     仕入先から始める
     ============================================================ */
  .vendor-steps { display: grid; gap: var(--space-3); grid-template-columns: 1fr; counter-reset: vstep; }
  @media (min-width: 820px) { .vendor-steps { grid-template-columns: repeat(3, 1fr); } }
  .vendor-step {
    position: relative;
    padding: var(--space-4) var(--space-4) var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
  }
  .vendor-step__no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem;
    border-radius: 50%;
    background: var(--surface-tint-green);
    border: 1px solid var(--green-soft);
    color: var(--green-dark);
    font-family: var(--font-mono);
    font-weight: 700;
    margin-bottom: var(--space-2);
  }
  .vendor-step h3 { font-size: 1.08rem; margin-bottom: 0.35em; }
  .vendor-step p { font-size: 0.92rem; color: var(--ink-soft); }
  .vendor-step--buyer .vendor-step__no { background: var(--surface-tint-blue); border-color: var(--blue-tint); color: var(--blue); }

  /* 手順のあと（つながったあと）の枠。仕入先の色で、手順カードとは形を変える */
  .after-link {
    margin-top: var(--space-4);
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-4);
    background: var(--surface-tint-green);
    border: 1px solid var(--green-soft);
    border-radius: var(--radius-m);
  }
  .after-link .icon { stroke: var(--green-dark); }
  /* 文節の途中（「回／答」）で折り返さないよう、読点の位置で切る */
  .after-link .phrase { display: inline-block; }
  .after-link h3 { font-size: 1.12rem; color: var(--green-dark); margin-bottom: 0.4em; }
  .after-link p { font-size: 0.95rem; }
  .after-link ul { margin: 0.5em 0 0.6em; display: flex; flex-direction: column; gap: 0.25em; }
  .after-link li { display: flex; gap: 0.6em; align-items: baseline; font-size: 0.95rem; font-weight: 600; }
  .after-link li::before { content: "―"; color: var(--green); flex-shrink: 0; }
  .plan-terms { margin-top: var(--space-5); display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
  .plan-terms { max-width: 46rem; }
  .plan-term {
    padding: var(--space-4);
    border-radius: var(--radius-m);
    border: 1px solid var(--border);
    background: var(--surface);
  }
  .plan-term__label { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 0.2em; }
  .plan-term h3 { font-size: 1.12rem; margin-bottom: 0.4em; }
  .plan-term p { font-size: 0.93rem; color: var(--ink-soft); }
  .plan-term p + p { margin-top: 0.5em; }

  /* ============================================================
     3. 4象限
     ============================================================ */
  #roles .screenshot-slot--marker { margin-bottom: var(--space-5); }
  .quad-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
  @media (min-width: 700px) { .quad-grid { grid-template-columns: 1fr 1fr; } }
  .quad-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: var(--space-4);
  }
  .quad-card__role { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
  .quad-card__role h3 { font-size: 1.12rem; }
  .quad-card__role .icon { width: 22px; height: 22px; }
  .quad-card__rows { display: flex; flex-direction: column; gap: var(--space-3); }
  .list-row--flat { border: none; padding: 0; background: transparent; border-radius: 0; }
  .quad-card .list-row__body p strong { color: var(--blue); font-weight: 700; }

  .cta-band { margin-top: var(--space-5); text-align: center; }
  .cta-band p { font-weight: 600; font-size: 1.05rem; margin-bottom: var(--space-3); color: var(--ink-soft); }

  /* ============================================================
     困りごとセクション：Before/After イラスト（ソコスト素材、#4262ffに変更済み）
     ============================================================ */
  .before-after {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
  }
  @media (max-width: 640px) {
    .before-after { grid-template-columns: 1fr; justify-items: center; }
    .before-after__arrow { transform: rotate(90deg); }
  }
  .before-after__item {
    margin: 0;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: var(--space-4) var(--space-3) var(--space-3);
  }
  .before-after__item svg { width: 100%; max-width: 260px; height: auto; margin-inline: auto; display: block; }
  .before-after__item figcaption { margin-top: var(--space-3); font-size: 0.92rem; color: var(--ink-soft); }
  .before-after__item figcaption strong { display: block; font-size: 0.8rem; font-weight: 700; color: var(--red); letter-spacing: 0.05em; margin-bottom: 0.3em; }
  .before-after__item--after figcaption strong { color: var(--green-dark); }
  .before-after__arrow { width: 34px; height: 34px; stroke: var(--blue); stroke-width: 2; fill: none; flex-shrink: 0; }

  /* ============================================================
     単体イラスト（位置3など：1枚だけを添える構図）
     ============================================================ */
  .solo-illustration {
    margin: 0;
    margin-top: var(--space-5);
    text-align: center;
    max-width: 22rem;
    margin-inline: auto;
  }
  .solo-illustration svg { width: 100%; max-width: 260px; height: auto; margin-inline: auto; display: block; }
  .solo-illustration figcaption { margin-top: var(--space-3); font-size: 0.92rem; color: var(--ink-soft); }

  /* 信頼性カード内の小さい添えイラスト（位置6：アイコン単体） */
  .trust-card__illustration { margin-top: var(--space-3); }
  .trust-card__illustration svg { width: 72px; height: auto; }
  /* 信頼性カード内の詳細イラスト（人物が入るタイプ：やや大きめに表示） */
  .trust-card__illustration--large svg { width: 100%; max-width: 190px; }

  /* ============================================================
     4. しくみ（署名ビジュアル：往復して一致する台帳タイムライン）
     ============================================================ */
  .ledger-timeline { position: relative; margin-top: var(--space-2); }
  .ledger-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 52px 1fr;
    column-gap: var(--space-3);
    padding-block: var(--space-3);
  }
  /* マーカー中心から自分の下端まで：最後のステップには付けない（線が突き抜けないように） */
  .ledger-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%; top: 42px; bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background-image: repeating-linear-gradient(to bottom, var(--border-strong) 0 6px, transparent 6px 13px);
  }
  /* 自分の上端からマーカー中心まで：最初のステップには付けない */
  .ledger-step:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 50%; top: 0; height: 42px;
    width: 2px;
    transform: translateX(-50%);
    background-image: repeating-linear-gradient(to bottom, var(--border-strong) 0 6px, transparent 6px 13px);
  }
  .ledger-step--both::before { height: 48px; }
  .ledger-step__marker {
    position: relative;
    z-index: 1;
    grid-column: 2;
    justify-self: center;
    align-self: start;
    margin-top: 2px;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-weight: 600; font-size: 1rem;
    background: var(--surface);
    border: 2px solid var(--blue-tint);
    color: var(--blue);
  }
  .ledger-step__card { grid-column: 1; text-align: right; }
  .ledger-step--vendor .ledger-step__card { grid-column: 3; text-align: left; }
  .ledger-step--vendor .ledger-step__marker { border-color: var(--green-soft); color: var(--green-dark); }
  .ledger-step--both .ledger-step__card { grid-column: 1 / -1; text-align: center; }
  .ledger-step--both .ledger-step__marker {
    width: 52px; height: 52px;
    background: var(--green);
    color: #ffffff;
    border: none;
  }
  .ledger-step__lane { display: inline-block; margin-bottom: 0.35em; }
  .ledger-step--both .ledger-step__lane { display: none; }
  .ledger-step h3 { font-size: 1.1rem; margin-bottom: 0.2em; }
  .ledger-step p { font-size: 0.92rem; color: var(--ink-soft); max-width: 30em; }
  .ledger-step--buyer .ledger-step__card > * { margin-left: auto; }
  .ledger-step--both p { max-width: 34em; margin-inline: auto; }

  @media (max-width: 640px) {
    .ledger-step:not(:last-child)::after,
    .ledger-step:not(:first-child)::before { left: 20px; }
    .ledger-step:not(:last-child)::after { top: 40px; }
    .ledger-step:not(:first-child)::before { height: 40px; }
    .ledger-step--both::before { height: 42px; }
    .ledger-step { grid-template-columns: 40px 1fr; column-gap: var(--space-2); }
    .ledger-step__marker { grid-column: 1; width: 36px; height: 36px; font-size: 0.9rem; }
    .ledger-step__card,
    .ledger-step--vendor .ledger-step__card,
    .ledger-step--both .ledger-step__card {
      grid-column: 2; text-align: left;
    }
    .ledger-step--buyer .ledger-step__card > * { margin-left: 0; }
    .ledger-step--both .ledger-step__marker { width: 40px; height: 40px; }
  }

  .screenshot-slot {
    margin-top: var(--space-6);
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-m);
    padding: var(--space-6) var(--space-4);
    text-align: center;
    color: var(--ink-faint);
    background: var(--bg-subtle);
  }
  .screenshot-slot .icon { margin-inline: auto; width: 34px; height: 34px; stroke: var(--ink-faint); }
  .screenshot-slot p { margin-top: var(--space-2); font-size: 0.9rem; }
  .screenshot-slot strong { display: block; color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 0.3em; }

  /* 画像差し込み位置のマーカー（種別・優先度・推奨サイズを併記する拡張版） */
  .screenshot-slot--marker { margin-top: 0; text-align: left; padding: var(--space-4); }
  .screenshot-slot__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); }
  .screenshot-slot__type { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); }
  .badge { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 700; padding: 0.25em 0.7em; border-radius: 999px; white-space: nowrap; }
  .badge--required { background: var(--surface-tint-red); color: var(--red-dark); }
  .badge--optional { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--border-strong); }

  /* 実際に組み込むスクリーンショット */
  .product-shot {
    margin: 0;
    border-radius: var(--radius-m);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px -24px rgba(17, 24, 39, 0.25);
  }
  .product-shot img { width: 100%; height: auto; display: block; }
  .product-shot--doc { max-width: 420px; margin-inline: auto; box-shadow: 0 16px 32px -20px rgba(17, 24, 39, 0.22); }
  .product-shot-item { margin: 0; }
  .product-shot-item figcaption {
    margin-top: var(--space-2);
    text-align: center;
    font-size: 0.85rem;
    color: var(--ink-soft);
  }

  /* ヒーロー：ノートPC風フレーム＋案内イラスト */
  .hero__visual { position: relative; margin: 0; }
  .laptop-frame {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 24px 48px -26px rgba(17, 24, 39, 0.28);
  }
  .laptop-frame__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.7em 0.9em;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
  }
  .laptop-frame__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
  .laptop-frame__screen { line-height: 0; }
  .laptop-frame__screen img { width: 100%; height: auto; display: block; }
  .laptop-frame__base {
    height: 12px;
    margin: 0 6%;
    background: linear-gradient(180deg, var(--border-strong), var(--border));
    border-radius: 0 0 10px 10px;
  }
  .hero__guide {
    position: absolute;
    right: -6%;
    bottom: -34%;
    width: 30%;
    max-width: 132px;
    filter: drop-shadow(0 14px 20px rgba(17, 24, 39, 0.18));
    z-index: 2;
  }
  .hero__guide svg { width: 100%; height: auto; display: block; }
  @media (max-width: 640px) {
    .hero__guide { width: 24%; right: -4%; bottom: -24%; }
  }
  .screenshot-slot--marker strong { font-size: 1rem; }
  .screenshot-slot--marker p { text-align: left; }
  .screenshot-slot__size { margin-top: var(--space-2); font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint); }
  .screenshot-slot-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; margin-top: var(--space-6); }
  @media (min-width: 760px) { .screenshot-slot-grid { grid-template-columns: 1fr 1fr; } }
  .screenshot-slot-grid .screenshot-slot--marker { margin-top: 0; }

  /* ============================================================
     5. 特徴一覧（本体ホーム画面と同じリスト型カードを使う）
     ============================================================ */
  .feature-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
  @media (min-width: 760px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
  .list-row__check { width: 20px; height: 20px; stroke: var(--green); stroke-width: 2.4; fill: none; flex-shrink: 0; }

  /* ============================================================
     開発者ストーリー（特徴一覧と信頼性の間）
     .contact-panel を参考にした2カラム。ただしこちらは本文が主役
     なので比率を逆（本文広め・ビジュアル狭め）にする
     ============================================================ */
  .dev-story-panel { display: grid; gap: var(--space-6); }
  @media (min-width: 900px) { .dev-story-panel { grid-template-columns: 1fr 280px; align-items: start; } }
  .dev-story-body { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); max-width: 38em; }
  .dev-story-body p { color: var(--ink-soft); font-size: 1rem; }

  /* 開発者ストーリーの写真（位置4）：控えめなプロフィール写真サイズに固定 */
  .dev-story-photo {
    margin: 0;
    width: 100%;
    max-width: 220px;
  }
  @media (min-width: 900px) { .dev-story-photo { justify-self: end; } }
  .dev-story-photo__frame {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-m);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-subtle);
  }
  .dev-story-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
  }
  .dev-story-photo figcaption {
    padding: var(--space-2) 0.1em 0;
    text-align: center;
  }
  /* 氏名は検索エンジンに文字として拾われないよう画像化している（下のimg参照） */
  .dev-story-photo__name {
    display: block;
    margin: 0 auto;
  }
  .dev-story-photo figcaption .role {
    display: block;
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin-top: 0.15em;
  }

  /* ============================================================
     6. 信頼性・保存要件
     ============================================================ */
  /* minmax(0, 1fr)：長い札の文でカードが画面幅を押し広げないように（スマホ幅で1pxはみ出していた） */
  .trust-grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 800px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
  .trust-card { padding-top: var(--space-3); border-top: 3px solid var(--blue); }
  .trust-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: var(--space-2); color: var(--ink); }
  .trust-card p { font-size: 0.94rem; color: var(--ink-soft); }
  .trust-card .figure {
    max-width: 100%;
    flex-wrap: wrap;
    display: inline-flex;
    align-items: center;
    margin-top: var(--space-3);
    padding: 0.35em 0.9em;
    border-radius: 999px;
    background: var(--surface-tint-blue);
    border: 1px solid var(--blue-tint);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blue-dark);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .trust-card .screenshot-slot--marker { margin-top: var(--space-3); }

  /* ============================================================
     7. FAQ
     ============================================================ */
  .faq-list { display: flex; flex-direction: column; gap: var(--space-2); max-width: 46rem; }
  .faq-item { border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface); overflow: hidden; }
  .faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    font-weight: 700;
    font-size: 1rem;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    content: "";
    flex-shrink: 0;
    width: 12px; height: 12px;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }
  .faq-item[open] summary::after { transform: rotate(-135deg); }
  @media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
  .faq-item__body { padding: 0 var(--space-4) var(--space-4); color: var(--ink-soft); font-size: 0.95rem; }

  /* ============================================================
     付録：マンガギャラリー
     ============================================================ */
  .appendix { background: var(--bg-subtle); border-top: 1px solid var(--border); }
  .appendix .kicker { color: var(--ink-faint); }
  .appendix .section-head p { color: var(--ink-soft); }
  .manga-carousel {
    position: relative;
    margin-top: var(--space-5);
    max-width: 560px;
    margin-inline: auto;
  }
  .manga-track { position: relative; }
  .manga-panel {
    margin: 0;
    border-radius: var(--radius-m);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 12px 28px -20px rgba(17, 24, 39, 0.25);
    display: none;
  }
  .manga-panel.is-active { display: block; }
  .manga-panel img { width: 100%; height: auto; display: block; }
  .manga-panel figcaption {
    display: flex; align-items: center; gap: 0.5em;
    padding: 0.6em 0.9em;
    font-size: 0.78rem; font-weight: 700; color: var(--ink-faint);
    font-family: var(--font-mono);
    border-top: 1px solid var(--border);
  }
  .manga-nav {
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-3);
  }
  .manga-nav__btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
  }
  .manga-nav__btn:hover { background: var(--surface-tint-blue); border-color: var(--blue-tint); }
  .manga-nav__btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
  .manga-nav__btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .manga-nav__count { font-family: var(--font-mono); font-size: 0.88rem; color: var(--ink-soft); min-width: 4.5em; text-align: center; }
  .manga-hint { margin-top: var(--space-3); font-size: 0.85rem; color: var(--ink-faint); text-align: center; }

  /* ============================================================
     8. 問い合わせフォーム
     ============================================================ */
  .contact-panel { display: grid; gap: var(--space-6); }
  @media (min-width: 900px) { .contact-panel { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
  .contact-note { font-size: 0.94rem; color: var(--ink-soft); }
  .contact-note ul { margin-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
  .contact-note li { display: flex; gap: 0.6em; align-items: baseline; }
  .contact-note li::before { content: "―"; color: var(--blue); flex-shrink: 0; }

  .form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: var(--space-4);
  }
  .field { margin-bottom: var(--space-3); }
  .field label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 0.4em; }
  .field .optional { font-weight: 500; color: var(--ink-faint); font-size: 0.8rem; margin-left: 0.4em; }
  .field input, .field textarea {
    width: 100%;
    font: inherit;
    font-size: 0.98rem;
    padding: 0.75em 0.9em;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-s);
    background: var(--bg);
    color: var(--ink);
  }
  .field input:focus, .field textarea:focus { border-color: var(--blue); }
  .field textarea { resize: vertical; min-height: 7.5em; }
  /* ご相談の立場（発注元／仕入先）。ヒーローの入口と同じ2択にそろえる */
  fieldset.field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
  fieldset.field legend { padding: 0; font-size: 0.88rem; font-weight: 700; margin-bottom: 0.4em; }
  .role-choice { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .role-choice label {
    display: inline-flex; align-items: center; gap: 0.5em;
    margin: 0;
    padding: 0.55em 0.9em;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-s);
    font-weight: 600;
    cursor: pointer;
  }
  .field .role-choice input { width: auto; padding: 0; margin: 0; accent-color: var(--blue); }
  .role-choice label:has(input:checked) { border-color: var(--blue); background: var(--surface-tint-blue); }
  .form-actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }
  .form-status {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--blue);
  }
  .form-status[hidden] { display: none; }

  /* ============================================================
     フッター
     ============================================================ */
  .form-privacy { font-size: 0.85rem; color: var(--ink-soft); margin-top: var(--space-2); }
  .form-privacy a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

  .site-footer { border-top: 1px solid var(--border); padding-block: var(--space-4); }
  .site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
  .site-footer nav { display: flex; gap: var(--space-4); flex-wrap: wrap; }
  .site-footer a { font-size: 0.88rem; color: var(--ink-soft); text-decoration: none; }
  .site-footer a:hover { color: var(--blue); }
  .site-footer small { color: var(--ink-faint); font-size: 0.82rem; }

  .visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
  }

  /* ============================================================
     3ページ構成（トップ／発注元／仕入先）のための部品（2026-09-30）
     ============================================================ */
  /* ヘッダーの「発注元の方／仕入先の方」。スマホ幅ではロゴとボタンの下の2段目に置く */
  .site-header .wrap { flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
  .site-nav { display: flex; gap: var(--space-1); order: 3; width: 100%; justify-content: center; }
  .site-nav a {
    font-size: 0.85rem; font-weight: 700; text-decoration: none;
    padding: 0.35em 0.9em; border-radius: 999px; color: var(--ink-soft);
    border: 1px solid transparent;
  }
  .site-nav a:hover { color: var(--ink); background: var(--bg-subtle); }
  .site-nav__buyer[aria-current="page"] { color: var(--blue); background: var(--surface-tint-blue); border-color: var(--blue-tint); }
  .site-nav__vendor[aria-current="page"] { color: var(--green-dark); background: var(--surface-tint-green); border-color: var(--green-soft); }
  @media (min-width: 960px) {
    .site-nav { order: 0; width: auto; margin-left: auto; }
    .site-nav a { font-size: 0.92rem; }
  }

  /* 発注元・仕入先のページの冒頭 */
  .page-hero { padding-block: var(--space-6); }
  .page-hero--buyer { background: radial-gradient(ellipse 60% 60% at 85% 10%, rgba(66, 98, 255, 0.10), transparent 60%), linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%); }
  .page-hero--vendor { background: radial-gradient(ellipse 60% 60% at 85% 10%, rgba(22, 163, 74, 0.10), transparent 60%), linear-gradient(180deg, #fbfefc 0%, var(--bg) 100%); }
  .page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -0.01em; max-width: 22em; }
  .page-hero__lead { margin-top: var(--space-3); font-size: 1.05rem; color: var(--ink-soft); max-width: 40em; }
  .page-hero__actions { margin-top: var(--space-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
  .page-hero__note { margin-top: var(--space-3); font-size: 0.88rem; color: var(--ink-soft); }

  /* トップの「それぞれの側で」 */
  .sides { display: grid; gap: var(--space-3); }
  @media (min-width: 820px) { .sides { grid-template-columns: 1fr 1fr; } }
  .side-card {
    display: flex; flex-direction: column; gap: var(--space-2);
    padding: var(--space-4); background: var(--surface);
    border: 1px solid var(--border); border-top: 5px solid var(--blue);
    border-radius: var(--radius-m); text-decoration: none; color: var(--ink);
  }
  .side-card--vendor { border-top-color: var(--green); }
  .side-card:hover { border-color: var(--blue-tint); border-top-color: var(--blue); }
  .side-card--vendor:hover { border-color: var(--green-soft); border-top-color: var(--green); }
  .side-card__who { font-size: 1.2rem; font-weight: 700; color: var(--blue-dark); }
  .side-card--vendor .side-card__who { color: var(--green-dark); }
  .side-card ul { display: flex; flex-direction: column; gap: 0.35em; flex: 1; }
  .side-card li { display: flex; gap: 0.6em; align-items: baseline; font-size: 0.95rem; }
  .side-card li::before { content: "―"; color: var(--blue); flex-shrink: 0; }
  .side-card--vendor li::before { color: var(--green); }
  .side-card .route__go { color: var(--blue); }
  .side-card--vendor .route__go { color: var(--green-dark); }

  /* プランの札（押せないので枠線・太字にしない） */
  .plan-tag {
    display: inline-block; vertical-align: 0.1em; margin-left: 0.4em;
    font-size: 0.72rem; font-weight: 500; color: var(--ink-soft);
    background: var(--bg-subtle); padding: 0.15em 0.6em; border-radius: 999px;
    white-space: nowrap;
  }

  /* 仕入先の困りごと（困りごと→解決を1組ずつ） */
  .pain-pairs { display: grid; gap: var(--space-3); }
  @media (min-width: 820px) { .pain-pairs { grid-template-columns: 1fr 1fr; } }
  .pain-pair {
    display: flex; flex-direction: column; gap: var(--space-3);
    padding: var(--space-4); background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-m);
  }
  .pain-pair .list-row__body p strong { color: var(--green-dark); }

  /* 仕入先の始め方（招待された／自分から） */
  .start-path { margin-bottom: var(--space-3); }
  .start-path h3 { font-size: 1.15rem; margin-bottom: 0.35em; }
  .start-path p:not(.plan-term__label) { font-size: 0.95rem; color: var(--ink-soft); }
  .start-path--invited {
    padding: var(--space-4); background: var(--surface-tint-green);
    border: 1px solid var(--green-soft); border-radius: var(--radius-m);
    margin-bottom: var(--space-5);
  }
  .start-path--invited h3 { color: var(--green-dark); }

  /* 料金の考え方（2つ並べる） */
  .plan-terms--two { max-width: none; }
  @media (min-width: 820px) { .plan-terms--two { grid-template-columns: 1fr 1fr; } }
  .plan-note { margin-top: var(--space-3); font-size: 0.92rem; color: var(--ink-soft); }

  .cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-3); }

  /* 見出しは日本語の文節で折り返す（「それ／ぞれ」のような切れ方をさせない）。
     対応していないブラウザでは、これまでどおりの折り返しになる */
  h1, h2, h3, .route__title { word-break: auto-phrase; }

  /* 発注元・仕入先のページの冒頭：文と、右に画面（発注元は実画面、仕入先は見本） */
  .page-hero .wrap { display: grid; gap: var(--space-5); align-items: center; }
  @media (min-width: 960px) { .page-hero .wrap { grid-template-columns: 1.05fr 0.95fr; } }
  .page-hero .hero__visual { margin-right: 6%; margin-bottom: var(--space-5); }

  /* 仕入先の「受注の一覧」の見本（実在の取引ではない） */
  .vendor-mock {
    margin: 0; background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--radius-m); overflow: hidden;
    box-shadow: 0 24px 48px -28px rgba(17, 24, 39, 0.4);
  }
  .vendor-mock__bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--space-2) var(--space-3); background: var(--bg-subtle);
    border-bottom: 1px solid var(--border); font-weight: 700; font-size: 0.92rem;
  }
  .vendor-mock__bar span { font-weight: 500; font-size: 0.75rem; color: var(--ink-faint); }
  .vendor-mock__row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--space-2);
    align-items: center; padding: 0.7em var(--space-3); font-size: 0.9rem;
  }
  .vendor-mock__row + .vendor-mock__row { border-top: 1px solid var(--border); }
  .vendor-mock__who { font-weight: 700; }
  .vendor-mock__who small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.78rem; }
  .vendor-mock__date { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); }
  .vendor-mock__tag { font-size: 0.75rem; font-weight: 600; padding: 0.2em 0.7em; border-radius: 999px; white-space: nowrap; }
  .vendor-mock__tag--todo { background: #fff7ed; color: #9a3412; }
  .vendor-mock__tag--done { background: var(--surface-tint-green); color: var(--green-dark); }
  .vendor-mock__tag--info { background: var(--surface-tint-blue); color: var(--blue-dark); }
  .vendor-mock figcaption { padding: var(--space-2) var(--space-3); font-size: 0.78rem; color: var(--ink-soft); background: var(--bg-subtle); border-top: 1px solid var(--border); }

  /* Before／After の説明を、人物の頭の上の考えごとの吹き出しにする（2026-09-30）。
     説明はイラストの上に置き、吹き出しの下から頭へ小さな丸を2つ並べる */
  .before-after__item { display: flex; flex-direction: column; align-items: center; }
  .before-after__item figcaption { order: -1; margin-top: 0; margin-bottom: 1.6rem; display: flex; flex-direction: column; align-items: center; }
  .before-after__item figcaption strong { margin-bottom: 0.5em; }
  .thought {
    position: relative;
    display: block;
    max-width: 23em;
    padding: 0.85em 1.2em;
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: 1.6em;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.6;
    text-wrap: pretty;
    word-break: auto-phrase;
  }
  .thought::before, .thought::after {
    content: "";
    position: absolute;
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: 50%;
  }
  .thought::before { width: 12px; height: 12px; left: 50%; bottom: -18px; transform: translateX(-2px); }
  .thought::after { width: 7px; height: 7px; left: 50%; bottom: -29px; transform: translateX(6px); }
  .before-after__item--before .thought { background: var(--surface-tint-red); }
  .before-after__item--before .thought::before, .before-after__item--before .thought::after { background: var(--surface-tint-red); }
  .before-after__item--after .thought { background: var(--surface-tint-green); }
  .before-after__item--after .thought::before, .before-after__item--after .thought::after { background: var(--surface-tint-green); }

  /* Before と After の枠を同じ高さにし、人物を下端でそろえる */
  .before-after { align-items: stretch; }
  .before-after__arrow { align-self: center; }
  .before-after__item { justify-content: flex-end; }
