/* SaberLens 公開サイト（LP・お問い合わせ・規約類・404）— 自己完結のスタイル。ライト表示のみ（ダークモードは持たない）。
   値はアプリ（Claude案/css/tokens.css・docs/DESIGN_SYSTEM.md）と LIQUID_GLASS_DESIGN.md に合わせた。アプリの CSS は読み込まない。
     角丸: 22（カード）/ 14（カード内の面）/ 12（操作）/ pill ＋端末の枠 40・画面 32（画像）
     影:   --shadow-card（カード）/ --shadow-float（端末・メニュー）＋ヘッダーのスクロール時の縁（§14）
     太さ: 400 本文 / 600 補足・ラベル / 650 小見出し・ボタン / 700 見出し・価格
     動き: 140ms（押す）/ 220ms（色・メニュー）/ 380ms（現れる）。常に動き続けるものは置かない
     色:   アクセントはティール 1 色。Glass はヘッダーだけ（機能層）
   対応: prefers-contrast: more（iPhone「コントラストを上げる」）/ prefers-reduced-motion / prefers-reduced-transparency */

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --tint: #F4F6F9;
  --surface: #FFFFFF;
  --text: #0B1B2B;
  --text-2: #475565;
  --text-3: #5F6B78;
  --sep: rgba(11, 27, 43, .08);
  --control-border: rgba(11, 27, 43, .5);  /* 入力欄の枠（白の上で 3:1 以上） */
  --border: transparent;                     /* カードの枠（コントラストを上げる設定のときだけ出す） */
  --accent: #00857F;
  --accent-strong: #006B66;
  --accent-deep: #00514D;
  --accent-soft: #E3F4F2;
  --on-accent: #FFFFFF;
  --danger: #A51D1D;
  --danger-soft: #FDEEEE;
  --glass-bg: rgba(255, 255, 255, .8);
  --shadow-card: 0 1px 2px rgba(11, 27, 43, .04), 0 6px 20px rgba(11, 27, 43, .05);
  --shadow-float: 0 1px 3px rgba(0, 0, 0, .06), 0 18px 50px rgba(0, 0, 0, .13);
  --r-card: 22px;
  --r-inner: 14px;
  --r-control: 12px;
  --r-pill: 999px;
  --r-device: 40px;
  --r-screen: 32px;
  --gutter: 16px;
  --maxw: 1120px;
  --header-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --m-fast: 140ms;
  --m-base: 220ms;
  --m-slow: 380ms;
}
/* iPhone「コントラストを上げる」: 文字を濃く、カードに枠線、ガラスは不透明（アプリの屋外モードに合わせる） */
@media (prefers-contrast: more) {
  :root {
    --tint: #EEF1F4;
    --text-2: #243241;
    --text-3: #2F3C4A;
    --sep: rgba(11, 27, 43, .3);
    --control-border: #0B1B2B;
    --border: rgba(11, 27, 43, .45);
    --accent: #006B66;
    --accent-strong: #00514D;
    --glass-bg: rgba(255, 255, 255, .98);
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; line-break: strict;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: .2em; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; }
b, strong { font-weight: 650; }
.num { font-variant-numeric: tabular-nums; }
/* 日本語の改行: 文節で折り返し、最後の行が 1〜2 文字だけにならないように */
h1, h2, h3, h4, p, li, dd, dt, th, td, summary, figcaption, legend, label { word-break: auto-phrase; text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
.ib { display: inline-block; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 100; padding: 10px 16px; background: var(--surface); color: var(--text); border-radius: var(--r-control); box-shadow: var(--shadow-float); }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); box-shadow: none; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(800px + var(--gutter) * 2); }
@media (min-width: 414px) { :root { --gutter: 20px; } }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* 公開前／公開後の切り替え（<html data-launch="soon|live">。index.html の 1 か所だけ変える） */
html[data-launch="soon"] .when-live,
html[data-launch="live"] .when-soon { display: none !important; }

/* 個人プランの出し分け（<html data-individual="off|on">。off でも ?preview=individual なら "preview"。site/README.md）
   off      … 切り替え（.aud-switch）・個人の内容（.when-individual）・切り替えがあるときだけの部品（.aud-only）を出さない＝今までと同じページ
   on/preview … <html data-for="team|individual">（head の小さな script が描く前に決める）で、.when-team／.when-individual の片方を見せる
   .when-preview は ?preview=individual のときだけ（「公開前のプレビュー」の札） */
html:not([data-individual="on"]):not([data-individual="preview"]) :is(.when-individual, .aud-only, .aud-switch),
html:not([data-individual="preview"]) .when-preview,
html:not(.js) .aud-switch { display: none !important; }
html:not([data-for="individual"]) .when-individual:not(.aud-pair > *),
html[data-for="individual"] .when-team:not(.aud-pair > *) { display: none !important; }
/* .aud-pair: チームと個人の 2 つを同じ場所に重ねて、高い方の高さを取る（切り替えても下が動かない）。見せない方は visibility で隠す（読み上げ・Tab にも出ない） */
html:is([data-individual="on"], [data-individual="preview"]) .aud-pair { display: grid; grid-template-columns: minmax(0, 1fr); }
html:is([data-individual="on"], [data-individual="preview"]) .aud-pair > * { grid-area: 1 / 1; transition: opacity var(--m-base) var(--ease-out), visibility 0s; }
html:not([data-for="individual"]) .aud-pair > .when-individual,
html[data-for="individual"] .aud-pair > .when-team { visibility: hidden; opacity: 0; transition: opacity var(--m-base) var(--ease-out), visibility 0s linear var(--m-base); }

/* カードの枠は「コントラストを上げる」ときだけ */
.card, .ps, .plan, .invoice, .tile, .target-list li, .notice { border: 1.5px solid var(--border); }
.plan.is-featured { border: 2px solid var(--accent); }

/* ---------------------------------------------------------------- header（Glass・スクロールしたら縁を出す §14） */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border-bottom: 1px solid transparent; box-shadow: none;
  transition: border-color var(--m-base) var(--ease-out), box-shadow var(--m-base) var(--ease-out);
}
.site-header[data-scrolled="true"] { border-bottom-color: rgba(11, 27, 43, .08); box-shadow: 0 1px 14px rgba(0, 0, 0, .05); }
@media (prefers-contrast: more) { .site-header { border-bottom-color: var(--sep); } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: var(--surface); } }
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.site-header .wrap { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; text-decoration: none; }
.brand img { height: 28px; width: auto; }
@media (min-width: 768px) { .brand img { height: 32px; } }

/* ヘッダーのボタン: スマホは文字だけ（1 画面目に塗りのボタンを 2 つ並べない）、PC は塗り */
.header-cta { background: transparent; color: var(--accent-strong); padding: 0 12px; }
.header-cta:hover { background: var(--accent-soft); }
@media (min-width: 900px) {
  .header-cta { background: var(--accent); color: var(--on-accent); padding: 0 18px; }
  .header-cta:hover { background: var(--accent-strong); }
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: var(--r-control);
  background: transparent; color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
html:not(.js) .nav-toggle { display: none; }
.site-nav ul { list-style: none; display: flex; gap: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 600; border-radius: var(--r-control);
  transition: color var(--m-base), background-color var(--m-base);
}
.site-nav a:hover { color: var(--text); }
@media (max-width: 359.98px) { .site-header .header-cta { display: none; } }
/* ヘッダーの文字リンク: 公開前は「料金」（スマホだけ。PC はナビにある）、公開後は「ログイン」（狭い画面ではメニューの中） */
.header-link {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; flex: none; padding: 0 10px; white-space: nowrap;
  color: var(--accent-strong); font-size: 15px; font-weight: 650; text-decoration: none; border-radius: var(--r-control);
  transition: background-color var(--m-base);
}
.header-link:hover { background: var(--accent-soft); }
.header-login { color: var(--text-2); }
.header-login:hover { color: var(--text); }
@media (min-width: 900px) { .header-pricing { display: none; } }
@media (max-width: 413.98px) { .header-login { display: none; } }
@media (min-width: 414px) { .site-nav .nav-login { display: none; } }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { margin-right: 8px; }
}
/* スマホのメニュー: 220ms でふわっと下りる＋うすい幕（幕は JS が body に足す） */
@media (max-width: 899.98px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px var(--gutter) 16px; background: var(--surface); box-shadow: var(--shadow-float);
    border-radius: 0 0 var(--r-card) var(--r-card);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--m-base) var(--ease-out), transform var(--m-base) var(--ease-out), visibility 0s linear var(--m-base);
  }
  html:not(.js) .site-nav { display: none; }
  .site-header.is-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; }
  .site-nav li + li { border-top: 1px solid var(--sep); }
  .site-nav a { display: flex; min-height: 52px; padding: 0 4px; font-size: 17px; color: var(--text); border-radius: 0; }
}
.site-header.is-open { background: var(--surface); }
.nav-scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(11, 27, 43, .16);
  opacity: 0; visibility: hidden; transition: opacity var(--m-base) var(--ease-out), visibility 0s linear var(--m-base);
}
.nav-scrim.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (min-width: 900px) { .nav-scrim { display: none; } }

