/* ============================================================
 * AI導入支援パッケージ LP・申込フォーム 共通CSS
 * 正本の仕様：90_作業中/AI導入支援パッケージ/デザイン仕様_CDO.md
 * 値はCDO仕様のとおり。ここにない色・角丸・影を足さない。
 * ヘッダー・フッターは現行HP（assets/style.css）の作りを写している。
 * ============================================================ */
:root {
  color-scheme: light;
  --teal: #1E8E8B;
  --deep: #0F5E5B;
  --teal-text: #146C69;
  --night: #0B3F3D;
  --signal: #C5EF3A;
  --ink: #1C2527;
  --copy: #3A4548;
  --muted: #5A6568;
  --line: #DCE3E3;
  --field: #7A8689;
  --pale: #F4F7F7;
  --mint: #EAF4F3;
  --line-teal: #A9D6D4;
  --error: #B3261E;
  --error-bg: #FDF1F0;
  --night-sub: #9FE0DA;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 112px;
  --head: 'Zen Kaku Gothic New','Noto Sans JP',sans-serif;
  --body: 'Noto Sans JP',sans-serif;
}
* { box-sizing: border-box; }
html {
  --header-h: 88px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  line-break: strict;
  overflow-wrap: break-word;
}
body {
  margin: 0;
  background: #fff;
  color: var(--copy);
  font: 400 16px/1.95 var(--body);
  letter-spacing: .02em;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--head); }
