/* 入札AI 販売サイト
   色: 紺（信頼・官公庁の書類）、若竹（入力済み）、黄の蛍光ペン（要確認）、朱（ここで止める）
   書体: BIZ UD ゴシック（Windows 標準。公共向けの読みやすさ）→ ヒラギノ → Noto */

:root {
  --ink: #14213d;
  --text: #2b3445;
  --muted: #5b6577;
  --line: #d7dde6;
  --line-strong: #b9c2cf;
  --paper: #f4f6f9;
  --surface: #ffffff;
  --green: #1d7a5f;
  --green-dark: #155c48;
  --green-tint: #e5f3ee;
  --marker: #ffe680;
  --marker-tint: #fff6cc;
  --vermilion: #c2412d;
  --focus: #2563eb;

  --font: "BIZ UDPGothic", "BIZ UDゴシック", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --radius-s: 4px;
  --radius-m: 8px;
  --wrap: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--paper);
  font-feature-settings: "palt" 0;
  overflow-wrap: anywhere;
  line-break: strict;
}

img, svg { max-width: 100%; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.45; margin: 0; font-weight: 700; letter-spacing: 0.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }
h2 { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem); }
h3 { font-size: 1.125rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

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

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.3;
  border-radius: var(--radius-s); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-small { min-height: 40px; padding: 6px 16px; font-size: .9375rem; }
.btn .icon { width: 1.25em; height: 1.25em; flex: none; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-note { font-size: .8125rem; color: var(--muted); margin-top: 10px; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1875rem; letter-spacing: .04em; }
.brand-mark { width: 28px; height: 28px; color: var(--ink); }
.nav-desktop { display: flex; gap: 22px; margin-left: auto; }
.nav-desktop a { color: var(--text); text-decoration: none; font-size: .9375rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-desktop a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.nav-desktop a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--green); }
.nav-mobile { display: none; }

@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .header-cta { margin-left: auto; }
  .nav-mobile { display: block; }
  .nav-mobile summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; cursor: pointer; border-radius: var(--radius-s); }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile summary span { display: block; width: 22px; height: 2px; background: var(--ink); }
  .nav-mobile nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: grid; }
  .nav-mobile nav a { color: var(--ink); text-decoration: none; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-mobile nav a[aria-current="page"] { font-weight: 700; color: var(--green-dark); }
}
@media (max-width: 420px) {
  .header-row { gap: 12px; }
  .brand { font-size: 1.0625rem; }
  .header-cta { padding: 6px 12px; font-size: .875rem; }
}

/* セクション */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { margin-top: 14px; color: var(--muted); }
@media (max-width: 600px) { .section { padding: 60px 0; } .section-head { margin-bottom: 28px; } }

/* ヒーロー */
.hero { padding: 72px 0 88px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.625rem); line-height: 1.4; letter-spacing: .02em; }
.hero h1 .phrase { display: inline-block; }
.hero .tagline { margin-top: 18px; font-size: 1.25rem; font-weight: 700; color: var(--vermilion); }
.hero .lead { margin-top: 18px; max-width: 34em; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 14px; font-size: .875rem; color: var(--muted); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 48px 0 64px; } }
@media (max-width: 600px) { .hero-actions .btn { width: 100%; } }

/* 申請画面のイメージ（ヒーローの主役） */
.form-mock {
  margin: 0;
  position: relative;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(20, 33, 61, .45);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--ink); color: #fff; font-size: .8125rem; }