/* ---------------------------------------------------------------- buttons & badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  font: inherit; font-size: 16px; font-weight: 650; line-height: 1.3; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--m-fast) var(--ease-out), background-color var(--m-base) var(--ease-out), color var(--m-base) var(--ease-out);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: var(--accent-soft); color: var(--accent-deep); }
.btn-secondary:hover { background: #D2ECE9; }
.btn-light { background: #FFFFFF; color: var(--accent-deep); }
.btn-light:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--accent-strong); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
/* 公開前の申し込みボタン: 押せない表示（リンクにしない・aria-disabled）。薄くしても文字は AA 以上 */
.btn-disabled { background: var(--tint); color: var(--text-2); border-style: dashed; border-color: rgba(11, 27, 43, .2); cursor: not-allowed; }
.btn-disabled:active { transform: none; }
@media (prefers-contrast: more) { .btn-primary, .btn-secondary, .btn-light, .btn-ghost { border-color: var(--text); } .header-cta { border-color: currentColor; } .btn-disabled { border-color: var(--text-2); } }

.badge {
  display: inline-flex; align-items: center; gap: 8px; vertical-align: middle;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 650; line-height: 1.5; white-space: nowrap;
}
.badge-soon { background: var(--accent-soft); color: var(--accent-deep); }
.badge-soon::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--accent); }
@media (prefers-contrast: more) { .badge { outline: 1px solid currentColor; outline-offset: -1px; } }

/* ---------------------------------------------------------------- sections */
.section { padding: 40px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 24px; }
@media (min-width: 768px) { .section-head { margin-bottom: 48px; } }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--accent-strong); letter-spacing: .04em; }
.h2 { font-size: clamp(24px, calc(3.6vw + 12px), 44px); line-height: 1.3; font-weight: 700; letter-spacing: .01em; }
.lead { margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
@media (min-width: 768px) { .lead { margin-top: 16px; font-size: 18px; } }
.note { font-size: 13px; line-height: 1.55; color: var(--text-3); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 24px 0 40px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 78%, rgba(0, 133, 127, .09), transparent 70%), linear-gradient(180deg, #F6F9FA 0%, #FFFFFF 60%);
}
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 768px) {
  .hero { padding: 40px 0 56px; }
  .hero::before { background: radial-gradient(45% 60% at 75% 50%, rgba(0, 133, 127, .09), transparent 70%), linear-gradient(180deg, #F6F9FA 0%, #FFFFFF 70%); }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
}
@media (min-width: 1024px) {
  .hero { padding: 64px 0 88px; }
  .hero .wrap { gap: 48px; }
}
.hero .eyebrow { margin-bottom: 12px; font-size: 15px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 72px); line-height: 1.15; font-weight: 700; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--accent-strong); }
.hero .sub { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--text-2); max-width: 30em; }
.hero .sub strong { color: var(--text); }
@media (min-width: 768px) { .hero .sub { margin-top: 24px; font-size: 18px; } }
@media (min-width: 1024px) { .hero .sub { font-size: 20px; } }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
@media (min-width: 768px) { .cta-row { margin-top: 32px; } }
.cta-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 20px; }
.trust li { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); line-height: 1.55; }
.trust svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
@media (min-width: 768px) { .trust { margin-top: 28px; gap: 8px 20px; } .trust li { font-size: 14px; } }

/* 端末の枠（画像の角丸: 枠 40・画面 32。枠の余白 8 で同心） */
.phone { position: relative; border-radius: var(--r-device); padding: 8px; background: var(--text); box-shadow: var(--shadow-float); }
.phone img { width: 100%; height: auto; border-radius: var(--r-screen); background: var(--tint); }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.device-stage { position: relative; width: min(58vw, 240px); }
@media (min-width: 768px) { .device-stage { width: min(34vw, 380px); } }
/* 止まっているときは傾けない（にじまない）。PC でポインターを動かしたときだけ ±3°（JS） */
.phone-hero { transition: transform var(--m-slow) var(--ease-out); }
.phone-screens {
  list-style: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  border-radius: var(--r-screen); scrollbar-width: none; background: var(--tint);
}
.phone-screens::-webkit-scrollbar { display: none; }
.phone-screens > li { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.phone-screens img { border-radius: 0; }
/* 数字のカード（不透明・動かない） */
.float-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--r-inner); font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-card);
}
.float-chip b { color: var(--accent-strong); font-size: 16px; font-weight: 700; }
.float-chip.c1 { left: -27%; top: 30%; }
.float-chip.c2 { right: -25%; bottom: 26%; }
@media (prefers-contrast: more) { .float-chip { outline: 1.5px solid var(--border); } }
/* 画面の文字に重ならない広さがあるときだけ（PC） */
@media (max-width: 1023.98px) { .float-chip { display: none; } }

/* ページ送りの点（押せる範囲は 44px） */
.dots { display: flex; justify-content: center; }
.dots button { position: relative; width: 44px; height: 44px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.dots button::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: var(--r-pill);
  transform: translate(-50%, -50%); background: rgba(11, 27, 43, .4); transition: width var(--m-base) var(--ease-out), background-color var(--m-base);
}
/* 点は 10px・今のページは長い棒（見て押せると分かる濃さ。2026-10-07） */
.dots button::before { width: 10px; height: 10px; }
.dots button[aria-current="true"]::before { width: 28px; background: var(--accent); }
@media (prefers-contrast: more) { .dots button::before { background: var(--text-3); } .dots button[aria-current="true"]::before { background: var(--accent); } }
.pager { display: flex; align-items: center; gap: 4px; margin-top: 16px; }
.swipe-hint { display: inline-flex; align-items: center; gap: 8px; min-width: 9em; font-size: 14px; font-weight: 600; color: var(--text); }
.swipe-hint svg { width: 18px; height: 18px; color: var(--accent); }
html:not(.js) .dots { display: none; }
/* 画面イメージは 7 枚。320px では点の列（44px × 7）が本文の幅を超えるので、左右の余白まで使う */
@media (max-width: 339px) { .dots { margin-inline: -16px; } }

/* ---------------------------------------------------------------- 2026-10-22 LP の作り直し（スマホ向け。site/README.md の「構成」）
   縦に長かった節を、横スワイプのカード列（.rail）と「押すと開く」（details.disc）にまとめた。
   .rail … スマホは 1 枚が画面の 8 割前後で次の 1 枚の端が見える横スクロール（スナップ）。点（.dots）と、PC ではやじるし（.rail-nav）。
           900px 以上は、枚数の少ない列（課題→解決・AI と選手カード・区分・料金）は普通のグリッドに戻し、主な機能だけ横の列のまま（やじるしつき）。
   .disc … そのほかの機能・請求書払い・個人プランの注意。閉じているときは見出しと 1 行の要約だけ。 */