h1, h2, h3, .lead, summary { text-wrap: balance; word-break: auto-phrase; }
p, li, dd, td, .faq-a { text-wrap: pretty; }
h1, h2 { font-feature-settings: "palt"; }
.price, .price-unit, .tel, .btn { white-space: nowrap; }
.email, .url { overflow-wrap: anywhere; }
.nw { display: inline-block; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { width: 1200px; max-width: calc(100% - 48px); margin-inline: auto; }
.text-link { color: var(--teal-text); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- ヘッダー（HPの作りを流用） ---------- */
body > header { position: sticky; top: 0; z-index: 30; background: #fff; }
.header {
  height: 88px; padding: 0 56px; border-bottom: 1px solid #E3E8E8;
  display: flex; align-items: center; justify-content: space-between;
}
.header .logo img, footer .logo img { display: block; width: 145px; height: 40px; object-fit: contain; }
.desktop-nav {
  display: flex; gap: 40px; align-items: center;
  font: 500 14px/1 var(--head); letter-spacing: 1.12px; color: var(--ink);
}
.desktop-nav > a:not(.btn):hover { color: var(--teal-text); }
.spbtn { display: none; }
.header-back { font-size: 14px; }

/* ---------- ボタン（CDO 4-1） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 0 16px 0 32px;
  border: 0; border-radius: 2px;
  font: 700 18px/1.25 var(--head); letter-spacing: .04em;
  cursor: pointer; transition: background-color .2s;
}
.btn-primary { background: var(--deep); color: #fff; min-width: 320px; }
.btn-primary:hover { background: #0B4F4C; }
.btn-primary:active { transform: translateY(1px); }
.btn-arrow {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--signal); color: var(--deep);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s, background-color .2s;
}
.btn-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-secondary {
  background: #fff; color: var(--deep); border: 2px solid var(--deep);
  min-height: 56px; padding: 0 24px; justify-content: center;
  font-size: 16px;
}
.btn-secondary:hover { background: var(--mint); }
.btn-small { min-height: 48px; min-width: 0; padding: 0 12px 0 20px; font-size: 14px; gap: 12px; }
.btn-small .btn-arrow { flex-basis: 24px; width: 24px; height: 24px; }
.btn-small .btn-arrow svg { width: 12px; height: 12px; }
.on-dark .btn-primary { background: #fff; color: var(--deep); }
.on-dark .btn-primary:hover { background: var(--mint); }
.on-dark :focus-visible { outline-color: var(--signal); }
.btn-ghost-dark {
  background: var(--night); color: #fff; border: 2px solid #fff;
  min-width: 320px; justify-content: center; padding: 0 24px;
}
.btn-ghost-dark:hover { background: #12504D; }
.final-choice .btn-ghost-dark, .choose-card .btn-secondary { justify-content: flex-start; padding-left: 32px; }
.btn-note { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ---------- セクション共通 ---------- */
.sec { padding: 112px 0; }
.sec--pale { background: var(--pale); }
.sec-head { max-width: 40em; }
.sec-head h2, .h2 {
  font-size: 40px; line-height: 1.45; letter-spacing: .03em; font-weight: 700;
}
.sec-head h2 em { font-style: normal; color: var(--deep); }
.sec-lead { margin-top: 16px; font-size: 16px; line-height: 1.95; max-width: 40em; }
.sec-body { margin-top: 56px; }
.h3 { font-size: 22px; line-height: 1.5; letter-spacing: .02em; font-weight: 700; }
.caption { color: var(--muted); font-size: 13px; line-height: 1.7; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 32px; }
.panel-strong { background: #fff; border-top: 4px solid var(--teal); padding: 40px 48px; }
.panel-strong p { color: var(--ink); font-weight: 500; font-size: 18px; line-height: 1.9; max-width: 40em; }
.icon {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: var(--mint);
  display: inline-flex; align-items: center; justify-content: center; color: var(--teal);
}
.on-mint .icon { background: #fff; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 1. FV ---------- */
.fv { padding: 56px 0 72px; }
.fv-grid { display: grid; grid-template-columns: minmax(0,1fr) 480px; gap: 24px; align-items: start; }
/* 図は仕様560px幅だが、H1を2行に収めるため480px（縦横比は同じ） */
.fv h1 { font-size: 56px; line-height: 1.35; letter-spacing: .02em; font-weight: 900; }
.fv-lead { margin-top: 20px; font-size: 18px; line-height: 1.9; font-weight: 500; color: var(--copy); max-width: 33em; }
.fv-points { margin: 20px 0 0; padding: 0; list-style: none; }
.fv-points li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.8; color: var(--ink); }
.fv-points li:before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--teal);
}
.fv-prices {
  display: flex; flex-wrap: wrap; align-items: stretch; margin-top: 24px;
  font-size: 15px; line-height: 1.5; color: var(--ink);
}
.fv-prices a { display: flex; gap: 8px; align-items: baseline; padding: 0 16px; border-left: 1px solid var(--line); }
.fv-prices a:first-child { padding-left: 0; border-left: 0; }
.fv-prices a:hover b { color: var(--teal-text); }
.fv-prices span { color: var(--muted); font-size: 13px; }
.fv-prices b { font-family: var(--head); font-weight: 700; }
.fv-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.fv-sub { font-size: 14px; line-height: 1.7; color: var(--copy); }
.fv-sub a { color: var(--teal-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.fv-facts { margin-top: 12px; font-size: 15px; line-height: 1.8; color: var(--ink); max-width: 40em; }
.fv-fig { margin: 0; }
.fv-fig svg { display: block; width: 100%; height: auto; border-radius: 4px; }
.fv-fig .sp-only { display: none; }

/* ---------- 2. 悩み ---------- */
.worry-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 24px; }
.worry-grid > * { grid-column: span 2; }
.worry-grid > :nth-child(n+4) { grid-column: span 3; }
.worry-card { display: flex; gap: 16px; align-items: flex-start; background: var(--mint); border-radius: 4px; padding: 24px; }
.worry-card h3 { font-family: var(--body); font-size: 16px; line-height: 1.6; font-weight: 700; }
.worry-card p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.worry-close { margin-top: 48px; }

/* ---------- 3. EBのAI導入支援とは ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 48px; }
.about-body p + p { margin-top: 16px; }
.pillars { margin: 0; padding: 0; list-style: none; }
.pillars li { display: grid; grid-template-columns: 64px 1fr; gap: 0 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.pillars li:first-child { border-top: 1px solid var(--ink); padding-top: 28px; }
.pillars .num { font: 700 32px/1.1 var(--head); color: var(--teal); }
.pillars h3 { font-size: 22px; line-height: 1.5; }
.pillars p { margin-top: 8px; }
.reason { margin-top: 48px; }
.reason h3 { font-size: 22px; line-height: 1.5; margin-bottom: 12px; }
.reason p { font-weight: 400; font-size: 16px; color: var(--copy); }

/* ---------- 4. 料金表 ---------- */
.plan-links { display: none; }
.plan-table {
  display: grid;
  grid-template-columns: 200px repeat(3, minmax(0,1fr));
  grid-template-rows: 36px repeat(15, auto);
  column-gap: 24px;
}
.plan-band {
  grid-row: 1; position: relative;
  background: var(--deep); color: #fff; font: 700 14px/36px var(--head); letter-spacing: .04em;
  text-align: center; border-radius: 4px 4px 0 0;
}
.plan-band:before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 4px; background: var(--signal); border-radius: 4px 4px 0 0; }
.plan-labels, .plan-col { grid-row: 2 / -1; display: grid; grid-template-rows: subgrid; }
.plan-labels { grid-column: 1; }
.plan-col { grid-template-columns: minmax(0,1fr); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0 24px; }
.plan-col.is-featured { background: var(--mint); border: 2px solid var(--teal); border-top: 0; border-radius: 0 0 4px 4px; box-shadow: 0 12px 32px rgba(15,94,91,.12); padding: 0 23px; }
.plan-col.is-featured .p-name { padding-top: 26px; }
.p-cell { padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--copy); }
.plan-labels .p-cell { color: var(--ink); font-weight: 500; font-size: 14px; padding-right: 8px; }
.plan-labels .p-blank { border-top: 0; }
.sp-only-text { display: none; }
.p-name { padding: 28px 0 8px; font: 700 22px/1.5 var(--head); color: var(--ink); border-top: 0; }
.p-price { border-top: 0; padding: 0 0 12px; color: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; }
.p-price .pre { display: block; font-size: 13px; line-height: 1.6; color: var(--copy); }
.p-price .price-rule { margin: 2px 0 2px; color: var(--muted); }
.fv-prices .fv-tax { flex-basis: 100%; padding-top: 2px; color: var(--muted); font-size: 13px; }
.p-price .price { font: 900 48px/1.1 var(--head); letter-spacing: 0; color: var(--ink); }
.p-price .price-unit { font: 700 20px/1.1 var(--head); color: var(--ink); }
.p-price .tax { font: 500 13px/1.4 var(--body); color: var(--muted); white-space: nowrap; }
.p-price .price-text { font: 900 28px/1.3 var(--head); color: var(--ink); }
.p-price .price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; margin-top: 4px; }
.p-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }
.p-label { display: none; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); vertical-align: .05em; margin-right: 6px; }
.dash { display: inline-block; width: 12px; height: 2px; background: var(--muted); vertical-align: .3em; }
.p-note { font-size: 13px; line-height: 1.7; color: var(--muted); }
.p-action { border-top: 0; padding: 24px 0 32px; align-self: stretch; display: grid; grid-template-rows: auto minmax(3.4em, auto); align-content: end; }
.p-action .btn { width: 100%; min-width: 0; padding: 0 12px 0 20px; gap: 12px; font-size: 16px; }
.p-action .btn-secondary { padding: 0 12px; }
.p-action .btn-secondary { min-height: 64px; }
.plan-foot { margin-top: 32px; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* ---------- 5. ライトの仕組み図 ---------- */
.pay-fig { margin: 56px 0 0; background: var(--pale); border-radius: 4px; padding: 32px; }
.pay-fig svg { display: block; width: 100%; height: auto; }
.pay-fig text { paint-order: stroke; stroke: #F4F7F7; stroke-width: 6px; stroke-linejoin: round; }
.pay-fig .box-t text { stroke: none; }
.pay-fig .sp-only { display: none; }
.pay-points { margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 48em; }
.pay-points li { position: relative; padding-left: 22px; }
.pay-points li:before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.pay-cta { margin-top: 40px; }

/* ---------- 6. できること ---------- */
.can-h3 { margin-bottom: 24px; }
.ask-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.ask-grid .card h3 { margin-top: 16px; font-size: 18px; line-height: 1.5; }
.ask-grid .card p { margin-top: 8px; font-size: 15px; line-height: 1.85; }
.build { margin-top: 72px; display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: start; }
.build-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr; gap: 0 24px; }
.build-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.7; color: var(--ink); }
.build-list li svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--teal); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.running { background: var(--mint); border-radius: 4px; padding: 32px; }
.running h3 { font-family: var(--body); font-size: 16px; line-height: 1.6; font-weight: 700; }
.running ul { margin: 12px 0 0; padding: 0; list-style: none; }
.running li { padding: 8px 0 8px 22px; position: relative; color: var(--ink); font-weight: 500; }
.running li:before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.can-close { margin-top: 40px; max-width: 40em; }

