/* 案件固有のスタイル。型(styles.css)は編集禁止 — 上書きはすべてここに書く。
   読み込み順は styles.css → custom.css なので、同じセレクタ/変数はこちらが勝つ。
   yashiro.ai（大和ViSiON 初伝を売る頁）。FV は B（主君の答え・帳簿 11374）。数値は Codex の見立て 2 節（本文 17/1.85・H1 48・H2 32・H3 22・ボタン 56・最大幅 1120・節の上下 88/56）に合わせた */

:root {
  --mold-version: 9;
  /* font-preset: serene */
  --lh-body: 1.85;
  --lh-display: 1.35;
  --ls-en: .10em;
  --ls-body: .02em;
  --ls-display: .04em;
  --fw-strong: 600;
  --fw-body: 400;
  --fw-display: 500;
  --font-en: "Cormorant Garamond", serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-display: "Zen Old Mincho", serif;
  /* 配色: 朱・墨・紙（今の見本の値＝YASHIRO のブランドの根に値が無い） */
  --ink: #1C1A17;
  --muted: #625D56;
  --paper: #FBFAF8;
  --soft: #F3EFE8;
  --line: #DED9D1;
  --gold: #B8322A;
  --shu: #B8322A;
  --shu-deep: #9E2A23;
  --content-max: 1120px;
  --pad-x: max(20px, calc((100vw - var(--content-max)) / 2));
}