/* ---- 横スワイプのカード列 */
.rail-wrap { position: relative; }
.rail {
  --rail-pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 340px); gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 6px var(--rail-pad) 20px; scroll-padding-inline: var(--rail-pad);
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.rail-foot { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
.rail-foot .dots { flex-wrap: wrap; margin-inline: -8px; } /* 点が 8 個でも 390px で 1 行に入るように、左右の余白まで使う */
/* やじるし: ポインターのある端末（PC）だけ。スマホはスワイプ */
.rail-nav { display: none; gap: 4px; }
.rail-nav button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow-card); color: var(--accent-deep); cursor: pointer; transition: background-color var(--m-base), opacity var(--m-base); }
.rail-nav button:hover { background: var(--accent-soft); }
.rail-nav button:disabled { opacity: .35; cursor: default; }
.rail-nav button svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { html.js .rail-nav { display: inline-flex; } }
@media (prefers-contrast: more) { .rail-nav button { outline: 1.5px solid var(--text); outline-offset: -1.5px; } }
.rail-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-strong); }
.rail-hint svg { width: 18px; height: 18px; flex: none; }
@media (hover: hover) and (pointer: fine) { .rail-hint { display: none; } }
/* 900px 以上で普通のグリッドに戻す列（.rail-grid を JS ではなく CSS で） */
@media (min-width: 900px) {
  .rail.rail-grid { grid-auto-flow: row; overflow: visible; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); gap: 20px; }
  .rail.rail-grid + .rail-foot { display: none; }
}

/* ---- 押すと開く（details） */
.disc { margin-top: 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); border: 1.5px solid var(--border); }
.disc > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 28px; column-gap: 12px; align-items: center;
  min-height: 64px; padding: 12px 16px 12px 20px; border-radius: var(--r-card);
}
.disc > summary::-webkit-details-marker { display: none; }
.disc > summary > span:first-child { font-size: 16px; line-height: 1.45; font-weight: 650; }
.disc-sub { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.disc > summary::after {
  content: ""; grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: var(--r-pill);
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006B66' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform var(--m-base) var(--ease-out);
}
.disc[open] > summary::after { transform: rotate(45deg); }
.disc > :not(summary) { padding: 0 20px 20px; }
@media (min-width: 768px) { .disc > summary { padding: 14px 24px 14px 28px; } .disc > :not(summary) { padding: 0 28px 28px; } }
.center { text-align: center; }

/* ---- 課題 → 解決（3 枚。900px 以上は 3 列） */
.ps-list { grid-auto-columns: min(84vw, 340px); counter-reset: ps; }
.ps { display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); }
@media (min-width: 768px) { .ps { padding: 24px; gap: 16px; } }
.ps-q { position: relative; padding-left: 36px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.ps-q::before { content: "課題"; position: absolute; left: 0; top: 2px; font-size: 12px; font-weight: 600; line-height: 1.55; color: var(--text-3); }
.ps-a { position: relative; padding: 12px 16px 12px 44px; border-radius: var(--r-inner); background: var(--accent-soft); font-size: 15px; line-height: 1.55; color: var(--text); }
.ps-a::before {
  content: ""; position: absolute; left: 12px; top: 14px; width: 20px; height: 20px; border-radius: var(--r-pill);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.ps-a strong { color: var(--accent-deep); }
@media (prefers-contrast: more) { .ps-a { outline: 1.5px solid var(--border); outline-offset: -1.5px; } }
@media (min-width: 900px) { .rail.ps-list { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); gap: 20px; } .rail.ps-list + .rail-foot { display: none; } }

/* ---- 主な機能（実際の画面つきのカード。チームは 8 枚、個人は 4 枚。PC でも横の列のまま） */
.section-tint .tile { background: var(--surface); box-shadow: var(--shadow-card); }
.tiles { grid-auto-columns: min(78vw, 320px); }
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-card); background: var(--tint); }
.tile-text { padding: 20px 20px 0; }
.tile h3 { font-size: 18px; line-height: 1.35; font-weight: 700; }
.tile p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.tile p strong { color: var(--accent-deep); }
/* 実際の画面の上の部分だけを見せる（下はカードの端で切る） */
.tile-shot { position: relative; height: 230px; margin-top: 16px; overflow: hidden; }
.tile-shot .phone { position: absolute; left: 50%; top: 16px; width: min(64%, 200px); transform: translateX(-50%); box-shadow: none; }
@media (min-width: 1024px) { .tiles { grid-auto-columns: 340px; gap: 20px; } .tile-text { padding: 24px 24px 0; } .tile h3 { font-size: 20px; } .tile p { font-size: 15px; } .tile-shot { height: 280px; } .tile-shot .phone { top: 20px; width: min(66%, 224px); } }
@media (min-width: 1024px) {
  /* PC: 本文と同じ幅の中に収め、端で切る（影のぶんだけ内側に余白） */
  .tiles-wrap { max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 calc(var(--gutter) - 8px); overflow: hidden; }
  .tiles-wrap .rail { --rail-pad: 8px; padding: 8px 8px 20px; }
}
/* 記録 → 集計のモーション（1 枚目。実画面 2 枚のクロスフェード＋タップの波紋＋チップ。JS が .is-play を付けたとき 1 回だけ再生。
   付かないとき（JS なし・動きを減らす）は最後の状態（集計済み）で止まる） */
