/* たむけ 表玄関。ブランドの緑(public/tamuke-design-tokens.css と同じ値)を基調に、AI の要素だけ緑→青緑→藍のグラデーションを使う(単一の明るいテーマ)。 */
:root {
  color-scheme: light;
  --ink: #1f3329;
  --muted: #5f7268;
  --accent: #225b49;
  --accent-deep: #17402f;
  --border: #dce5df;
  --bg: #f8faf7;
  --soft: #edf4ef;
  --paper: #ffffff;
  --mist: #f0f5f3;
  --line: #cfe0da;
  --amber-ink: #7a5a1a;
  --amber-bg: #fbf3e1;
  --error-ink: #8a2f2f;
  --error-bg: #fbeaea;
  --ai-1: #1f7a5c;
  --ai-2: #137378;
  --ai-3: #4a5fcf;
  --ai-grad: linear-gradient(100deg, var(--ai-1) 0%, var(--ai-2) 48%, var(--ai-3) 100%);
  --ai-wash: linear-gradient(135deg, #e8f4ef 0%, #e9f1f6 55%, #eceffb 100%);
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --font-num: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, "Hiragino Sans", sans-serif;
  --gutter: max(20px, calc((100% - 1080px) / 2));
  --measure: 40em;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.45; text-wrap: balance; word-break: auto-phrase; margin: 0; font-feature-settings: "palt"; letter-spacing: .03em; }
h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; max-width: var(--measure); }
ul, ol { margin: 0; padding-left: 1.2em; max-width: var(--measure); }
li + li { margin-top: 4px; }
em { font-style: normal; color: var(--amber-ink); font-size: 12px; margin-left: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ai-text { background: var(--ai-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { justify-self: center; text-align: center; }

/* ヘッダー */
.top {
  position: sticky; top: 0; z-index: 20; background: #f8faf7e8; backdrop-filter: blur(10px); border-bottom: 1px solid #dce5df99;
  padding-inline: var(--gutter); padding-block: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.top nav { display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--ink); }
.top nav a:hover { color: var(--accent); }
.top nav .nav-cta { background: var(--accent); color: #fff; border-radius: 999px; padding: 7px 18px; font-weight: 700; }
.top nav .nav-cta:hover { background: var(--accent-deep); color: #fff; }

/* ボタン */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
  border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-sans);
}
.button.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px #225b4930; }
.button.primary:hover { background: var(--accent-deep); }
.button.ghost { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button.ghost:hover { border-color: var(--accent); }
.button[disabled] { opacity: .6; cursor: default; }

/* 最初の画面: 左に見出し、右に料金カード、下に画面と AI カード */
.hero { position: relative; overflow: hidden; padding-inline: var(--gutter); padding-top: 56px; background: linear-gradient(180deg, #fbfdfc 0%, var(--bg) 100%); display: grid; gap: 44px; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }
.hero-grid { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 56px; align-items: center; }
.hero-grid::before { content: ""; position: absolute; inset: -30px -4%; z-index: -1; background: radial-gradient(closest-side, #fbfdfcf5 62%, #fbfdfc00); }
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-weight: 700; font-size: clamp(14px, 1.6vw, 17px); max-width: none; }
.pill-dev { background: var(--ai-grad); color: #fff; border-radius: 6px; padding: 2px 12px; font-size: 13px; letter-spacing: .1em; }
.hero h1 { font-size: clamp(34px, 5.4vw, 62px); font-weight: 800; line-height: 1.25; letter-spacing: .02em; }
.hero h1 .ai-text { padding-bottom: .08em; }
.hero .lead { max-width: 30em; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-status { font-size: 13px; color: var(--muted); max-width: 40em; }
.price-hero { position: relative; display: grid; gap: 12px; padding: 30px 28px 24px; border-radius: 22px; border: 1px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--ai-grad) border-box; box-shadow: 0 24px 60px #3b4fb81f, 0 4px 14px #1f7a5c14; }
.price-hero p { max-width: none; }
.ph-ribbon { position: absolute; top: -13px; left: 24px; background: var(--ai-grad); color: #fff; border-radius: 999px; padding: 3px 14px; font-size: 12.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 20px #4a5fcf33; }
.ph-k { font-size: 14px; font-weight: 700; color: var(--accent); }
.ph-v { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.ph-v .num { font-size: clamp(54px, 5vw, 70px); font-weight: 700; color: var(--accent); }
.ph-unit { font-size: 18px; font-weight: 700; }
.ph-facts { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ph-facts li { margin: 0; display: grid; gap: 2px; background: var(--mist); border-radius: 10px; padding: 8px 10px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.ph-facts b { font-size: 15px; color: var(--ink); white-space: nowrap; }
.ph-compare { font-size: 13.5px; line-height: 1.65; border-top: 1px solid var(--border); padding-top: 12px; }
.ph-compare .num { font-size: 18px; color: var(--accent); }
.ph-compare a { white-space: nowrap; }
.ph-note { font-size: 12px; color: var(--muted); }
.stage { position: relative; width: 100%; max-width: 1000px; justify-self: center; }
.stage-note { position: absolute; left: 0; top: -26px; font-size: 12px; color: var(--muted); }
.device { background: var(--paper); border: 1px solid var(--border); overflow: hidden; }
.device img { display: block; width: 100%; }
.device-bar { height: 22px; background: #eef2ef; border-bottom: 1px solid var(--border); display: flex; gap: 5px; align-items: center; padding-left: 10px; }
.device-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c9d4cc; }
.stage .device.desktop { width: 80%; max-height: 470px; border-radius: 14px 14px 0 0; border-bottom: 0; box-shadow: 0 30px 80px #23392f24; }
.device.phone { border-radius: 22px; border: 6px solid #1f2a25; box-shadow: 0 18px 44px #23392f33; }
.ai-card {
  display: grid; gap: 8px; font-size: 13.5px; line-height: 1.7; text-align: left; border-radius: 16px; padding: 16px 18px;
  border: 1px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--ai-grad) border-box;
  box-shadow: 0 24px 60px #3b4fb826, 0 4px 14px #1f7a5c14;
}
.stage .ai-card { position: absolute; z-index: 2; right: 0; top: 56px; width: min(380px, 40%); }
.ai-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.ai-head .icon { color: var(--ai-3); width: 15px; height: 15px; }
.ai-sub { color: var(--muted); font-weight: 400; margin-left: auto; }
.ai-line { min-height: 1.7em; max-width: none; }
.ai-line.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--ai-3); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-basis { color: var(--amber-ink); font-size: 12px; max-width: none; }
.ai-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-btn { font: inherit; font-size: 12px; cursor: pointer; border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; background: var(--soft); color: var(--ink); }
.ai-btn:hover { border-color: var(--ai-2); }
.ai-btn.on { background: var(--ai-grad); color: #fff; border-color: transparent; }
.ai-panel { display: grid; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; font-size: 12.5px; line-height: 1.6; text-align: left; }
.ai-panel p { margin: 0; max-width: none; }
.ai-panel-title { font-weight: 700; font-size: 12px; color: var(--ai-2); }
.ai-src, .ai-cand { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: 6px; }
.ai-src li, .ai-cand li { margin: 0; display: grid; gap: 2px; background: var(--mist); border-radius: 8px; padding: 7px 9px; }
.src-k { font-size: 11px; font-weight: 700; color: var(--muted); }
.ai-src mark { background: var(--amber-bg); color: var(--amber-ink); border-radius: 3px; padding: 0 2px; }
.ai-cand li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.cand-act { display: flex; gap: 4px; }
.cand-act button, .ai-chips button, .ai-ask button { font: inherit; font-size: 11.5px; cursor: pointer; border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; background: var(--paper); color: var(--ink); }
.cand-act button, .ai-chips button { min-height: 32px; }
.cand-act button:hover, .ai-chips button:hover { border-color: var(--ai-2); color: var(--ai-2); }
.cand-done { font-size: 11.5px; font-weight: 700; color: var(--accent); }
.ai-cand li.done .cand-t { color: var(--muted); }
.ai-cand li.done.adopt .cand-t { text-decoration: underline; text-decoration-color: var(--ai-2); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ai-ask { display: flex; gap: 6px; }
.ai-ask input { flex: 1; min-width: 0; font: inherit; font-size: 12.5px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; background: var(--paper); color: var(--ink); }
.ai-ask input:focus-visible { outline: 2px solid var(--ai-2); outline-offset: 1px; }
.ai-ask button { background: var(--ai-grad); color: #fff; border-color: transparent; }
.ai-answer { display: grid; gap: 4px; background: var(--mist); border-radius: 8px; padding: 8px 10px; }
.ai-demo-note { font-size: 11px; color: var(--muted); }

/* セクション共通 */
.section { padding-inline: var(--gutter); padding-block: 88px; display: grid; gap: 28px; }
.section.alt { background: var(--mist); }
.section-head { display: grid; gap: 12px; justify-items: center; text-align: center; }
.section-head p { max-width: 42em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--ai-2); }
.eyebrow::before, .eyebrow::after { content: ""; width: 18px; height: 2px; background: var(--ai-grad); }
.lead { font-size: 17px; }
.note { background: var(--amber-bg); color: var(--amber-ink); padding: 10px 14px; border-radius: 9px; font-size: 14px; max-width: none; }
.note a { color: inherit; }
.small, .fine { color: var(--muted); font-size: 13px; line-height: 1.75; }
.fine { max-width: none; }

/* 現場の悩み */
.pains { padding-block: 64px 56px; }
.pairs { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: 12px; }
.pairs li { margin: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--paper); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px #23392f0a; }
.pairs p { margin: 0; max-width: none; padding: 16px 22px; font-size: 15px; line-height: 1.7; display: grid; gap: 4px; align-content: start; }
.pairs p::before { font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.pairs .before { color: var(--muted); }
.pairs .before::before { content: "いま"; }
.pairs .after { position: relative; font-weight: 600; background: linear-gradient(135deg, #1f7a5c0d, #4a5fcf0d); }
.pairs .after::before { content: "たむけでは"; background: var(--ai-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pairs .after::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ai-grad); }

/* AI でできること */
.agent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 24px; }
.agent:nth-of-type(even) .agent-text { order: 2; }
.agent + .agent { border-top: 1px dashed var(--line); padding-top: 48px; }
.agent-text { display: grid; gap: 14px; }
.stage-label { justify-self: start; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 1px 12px; }
.agent h3 { font-size: clamp(22px, 2.6vw, 28px); }
.spark-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.spark-list li { margin: 0; display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.spark-list .icon { color: var(--ai-2); width: 15px; height: 15px; margin-top: .5em; }
.decide { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; }
.decide span { font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--border); background: var(--paper); border-radius: 6px; padding: 0 8px; }
.mock { position: relative; min-height: 320px; border-radius: 20px; background: var(--ai-wash); padding: 56px 28px 36px; display: grid; justify-items: center; align-content: center; }
.ai-chip { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: var(--ai-grad); color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 4px 14px; box-shadow: 0 8px 20px #4a5fcf33; }
.ai-chip .icon { width: 12px; height: 12px; }
.mock-card { width: min(100%, 430px); background: var(--paper); border-radius: 12px; padding: 16px 18px; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.6; box-shadow: 0 18px 44px #23392f1a; }
.mock-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; max-width: none; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.7; border-radius: 6px; padding: 0 8px; background: var(--amber-bg); color: var(--amber-ink); white-space: nowrap; }
.badge.ok { background: var(--soft); color: var(--accent); }
.badge.ai { background: #eceffd; color: #3b4fb8; }
.mock-rows { margin: 0; display: grid; }
.mock-rows > div { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 10px; align-items: center; padding-block: 7px; border-top: 1px solid var(--border); }
.mock-rows.priced > div { grid-template-columns: 4.6em minmax(0, 1fr) auto; }
.mock-rows dt { color: var(--muted); font-size: 12.5px; }
.mock-rows dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; }
.mock-rows .flag dd { color: #3b4fb8; }
.mock-rows .yen { justify-content: flex-end; font-weight: 600; color: var(--ink); }
.mock-rows .flag .yen { color: var(--amber-ink); font-size: 12px; }
.ai-mark { color: var(--ai-3); width: 11px; height: 11px; }
.mock-warn { background: var(--amber-bg); color: var(--amber-ink); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; max-width: none; }
.mock-total { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding-top: 8px; font-size: 12.5px; color: var(--muted); max-width: none; }
.mock-total .num { color: var(--ink); font-size: 16px; font-weight: 700; }
.mock-list { list-style: none; padding: 0; margin: 0; display: grid; max-width: none; }
.mock-list li { margin: 0; display: flex; align-items: center; gap: 10px; padding-block: 8px; border-top: 1px solid var(--border); }
.mock-shot { width: min(100%, 520px); border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 18px 44px #23392f1a; }
.mock-note { position: absolute; right: 16px; bottom: 10px; font-size: 11px; color: var(--muted); }
.ba-mock { padding-bottom: 44px; }
.ba { position: relative; width: min(100%, 400px); aspect-ratio: 3 / 4; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 18px 44px #23392f1a; --pos: 50%; user-select: none; -webkit-user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-label { position: absolute; top: 10px; z-index: 2; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #0f1d17b3; color: #fff; pointer-events: none; }
.ba-label.l { left: 10px; }
.ba-label.r { right: 10px; background: var(--ai-grad); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px #0000001f; pointer-events: none; z-index: 2; }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; border-radius: 50%; transform: translate(-50%, -50%); border: 3px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--ai-grad) border-box; box-shadow: 0 6px 16px #0003; }
.ba-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--ai-2); outline-offset: 2px; }
.ba-note { font-size: 13px; color: var(--muted); text-align: center; max-width: 30em; margin-top: 12px; }

/* 機能全体像 */
.feature-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: stretch; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fcard { background: var(--paper); border: 1px solid var(--border); border-radius: 18px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.fcard p { font-size: 14.5px; }
.line-card { background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--ai-grad) border-box; border-color: transparent; }
.shot { height: 230px; border-radius: 12px; overflow: hidden; background: var(--ai-wash); border: 1px solid var(--border); }
.phone-shot { display: grid; justify-items: center; padding-top: 22px; }
.phone-shot .device.phone { width: 170px; border-bottom: 0; border-radius: 22px 22px 0 0; }

/* 料金 */
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.price { background: var(--paper); border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.price.main-plan { border-color: transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--ai-grad) border-box; box-shadow: 0 18px 44px #1f7a5c17; }
.amount { font-family: var(--font-num); font-weight: 700; font-size: 44px; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--accent); max-width: none; }
.amount span { display: block; font-family: var(--font-sans); font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.compare-block { min-width: 0; background: var(--paper); border: 1px solid var(--border); border-radius: 22px; padding: 36px; display: grid; gap: 28px; }
.compare-head { display: grid; gap: 8px; }
.compare-head h3 { font-size: clamp(20px, 2.4vw, 24px); }
.compare-head p { font-size: 16px; font-weight: 600; max-width: none; }
.why { display: grid; gap: 16px; margin-top: 8px; }
.why h3 { text-align: center; font-size: clamp(20px, 2.4vw, 24px); }
.why ul { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.why li { margin: 0; display: grid; gap: 6px; align-content: start; background: var(--paper); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; }
.why b { font-size: 16px; line-height: 1.5; }
.why span { font-size: 14px; color: var(--muted); line-height: 1.7; }
.charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 36px; }
.chart { margin: 0; display: grid; gap: 12px; align-content: start; }
.chart figcaption { font-weight: 700; font-size: 15px; }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; font-size: 13px; }
.bar-name { color: var(--muted); }
.bar-val { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 600; }
.bar-track { grid-column: 1 / -1; height: 12px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: calc(var(--v) / var(--max) * 100%); border-radius: 6px; background: #a8bab2; }
.bar.us .bar-name { color: var(--accent); font-weight: 700; }
.bar.us .bar-val { color: var(--accent); font-size: 16px; font-weight: 700; }
.bar.us .bar-fill { background: var(--ai-grad); }
.axis { position: relative; height: 1.6em; border-top: 1px solid var(--border); font-family: var(--font-num); font-size: 11px; color: var(--muted); max-width: none; }
.axis span { position: absolute; top: 2px; left: calc(var(--t) / var(--max) * 100%); transform: translateX(-50%); white-space: nowrap; }
.axis span:first-child { transform: none; }
.axis span:last-child { transform: translateX(-100%); }
.table-wrap { overflow-x: auto; }
.compare { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14px; }
.compare th, .compare td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--border); vertical-align: top; }
.compare thead th { border-top: 0; font-size: 13px; color: var(--muted); }
.compare tbody th { font-weight: 600; white-space: nowrap; width: 7em; }
.compare .us { background: #eef6f2; color: var(--accent); font-weight: 700; }

/* クローズドβ */
.beta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.beta-offer { position: relative; min-height: 260px; border-radius: 18px; padding: 26px; color: #fff; display: grid; gap: 4px; align-content: end; background: linear-gradient(170deg, #17402fb3 0%, #17402fee 55%, #1d2f55f2 100%), url("/assets/photos/reception.jpg") center / cover no-repeat; }
.offer-k { font-size: 14px; font-weight: 700; color: #d6e8df; }
.offer-v { font-size: 20px; font-weight: 700; }
.offer-v .num { font-size: 64px; line-height: 1; margin-right: 6px; }
.offer-s { font-size: 14px; color: #e2eee8; }
.offer-photo { position: absolute; top: 12px; right: 16px; font-size: 11px; color: #d6e8dfcc; }
.beta-card { background: var(--paper); border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.beta-card ul { font-size: 14.5px; }
.flow { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.flow li { counter-increment: step; margin: 0; background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; align-content: start; font-size: 13.5px; color: var(--muted); }
.flow li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ai-grad); color: #fff; font-family: var(--font-num); font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.flow b { color: var(--ink); font-size: 15px; }

/* よくある質問 */
.faq { width: 100%; max-width: 820px; justify-self: center; display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding-inline: 20px; }
.faq summary { cursor: pointer; list-style: none; padding-block: 16px; font-weight: 700; display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; gap: 10px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--font-num); font-weight: 700; color: var(--ai-2); }
.faq summary::after { content: "+"; justify-self: end; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px 34px; max-width: none; }

/* 応募フォーム */
.form-card { width: 100%; max-width: 760px; justify-self: center; background: var(--paper); border: 1px solid var(--border); border-radius: 22px; padding: 34px; display: grid; gap: 22px; box-shadow: 0 18px 44px #23392f0d; }
form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
label, legend { font-weight: 600; font-size: 14px; padding: 0; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #8ea39a; border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 16px;
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.button.primary:focus-visible, .top nav .nav-cta:focus-visible { box-shadow: 0 0 0 5px #fff; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error-ink); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { font-weight: 400; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--paper); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.choices label:has(:checked) { border-color: var(--accent); background: var(--soft); }
.check label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.check input { margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-message { background: var(--error-bg); color: var(--error-ink); border-radius: 9px; padding: 10px 14px; font-size: 14px; max-width: none; }
#submit { justify-self: start; min-width: 12em; }
.done { background: var(--soft); border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: grid; gap: 8px; }
.alt-contact { color: var(--muted); font-size: 14px; display: grid; gap: 4px; }

/* フッターと運営会社 */
.foot { padding-inline: var(--gutter); padding-block: 28px 112px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.foot .brand { font-size: 16px; }
.foot nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.company-dialog { border: 0; padding: 0; border-radius: 16px; width: min(480px, calc(100% - 32px)); color: var(--ink); background: var(--paper); box-shadow: 0 30px 80px #0f1f1840; }
.company-dialog::backdrop { background: #0f1f1866; }
.dialog-body { padding: 22px 24px 26px; display: grid; gap: 14px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-head h2 { font-size: 18px; }
.dialog-close { min-height: 38px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.company { margin: 0; display: grid; gap: 8px; }
.company div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; }
.company dt { color: var(--muted); font-size: 14px; }
.company dd { margin: 0; }

/* 追従の応募ボタン */
.sticky-cta { position: fixed; z-index: 30; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(600px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 22px; border-radius: 18px; color: #fff; background: #17402ff0; box-shadow: 0 16px 40px #0f1f1840; }
.sticky-cta p { display: grid; font-size: 12.5px; line-height: 1.5; color: #d6e8df; max-width: none; }
.sticky-cta strong { font-size: 15px; color: #fff; }
.sticky-cta .button.primary { background: #fff; color: var(--accent-deep); min-height: 44px; box-shadow: none; }

/* 個人情報の取り扱い */
.legal { padding-inline: var(--gutter); padding-block: 32px 56px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(24px, 3.4vw, 32px); }
.legal h2 { font-size: 18px; margin-top: 10px; }
.legal p, .legal ul { max-width: 44em; }

.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

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

@media (max-width: 1100px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
  .charts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; justify-items: center; text-align: center; }
  .hero-copy { justify-items: center; }
  .hero .lead { max-width: 34em; }
  .hero-actions { justify-content: center; }
  .price-hero { width: min(100%, 560px); text-align: left; }
  .agent { gap: 32px; }
  .charts { grid-template-columns: 1fr; width: 100%; max-width: 560px; }
  .price-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .beta-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage .device.desktop { width: 100%; max-height: 360px; }
  .stage .ai-card { position: relative; top: auto; right: auto; width: auto; margin: -140px 16px 32px; }
}
@media (max-width: 760px) {
  .top nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 36px; gap: 36px; }
  .hero-net { opacity: .6; }
  .price-hero { padding: 26px 18px 20px; }
  .ph-ribbon { left: 16px; font-size: 12px; }
  .ph-facts { grid-template-columns: 1fr 1fr; }
  .ph-facts li:last-child { grid-column: 1 / -1; }
  .section { padding-block: 60px; }
  .pains { padding-block: 48px 40px; }
  .feature-list, .flow, .pairs li, .why ul { grid-template-columns: 1fr; }
  .agent:nth-of-type(even) .agent-text { order: 0; }
  .agent { grid-template-columns: 1fr; gap: 24px; }
  .mock { padding: 52px 14px 32px; min-height: 0; }
  .compare-block, .form-card { padding: 22px 18px; }
  .company div { grid-template-columns: 1fr; gap: 0; }
  .sticky-cta { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