body { font-size: 17px; line-height: var(--lh-body); color: var(--ink); background: var(--paper); }
a { color: inherit; }
main p a:not(.btn), main td a, main li a:not(.btn), main .note a { color: var(--shu-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 90; background: #fff; padding: 6px 10px; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 2px; }
.sp { display: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { font-size: 14px; line-height: 1.7; color: var(--muted); }
h2 { font-size: clamp(26px, 2.3vw, 32px); font-weight: 700; line-height: 1.45; letter-spacing: .03em; }
h3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; line-height: 1.5; letter-spacing: .02em; }
.eyebrow { color: var(--shu); font-family: var(--font-en); font-size: 15px; letter-spacing: .14em; margin-bottom: 14px; }
.eyebrow::before { background: var(--shu); }

/* ── ボタン（主＝朱・副＝白地に墨の枠。高さ 56） ── */
.btn { min-height: 56px; padding: 0 56px 0 28px; font-size: 16px; font-weight: 600; letter-spacing: .06em; border-radius: 6px; }
.btn svg { right: 18px; width: 26px; }
.btn--primary { background: var(--shu); border-color: var(--shu); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--shu-deep); border-color: var(--shu-deep); }
.btn--ghost { background: #fff; color: var(--ink); border-color: #CFC8BD; }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 32px; }

/* ── ヘッダー（下層＝固定・紙の地／トップ＝写真の上に重ね、下ると固定に変わる） ── */
.site-header { height: 72px; padding: 0 clamp(16px, 3vw, 40px); background: rgba(251, 250, 248, .94); border-bottom: 1px solid rgba(28, 26, 23, .08); }
.brand { gap: 10px; }
.brand__mark { width: 36px; height: 36px; color: inherit; }
.brand__text { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .04em; color: var(--ink); }
.nav { font-family: var(--font-body); font-size: 15px; font-weight: 600; gap: clamp(20px, 2.4vw, 40px); align-items: center; }
.nav a[aria-current] { color: var(--shu); }
.nav a:hover, .nav a:focus-visible { color: var(--shu); }
.nav-overlay nav { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; }
.nav-overlay__info p { color: var(--muted); }
.crumbs { padding: 88px var(--pad-x) 0; font-size: 13px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "／"; margin-right: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.sticky-cta { background: var(--shu); border-radius: 6px; font-weight: 600; letter-spacing: .04em; }

/* ── ヒーロー（ルート A: fv-bg.jpg を全面に敷き、消した座標に HTML を置く・座標は fv-bg.json の % ） ── */
.is-top .hero { padding-top: 0; background: var(--paper); }
.hero__stage { position: relative; aspect-ratio: 1376 / 768; background: url('/assets/fv-bg.jpg') center / cover no-repeat; }
.hero__copy [data-reveal].is-visible { transform: none; } /* 型は .hero__copy [data-reveal] が後に書かれていて、現れた後も 42px 下にずれたまま残る */
.hero__photo-wrap { display: none; }
.hero__photo { width: 100%; height: auto; aspect-ratio: 816 / 580; }
.hero__vertical { position: absolute; left: 3.9%; top: 13.6%; margin: 0; writing-mode: vertical-rl; font-family: var(--font-display); font-weight: 500; color: var(--shu); font-size: 1.32vw; letter-spacing: .32em; line-height: 1; }
.hero__copy { position: absolute; inset: 0; width: auto; display: block; padding: 0; }
.hero__product { display: none; }
.hero h1 { position: absolute; left: 8.1%; top: 25.2%; width: 56%; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 4.9vw; line-height: 1.3; letter-spacing: .02em; color: var(--ink); }
.hero__lead { position: absolute; left: 8.1%; top: 50.6%; width: 36%; max-width: none; margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 1.36vw; line-height: 1.78; letter-spacing: .04em; color: #2A2622; }
.hero .hero__actions { position: absolute; left: 8.4%; top: 63.2%; gap: 1.6vw; }
.hero .btn--primary { min-height: 4.3vw; padding: 0 2.3vw; font-size: 1.3vw; border-radius: .3vw; }
.hero .btn--primary svg { display: none; }
.hero__more { font-weight: 700; font-size: 1.25vw; letter-spacing: .04em; color: #2A2622; text-decoration: none; padding: .6vw 0; }
.hero__more span { display: inline-block; transition: transform .35s var(--ease-out-expo); }
.hero__more:hover span, .hero__more:focus-visible span { transform: translateX(6px); }
.hero__facts { position: absolute; left: 67.2%; top: 84.4%; width: 29.7%; height: 11.3%; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1.25fr 1fr .8fr; align-items: center; background: rgba(70, 64, 58, .58); border: 1px solid rgba(255, 255, 255, .28); border-radius: .5vw; color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero__facts li { display: grid; justify-items: center; gap: .1vw; border-right: 1px solid rgba(255, 255, 255, .3); line-height: 1.2; }
.hero__facts li:last-child { border-right: 0; }
.hero__facts b { font-family: var(--font-display); font-weight: 500; font-size: 2.25vw; letter-spacing: .01em; }
.hero__facts b small { font-size: .5em; margin-left: .15em; }
.hero__facts span { font-size: 1.02vw; font-weight: 600; letter-spacing: .06em; }
.site-header--over { position: absolute; height: 7.4vw; max-height: 140px; padding: 0 3.2vw 0 2.9vw; background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header--over .brand__mark { width: 3.4vw; height: 3.4vw; max-width: 48px; max-height: 48px; }
.site-header--over .brand__text { font-size: 1.85vw; }
.site-header--over .nav { color: #fff; font-size: 1.17vw; gap: 2.2vw; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.site-header--over .nav a:hover { color: #fff; }
.site-header--over.is-stuck { position: fixed; height: 72px; padding: 0 clamp(16px, 3vw, 40px); background: rgba(251, 250, 248, .95); border-bottom: 1px solid rgba(28, 26, 23, .08); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: stuckIn .45s var(--ease-out-expo) both; }
.site-header--over.is-stuck .brand__mark { width: 36px; height: 36px; }
.site-header--over.is-stuck .brand__text { font-size: 22px; }
.site-header--over.is-stuck .nav { color: var(--ink); font-size: 15px; text-shadow: none; }
@keyframes stuckIn { from { transform: translateY(-100%); } to { transform: none; } }

/* ── FV の直下の条件の帯 ── */
.terms-band { padding: 36px var(--pad-x); background: #fff; border-bottom: 1px solid var(--line); }
.terms-band__in { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 28px; align-items: center; }
.terms-band__price { margin: 0; font-size: 18px; word-break: keep-all; }
.terms-band__price b { font-weight: 700; }
.terms-band__note { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.terms-band__link { font-size: 14px; font-weight: 600; color: var(--shu-deep); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

/* ── 節の共通 ── */
.section, .footer { padding: 88px var(--pad-x); }
.section { background: transparent; }
.section:nth-of-type(even) { background: #fff; }
.section__head { max-width: 860px; margin-bottom: 16px; }
.section__head h2 { margin-bottom: 0; }
.section__lead { max-width: 760px; margin: 0 0 36px; font-size: 17px; line-height: 1.85; color: #47423C; }

/* 本物の画面の枠 */
.shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 18px 50px rgba(28, 26, 23, .10); transition: box-shadow .45s var(--ease-out-expo), transform .45s var(--ease-out-expo); }
.shot__open { display: block; }
.shot img { width: 100%; height: auto; }
.shot figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--muted); }
.shot__tag { color: var(--shu-deep); font-weight: 600; }
.shot--wide { margin-top: 40px; }
@media (hover: hover) { .shot:hover { box-shadow: 0 26px 60px rgba(28, 26, 23, .16); transform: translateY(-3px); } }

/* 痛み */
.pain__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pain__card { position: relative; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.section:nth-of-type(even) .pain__card { background: var(--paper); }
.pain__no { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; background: var(--shu); color: #fff; font-weight: 700; font-size: 15px; }
.pain__card h3 { margin-bottom: 10px; }
.pain__card p { margin: 0; font-size: 16px; line-height: 1.85; color: #47423C; }

/* 流れ（左右交互・朱の番号） */
.flow4__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 72px; }
.flow4__row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.flow4__row--rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.flow4__row--rev .flow4__text { order: 2; }
.flow4__num { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%; background: #fff; border: 1px solid var(--shu); color: var(--shu); font-family: var(--font-en); font-size: 20px; font-weight: 600; }
.flow4__text h3 { margin: 0 0 12px; font-size: 24px; }
.flow4__text p { margin: 0; color: #47423C; }
.flow4 .note { margin-top: 40px; }

/* AI */
.ai__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: start; }
.ai__side { display: grid; gap: 16px; }
.ai__item { padding: 22px 24px; border-left: 3px solid var(--shu); background: var(--paper); border-radius: 0 8px 8px 0; }
.section:nth-of-type(odd) .ai__item { background: #fff; }
.ai__item h3 { margin: 0 0 6px; font-size: 18px; }
.ai__item p { margin: 0; font-size: 15px; line-height: 1.8; color: #47423C; }

/* 五つの資産のタブ（左に縦の目次・右に中身。横に 5 つ並べない＝audit_layout の WIDE_ROW） */
.tabs-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.tabs { display: grid; gap: 4px; position: sticky; top: 96px; border-left: 1px solid var(--line); }
.tabs button { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px 0 20px; font: inherit; font-size: 16px; font-weight: 600; text-align: left; color: var(--muted); background: none; border: 0; cursor: pointer; transition: color .3s, background .3s; }
.tabs button small { font-size: 13px; color: var(--muted); font-weight: 400; }
.tabs button::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; background: var(--shu); transform: scaleY(0); transition: transform .35s var(--ease-out-expo); }
.tabs button[aria-selected="true"] { color: var(--ink); background: #fff; }
.tabs button[aria-selected="true"]::before { transform: scaleY(1); }
.tabs button:hover { color: var(--ink); }
.tabpanel { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px; align-items: start; padding: 0; }
.tabpanel[hidden] { display: none; }
.tabpanel .kicker { margin: 0 0 6px; color: var(--shu); font-size: 14px; font-weight: 600; letter-spacing: .08em; }
.tabpanel h3 { margin: 0 0 10px; font-size: 24px; }
.tabpanel__text > p { color: #47423C; }
ul.checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
ul.checks li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.7; font-weight: 600; }
ul.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--shu); border-bottom: 2px solid var(--shu); transform: rotate(-45deg); }
ul.checks li .note { font-weight: 400; font-size: 14px; }

/* 比較の要約 */
.sum__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; }
.sum__card { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sum__card p { margin: 0 0 6px; font-weight: 600; color: var(--muted); }
.sum__card b { display: block; font-family: var(--font-display); font-size: 36px; font-weight: 700; line-height: 1.3; }
.sum__card span { font-size: 14px; color: var(--muted); }
.sum__card--shoden { border: 2px solid var(--shu); }
.sum__card--shoden b { color: var(--shu); }
.replace-sum .note { margin-top: 20px; max-width: 760px; }

/* 向いている人・比べる・ほか */
.fit__grid, .why__grid, .other__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fit__grid--two { grid-template-columns: 1fr 1fr; }
.fit__card, .why__card, .other__card { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.section:nth-of-type(even) .fit__card, .section:nth-of-type(even) .why__card, .section:nth-of-type(even) .other__card { background: var(--paper); }
.fit__card h3, .why__card h3, .other__card h3 { margin: 0 0 8px; }
.fit__card p, .why__card p, .other__card p { margin: 0; font-size: 16px; color: #47423C; }
.fit__note { max-width: 760px; margin: 28px 0 0; color: #47423C; }

/* 料金のカード（1 プランだけ） */
.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 36px; border: 2px solid var(--shu); border-radius: 10px; background: #fff; box-shadow: 0 24px 60px rgba(28, 26, 23, .08); }
.plan .kicker { margin: 0 0 4px; color: var(--shu); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.plan .plan__name { margin: 0 0 8px; font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.4; }
.price { margin: 0; font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.price small { font-family: var(--font-body); font-size: 15px; font-weight: 600; margin-left: 4px; }
.price-sub { margin: 4px 0 20px; font-weight: 600; }
.plan .btn { width: 100%; max-width: 360px; }
.plan .note { margin: 16px 0 0; }
.plan__inc { padding-left: 40px; border-left: 1px solid var(--line); }
.plan__inc-h { margin: 0 0 4px; font-weight: 700; }

/* FAQ */
.faq-list { max-width: 860px; margin: 8px 0 0; }
.faq-list summary { font-size: 17px; font-weight: 600; font-family: var(--font-body); padding: 20px 40px 20px 0; }
.faq-list details p { font-size: 16px; color: #47423C; }
.faq-list summary:hover, .faq-list summary:focus-visible { color: var(--shu); }
.faq .section__head { margin-inline: 0; }

/* 最後の申込 */
.final-cta { background: var(--soft) !important; }
.final-cta__box { max-width: 760px; margin: 0 auto; padding: 48px 40px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.final-cta__seal { width: 56px; height: 56px; margin: 0 auto 12px; }
.final-cta__box h2 { margin-bottom: 8px; font-family: var(--font-display); }
.final-cta__box .price { font-size: 26px; margin-bottom: 8px; }
.final-cta__actions { justify-content: center; margin: 24px 0 16px; }

/* 手引きへの小さな案内 */
.guide-mini { padding-top: 56px; padding-bottom: 56px; }
.guide-mini__in { max-width: 860px; }
.guide-mini h2 { font-size: 22px; }

/* ── 下層の頭 ── */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 24px var(--pad-x) 72px; }
.page-head h1 { margin: 0 0 16px; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3vw, 44px); line-height: 1.35; }
.page-head__lead { margin: 0; max-width: 560px; color: #47423C; }
.page-head__actions { margin-top: 28px; }
.page-head__shot { align-self: center; }
.page-head--narrow { grid-template-columns: 1fr; padding-bottom: 40px; }
.page-head--narrow .page-head__lead { max-width: 760px; }
.page-head--price { grid-template-columns: 1fr; gap: 36px; }
.page-head--price .page-head__lead { max-width: 820px; }
.page-head--price h1 { font-size: clamp(28px, 3vw, 42px); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--pad-x) 32px; }
.toc a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff; text-decoration: none; transition: border-color .3s, color .3s; }
.toc a:hover, .toc a:focus-visible { border-color: var(--shu); color: var(--shu); }
.one__more { max-width: 760px; color: #47423C; }
.feat { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; margin-top: 56px; }
.feat--rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.feat--rev .feat__text { order: 2; }
.feat__text h3 { margin: 0 0 10px; }
.feat__text p { margin: 0; color: #47423C; }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps3 li { padding: 24px 24px 24px 22px; border-left: 3px solid var(--shu); background: #fff; border-radius: 0 8px 8px 0; }
.section:nth-of-type(even) .steps3 li { background: var(--paper); }
.steps3 h3 { margin: 0 0 8px; }
.steps3 p { margin: 0; font-size: 16px; color: #47423C; }
.flow__more { max-width: 760px; margin-top: 28px; color: #47423C; }
ul.proof { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
ul.proof li { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.section:nth-of-type(even) ul.proof li { background: var(--paper); }
ul.proof b { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 24px; font-weight: 700; }
ul.proof span { font-size: 14px; line-height: 1.7; color: #47423C; }
ul.proof + .note { margin-top: 16px; }

/* 期間の流れ */
ol.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
ol.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, var(--shu), rgba(184, 50, 42, .2)); }
ol.timeline li { position: relative; padding: 40px 20px 0 0; }
ol.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--shu); }
.timeline__day { display: block; font-size: 13px; font-weight: 700; color: var(--shu); letter-spacing: .04em; }
ol.timeline h3 { margin: 4px 0 6px; font-size: 18px; }
ol.timeline p { margin: 0; font-size: 15px; line-height: 1.8; color: #47423C; }

/* 表 */
table.t { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; }
table.t caption { text-align: left; font-weight: 700; padding: 0 0 10px; }
table.t th, table.t td { border: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; line-height: 1.75; }
table.t th { width: 30%; background: var(--paper); font-weight: 600; }
table.inc th[scope=col] { width: auto; background: var(--soft); }
.assets5 { margin-top: 36px; }
.slot { display: inline-block; padding: 0 6px; border: 1px dashed var(--shu); border-radius: 4px; background: #FBF1EF; color: var(--shu-deep); font-size: 14px; }

/* 比較表 */
.total { margin: 0 0 24px; padding: 22px 28px; font-size: 18px; line-height: 1.8; background: #fff; border: 2px solid var(--shu); border-radius: 10px; }
.total b { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.total .arrow { margin: 0 12px; color: var(--shu); }
details.rp-open > summary, details.src > summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 10px 0; color: var(--shu-deep); }
.rp-wrap { margin-top: 8px; overflow-x: auto; }
table.rp { font-size: 15px; }
table.rp th[scope=rowgroup] { width: 24%; }
table.rp td.inc { width: 8%; text-align: center; color: var(--shu); font-weight: 700; }
table.rp thead th { background: var(--soft); }
table.rp thead th:last-child { width: 4.5em; white-space: nowrap; }
table.rp .kn { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
table.rp .pick { display: block; font-size: 13px; color: var(--shu-deep); font-weight: 600; }
table.rp .out { color: var(--muted); }
table.rp .m-inc { display: none; }
table.rp td.tl .note { font-size: 13px; }
ol.src-notes { margin: 20px 0 0; padding-left: 1.4em; max-width: 860px; }
ol.src-notes li + li { margin-top: 6px; }
details.src ol { padding-left: 1.6em; word-break: break-all; }

/* 申込の前・特商法 */
.confirm__box, .legal__box { max-width: 800px; }
.confirm__box h2, .legal__box h2 { margin-bottom: 16px; }
.confirm__actions, .legal__actions { margin: 28px 0 14px; }

/* 手引き */
.guide-list__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.guide-card { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.guide-card__meta { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.guide-card h3 a { text-decoration: none; }
.guide-card h3 a:hover { color: var(--shu); }
.guide-card__more { font-weight: 600; color: var(--shu-deep); text-decoration: none; }
ul.soon { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
ul.soon li { padding: 16px 18px; border: 1px dashed #CFC8BD; border-radius: 8px; }
ul.soon b { display: block; }
ul.soon span { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* 記事 */
.article { max-width: 720px; margin: 0 auto; padding: 24px 20px 88px; }
.article__head h1 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3vw, 40px); }
.article__sub { margin: 0 0 12px; font-size: 18px; color: #47423C; }
.byline { font-size: 13px; color: var(--muted); }
.byline a { color: var(--muted); }
.article__toc { margin: 32px 0; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.article__toc p { margin: 0 0 6px; font-weight: 700; }
.article__toc ol { margin: 0; padding-left: 1.4em; }
.prose h2 { margin: 48px 0 14px; font-size: 26px; }
.prose p, .prose li { font-size: 17px; line-height: 1.9; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose .shot { margin: 24px 0; }
ol.triggers { list-style: none; padding: 0; display: grid; gap: 12px; }
ol.triggers li { padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
ol.triggers b { display: block; color: var(--shu); }
.article__cta { margin-top: 56px; padding: 36px 28px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.article__actions { justify-content: center; margin: 20px 0 12px; }

/* フッター */
.footer { background: #1C1A17; }
.footer__brand img { width: 40px; height: 40px; }
.footer strong { font-family: var(--font-display); letter-spacing: .06em; }
.footer__nav { font-family: var(--font-body); font-size: 14px; letter-spacing: .04em; }
.footer__nav a, .footer__sns a { text-decoration: none; }
.footer__sns a { color: #e7ddd0; }

/* ── タブレットとスマートフォン（≤1040: ヒーローは縦積み・写真は fv-hero.jpg） ── */
@media (max-width: 1040px) {
  .site-header--over { position: fixed; height: 64px; padding: 0 16px; background: rgba(251, 250, 248, .95); border-bottom: 1px solid rgba(28, 26, 23, .08); }
  .site-header--over .brand__mark, .site-header { }
  .site-header--over .brand__mark { width: 32px; height: 32px; }
  .site-header--over .brand__text, .brand__text { font-size: 20px; }
  .site-header { height: 64px; }
  .is-top .hero { padding-top: 64px; }
  .hero__stage { aspect-ratio: auto; background: none; display: flex; flex-direction: column; }
  .hero__photo { aspect-ratio: 816 / 580; }
  .hero__vertical { display: none; }
  .hero__copy { position: static; order: -1; padding: 28px 20px 24px; }
  .hero__product { display: block; margin: 0 0 10px; color: var(--shu); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
  .hero h1 { position: static; width: auto; font-size: clamp(32px, 8.6vw, 52px); line-height: 1.35; margin-bottom: 14px; }
  .hero__lead { position: static; width: auto; font-size: 16px; line-height: 1.8; font-weight: 600; }
  .hero .hero__actions { position: static; margin-top: 20px; flex-direction: column; align-items: stretch; gap: 12px; }
  .hero .btn--primary { min-height: 56px; font-size: 16px; padding: 0 24px; border-radius: 6px; }
  .hero__more { font-size: 15px; text-align: center; padding: 10px 0; }
  .hero__photo-wrap { display: block; width: 100%; }
  .hero__photo-wrap::before { display: none; }
  .hero__facts { position: static; width: auto; height: auto; margin: 0; padding: 14px 8px; border-radius: 0; background: #2E2A26; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero__facts b { font-size: 24px; }
  .hero__facts span { font-size: 12px; }
  .crumbs { padding-top: 80px; }
  .terms-band__in { grid-template-columns: 1fr; }
  .pain__grid, .fit__grid, .why__grid, .other__grid, .steps3, .guide-list__grid { grid-template-columns: 1fr 1fr; }
  .ai__grid, .tabpanel, .plan, .page-head, .feat, .flow4__row, .tabs-wrap { grid-template-columns: 1fr; }
  .tabs { position: static; grid-template-columns: 1fr 1fr; border-left: 0; }
  .tabs button { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  .tabs button[aria-selected="true"] { border-color: var(--shu); }
  .tabs button::before { display: none; }
  .tabpanel { grid-column: 1; grid-row: auto; }
  .feat--rev .feat__text, .flow4__row--rev .flow4__text { order: 0; }
  .plan__inc { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px solid var(--line); }
  ul.proof { grid-template-columns: 1fr 1fr; }
  ol.timeline { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  ol.timeline::before { display: none; }
}
@media (max-width: 767px) {
  body { font-size: 16px; line-height: 1.8; }
  .sp { display: inline; }
  .section, .footer { padding: 56px 20px; }
  .crumbs { padding-left: 20px; padding-right: 20px; }
  .section__lead { font-size: 16px; margin-bottom: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  .pain__grid, .fit__grid, .fit__grid--two, .why__grid, .other__grid, .steps3, .guide-list__grid, .sum__cards, ul.proof { grid-template-columns: 1fr; }
  .pain__card, .fit__card, .why__card, .other__card, .sum__card, .plan { padding: 24px; }
  .page-head { padding: 16px 20px 48px; gap: 28px; }
  .toc { padding: 0 20px 24px; }
  .flow4__row { gap: 20px; }
  .flow4__list { gap: 48px; }
  .btn { width: 100%; }
  .go .btn, .hero__actions .btn { width: 100%; }
  .final-cta__box { padding: 36px 20px; }
  .final-cta__actions { flex-direction: column; align-items: stretch; }
  .price { font-size: 34px; }
  .total { padding: 18px; font-size: 16px; }
  .total b { font-size: 24px; }
  ol.timeline { grid-template-columns: 1fr; border-left: 2px solid var(--shu); padding-left: 20px; }
  ol.timeline li { padding: 0 0 0 4px; }
  ol.timeline li::before { left: -30px; top: 4px; }
  table.t th, table.t td { display: block; width: 100%; }
  table.t th { border-bottom: 0; }
  table.rp, table.rp thead, table.rp tbody, table.rp tr, table.rp th, table.rp td { display: block; width: 100%; }
  table.rp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.rp tbody { margin-top: 12px; }
  table.rp th[scope=rowgroup] { width: 100%; border-bottom: 0; background: var(--soft); }
  table.rp td { border-top: 0; }
  table.rp td.inc { display: none; }
  table.rp .m-inc { display: block; font-size: 13px; color: var(--shu); }
  table.rp td.tl { border-bottom: 0; padding-bottom: 2px; }
  table.rp td.pr { padding-top: 2px; }
  .article { padding: 16px 20px 56px; }
}

/* 動きを減らす設定（output-contracts.md の標準ブロック・移動は止めてフェードは残す） */
@media (prefers-reduced-motion: reduce) {
  /* 動き(移動・拡大・拭き上げ)は止めるが、opacityのフェードは残す。パッと出さない */
  html [data-reveal] {
    transform: none !important;
    clip-path: none !important;
    transition: opacity .6s ease !important;
  }
  .hero__ambient { display: none; }
  .marquee__inner { animation-duration: 55s; }
  .site-header--over.is-stuck { animation: none; }
}

/* 命グループの帯（正本 _共通/帯.html v1.2.1 の中身は変えない）。この頁では 1 行に 5 つ並べず 3 列までにする（audit_layout の WIDE_ROW） */
.mg-band .mg-band__list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.shot__sp { display: none; font-weight: 400; color: var(--muted); }
@media (max-width: 600px) { .shot__sp { display: inline; } }

/* ヘッダーの申込のボタン（下層は常に・トップは写真の上では出さず、固定に変わってから＝カンプに無い物を写真の上に足さない） */
.nav a.header-cta { min-height: 44px; padding: 0 18px; font-size: 14px; color: #fff; background: var(--shu); border-color: var(--shu); } /* 型の .nav a の下線（background の一括指定）が地の色を消すので上書き */
.nav a.header-cta:hover, .nav a.header-cta:focus-visible { color: #fff; background: var(--shu-deep); border-color: var(--shu-deep); }
.site-header--over .header-cta { display: none; }
.site-header--over.is-stuck .header-cta { display: flex; }

/* スマホのヘッダーの申込（≤1040 は案内が畳まれるので、ロゴとメニューの間に小さく 1 つ・G19＝最初の画面に押す物） */
.header-cta-sp { display: none; }
@media (max-width: 1040px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .header-cta-sp { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 6px; background: var(--shu); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
}

/* FV の出方（load を待たずに CSS だけで出す＝遅い回線や画像待ちでも見出しと押す物が消えたまま残らない）。順は motion-direction-lock.md の FV load sequence */
.hero__lead { animation: heroUp .8s var(--ease-out-expo) .5s both; }
.hero .hero__actions { animation: heroUp .8s var(--ease-out-expo) .62s both; }
.hero__facts { animation: heroFade .9s var(--ease-out-expo) .75s both; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__lead, .hero .hero__actions { animation-name: heroFade; } }

/* 横から出る reveal（right）が出る前の 36px が画面の外へはみ出し、スマホで頁の幅が 406px に広がった（G20）＝本文の横だけ切る（clip はスクロールの箱を作らない） */
main { overflow-x: clip; }
/* 下層のヘッダーは頁と一緒に流れる（前の版と同じ。申込のボタンが頁の頭に在る＝SaaS の門 S14・F14）。スマホは追従の帯が押す物を持つ */
.is-lower .site-header { position: absolute; }