.tile-demo .tile-shot .phone { top: 44px; }
.demo-screen { position: relative; overflow: hidden; border-radius: var(--r-screen); background: var(--tint); }
.demo-phone .demo-shot { border-radius: 0; }
.demo-shot-record { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.demo-tap {
  position: absolute; left: 50%; top: 78%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8);
  opacity: 0; pointer-events: none;
}
.demo-chip {
  position: absolute; z-index: 2; right: 12px; top: 12px; display: grid; justify-items: start; gap: 2px;
  padding: 8px 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-float);
  font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 1.4; white-space: nowrap;
}
.demo-chip b { color: var(--accent-strong); font-size: 15px; font-weight: 700; }
@media (prefers-contrast: more) { .demo-chip { outline: 1.5px solid var(--border); } }
.demo-lines { display: grid; }
.demo-step { grid-area: 1 / 1; }
.demo-step-1 { opacity: 0; visibility: hidden; }
.demo-replay { position: absolute; z-index: 2; left: 8px; top: 8px; border: 0; padding: 0 12px; min-height: 44px; border-radius: var(--r-pill); background: transparent; color: var(--accent-strong); font: 600 13px/1.5 var(--font); cursor: pointer; }
.demo-replay:hover { background: var(--accent-soft); }
html:not(.js) .demo-replay { display: none; }
@media (prefers-reduced-motion: reduce) { .demo-replay { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .is-play .demo-shot-record { animation: demo-record 5.6s var(--ease-out) both; }
  .is-play .demo-tap { animation: demo-tap 5.6s var(--ease-out) both; }
  .is-play .demo-chip { animation: demo-chip-a 5.6s var(--ease-out) both; }
  .is-play .demo-step-1 { animation: demo-step-a 5.6s var(--ease-out) both; }
  .is-play .demo-step-2 { animation: demo-step-b 5.6s var(--ease-out) both; }
}
@keyframes demo-record { 0%, 38% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes demo-tap {
  0%, 12% { opacity: 0; transform: scale(.5); }
  17% { opacity: .95; transform: scale(.72); }
  30%, 100% { opacity: 0; transform: scale(1.7); }
}
@keyframes demo-chip-a { 0%, 56% { opacity: 0; transform: translateY(8px) scale(.94); } 66%, 100% { opacity: 1; transform: none; } }
@keyframes demo-step-a { 0%, 40% { opacity: 1; visibility: visible; } 50%, 100% { opacity: 0; visibility: hidden; } }
@keyframes demo-step-b { 0%, 46% { opacity: 0; visibility: hidden; } 58%, 100% { opacity: 1; visibility: visible; } }
/* 測定×試合の散布図（7 枚目。SVG。reveal の .is-in で点が順に現れ、傾向線が引かれ、外れた選手に印が付く）。文字は SVG の外の HTML */
.tile-chart .tile-shot { height: auto; padding: 0 16px 16px; overflow: visible; }
.connect-plot { position: relative; padding: 14px 10px 32px; border-radius: var(--r-inner); background: var(--tint); border: 1.5px solid var(--border); }
.connect-plot svg { width: 100%; height: auto; display: block; }
.sc-axis { stroke: rgba(11, 27, 43, .25); stroke-width: 1.5; }
.sc-trend { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; opacity: .45; }
.sc-dot { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.sc-out-dot { fill: #B45309; transform-box: fill-box; transform-origin: center; }
.sc-out-ring { fill: none; stroke: #B45309; stroke-width: 2; opacity: .5; }
.sc-pill { position: absolute; right: 8%; top: 56%; max-width: 86%; padding: 4px 10px; border-radius: var(--r-pill); background: #FBF0DC; color: #6B4A0B; font-size: 12px; font-weight: 650; line-height: 1.5; white-space: nowrap; }
.sc-ax { position: absolute; font-size: 12px; font-weight: 600; color: var(--text-3); line-height: 1.4; }
.sc-ax-x { right: 10px; bottom: 8px; }
.sc-ax-y { left: 10px; top: 6px; }
@media (prefers-contrast: more) { .sc-pill { outline: 1px solid currentColor; outline-offset: -1px; } .sc-axis { stroke: var(--text-2); } }
@media (prefers-reduced-motion: no-preference) {
  html.js [data-chart]:not(.is-in) .sc-dot, html.js [data-chart]:not(.is-in) .sc-out-dot { transform: scale(0); }
  html.js [data-chart]:not(.is-in) .sc-out-ring, html.js [data-chart]:not(.is-in) .sc-pill { opacity: 0; }
  html.js [data-chart]:not(.is-in) .sc-trend { stroke-dasharray: 460; stroke-dashoffset: 460; opacity: 0; }
  .sc-dot, .sc-out-dot { transition: transform 320ms var(--ease-out); }
  .sc-trend { transition: stroke-dashoffset 800ms 760ms var(--ease-out), opacity 200ms 760ms var(--ease-out); stroke-dasharray: 460; stroke-dashoffset: 0; }
  .sc-out-ring { transition: opacity 320ms 1700ms var(--ease-out); }
  .sc-pill { transition: opacity 360ms 1850ms var(--ease-out); }
  .is-in .sc-dot:nth-of-type(1) { transition-delay: 120ms; } .is-in .sc-dot:nth-of-type(2) { transition-delay: 170ms; }
  .is-in .sc-dot:nth-of-type(3) { transition-delay: 220ms; } .is-in .sc-dot:nth-of-type(4) { transition-delay: 270ms; }
  .is-in .sc-dot:nth-of-type(5) { transition-delay: 320ms; } .is-in .sc-dot:nth-of-type(6) { transition-delay: 370ms; }
  .is-in .sc-dot:nth-of-type(7) { transition-delay: 420ms; } .is-in .sc-dot:nth-of-type(8) { transition-delay: 470ms; }
  .is-in .sc-dot:nth-of-type(9) { transition-delay: 520ms; } .is-in .sc-dot:nth-of-type(10) { transition-delay: 570ms; }
  .is-in .sc-dot:nth-of-type(11) { transition-delay: 620ms; } .is-in .sc-dot:nth-of-type(12) { transition-delay: 670ms; }
  .is-in .sc-out-dot { transition-delay: 1560ms; }
}
/* 横の列の中の reveal は、横に隠れていても縦に見えていれば出す（横スクロールで現れたときに動かない方が自然） */
.tile.reveal { opacity: 1; transform: none; }

/* そのほかの機能（details の中の一覧。アイコン＋見出し＋1 行） */
.minis { list-style: none; display: grid; gap: 16px; }
@media (min-width: 640px) { .minis { grid-template-columns: repeat(2, 1fr); gap: 20px 32px; } }
@media (min-width: 900px) { .minis { grid-template-columns: repeat(3, 1fr); } }
.mini { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.mini img { width: 36px; height: 36px; }
.mini h3 { font-size: 15px; line-height: 1.4; font-weight: 650; }
.mini p { margin-top: 2px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
/* 個人で使うときの「チームのみ」の札（.when-individual と一緒に使う。個人プランで使えない機能の見出しの後ろ） */
.tag-team { display: inline-flex; align-items: center; margin-left: 8px; padding: 0 9px; border-radius: var(--r-pill); background: #FFFFFF; color: var(--text-2); box-shadow: inset 0 0 0 1px rgba(11, 27, 43, .24); font-size: 12px; font-weight: 650; line-height: 1.7; letter-spacing: .04em; white-space: nowrap; vertical-align: 2px; }
@media (prefers-contrast: more) { .tag-team { box-shadow: none; outline: 1px solid currentColor; outline-offset: -1px; color: var(--text); } }
/* サンプル導線（主な機能の下・最後の CTA） */
.try-sample { display: grid; justify-items: center; gap: 8px; margin-top: 24px; text-align: center; }
.btn-ghost-light { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, .65); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); }
@media (prefers-contrast: more) { .btn-ghost-light { border-color: #FFFFFF; } }

/* ---- AI と選手カード（2 枚。900px 以上は 2 列） */
.shows { grid-auto-columns: min(88vw, 440px); }
.show-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-card); background: var(--tint); border: 1.5px solid var(--border); }
@media (min-width: 768px) { .show-card { padding: 24px; } }
.show-text h3 { display: flex; align-items: center; gap: 8px; font-size: 20px; line-height: 1.35; font-weight: 700; }
.show-text h3 svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.show-text p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.show-card .note { margin-top: auto; }
/* AI 分析コメントのカード（アプリの ai-card と同じ形） */
.ai-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-inner); background: var(--surface); box-shadow: var(--shadow-card); border: 1.5px solid var(--border); }
.ai-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; line-height: 1.4; }
.ai-head > span { white-space: nowrap; }
.ai-kind { margin-left: auto; padding: 2px 10px; border-radius: var(--r-pill); background: var(--tint); color: var(--text-2); font-size: 12px; font-weight: 600; }
.ai-date { font-size: 13px; line-height: 1.5; color: var(--text-3); }
.ai-text { font-size: 15px; line-height: 1.7; color: var(--text); }
/* 選手カードの画像（横長 4:3 の「通知表」。1200×900） */
.show-card img.player-card { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--r-inner); box-shadow: var(--shadow-float); }
@media (prefers-contrast: more) { .show-card img.player-card { outline: 1px solid var(--border); } }
@media (min-width: 900px) { .rail.shows { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); gap: 24px; } .rail.shows + .rail-foot { display: none; } }
/* そのほかのプレミアムプランの機能（3 行。900px 以上は 3 列） */
.plus-row { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 900px) { .plus-row { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; } }
.plus-row li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.plus-row img { width: 36px; height: 36px; }
.plus-row b { display: block; font-size: 15px; line-height: 1.4; font-weight: 650; }
.plus-row span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.plus-row span span, .plus-row b + b { display: inline; margin: 0; }
.plus-row a { font-weight: 600; }

/* ---- 対象（区分の 4 枚。768px 以上は 2 列、1200px 以上は 4 列） */
.target-list { grid-auto-columns: min(80vw, 320px); }
.target-list li { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; padding: 16px 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); }
@media (min-width: 768px) { .target-list li { padding: 24px; } }
.target-list h3 { font-size: 18px; line-height: 1.4; font-weight: 650; }
.target-list h3 .kinds { font-size: 15px; font-weight: 600; white-space: nowrap; }
.target-list .who { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.target-list .limit { margin-top: 10px; font-size: 14px; line-height: 1.55; font-weight: 600; }
.target-list .limit > span:first-child { display: block; font-size: 12px; font-weight: 600; color: var(--accent-strong); }
.target-list .cat-prep { margin-top: 10px; }
.badge-prep { background: var(--tint); color: var(--text-2); box-shadow: inset 0 0 0 1px rgba(11, 27, 43, .16); }
.target-note { margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--text-2); }
@media (min-width: 768px) { .rail.target-list { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); gap: 20px; } .rail.target-list + .rail-foot { display: none; } .target-note { margin-top: 16px; font-size: 14px; } }
@media (min-width: 1200px) { .rail.target-list { grid-template-columns: repeat(4, 1fr); } }