/* ---------- 7. どちらが合うか ---------- */
.choose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.choose-card { display: flex; flex-direction: column; }
.choose-card h3 { font-size: 22px; line-height: 1.5; }
.choose-card ul { margin: 20px 0 0; padding: 0; list-style: none; flex: 1; }
.choose-card li { padding: 10px 0 10px 22px; position: relative; border-top: 1px solid var(--line); }
.choose-card li:before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.choose-plan { margin-top: 24px; font: 700 16px/1.5 var(--head); color: var(--teal-text); }
.choose-card .btn { margin-top: 12px; width: 100%; min-width: 0; }
.choose-card .btn-secondary { min-height: 64px; }
.choose-foot { margin-top: 32px; }

/* ---------- 8. 申込の流れ ---------- */
.flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.flow-grid h3 { font-size: 22px; line-height: 1.5; margin-bottom: 24px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 0 0 24px 32px; }
.steps li:before { content: ""; position: absolute; left: 3px; top: 12px; bottom: -12px; width: 1px; background: var(--line-teal); }
.steps li:last-child:before { display: none; }
.steps li:after { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--teal); background: #fff; }
.steps li:last-child:after { background: var(--teal); }
.done-sec .steps li:last-child:after { background: #fff; }
.steps li.is-done:after, .done-sec .steps li.is-done:after { background: var(--teal); }
.steps b { display: block; padding-left: 1.2em; text-indent: -1.2em; color: var(--ink); font-size: 16px; line-height: 1.6; }
.steps b .nw { text-indent: 0; } /* inline-block は text-indent を引き継ぐため戻す */
.steps li > span { display: block; padding-left: 19px; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.steps .no { display: inline-block; width: 1.2em; margin-right: 0; text-indent: 0; color: var(--teal-text); font-family: var(--head); }

/* ---------- 9. FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 24px 48px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 28px 1fr 20px; gap: 0 12px;
  align-items: start; min-height: 56px; padding: 20px 0;
  font: 700 17px/1.6 var(--body); color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .q { font: 700 18px/1.5 var(--head); color: var(--teal-text); }
.faq-list .tg { position: relative; width: 20px; height: 20px; margin-top: 4px; }
.faq-list .tg:before, .faq-list .tg:after { content: ""; position: absolute; background: var(--teal); }
.faq-list .tg:before { left: 0; right: 0; top: 9px; height: 2px; }
.faq-list .tg:after { top: 0; bottom: 0; left: 9px; width: 2px; transition: transform .2s; }
.faq-list details[open] .tg:after { transform: rotate(90deg); }
.faq-a { display: grid; grid-template-columns: 28px 1fr; gap: 0 12px; padding: 0 32px 20px 0; font-size: 15px; line-height: 1.9; }
.faq-a .a { font: 700 18px/1.5 var(--head); color: var(--muted); }

/* ---------- 10. 最終CTA ---------- */
.final-cta { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 120px 0; }
.final-cta .deco { position: absolute; right: -240px; bottom: -160px; width: 640px; opacity: .2; pointer-events: none; }
.final-grid { position: relative; display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.final-cta h2 { color: #fff; font-size: 36px; line-height: 1.5; }
.final-cta .final-lead { margin-top: 16px; color: var(--night-sub); font-size: 15px; line-height: 1.9; }
.final-choices { display: grid; grid-template-columns: 1fr; gap: 32px; }
.final-choice b { display: block; margin-bottom: 12px; font: 700 16px/1.5 var(--head); }
.final-choice .btn { width: 100%; min-width: 0; }
.final-choice p { margin-top: 12px; color: var(--night-sub); font-size: 13px; line-height: 1.7; }

/* ---------- フッター（HPの作りを流用） ---------- */
footer { padding: 72px 0 40px; }
footer .wrap { position: relative; }
.footer-main p { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.footer-links {
  position: absolute; right: 0; top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end;
  font-size: 13px; color: var(--muted);
}
.footer-links a:hover { color: var(--teal-text); }
footer small { display: block; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* ---------- スマホ追従CTA（CDO 5-2） ---------- */
.mbar { display: none; }

/* ---------- 表示時の出現（HPの .reveal と同じ） ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
 * 申込フォーム（CDO 7章）
 * ============================================================ */
.apply-main { width: 640px; max-width: calc(100% - 48px); margin: 0 auto; padding: 64px 0 112px; }
.apply-main h1 { font-size: 32px; line-height: 1.45; font-weight: 700; }
.apply-lead { margin-top: 12px; font-size: 15px; line-height: 1.9; }
.apply-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 48px; padding: 0; list-style: none; }
.apply-flow li { position: relative; padding-top: 20px; border-top: 1px solid var(--line-teal); font-size: 15px; line-height: 1.5; color: var(--muted); }
.apply-flow li:before { content: ""; position: absolute; left: 0; top: -5px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--teal); background: #fff; }
.apply-flow li.is-done:before, .apply-flow li.is-current:before { background: var(--teal); }
.apply-flow li.is-current { color: var(--ink); font-weight: 700; }
.apply-flow span { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 4px; }
.form { display: grid; gap: 32px; }
.field { display: grid; gap: 0; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > .label, .field > legend {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0;
  font: 700 16px/1.5 var(--body); color: var(--ink);
}
.req, .opt { display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .04em; }
.req { background: var(--deep); color: #fff; }
.opt { border: 1px solid var(--field); color: var(--muted); font-weight: 500; padding: 1px 7px; }
.help { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.control { margin-top: 8px; }
.input, .textarea, .select {
  display: block; width: 100%; min-height: 56px; padding: 0 16px;
  border: 1px solid var(--field); border-radius: 4px; background: #fff;
  font: 400 16px/1.5 var(--body); color: var(--ink);
}
.textarea { min-height: 160px; padding: 14px 16px; resize: vertical; line-height: 1.8; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 48px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%231E8E8B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.input::placeholder, .textarea::placeholder { color: #6B777A; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border: 2px solid var(--teal); padding-left: 15px; box-shadow: 0 0 0 3px rgba(30,142,139,.2);
}
.textarea:focus { padding: 13px 15px; }
.short { max-width: 320px; }
.choice-list { display: grid; gap: 4px; margin-top: 8px; }
.choice-list.cols2 { grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: 8px; }
.fixed-plan { margin-top: 8px; padding: 16px; border: 2px solid var(--deep); border-radius: 4px; background: var(--mint); }
.fixed-plan b { display: block; font: 700 16px/1.5 var(--body); color: var(--ink); }
.fixed-plan span { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }
.switch-link { margin-top: 8px; font-size: 14px; }
.consent-hint { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; line-height: 1.5; color: var(--ink); cursor: pointer; }
.choice input { flex: 0 0 24px; width: 24px; height: 24px; margin: 0; accent-color: var(--deep); }
.inline-other { margin-top: 8px; }
.plan-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
.plan-card {
  display: grid; grid-template-columns: 20px 1fr; gap: 4px 10px; align-content: start;
  min-height: 88px; padding: 16px; border: 1px solid var(--field); border-radius: 4px; background: #fff; cursor: pointer;
}
.plan-card input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--deep); }
.plan-card b { font: 700 16px/1.5 var(--body); color: var(--ink); }
.plan-card > span { grid-column: 2; font-size: 14px; line-height: 1.5; color: var(--muted); }
.plan-card:has(input:checked) { border: 2px solid var(--deep); background: var(--mint); padding: 15px; }
.plan-card:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }
.plan-note { margin-top: 8px; color: var(--teal-text); font-size: 13px; line-height: 1.7; }
.plan-note[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 16px; display: grid; gap: 16px; }
.form-actions .btn { width: 100%; min-width: 0; }
.form-actions .back { justify-self: start; font-size: 14px; }

/* エラー（CDO 7-6） */
.is-invalid .input, .is-invalid .textarea, .is-invalid .select, .input.is-invalid {
  border: 2px solid var(--error); background-color: var(--error-bg); padding-left: 15px;
}
.is-invalid .plan-card, .is-invalid .consent-row { border-color: var(--error); }
.err {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 8px;
  color: var(--error); font-size: 14px; font-weight: 700; line-height: 1.6;
}
.err[hidden] { display: none; }
.err:before {
  content: "!"; flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%;
  background: var(--error); color: #fff; font: 700 11px/16px var(--body); text-align: center;
}
.err-summary {
  margin: 0 0 32px; padding: 16px; border: 2px solid var(--error); background: var(--error-bg); border-radius: 4px;
}
.err-summary[hidden] { display: none; }
.stop-box { margin-top: 24px; }
.err-summary h2 { font: 700 16px/1.5 var(--body); color: var(--error); }
.err-summary ul { margin: 8px 0 0; padding-left: 20px; }
.err-summary li { font-size: 14px; line-height: 1.8; }
.err-summary a { color: var(--error); text-decoration: underline; }
.err-summary:focus { outline: 3px solid var(--error); outline-offset: 2px; }

/* 確認画面 */
.confirm-list { margin: 0; border-top: 1px solid var(--line); }
.confirm-list div { display: grid; grid-template-columns: 240px 1fr; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.confirm-list dt { color: var(--muted); font-size: 14px; line-height: 1.7; }
.confirm-list dd { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.confirm-edit { margin-top: 16px; }
.terms-head { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.terms-head h2 { font: 700 18px/1.5 var(--body); }
.terms-head span { color: var(--muted); font-size: 13px; }
.terms-box {
  margin-top: 12px; height: 320px; overflow-y: auto; padding: 24px;
  border: 1px solid var(--field); border-radius: 4px; background: var(--pale);
  font-size: 14px; line-height: 1.9; color: var(--copy);
}
.terms-box:focus { outline: none; border: 2px solid var(--teal); padding: 23px; box-shadow: 0 0 0 3px rgba(30,142,139,.2); }
.terms-box h2, .terms-box h3 { font: 700 14px/1.9 var(--body); color: var(--ink); margin: 16px 0 0; }
.terms-box h1 { font: 700 16px/1.6 var(--body); margin: 0 0 8px; }
.terms-box > :first-child { margin-top: 0; }
.terms-box p, .terms-box ol, .terms-box ul { margin: 4px 0 0; }
.terms-box table { border-collapse: collapse; margin-top: 8px; }
.terms-box td, .terms-box th { border: 1px solid var(--line); padding: 4px 8px; }
.terms-box h2 { font-size: 15px; margin-top: 24px; }
.terms-box ol, .terms-box ul { padding-left: 1.6em; }
.terms-box ol.paren { list-style: none; padding-left: 0; counter-reset: paren; }
.terms-box ol.paren > li { counter-increment: paren; padding-left: 2.2em; text-indent: -2.2em; }
.terms-box ol.paren > li:before { content: "(" counter(paren) ") "; }
.terms-box .table-scroll { overflow-x: auto; }
.terms-box mark { background: #FFF3B0; color: inherit; }
.terms-box .terms-meta { font-weight: 700; color: var(--ink); }
.terms-open { margin-top: 8px; font-size: 14px; }
.consents { margin-top: 24px; display: grid; gap: 16px; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; font-size: 15px; line-height: 1.7; color: var(--ink); cursor: pointer; }
.consent-row input { flex: 0 0 24px; width: 24px; height: 24px; margin: 0; accent-color: var(--deep); }
.consent-row a { color: var(--teal-text); text-decoration: underline; text-underline-offset: 3px; }
.submit-notice { margin-top: 24px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.btn[aria-disabled="true"] { background: #8A9699; cursor: not-allowed; }
.btn[aria-disabled="true"] .btn-arrow { background: #DCE3E3; color: #5A6568; }
.btn.is-sending .btn-arrow svg { display: none; }
.btn.is-sending .btn-arrow:after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--deep); border-right-color: transparent; animation: spin 1.5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 完了画面（CDO 7-7） */
.done-main { padding-top: 96px; }
.done-check { width: 64px; height: 64px; border-radius: 50%; background: var(--mint); display: flex; align-items: center; justify-content: center; }
.done-check svg { width: 32px; height: 32px; fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s ease-out .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-main h1 { margin-top: 24px; }
.done-id { margin-top: 16px; font: 700 20px/1.5 var(--head); color: var(--ink); white-space: nowrap; }
.done-time { color: var(--muted); font-size: 14px; }
.done-sec { margin-top: 48px; }
.done-sec h2 { font: 700 18px/1.5 var(--body); margin-bottom: 16px; }
.done-sec p { font-size: 15px; line-height: 1.9; }
.done-back { margin-top: 48px; }

/* 規約ページ（単体表示） */
.doc-main { width: 800px; max-width: calc(100% - 48px); margin: 0 auto; padding: 64px 0 112px; }
.doc-main h1 { font-size: 32px; line-height: 1.45; }
.doc-meta { margin-top: 8px; color: var(--muted); font-size: 14px; }
.doc-main article { margin-top: 40px; }
.doc-main article h2 { font: 700 18px/1.6 var(--body); margin: 32px 0 8px; }
.doc-main article p, .doc-main article li { font-size: 15px; line-height: 1.9; }

/* ============================================================
 * タブレット（768〜1023px）
 * ============================================================ */
@media (min-width:768px) and (max-width:1200px) {
  .header { padding: 0 28px; }
  .desktop-nav { gap: 24px; }
}
@media (min-width:768px) and (max-width:1023px) {
  .desktop-nav > a:not(.btn) { display: none; }
  .fv-grid { grid-template-columns: 1fr; }
  .fv h1 { font-size: clamp(36px, 5.4vw, 56px); }
  .fv-fig { max-width: 560px; }
  .worry-grid, .ask-grid { grid-template-columns: 1fr 1fr; }
  .worry-grid > *, .worry-grid > :nth-child(n+4) { grid-column: auto; }
  .plan-table { grid-template-columns: 140px repeat(3, minmax(0,1fr)); column-gap: 12px; }
  .plan-col { padding: 0 16px; }
  .plan-col.is-featured { padding: 0 15px; }
  .p-price .price { font-size: 40px; }
  .final-grid { grid-template-columns: 1fr; }
  .build { grid-template-columns: 1fr; }
}

/* ============================================================
 * スマホ（767px以下）
 * ============================================================ */
@media (max-width:767px) {
  html { --header-h: 60px; scroll-padding-bottom: 68px; }
  body.has-mbar { padding-bottom: 68px; }
  .wrap { max-width: calc(100% - 40px); }
  .header { height: 60px; padding: 0 16px; }
  .header .logo img { width: 102px; height: 28px; }
  .desktop-nav { display: none; }
  .spbtn {
    display: block; margin-left: auto; padding: 9px 10px; background: var(--deep); border-radius: 2px;
    color: #fff; font-size: 11px; line-height: 1; letter-spacing: .44px; font-weight: 700;
  }
  .btn { min-height: 56px; font-size: 17px; padding-left: 24px; }
  .btn-primary, .btn-ghost-dark { width: 100%; min-width: 0; }
  .btn-arrow { flex-basis: 28px; width: 28px; height: 28px; }
  .btn-secondary { min-height: 52px; font-size: 15px; }
  .sec { padding: 72px 0; }
  .sec-head h2, .h2 { font-size: 26px; line-height: 1.5; }
  .sec-lead { margin-top: 12px; font-size: 15px; line-height: 1.9; }
  .sec-body { margin-top: 32px; }
  .h3 { font-size: 18px; }
  .card { padding: 24px 20px; }
  .panel-strong { padding: 28px 20px; }
  .panel-strong p { font-size: 16px; }

  .fv { padding: 24px 0 56px; }
  .fv-grid { grid-template-columns: 1fr; gap: 32px; }
  .fv h1 { font-size: 30px; line-height: 1.45; }
  .fv-lead { margin-top: 12px; font-size: 16px; line-height: 1.85; }
  .fv-points { margin-top: 12px; }
  .fv-prices { display: grid; gap: 4px; margin-top: 14px; }
  .fv-prices a { padding: 0; border: 0; }
  .fv-prices .fv-tax { padding: 0; border: 0; }
  .fv-actions { margin-top: 16px; flex-direction: column; align-items: stretch; }
  .fv-text { display: flex; flex-direction: column; }
  .fv-facts { order: 1; margin-top: 16px; font-size: 14px; }
  .fv-fig .pc-only { display: none; }
  .fv-fig .sp-only { display: block; }

  .worry-grid { grid-template-columns: 1fr; gap: 16px; }
  .worry-grid > *, .worry-grid > :nth-child(n+4) { grid-column: auto; }
  .worry-close { margin-top: 32px; }
  .about-grid, .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .pillars li { grid-template-columns: 48px 1fr; padding: 24px 0; }
  .pillars h3 { font-size: 18px; }
  .reason { margin-top: 32px; }
  .reason h3 { font-size: 18px; }

  .plan-links { display: flex; gap: 6px; margin-bottom: 24px; }
  .plan-links a:last-child { flex: 1.3; }
  .plan-links a { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--deep); border-radius: 2px; color: var(--deep); font: 700 13px/1.2 var(--head); letter-spacing: 0; padding: 0 4px; white-space: nowrap; background: #fff; }
  .plan-table { display: flex; flex-direction: column; gap: 0; }
  .plan-labels { display: none; }
  .plan-band { margin-top: 4px; }
  .plan-col { display: block; padding: 0 20px; margin-bottom: 16px; scroll-margin-top: 80px; }
  .plan-col.is-featured { padding: 0 19px; }
  .plan-col.is-featured .p-name { padding-top: 22px; }
  .p-name { padding-top: 24px; font-size: 20px; }
  .p-price .price { font-size: 40px; }
  .p-price .price-unit { font-size: 18px; }
  /* スマホの料金カード：行の名前を上・中身を下に積む。●だけの行は●を右端に（CDO第2周N-1） */
  .p-cell.p-row { display: grid; grid-template-columns: 1fr; gap: 4px 0; }
  .p-cell.p-row.is-check { grid-template-columns: minmax(0,1fr) 20px; gap: 0 12px; align-items: start; }
  .p-cell.p-row.is-check > span:last-child { justify-self: end; padding-top: 5px; }
  .p-row:not(.is-check) > span:last-child:has(.dot) { padding-left: 16px; text-indent: -16px; }
  .p-row > span:last-child:has(.dot) .nw { text-indent: 0; }
  .short { max-width: none; }
  .p-cell.p-row .p-label { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; padding-right: 4px; }
  .p-desc { padding-bottom: 14px; }
  .p-note:empty { display: none; }
  .p-cell.p-row.is-none { display: none; }
  .sp-only-text { display: inline; color: var(--teal-text); font-weight: 700; }
  .final-choice .btn-ghost-dark, .choose-card .btn-secondary { padding-left: 24px; }
  .p-action { padding: 20px 0 24px; }

  .pay-fig { padding: 16px; margin-top: 32px; }
  .pay-fig .pc-only { display: none; }
  .pay-fig .sp-only { display: block; }
  .pay-points { margin-top: 32px; }

  .ask-grid { grid-template-columns: 1fr; gap: 16px; }
  .build { margin-top: 48px; grid-template-columns: 1fr; }
  .build-list { grid-template-columns: 1fr; }
  .running { padding: 24px 20px; }
  .choose-grid, .flow-grid { grid-template-columns: 1fr; gap: 16px; }
  .flow-grid { gap: 40px; }
  .choose-card h3, .flow-grid h3 { font-size: 18px; }

  .faq-list summary { font-size: 16px; }
  .faq-a { padding-right: 0; line-height: 1.85; }

  .final-cta { padding: 80px 0; }
  .final-cta .deco { width: 360px; right: -80px; }
  .final-grid { grid-template-columns: 1fr; gap: 32px; }
  .final-cta h2 { font-size: 24px; }
  .final-choices { grid-template-columns: 1fr; gap: 32px; }

  footer { padding: 48px 0 32px; }
  .footer-links { position: static; justify-content: flex-start; margin-top: 24px; }
  footer small { margin-top: 24px; padding-top: 16px; }

  .mbar {
    display: block; position: fixed; z-index: 20; left: 0; bottom: 0; width: 100%;
    height: calc(68px + env(safe-area-inset-bottom)); padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: #fff; box-shadow: 0 -4px 16px rgba(28,37,39,.08);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  }
  .mbar.is-shown { opacity: 1; visibility: visible; }
  .mbar .btn { width: 100%; min-height: 52px; font-size: 15px; }

  .apply-main { max-width: calc(100% - 40px); padding: 40px 0 72px; }
  .apply-main h1 { font-size: 24px; }
  .apply-flow { margin: 24px 0 40px; }
  .apply-flow li { font-size: 14px; }
  .form { gap: 28px; }
  .plan-cards { grid-template-columns: 1fr; }
  .choice-list.cols2 { grid-template-columns: 1fr; }
  .confirm-list div { grid-template-columns: 1fr; }
  .terms-box { height: 260px; padding: 16px; }
  .terms-box:focus { padding: 15px; }
  .done-main { padding-top: 56px; }
  .doc-main { max-width: calc(100% - 40px); padding: 40px 0 72px; }
  .doc-main h1 { font-size: 24px; }
}
@media (max-width:400px) {
  /* 375〜400px幅：H1「AIを「何に使うか」から、」を2行に収める（CDO §6-1 H1は2行まで。30pxでは3行になる） */
  .fv h1 { font-size: 28px; letter-spacing: 0; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .done-check path { animation: none; stroke-dashoffset: 0; }
  .btn.is-sending .btn-arrow:after { animation: none; }
  .mbar, .btn, .btn-arrow { transition: none; }
}