.mock-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); }
.mock-bar .mock-title { margin-left: 6px; }
.mock-bar .mock-state { margin-left: auto; color: #9fe3cc; }
.mock-body { padding: 18px 20px 20px; }
.mock-section { font-size: .8125rem; font-weight: 700; color: var(--muted); padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.mock-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 5.2em; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.mock-row dt { color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.mock-row dd { margin: 0; min-height: 30px; display: flex; align-items: center; padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; background: #fbfcfd; color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; }
.mock-row .val { display: inline-block; overflow: hidden; white-space: nowrap; }
.mock-row dd.chip-cell, .mock-row.is-check dd.chip-cell { border: 0; background: none; padding: 0; min-height: 0; justify-content: flex-end; overflow: visible; }
.mock-row .chip { font-size: .75rem; padding: 2px 8px; border-radius: 99px; line-height: 1.6; font-weight: 700; white-space: nowrap; }
.chip-done { background: var(--green-tint); color: var(--green-dark); }
.chip-check { background: var(--marker); color: #5a4300; }
.mock-row.is-check dd { background: var(--marker-tint); border-color: #e9cc55; }
.mock-foot { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.mock-summary { font-size: .8125rem; color: var(--muted); }
.mock-submit { margin-left: auto; position: relative; display: inline-flex; align-items: center; gap: 10px; }
.mock-submit .fake-btn { padding: 8px 18px; border-radius: 3px; background: #e8ebf0; color: #4f5868; font-weight: 700; font-size: .875rem; border: 1px solid var(--line); }
.stamp {
  display: inline-grid; place-items: center; text-align: center;
  width: 76px; height: 76px; border-radius: 50%;
  border: 2.5px solid var(--vermilion); color: var(--vermilion);
  font-size: .6875rem; font-weight: 700; line-height: 1.35; letter-spacing: .02em;
  transform: rotate(-8deg); background: rgba(255,255,255,.9);
}
.mock-caption { margin-top: 10px; font-size: .75rem; color: var(--muted); text-align: right; }
@media (max-width: 600px) {
  .mock-body { padding: 14px 12px 16px; }
  .mock-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .mock-row dt { grid-column: 1; grid-row: 1; font-size: .75rem; }
  .mock-row dd.chip-cell { grid-column: 2; grid-row: 1; }
  .mock-row dd:not(.chip-cell) { grid-column: 1 / -1; grid-row: 2; }
  .mock-bar .dot { display: none; }
  .mock-bar { flex-wrap: wrap; row-gap: 0; }
  .mock-bar .mock-title { white-space: nowrap; }
  .mock-bar .mock-state { margin-left: 0; width: 100%; }
  .mock-bar .mock-title { margin-left: 0; }
}

.mock-row:nth-of-type(1) { --i: 0; }
.mock-row:nth-of-type(2) { --i: 1; }
.mock-row:nth-of-type(3) { --i: 2; }
.mock-row:nth-of-type(4) { --i: 3; }
.mock-row:nth-of-type(5) { --i: 4; }
.mock-row:nth-of-type(6) { --i: 5; }
.mock-row:nth-of-type(7) { --i: 6; }

/* 一度だけの読み込み演出: 値が順に入り、最後に「ここで止めます」の印が押される */
@media (prefers-reduced-motion: no-preference) {
  .form-mock .val { animation: type-in .55s steps(14, end) both; animation-delay: calc(.35s + var(--i) * .42s); }
  .form-mock .chip { animation: fade-in .2s ease-out both; animation-delay: calc(.85s + var(--i) * .42s); }
  .form-mock .stamp { animation: stamp-in .35s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: 3.4s; }
  .form-mock .mock-state { animation: fade-in .2s both; animation-delay: 3.3s; }
}
@keyframes type-in { from { max-width: 0; } to { max-width: 100%; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes stamp-in { from { opacity: 0; transform: scale(1.6) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(-8deg); } }

/* お悩み */
.pain-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.pain-list li { list-style: none; padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line); }
.pain-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.pain-list h3 { font-size: 1.0625rem; }
.pain-list p { margin-top: 10px; color: var(--muted); font-size: .9375rem; }
.pain-list { padding: 0; margin: 0; }
@media (max-width: 860px) {
  .pain-list { grid-template-columns: 1fr; }
  .pain-list li, .pain-list li + li { padding: 20px 0; border-left: 0; }
}

/* できること（課題→機能の対） */
.feature-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); }
.feature-table th, .feature-table td { text-align: left; vertical-align: top; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.feature-table thead th { background: var(--ink); color: #fff; font-size: .875rem; padding: 12px 22px; }
.feature-table tbody th { width: 34%; color: var(--ink); font-size: 1rem; }
.feature-table td { color: var(--text); font-size: .9375rem; }
@media (max-width: 700px) {
  .feature-table thead { display: none; }
  .feature-table tr { display: block; border-bottom: 1px solid var(--line); padding: 16px 16px 18px; }
  .feature-table th, .feature-table td { display: block; padding: 0; border: 0; width: auto !important; }
  .feature-table td { margin-top: 6px; }
}

/* 流れ（手順なので番号を振る） */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0; margin: 0; }
.steps li { list-style: none; position: relative; padding: 0 18px 0 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--ink); color: var(--ink); font-weight: 700; margin-bottom: 14px;
  position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 20px; left: 40px; right: 0; height: 2px; background: var(--line-strong); }
.steps li:last-child::after { display: none; }
.steps li.step-human::before { border-color: var(--vermilion); color: #fff; background: var(--vermilion); }
.steps h3 { font-size: 1rem; }
.steps p { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.steps .who { display: inline-block; margin-top: 10px; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 3px; background: var(--green-tint); color: var(--green-dark); }
.steps .step-human .who { background: #fbe7e3; color: #9c2f1e; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 26px 58px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li::after { top: 40px; left: 19px; width: 2px; height: auto; bottom: 0; right: auto; }
}

/* データの約束 */
.promise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.promise { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); padding: 22px 24px; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.promise h3 { font-size: 1.0625rem; }
.promise p { margin-top: 8px; font-size: .9375rem; color: var(--muted); }
@media (max-width: 760px) { .promise-grid { grid-template-columns: 1fr; } }

.flow-figure { margin: 32px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; }
.flow-figure svg { display: block; width: 100%; height: auto; }
.flow-figure figcaption { margin-top: 12px; font-size: .8125rem; color: var(--muted); }

/* 料金 */
.price-card { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-m); padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; }
.price-name { font-weight: 700; color: var(--ink); }
.price-for { font-size: .875rem; color: var(--muted); margin-top: 4px; }
.price { margin-top: 18px; color: var(--ink); font-weight: 700; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .unit { font-size: 1rem; }
.price .amount { font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem); letter-spacing: .01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.price .tax { font-size: .9375rem; color: var(--muted); font-weight: 400; }
.price-trial { margin-top: 12px; display: inline-block; background: var(--green-tint); color: var(--green-dark); font-weight: 700; padding: 4px 12px; border-radius: 3px; font-size: .9375rem; }
.price-card .btn { margin-top: 24px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.notes { margin-top: 18px; padding: 0; list-style: none; font-size: .8125rem; color: var(--muted); display: grid; gap: 4px; }
@media (max-width: 760px) { .price-card { grid-template-columns: 1fr; padding: 24px 20px; gap: 24px; } .price-card .btn { width: 100%; } }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 22px; color: var(--text); max-width: 46em; }
.faq .answer p + p { margin-top: 8px; }

/* CTA 帯 */
.cta-band { background: var(--ink); color: #e8ecf3; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 8px; }
.cta-band-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
@media (max-width: 600px) { .cta-actions { width: 100%; } .cta-actions .btn { width: 100%; } }

/* 下層ページ */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.page-head .lead { margin-top: 14px; max-width: 42em; color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.text-block > * + * { margin-top: 14px; }
.text-block h3 + p { margin-top: 8px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 20px 22px; }
.callout-warn { border-left: 4px solid var(--vermilion); }
.callout-check { border-left: 4px solid #d9b62c; background: var(--marker-tint); }

.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 14px 18px; border: 1px solid var(--line); font-size: .9375rem; }
.spec-table th { width: 30%; background: #eef1f5; color: var(--ink); font-weight: 700; }
@media (max-width: 600px) { .spec-table th, .spec-table td { display: block; width: auto; border-top: 0; } .spec-table tr:first-child th { border-top: 1px solid var(--line); } }

/* 送る・送らないの表 */
.send-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .9375rem; }
.send-table th, .send-table td { border: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; }
.send-table thead th { background: var(--ink); color: #fff; font-size: .875rem; }
.send-table .yes { color: var(--green-dark); font-weight: 700; }
.send-table .no { color: var(--vermilion); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 620px; }

/* ダウンロード */
.dl-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; }
.dl-card.is-detected { border: 2px solid var(--green); padding: 27px; }
.dl-card h3 { font-size: 1.5rem; }
.dl-card .meta { margin-top: 4px; color: var(--muted); font-size: .9375rem; }
.dl-card .btn { margin-top: 20px; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-alt { margin-top: 12px; font-size: .8125rem; color: var(--muted); }
.dl-detected { margin-bottom: 16px; font-weight: 700; color: var(--ink); }
.dl-key { margin-top: 32px; }
.dl-env { max-width: 720px; margin-top: 40px; }
@media (max-width: 860px) { .dl-cards { grid-template-columns: 1fr; } }
.os-steps { counter-reset: os; list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.os-steps li { counter-increment: os; position: relative; padding-left: 36px; }
.os-steps li::before { content: counter(os); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.ui-label { font-weight: 700; color: var(--ink); background: #eef1f5; padding: 1px 6px; border-radius: 3px; }

/* フォーム */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }
.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 32px; }
@media (max-width: 600px) { .lead-form { padding: 22px 16px; } }
.field { margin-top: 22px; }
.field:first-child { margin-top: 0; }
.field > label, .field legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 8px; padding: 0; }
.req, .opt { display: inline-block; font-size: .75rem; padding: 0 6px; margin-left: 8px; border-radius: 3px; vertical-align: 2px; font-weight: 700; }
.req { background: var(--vermilion); color: #fff; }
.opt { background: #e8ebf0; color: var(--muted); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.input, .textarea, .select {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; min-height: 48px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: #fff;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--focus); outline: 3px solid rgba(37, 99, 235, .25); outline-offset: 0; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--vermilion); background: #fff8f6; }
.hint { font-size: .8125rem; color: var(--muted); margin-top: 6px; }
.error-text { font-size: .875rem; color: var(--vermilion); margin-top: 6px; font-weight: 700; }
.error-text:empty { display: none; }
.choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice-row.two { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .choice-row, .choice-row.two { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); cursor: pointer; font-weight: 700; color: var(--text); background: #fff; line-height: 1.4; }
.choice input:checked + span { border-color: var(--green); background: var(--green-tint); color: var(--green-dark); box-shadow: inset 0 0 0 1px var(--green); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: flex-start; }
.agree input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--green); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 28px; }
.form-actions .btn { width: 100%; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-s); font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { background: #fdecea; color: #8f2a1c; border: 1px solid #f2b8ae; }
.side-note > * + * { margin-top: 20px; }
.side-note h2 { font-size: 1.125rem; }
.side-note p, .side-note li { font-size: .9375rem; color: var(--muted); }
.side-note ul { padding-left: 1.2em; margin: 8px 0 0; }

/* 法務本文 */
.prose { max-width: 46em; }
.prose h2 { font-size: 1.25rem; margin-top: 48px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.0625rem; margin-top: 28px; }
.prose p, .prose ul, .prose ol { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: 6px; }
.doc-meta { margin-top: 40px; font-size: .875rem; color: var(--muted); }
.def-table { width: 100%; border-collapse: collapse; background: var(--surface); margin-top: 8px; }
.def-table th, .def-table td { text-align: left; vertical-align: top; padding: 14px 18px; border: 1px solid var(--line); font-size: .9375rem; }
.def-table th { width: 30%; background: #eef1f5; color: var(--ink); }
@media (max-width: 600px) { .def-table th, .def-table td { display: block; width: auto; } .def-table td { border-top: 0; } }
.pending { display: inline-block; background: var(--marker-tint); border: 1px dashed #d9b62c; color: #5a4300; padding: 0 6px; border-radius: 3px; font-weight: 700; font-size: .875em; }

/* 完了・準備中・404 */
.notice-page { padding: 96px 0; }
.notice-page .box { max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 40px 32px; }
.notice-page .box p { margin-top: 14px; }
.notice-page .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) { .notice-page { padding: 48px 0; } .notice-page .box { padding: 28px 18px; } .notice-page .actions .btn { width: 100%; } }

/* フッター */
.site-footer { background: #0f1930; color: #c3cad6; padding: 56px 0 28px; font-size: .875rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid nav { display: grid; gap: 8px; align-content: start; }
.footer-grid a { color: #e2e7ef; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; color: #fff; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.0625rem; }
.footer-note { margin-top: 8px; max-width: 24em; }
.footer-head { color: #8f9bb0; font-size: .8125rem; margin-bottom: 4px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 4px; justify-items: center; text-align: center; font-size: .8125rem; color: #97a3b6; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* 図は小さい画面では文字が読めないので、上の4つの約束で代える */
@media (max-width: 640px) { .flow-figure { display: none; } }
[hidden] { display: none !important; }
.callout + .two-col { margin-top: 28px; }

/* 送る・送らないの表：狭い画面では行ごとのカードにして、列の名前を各セルに出す（横スクロールさせない） */
@media (max-width: 640px) {
  .table-cards { overflow: visible; }
  .table-cards table { min-width: 0; }
  .table-cards thead { display: none; }
  .table-cards tr { display: block; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); margin-bottom: 12px; }
  .table-cards th, .table-cards td { display: block; border: 0; padding: 10px 14px; }
  .table-cards tbody th { background: #eef1f5; }
  .table-cards td { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 8px; border-top: 1px solid var(--line); }
  .table-cards td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: .8125rem; }
}

/* 見出しは文節で折り返す（対応するブラウザだけ。ほかは今までどおり） */
h1, h2, h3 { word-break: auto-phrase; }
@media (max-width: 760px) { .footer-grid > nav:last-child { grid-column: 1 / -1; } }

/* 試用の申込み（/trial/）。キーの表示と、登録済みの案内 */
.trial-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 32px; }
.trial-panel > * + * { margin-top: 16px; }
.trial-panel h2:focus { outline: none; }
.trial-panel h3 { font-size: 1.0625rem; margin-top: 28px; }
.trial-key-box { border: 2px solid var(--green); background: var(--green-tint); border-radius: var(--radius-m); padding: 18px 20px; }
.trial-key-label { font-size: .8125rem; font-weight: 700; color: var(--green-dark); }
.trial-key { margin-top: 6px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-size: clamp(.9375rem, 4vw, 1.5rem); font-weight: 700; letter-spacing: .02em; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.trial-key-actions { margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.trial-copy-status { font-size: .875rem; font-weight: 700; color: var(--green-dark); }
.trial-copy-status:empty { display: none; }
.trial-expires { font-weight: 700; }
.trial-expires:empty { display: none; }
@media (max-width: 600px) { .trial-panel { padding: 22px 16px; } .trial-key-actions .btn { width: 100%; } }

/* 会員登録・ログイン（/account/*）：アプリの確認コード */
.account-code { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 16px; margin-bottom: 20px; }
.account-code .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; font-size: 1.125rem; }

/* Google で続ける（/account/*） */
.google-auth { margin-bottom: 8px; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #747775; font-weight: 600; }
.btn-google:hover { background: #f2f2f2; }
.google-g { width: 20px; height: 20px; flex: none; }
.google-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8125rem; margin: 20px 0; }
.google-or::before, .google-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