/* ---- 料金（カードだけ。チームはスマホで横スワイプ＝おすすめのプレミアムプランが先。768px 以上は 2 列で、スタンダードが左） */
.plans { grid-auto-columns: min(86vw, 380px); }
.plan { display: flex; flex-direction: column; gap: 12px; padding: 24px 20px 20px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
@media (min-width: 768px) { .plan { padding: 32px; } }
.plan-label { margin-bottom: -8px; font-size: 13px; font-weight: 650; line-height: 20px; color: var(--accent-strong); letter-spacing: .04em; }
.plan h3 { font-size: 19px; line-height: 1.4; font-weight: 650; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.price .amount { font-size: 48px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.price .per { font-size: 15px; font-weight: 600; color: var(--text-2); }
.plan .limit { align-self: flex-start; padding: 4px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-deep); font-size: 14px; font-weight: 600; line-height: 1.55; }
.plan .limit b { margin: 0 2px; font-size: 16px; font-weight: 700; }
@media (prefers-contrast: more) { .plan .limit { outline: 1px solid currentColor; outline-offset: -1px; } }
.plan .desc { font-size: 15px; color: var(--text-2); line-height: 1.55; }
.plan .desc b { color: var(--text); }
.checks { list-style: none; display: grid; gap: 8px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--sep); font-size: 15px; line-height: 1.55; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--accent); }
.plus-list li > span { display: grid; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.plus-list li > span b { font-size: 15px; font-weight: 650; color: var(--text); }
.plan-cta { margin-top: auto; padding-top: 8px; display: grid; gap: 8px; }
/* 料金カードのボタン: 「スタンダードプランで申し込む」（14 文字）が 320px の幅にも入るように。入らなければ 2 行に折り返す（はみ出さない） */
.plan-cta .btn { white-space: normal; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 359px) { .plan-cta .btn { padding-inline: 16px; font-size: 15px; } }
.plan-soon { font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--text-2); text-align: center; }
@media (min-width: 768px) {
  .rail.plans { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; max-width: calc(920px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); gap: 24px; align-items: stretch; }
  .rail.plans + .rail-foot { display: none; }
  .plans .plan:not(.is-featured) { order: -1; padding-top: 56px; } /* 「おすすめ」の行のぶん上を空けて価格の高さをそろえる */
}
.price-note { max-width: 920px; margin: 20px auto 0; font-size: 13px; line-height: 1.7; color: var(--text-2); }
/* 個人プラン（カード＋「お申し込みの前に」。768px 以上は 2 列） */
.plans-ind { display: grid; gap: 16px; }
@media (min-width: 768px) { .plans-ind { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; max-width: 920px; margin: 0 auto; align-items: start; } .plans-ind .plan { padding-top: 32px; } .plans-ind .disc { margin-top: 0; } }
.plan-preview { text-align: center; }
.notes-list { list-style: none; display: grid; gap: 12px; font-size: 14px; line-height: 1.65; color: var(--text-2); }
.notes-list li { position: relative; padding-left: 18px; }
.notes-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--accent); }
.notes-list b { display: block; font-size: 15px; color: var(--text); }
/* 学校・団体向けの請求書払い（年払い・銀行振込。DECISIONS §38）: 押すと開く */
.invoice { max-width: 920px; margin-left: auto; margin-right: auto; }
.invoice-body { display: grid; gap: 16px; }
.invoice-prices > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; padding: 8px 0; border-bottom: 1px solid var(--sep); }
.invoice-prices dt { font-size: 15px; font-weight: 600; line-height: 1.55; }
.invoice-prices dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.55; color: var(--text-2); }
.invoice-prices b { margin: 0 2px; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--text); }
.invoice-sub { margin-top: -8px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.invoice .checks { margin-top: 0; padding-top: 0; border-top: 0; }
.invoice .btn { padding-block: 6px; white-space: normal; text-wrap: balance; }
@media (min-width: 768px) { .invoice-body { grid-template-columns: 5fr 6fr; gap: 16px 40px; align-items: start; } .invoice-prices { grid-row: 1 / span 2; } .invoice-sub { grid-column: 1; } .invoice .checks { grid-column: 2; grid-row: 1; } .invoice .btn { grid-column: 2; justify-self: start; } }

/* ---------------------------------------------------------------- 2026-10-20 チーム／個人の切り替え（個人プランの出し分け。上の「個人プランの出し分け」と site/README.md）
   Liquid Glass の segmented control（LIQUID_GLASS_DESIGN §4.1 Regular・§10 の 3 層＝半透明の面・弱いハイライトの縁・柔らかい影）。
   機能層の操作なので Glass にする（ヘッダーと同じ扱い）。選んだ側は不透明の「つまみ」（アプリの .seg__thumb と同じ: うすいティール＋縁）で、
   色だけでなく形と影でも分かる。文字 15px・太さ 650、押せる所は 44px、320px の幅でも 1 行に入る。
   prefers-reduced-transparency → 不透明の面、prefers-contrast: more → 白い面＋濃い枠、つまみは濃いティール＋白い文字。
   サイトはライト表示だけ（OS がダークでも同じ色）。 */
.aud-switch {
  --aud-pad: 3px;
  position: relative; isolation: isolate;
  display: inline-grid; grid-template-columns: 1fr 1fr; width: min(100%, 360px);
  padding: var(--aud-pad); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .58);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(11, 27, 43, .07), 0 1px 2px rgba(11, 27, 43, .04), 0 8px 24px rgba(11, 27, 43, .07);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .aud-switch { background: var(--surface); } }
.aud-thumb {
  position: absolute; z-index: -1; top: var(--aud-pad); bottom: var(--aud-pad); left: var(--aud-pad);
  width: calc((100% - var(--aud-pad) * 2) / 2); border-radius: var(--r-pill);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px rgba(0, 133, 127, .45), inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 2px rgba(11, 27, 43, .08), 0 4px 12px rgba(0, 81, 77, .12);
  transition: transform 420ms cubic-bezier(.3, 1.25, .5, 1);
}
html[data-for="individual"] .aud-thumb { transform: translateX(100%); }
.aud-switch [role="radio"] {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 0; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent;
  font: inherit; font-size: 15px; font-weight: 650; line-height: 1.3; white-space: nowrap; color: var(--text-2);
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color var(--m-base) var(--ease-out);
}
.aud-switch [role="radio"]:hover { color: var(--text); }
html:not([data-for="individual"]) .aud-switch [data-aud="team"],
html[data-for="individual"] .aud-switch [data-aud="individual"] { color: var(--accent-deep); }
.aud-switch [role="radio"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.aud-switch [role="radio"]:active { transform: scale(.97); }
@media (max-width: 339.98px) { .aud-switch [role="radio"] { padding: 0 8px; } }
@media (prefers-reduced-transparency: reduce) {
  .aud-switch { background: #EEF1F4; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; box-shadow: inset 0 0 0 1px rgba(11, 27, 43, .12); }
  .aud-thumb { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--accent), 0 1px 3px rgba(11, 27, 43, .14); }
}
@media (prefers-contrast: more) {
  .aud-switch { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; border: 1.5px solid var(--text); box-shadow: none; }
  .aud-thumb { background: var(--accent-deep); box-shadow: none; }
  .aud-switch [role="radio"] { color: var(--text); }
  html:not([data-for="individual"]) .aud-switch [data-aud="team"],
  html[data-for="individual"] .aud-switch [data-aud="individual"] { color: #FFFFFF; }
}
@media (forced-colors: active) {
  .aud-switch { border: 1px solid CanvasText; }
  .aud-thumb { border: 3px solid Highlight; }
}
/* ヒーローの上（左寄せ）と料金の見出しの下（中央） */
.hero-switch { margin-bottom: 20px; }
@media (min-width: 768px) { .hero-switch { margin-bottom: 28px; } }
.aud-bar { display: flex; justify-content: center; margin: -4px 0 20px; }
@media (min-width: 768px) { .aud-bar { margin: -12px 0 32px; } }

/* 切り替えたときに現れる部分（重ねない大きな塊）はふわっと出す。動きを減らす設定では出すだけ */
@media (prefers-reduced-motion: no-preference) {
  html[data-aud-switched] :is(.when-team, .when-individual):not(.aud-pair > *) { animation: aud-in 260ms var(--ease-out) both; }
}
@keyframes aud-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* ヒーローの端末の画面は、枠の中で動かさずに色だけ入れ替える */
@media (prefers-reduced-motion: no-preference) {
  html[data-aud-switched] .phone-hero > .phone-screens:is(.when-team, .when-individual) { animation-name: aud-fade; }
}
@keyframes aud-fade { from { opacity: 0; } to { opacity: 1; } }
/* 個人を選んで開いたとき: js/main が個人プランの画面を差し込む（<template data-hero-individual> が消える）までは、
   チームの画面と数字のカードを見せない（場所は取ったまま＝下が動かない） */
html[data-for="individual"] .phone-hero:has(> template[data-hero-individual]) > .phone-screens,
html[data-for="individual"] .device-stage:has(template[data-hero-individual]) > .float-chip { visibility: hidden; }

/* 「公開前のプレビュー」の札（?preview=individual のときだけ。.when-preview） */
.badge-preview { background: #FBF0DC; color: #6B4A0B; }
.cta-note-wrap { flex-wrap: wrap; row-gap: 4px; }
.badge-preview::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-pill); background: #B45309; }
/* 最後の CTA の「公開前のプレビュー」 */
.final-card > .final-preview { margin-top: 16px; }

/* ---------------------------------------------------------------- 2026-10-22 動画（#video「90秒でわかる SaberLens」。site/README.md の「動画」）
   ヒーローのすぐ下。チーム／個人の切り替えに従って片方の動画を出す。押すまではポスターだけ（動画は読まない）、押すと js/main が <video> に差し替える。
   16:9 の箱を先に取るので、ポスターの読み込み・差し替え・切り替えで下が動かない。
   再生のボタンは LIQUID_GLASS_DESIGN §13.7（メディアの上の操作）: 明るいポスターの上なので Regular の白いガラスの札に、主操作のティールの円（§13.8）。
   自動再生はしない（動きを減らす設定でも同じ）。prefers-reduced-transparency → 不透明、prefers-contrast: more → 白い面＋濃い枠 */
.section-video { background: var(--tint); }
.section-video .section-head { margin-bottom: 20px; }
@media (min-width: 768px) { .section-video .section-head { margin-bottom: 32px; } }
.vplayer {
  position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: var(--r-card); background: #E9EEF2; box-shadow: 0 0 0 1px rgba(11, 27, 43, .07), var(--shadow-float);
}
@media (prefers-contrast: more) { .vplayer { box-shadow: 0 0 0 1.5px var(--border), var(--shadow-float); } }
/* 中身は箱いっぱいに重ねる（WebKit は aspect-ratio の箱の height: 100% を内容の高さにするため、absolute で合わせる） */
.vplayer > video, .vplayer-start { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: inherit; }
.vplayer > video { background: #0B1B2B; object-fit: contain; }
.vplayer-start { overflow: hidden; color: var(--text); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.vplayer-poster { width: 100%; height: 100%; object-fit: cover; }
.vplayer-start::after { content: ""; position: absolute; inset: 0; background: transparent; transition: background-color var(--m-base) var(--ease-out); }
.vplayer-start:hover::after { background: rgba(11, 27, 43, .08); }
.vplayer-start:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.vplayer-play {
  /* 置き場所はポスターの文字を隠さない所（既定は中央。チームのポスターは中央に文字があるので、左下の空いた所） */
  position: absolute; z-index: 1; left: var(--play-x, 50%); top: var(--play-y, 50%); transform: translate(var(--play-tx, -50%), -50%); transform-origin: left center;
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(11, 27, 43, .06), 0 1px 3px rgba(0, 0, 0, .06), 0 12px 36px rgba(11, 27, 43, .18);
  font-size: 15px; font-weight: 650; line-height: 1.3; white-space: nowrap;
  transition: transform var(--m-fast) var(--ease-out);
}
.vplayer-disc { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28); transition: background-color var(--m-base) var(--ease-out); }
.vplayer-disc svg { width: 22px; height: 22px; margin-left: 3px; }
@media (min-width: 768px) {
  .vplayer-play { gap: 14px; padding: 8px 26px 8px 8px; font-size: 18px; }
  .vplayer-disc { width: 64px; height: 64px; }
  .vplayer-disc svg { width: 30px; height: 30px; margin-left: 4px; }
}
[data-video="team"] .vplayer-play { --play-x: 7.3%; --play-y: 80%; --play-tx: 0%; }
[data-video="individual"] .vplayer-play { transform-origin: center; }
.vplayer-start:hover .vplayer-play { transform: translate(var(--play-tx, -50%), -50%) scale(1.04); }
.vplayer-start:hover .vplayer-disc { background: var(--accent-strong); }
.vplayer-start:active .vplayer-play { transform: translate(var(--play-tx, -50%), -50%) scale(.97); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .vplayer-play { background: var(--surface); } }
@media (prefers-reduced-transparency: reduce) { .vplayer-play { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) {
  .vplayer-play { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; border: 1.5px solid var(--text); box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
  .vplayer-disc { background: var(--accent-deep); }
}
@media (forced-colors: active) { .vplayer-play { border: 1px solid CanvasText; } }
.video-note { margin-top: 12px; }
/* ヒーローから動画への入口（文字のリンク＋小さな再生の円。申し込みの 2 つのボタンより目立たせない） */
.hero-video-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 12px; padding-right: 4px;
  font-size: 15px; font-weight: 650; line-height: 1.3; color: var(--accent-deep); text-decoration: none; border-radius: var(--r-pill);
}
.hero-video-link:hover span:last-child { text-decoration: underline; }
.hero-video-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-strong); box-shadow: inset 0 0 0 1.5px rgba(0, 133, 127, .3); }
.hero-video-icon svg { width: 16px; height: 16px; margin-left: 2px; }
@media (min-width: 768px) { .hero-video-link { margin-top: 16px; } }
@media (prefers-contrast: more) { .hero-video-icon { background: var(--accent-deep); color: #FFFFFF; } }
.icon-fill { fill: currentColor; stroke: currentColor; stroke-width: 1; }
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-copy > :nth-child(6 of :not(.aud-switch)) { animation-delay: 250ms; }
}

/* ---------------------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--sep); }
.faq details { border-bottom: 1px solid var(--sep); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 12px 0; font-size: 16px; font-weight: 650; line-height: 1.55; border-radius: var(--r-control);
}
@media (min-width: 768px) { .faq summary { font-size: 17px; min-height: 68px; } }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; margin-left: auto; width: 28px; height: 28px; border-radius: var(--r-pill);
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006B66' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform var(--m-base) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 40px 20px 0; font-size: 15px; line-height: 1.7; color: var(--text-2); }
@media (min-width: 768px) { .faq .a { font-size: 16px; } }
.faq .a p + p { margin-top: 8px; }

/* ---------------------------------------------------------------- final CTA（平らなティール。光の飾りはなし） */
.final { padding: 0 0 48px; }
@media (min-width: 768px) { .final { padding: 0 0 96px; } }
.final-card {
  text-align: center; color: #FFFFFF; padding: 40px 20px; border-radius: var(--r-card);
  background: linear-gradient(160deg, #006B66, #00514D);
}
@media (min-width: 768px) { .final-card { padding: 72px 40px; } }
.final-card h2 { font-size: clamp(24px, calc(2.4vw + 14px), 40px); line-height: 1.3; font-weight: 700; }
.final-card > p { margin: 16px auto 0; max-width: 34em; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .92); }
.final-card .cta-row { justify-content: center; margin-top: 28px; }
.final-card > .final-note { margin-top: 20px; font-size: 14px; line-height: 1.6; }
.final-note a { color: #fff; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-contrast: more) { .final-card { background: #00514D; } }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sep); background: var(--bg); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.site-footer .brand { margin-right: 0; }
.site-footer .brand img { height: 24px; }
.site-footer nav { flex: 1 1 auto; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; margin-left: -12px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text-2); font-size: 13px; text-decoration: none; border-radius: var(--r-control); }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.copyright { width: 100%; font-size: 12px; line-height: 1.55; color: var(--text-3); }
@media (min-width: 900px) {
  .site-footer .wrap { flex-wrap: nowrap; }
  .footer-links { justify-content: flex-end; margin-left: 0; }
  .copyright { width: auto; flex: none; }
}

/* ---------------------------------------------------------------- legal pages */
.legal-main { padding: 32px 0 80px; }
@media (min-width: 768px) { .legal-main { padding: 48px 0 96px; } }
.legal-main .wrap { max-width: calc(800px + var(--gutter) * 2); }
.crumbs { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.doc h1 { font-size: clamp(28px, calc(2.4vw + 18px), 40px); line-height: 1.3; font-weight: 700; margin-bottom: 24px; }
.doc h2 { font-size: 20px; line-height: 1.4; font-weight: 700; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--sep); }
.doc h3 { font-size: 17px; line-height: 1.4; font-weight: 650; margin: 24px 0 8px; }
.doc p, .doc ul, .doc ol { margin: 12px 0; }
.doc ul, .doc ol { padding-left: 1.6em; }
.doc li + li { margin-top: 4px; }
.doc ul.paren { list-style: none; padding-left: .6em; }
.doc ul.paren > li { padding-left: 1.9em; text-indent: -1.9em; }
.doc li > ul, .doc li > ol { margin: 4px 0; }
.doc li > p.li-after { margin: 4px 0 0; } /* 入れ子の箇条のあとの、親の項の続きの文（build-legal） */
.doc .nw { white-space: nowrap; } /* 数字と単位・見出しのカタカナの語（build-legal） */
.doc a.url { font-size: 13px; padding-block: 13px; } /* URL は小さめ（320px でも 1 行に入り、途中で折れないように。build-legal が <wbr> も入れる） */
/* 特商法の料金の表（3 列）: 767px までは 1 行（プラン）ごとに積み、列の見出しをセルの上に出す（build-legal の data-label）。
   3 列のままだと 320〜390px で「個人プラ／ン」「2,000／円」と折れるため（767px まで）。列の見出しの行は読み上げ用に残す */
@media (max-width: 767px) {
  .doc-tokushoho thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .doc-tokushoho table, .doc-tokushoho tbody, .doc-tokushoho tr, .doc-tokushoho td { display: block; }
  .doc-tokushoho tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--sep); }
  .doc-tokushoho tbody tr:last-child { border-bottom: 0; }
  .doc-tokushoho tbody tr > * { padding: 0; border-bottom: 0; }
  .doc-tokushoho td:first-child { font-weight: 650; }
  .doc-tokushoho td + td { margin-top: 8px; }
  .doc-tokushoho td + td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--text-2); }
}
.doc-individual-consent td:last-child, .doc-parental-consent td[data-label="記入欄"] { white-space: nowrap; } /* 記入欄の「年　月　日」を 1 行に */
.doc-parental-consent td[data-label="同意する"] { width: 5.5em; text-align: center; font-size: 20px; line-height: 1.2; }
.doc-parental-consent td[data-label="項目"] { width: 42%; white-space: nowrap; }
@media (max-width: 479px) { .doc-parental-consent th, .doc-parental-consent td { padding-inline: 10px; } }
.doc hr { border: 0; border-top: 1px solid var(--sep); margin: 32px 0; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--tint); padding: 0 4px; }
.doc a { padding-block: 10px; } /* 文中のリンクも押せる高さを 44px に（行の高さは変えない） */
.doc .meta { list-style: none; padding: 0; color: var(--text-2); font-size: 14px; }
.table-scroll { overflow-x: auto; border-radius: var(--r-card); box-shadow: var(--shadow-card); border: 1.5px solid var(--border); background: var(--surface); }
.doc .table-scroll { margin: 16px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.doc th, .doc td { padding: 12px 16px; border-bottom: 1px solid var(--sep); text-align: left; vertical-align: top; }
.doc thead th { background: var(--tint); font-size: 13px; font-weight: 600; color: var(--text-2); }
.doc tbody tr:last-child > * { border-bottom: 0; }
.doc.kv table td:first-child { width: 32%; min-width: 7.5em; font-weight: 600; background: var(--tint); }
@media (max-width: 559.98px) {
  .doc.kv table, .doc.kv tbody, .doc.kv tr, .doc.kv td { display: block; width: 100%; }
  .doc.kv thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc.kv table td:first-child { width: 100%; border-bottom: 0; padding-bottom: 4px; }
  .doc.kv table td + td { padding-top: 8px; }
}
.card { background: var(--surface); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow-card); }
.pending { text-align: center; padding: 48px 24px; }
.pending p { color: var(--text-2); }
.pending .btn { margin-top: 24px; }

/* ---------------------------------------------------------------- contact（お問い合わせ。contact.html） */
.contact-main { background: var(--tint); }
.contact-main .wrap { max-width: calc(720px + var(--gutter) * 2); }
.contact-title { font-size: clamp(28px, calc(2.4vw + 18px), 40px); line-height: 1.3; font-weight: 700; }
.contact-lead { margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
@media (min-width: 768px) { .contact-lead { font-size: 17px; } }

/* 送信後の案内。JS なしは URL の #… に当たったもの（:target）、JS ありは hidden を外したもの（.is-live）だけ見せる */
.notice { display: none; margin-top: 24px; padding: 20px; border-radius: var(--r-card); font-size: 15px; line-height: 1.7; }
.notice:target, .notice.is-live:not([hidden]) { display: block; }
.notice:focus { outline: none; }
.notice:focus-visible { outline: none; } /* tabindex=-1 で読み上げの位置を移すだけ（Tab では止まらない）ので枠は出さない */
.notice h2 { font-size: 20px; line-height: 1.4; font-weight: 700; margin-bottom: 8px; }
.notice-ok { background: var(--surface); box-shadow: var(--shadow-card); }
.notice-ok h2 { color: var(--accent-deep); }
.notice-error { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.notice-sub { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.notice-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
@media (max-width: 479.98px) { .notice-actions .btn { flex: 1 1 100%; } }
#sent:target ~ .contact-form, .contact-form[hidden] { display: none; }
.copy { margin-top: 16px; padding: 16px; border-radius: var(--r-inner); background: var(--tint); font-size: 14px; line-height: 1.55; }
.copy dt { font-size: 12px; font-weight: 600; color: var(--text-3); }
.copy dt:not(:first-child) { margin-top: 12px; }
.copy dd { margin: 4px 0 0; color: var(--text); }
.copy .pre { white-space: pre-wrap; }

.contact-form { margin-top: 24px; padding: 24px 16px; display: grid; gap: 24px; }
@media (min-width: 560px) { .contact-form { padding: 32px; } }
.form-note { font-size: 13px; color: var(--text-2); }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; font-size: 15px; font-weight: 650; line-height: 1.5; color: var(--text); }
.field > legend { margin-bottom: 8px; }
.field-row { display: grid; gap: 24px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; gap: 16px; } }
.req, .opt { display: inline-flex; align-items: center; padding: 0 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.req { background: var(--danger-soft); color: var(--danger); }
.opt { background: var(--tint); color: var(--text-3); }
@media (prefers-contrast: more) { .req, .opt { outline: 1px solid currentColor; outline-offset: -1px; } }

.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-control);
  /* アプリの入力欄と同じ: うすい灰色の面・枠なし（コントラストを上げる設定のときだけ濃い枠） */
  border: 1px solid transparent; background: var(--tint); color: var(--text);
  font: inherit; font-size: 16px; line-height: 1.5; /* 16px 未満だと iPhone が拡大してしまう */
  transition: border-color var(--m-base), outline-color var(--m-base);
}
.contact-form textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.contact-form select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475565' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 20px no-repeat;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
@media (prefers-contrast: more) { .contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { border-color: var(--control-border); background-color: var(--surface); } }
.field.has-error input[type="text"], .field.has-error input[type="email"], .field.has-error select, .field.has-error textarea { border-color: var(--danger); background-color: #FFF8F8; }
.field-hint { font-size: 13px; line-height: 1.55; color: var(--text-3); }
.field-error { display: flex; gap: 8px; font-size: 14px; line-height: 1.55; font-weight: 600; color: var(--danger); }
.field-error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border-radius: var(--r-pill); background: var(--danger); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1; }
.field-error[hidden] { display: none; }
.field-count { justify-self: end; font-size: 13px; color: var(--text-3); }
.field-count.is-over { color: var(--danger); font-weight: 600; }

/* お問い合わせの種類（押しやすい丸いボタン。中身は普通のラジオボタン） */
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 560px) { .chips { grid-template-columns: repeat(4, auto); justify-content: start; } }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--control-border); background: var(--surface); font-size: 15px; font-weight: 600; line-height: 1.35; text-align: center;
  transition: background-color var(--m-base), border-color var(--m-base), color var(--m-base);
}
/* 選んだ札はアプリと同じ: うすいティールの面＋ティールの文字＋縁 */
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); box-shadow: inset 0 0 0 1px var(--accent); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.field.has-error .chip span { border-color: var(--danger); }

.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.6; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.check span { display: inline; }
.agree-note { font-size: 14px; line-height: 1.7; color: var(--text-2); }
.agree-note a { font-weight: 600; padding-block: 12px; } /* 文中のリンクも押せる高さを 44px に（行の高さは変えない） */
.check .req { margin-left: 4px; vertical-align: 1px; }

/* 迷惑送信よけの隠し欄（人には見えない・読み上げない・Tab で止まらない） */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.contact-form .submit { width: 100%; }
@media (min-width: 560px) { .contact-form .submit { width: auto; min-width: 240px; justify-self: start; } }
.contact-form .submit[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------------------------------------------------------------- 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.nf .code { font-size: 72px; font-weight: 700; color: var(--accent-strong); line-height: 1; letter-spacing: -.02em; }
.nf h1 { font-size: 28px; line-height: 1.3; font-weight: 700; margin-top: 16px; }
.nf p { color: var(--text-2); margin-top: 8px; }
.nf .btn { margin-top: 32px; }

/* ---------------------------------------------------------------- motion（JS があるときだけ。動きを減らす設定では何もしない） */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--m-slow) var(--ease-out), transform var(--m-slow) var(--ease-out); }
  html.js .reveal.is-in { opacity: 1; transform: none; }
  .tiles .reveal:nth-child(2), .minis .reveal:nth-child(3n+2), .ps-list .reveal:nth-child(2), .plans .reveal:nth-child(2) { transition-delay: 60ms; }
  .tiles .reveal:nth-child(3), .minis .reveal:nth-child(3n), .ps-list .reveal:nth-child(3) { transition-delay: 120ms; }
  html.js .hero-copy > * { animation: rise 450ms var(--ease-out) both; }
  /* 先頭のチーム／個人の切り替えは数えない（非公開のときも今までと同じ順で現れる） */
  html.js .hero-copy > :nth-child(2 of :not(.aud-switch)) { animation-delay: 50ms; }
  html.js .hero-copy > :nth-child(3 of :not(.aud-switch)) { animation-delay: 100ms; }
  html.js .hero-copy > :nth-child(4 of :not(.aud-switch)) { animation-delay: 150ms; }
  html.js .hero-copy > :nth-child(5 of :not(.aud-switch)) { animation-delay: 200ms; }
  html.js .device-stage { animation: rise 600ms 100ms var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-hero { transform: none !important; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  .site-header, .site-footer, .skip, .nav-scrim, .crumbs, .no-print { display: none; }
  body { background: #fff; color: #000; }
  .legal-main { padding: 0; }
  /* 保護者の同意書（ひな形）: 同意書は新しいページから。記入欄は書き込める高さに。表は途中で切らない */
  .page-break { break-before: page; }
  .doc-parental-consent h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
  .doc-parental-consent td { padding-block: 11px; }
  .doc-parental-consent hr { display: none; }
  .doc-parental-consent h2 { margin-top: 24px; }
  .doc-parental-consent .table-scroll { break-inside: avoid; }
  .doc table, .doc th, .doc td { border-color: #888; }
}

/* 会員の表示（js/main の data-member。DECISIONS §15）: 契約のある会員には申し込みのボタンが「ログイン」「アプリを開く」になるので、
   ヘッダー・メニューの「ログイン」とお試しの注記を隠す */
[data-member="paid"] .header-login, [data-member="paid"] .nav-login, [data-member="paid"] [data-start-note] { display: none; }

/* ---------------------------------------------------------------- 基準値について（norms.html。build-legal.mjs が作る） */
.norms-lead { font-size: 17px; color: var(--text); font-weight: 600; }
.q-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 650; line-height: 1.6; white-space: nowrap; }
.q-official { background: var(--accent-soft); color: var(--accent-deep); }
.q-estimated { background: #EEF1F4; color: #36434F; }
.q-tentative { background: #FBF0DC; color: #6B4A0B; }
@media (prefers-contrast: more) { .q-badge { outline: 1px solid currentColor; outline-offset: -1px; } }
.doc .q-legend { list-style: none; padding: 0; display: grid; gap: 8px; margin: 20px 0; }
.q-legend li { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: var(--r-inner); background: var(--tint); font-size: 14px; line-height: 1.6; color: var(--text-2); }
.doc .q-legend li + li { margin-top: 0; }
.q-legend .q-badge { justify-self: start; }
@media (max-width: 413.98px) { .q-legend li { grid-template-columns: 1fr; gap: 6px; } }
.norms-note { font-size: 14px; color: var(--text-2); }
.norm-group h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.norm-group > p { color: var(--text-2); font-size: 15px; }
.doc .norm-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.doc .norm-list li + li { margin-top: 0; }
.norm-item { padding: 16px 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); border: 1.5px solid var(--border); }
.doc .norm-item h3 { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.norm-cat { font-size: 13px; font-weight: 600; color: var(--text-2); }
.norm-cat .q-badge { margin-left: 4px; }
.norm-item dl { display: grid; grid-template-columns: 4.5em 1fr; gap: 6px 12px; margin: 0; font-size: 14px; line-height: 1.65; }
.norm-item dt { font-weight: 600; color: var(--text-3); }
.norm-item dd { margin: 0; color: var(--text); }
@media (max-width: 413.98px) { .norm-item dl { grid-template-columns: 1fr; gap: 0; } .norm-item dd + dt { margin-top: 8px; } }
.doc .norm-item p { margin: 0; font-size: 14px; color: var(--text-2); }
.norm-steps li { font-size: 15px; }
.norms-meta { margin-top: 32px; font-size: 13px; color: var(--text-3); }
.doc .norms-back { margin-top: 16px; }
.doc .norms-back a { padding-block: 0; }

