/* =========================================================
   Shopify移行相談 for ショップサーブ店舗 — styles.css
   色・書体は :root の変数で一元管理
   ========================================================= */
:root {
  --ink: #17202b;          /* 本文・濃色面 */
  --ink-2: #3a4553;        /* 補助テキスト */
  --ink-3: #6a7482;        /* 注記 */
  --line: #dcdfe3;
  --line-2: #e9ebee;
  --paper: #f6f5f1;        /* 背景（わずかに暖色） */
  --paper-2: #eeede7;      /* 薄い区切り面 */
  --white: #ffffff;
  --accent: #0f7a5c;       /* 主要アクセント（深い緑） */
  --accent-strong: #0b6047;
  --accent-soft: #e3f1ec;
  --amber: #a5620c;        /* 要検証 */
  --amber-soft: #fbf0de;
  --blue: #2c5e9e;         /* 検討 */
  --blue-soft: #e6eef8;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --focus: #1a64d6;

  --font-head: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --container: 1120px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.85; letter-spacing: .02em;
  font-feature-settings: "palt" 0;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.4; margin: 0; letter-spacing: .03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* hidden 属性は常に非表示を優先する。
   .form{display:grid} などの作者スタイルが UA の [hidden]{display:none} を
   上書きしてしまい、確認画面へ切り替えてもフォームが消えない状態になるため。 */
[hidden] { display: none !important; }

.sp-only { display: none; }
@media (max-width: 767px) { .sp-only { display: inline; } .pc-only { display: none; } }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
@media (max-width: 767px) { .container { padding: 0 20px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 16px/1.3 var(--font-body); letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { background: #b9bfc6; color: #fff; border-color: transparent; cursor: not-allowed; transform: none; }
.btn-arrow { transition: transform .15s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,245,241,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 2px; }
.brand-mark::before { left: 6px; background: #8a96a5; }
.brand-mark::after { right: 6px; background: #3fc19a; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; white-space: nowrap; }
.brand-name small { font-size: 12px; font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.brand-operator { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.global-nav { margin-left: auto; }
.global-nav ul { display: flex; gap: 4px; }
.global-nav a { display: block; padding: 8px 12px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); border-radius: 6px; }
.global-nav a:hover { color: var(--ink); background: var(--paper-2); }
@media (max-width: 1023px) { .global-nav { display: none; } .header-cta { margin-left: auto; } }
@media (max-width: 767px) {
  :root { --header-h: 60px; }
  .brand-name { font-size: 14px; }
  .brand-name small { display: block; margin: 0; font-size: 11px; }
  .brand-operator { font-size: 10px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-mark::before { left: 4px; } .brand-mark::after { right: 4px; }
  .header-cta { padding: 0 14px; font-size: 13px; min-height: 40px; }
}
@media (max-width: 360px) { .brand-mark { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero::before { /* 方眼の下地 */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-title { margin-top: 22px; }
.hero-title-main { display: block; font-size: clamp(34px, 4.6vw, 54px); font-weight: 900; line-height: 1.28; letter-spacing: .02em; }
.hero-title-sub { display: block; margin-top: 16px; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; color: var(--accent-strong); line-height: 1.6; }
.hero-lead { margin-top: 20px; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.hero-points { margin-top: 24px; display: grid; gap: 10px; }
.hero-points li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.hero-points .num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-family: var(--font-head); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

/* 移行整理シート（図解） */
.sheet { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 1px 0 var(--line-2), 0 24px 48px -28px rgba(23,32,43,.28); overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.sheet-title { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.sheet-tag { font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 1px 8px; }
.sheet-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 18px 20px; background: var(--paper); }
.route-box { display: flex; flex-direction: column; align-items: center; padding: 8px 14px; border-radius: 8px; font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.3; }
.route-box small { font-size: 10px; font-weight: 500; letter-spacing: .1em; opacity: .75; }
.route-from { background: var(--white); border: 1px solid var(--line); color: var(--ink-2); }
.route-to { background: var(--ink); color: #fff; }
.route-line { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); }
.route-line::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--accent); border-right: 0; }
.route-line span { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--accent-strong); white-space: nowrap; background: var(--paper); padding: 0 6px; }
.sheet-body { padding: 6px 20px 8px; }
.sheet-group { padding: 12px 0; }
.sheet-group + .sheet-group { border-top: 1px dashed var(--line); }
.sheet-group-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 6px; }
.sheet-group li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; font-size: 14px; }
.chip { flex: none; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; line-height: 1.7; }
.chip-ok { background: var(--accent-soft); color: var(--accent-strong); }
.chip-check { background: var(--amber-soft); color: var(--amber); }
.chip-alt { background: var(--blue-soft); color: var(--blue); }
.sheet-caption { padding: 10px 20px 14px; font-size: 11px; color: var(--ink-3); border-top: 1px solid var(--line-2); line-height: 1.6; }

.context-note { margin-top: 48px; display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.context-label { font-weight: 700; color: var(--ink); font-size: 14px; }

@media (max-width: 959px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .sheet { max-width: 560px; }
}
@media (max-width: 767px) {
  .hero { padding: 36px 0 40px; }
  .eyebrow { font-size: 12px; padding: 5px 12px; }
  .hero-title-main { font-size: 32px; }
  .hero-title-sub { font-size: 17px; }
  .hero-lead { font-size: 15px; }
  .hero-points li { font-size: 14px; align-items: flex-start; }
  .hero-points .num { margin-top: 1px; width: 22px; height: 22px; font-size: 12px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-note { font-size: 13px; text-align: center; }
  .sheet-route { padding: 26px 14px 14px; }
  .sheet-body { padding: 4px 14px 6px; }
  .sheet-group li { font-size: 13px; }
  .context-note { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; margin-top: 36px; font-size: 13px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #e8ebef; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--accent-strong); }
.section-kicker::before { content: ""; width: 20px; height: 2px; background: currentColor; }
.section-dark .section-kicker { color: #63d3ae; }
.section-title { margin-top: 12px; font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.section-dark .section-title { color: #fff; }
.section-desc { margin-top: 18px; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-title { font-size: 24px; }
  .section-desc { font-size: 15px; }
}

/* ---------- 3. Concerns（2列の番号付きリスト） ---------- */
.concern-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.concern { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.concern:nth-child(odd) { border-right: 1px solid var(--line); }
.concern:nth-child(even) { padding-left: 32px; padding-right: 0; }
.concern-num { font-family: var(--font-head); font-weight: 900; font-size: 26px; line-height: 1.2; color: var(--line); -webkit-text-stroke: 1px var(--ink-3); color: transparent; }
.concern-title { font-size: 19px; font-weight: 700; }
.concern-q { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.concern-a { margin-top: 14px; font-size: 14px; line-height: 1.75; padding: 12px 14px; background: var(--white); border-radius: 8px; }
.concern-a-label { display: block; font-size: 12px; font-weight: 700; color: var(--accent-strong); margin-bottom: 2px; }
@media (max-width: 767px) {
  .concern-list { grid-template-columns: 1fr; }
  .concern, .concern:nth-child(even) { padding: 22px 0; border-right: 0; grid-template-columns: 44px 1fr; }
  .concern:nth-child(odd) { border-right: 0; }
  .concern-num { font-size: 22px; }
  .concern-title { font-size: 17px; }
}

/* ---------- 4. Organize ---------- */
.migrate-map { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0; margin-bottom: 28px; }
.map-node { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 150px; padding: 18px 20px; border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.3; }
.map-node small { font-size: 11px; font-weight: 500; letter-spacing: .1em; opacity: .75; }
.map-from { background: var(--white); border: 1px solid var(--line); color: var(--ink-2); }
.map-to { background: var(--ink); color: #fff; }
.map-tracks { display: grid; gap: 8px; padding: 0 0; position: relative; }
.map-track { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 34px; font-size: 14px; font-weight: 700; }
.map-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--accent); opacity: .35; }
.map-track::after { content: ""; position: absolute; right: 0; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 8px solid var(--accent); border-right: 0; opacity: .6; }
.map-track { isolation: isolate; color: var(--ink); }
.map-track::before { z-index: -1; }
.map-track i { font-style: normal; background: var(--paper-2); padding: 0 8px; }
.map-track b { position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; box-shadow: 0 0 0 6px var(--paper-2); }

.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.lane { padding: 28px 28px 30px; display: flex; flex-direction: column; }
.lane + .lane { border-left: 1px solid var(--line); }
.lane-head { padding-bottom: 18px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.lane-letter { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 17px; }
.lane-title { margin-top: 12px; font-size: 22px; font-weight: 700; }
.lane-q { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.lane-items li { padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.lane-items strong { display: block; color: var(--ink); font-size: 15px; }
.lane-note { margin-top: auto; padding-top: 18px; font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.lane-note::before { content: "注意点"; display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 4px; background: var(--amber-soft); color: var(--amber); font-size: 11px; font-weight: 700; vertical-align: 1px; }

@media (max-width: 959px) {
  .lanes { grid-template-columns: 1fr; }
  .lane + .lane { border-left: 0; border-top: 1px solid var(--line); }
  .lane-items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
@media (max-width: 767px) {
  .migrate-map { grid-template-columns: 1fr; gap: 8px; }
  .map-node { min-width: 0; flex-direction: row; gap: 10px; padding: 12px; font-size: 17px; }
  .map-tracks { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px 0; }
  .map-track { flex-direction: column; height: auto; gap: 4px; padding: 10px 4px 16px; font-size: 12px; text-align: center; line-height: 1.3; }
  .map-track::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .map-track::after { right: auto; left: 50%; top: auto; bottom: 0; margin: 0 0 0 -5px; border: 5px solid transparent; border-top: 8px solid var(--accent); border-bottom: 0; }
  .map-track b { box-shadow: 0 0 0 4px var(--paper-2); }
  .lane { padding: 22px 20px 24px; }
  .lane-items { grid-template-columns: 1fr; }
  .lane-title { font-size: 20px; }
}

/* ---------- 5. Outcome ---------- */
.ba { display: grid; gap: 10px; }
.ba-row { display: grid; grid-template-columns: 1fr 56px 1.15fr; align-items: stretch; }
.ba-legend span { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); padding: 0 4px; }
.ba-legend span:last-child { color: var(--accent-strong); }
.ba-before, .ba-after { padding: 18px 22px; border-radius: var(--radius); font-size: 15px; line-height: 1.7; display: flex; align-items: center; }
.ba-before { background: var(--white); border: 1px dashed #b8bec6; color: var(--ink-2); }
.ba-after { background: var(--accent-soft); color: var(--ink); font-weight: 700; border: 1px solid #bfe0d4; }
.ba-arrow { position: relative; }
.ba-arrow::before { content: ""; position: absolute; left: 10px; right: 14px; top: 50%; height: 2px; background: var(--accent); }
.ba-arrow::after { content: ""; position: absolute; right: 8px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-left: 9px solid var(--accent); border-right: 0; }

.scope { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.scope-col { padding: 28px 32px; }
.scope-no { border-left: 1px solid var(--line); background: #fbfbfa; }
.scope-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.scope-col li { position: relative; padding: 6px 0 6px 28px; font-size: 15px; }
.scope-yes li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.scope-no li { color: var(--ink-2); }
.scope-no li::before { content: ""; position: absolute; left: 3px; top: 18px; width: 14px; height: 2px; background: var(--ink-3); }
.scope-foot { grid-column: 1 / -1; padding: 16px 32px; border-top: 1px solid var(--line); background: var(--paper); font-size: 14px; color: var(--ink-2); }
.scope-foot strong { color: var(--ink); }
@media (max-width: 767px) {
  .ba { gap: 14px; }
  .ba-legend { display: none; }
  .ba-row { grid-template-columns: 1fr; }
  .ba-before, .ba-after { padding: 14px 16px; font-size: 14px; }
  .ba-before::before { content: "相談前"; flex: none; margin-right: 12px; font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: .08em; }
  .ba-after::before { content: "相談後"; flex: none; margin-right: 12px; font-size: 11px; font-weight: 700; color: var(--accent-strong); letter-spacing: .08em; }
  .ba-arrow { height: 22px; }
  .ba-arrow::before { left: 50%; right: auto; top: 2px; bottom: 8px; width: 2px; height: auto; }
  .ba-arrow::after { right: auto; left: 50%; top: auto; bottom: 0; margin: 0 0 0 -6px; border: 6px solid transparent; border-top: 8px solid var(--accent); border-bottom: 0; }
  .scope { grid-template-columns: 1fr; margin-top: 36px; }
  .scope-no { border-left: 0; border-top: 1px solid var(--line); }
  .scope-col { padding: 22px 20px; }
  .scope-col li { font-size: 14px; }
  .scope-foot { padding: 14px 20px; font-size: 13px; }
}

/* ---------- 6. Flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: flow; }
.flow-step { position: relative; padding: 0 24px 0 0; }
.flow-step + .flow-step { padding-left: 24px; }
.flow-step::before { /* 線 */
  content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.18);
}
.flow-step:first-child::before { left: 22px; }
.flow-step:last-child::before { right: auto; width: 24px; }
.flow-num { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #63d3ae; color: var(--ink); font-family: var(--font-head); font-weight: 900; font-size: 15px; }
.flow-step-optional .flow-num { background: var(--ink); color: #63d3ae; border: 2px dashed #63d3ae; }
.flow-badge { display: inline-block; margin-top: 14px; padding: 1px 10px; border: 1px solid #63d3ae; color: #63d3ae; border-radius: 999px; font-size: 11px; font-weight: 700; }
.flow-title { margin-top: 16px; font-size: 19px; font-weight: 700; color: #fff; }
.flow-badge + .flow-title { margin-top: 8px; }
.flow-step p { margin-top: 10px; font-size: 14px; line-height: 1.8; color: #c3c9d1; }
.flow-foot { margin-top: 40px; font-size: 14px; color: #c3c9d1; }
.flow-cta { margin-top: 20px; }
@media (max-width: 959px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step, .flow-step + .flow-step { padding: 0 0 32px 64px; }
  .flow-step::before { top: 44px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
  .flow-step:first-child::before { left: 21px; }
  .flow-step:last-child::before { display: none; }
  .flow-step:last-child { padding-bottom: 0; }
  .flow-num { position: absolute; left: 0; top: 0; }
  .flow-title { margin-top: 8px; font-size: 18px; }
  .flow-badge { margin-top: 10px; }
  .flow-foot { margin-top: 28px; }
}
@media (max-width: 767px) { .flow-cta .btn { width: 100%; } }

/* ---------- 7. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: grid; grid-template-columns: 32px 1fr 24px; gap: 12px; align-items: center; padding: 22px 4px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.55; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-text { color: var(--accent-strong); }
.faq-q { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 15px; }
.faq-icon { position: relative; width: 24px; height: 24px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 5px; right: 5px; top: 11px; height: 2px; background: var(--ink); transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-body { padding: 0 40px 24px 48px; color: var(--ink-2); font-size: 15px; }
.faq-body p + p { margin-top: 10px; }
@media (max-width: 767px) {
  .faq-item summary { grid-template-columns: 28px 1fr 20px; gap: 10px; font-size: 15px; padding: 18px 0; }
  .faq-q { width: 28px; height: 28px; font-size: 13px; }
  .faq-body { padding: 0 0 20px 38px; font-size: 14px; }
}

/* ---------- 8. Form ---------- */
.consult-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.consult-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.consult-facts { margin: 28px 0 0; border-top: 1px solid var(--line); }
.consult-facts div { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.consult-facts dt { font-weight: 700; color: var(--accent-strong); }
.consult-facts dd { margin: 0; color: var(--ink-2); }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: 0 24px 48px -36px rgba(23,32,43,.3); }
.form-notice { padding: 14px 18px; border-radius: var(--radius); background: var(--amber-soft); border: 1px solid #f0d6a8; font-size: 14px; line-height: 1.7; margin-bottom: 28px; }
.form-notice-title { font-weight: 700; color: var(--amber); }
.form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.req, .opt { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; line-height: 1.6; }
.req { background: var(--danger); color: #fff; }
.opt { background: var(--paper-2); color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #c5cad1; border-radius: 8px; background: #fff;
  font: 16px/1.6 var(--font-body); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: #9aa3ad; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(26,100,214,.22); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); background: #fffafa; }
.field-hint { margin-top: 6px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.field-warn { margin-top: 8px; padding: 8px 12px; border-radius: 6px; background: var(--paper); font-size: 13px; line-height: 1.6; color: var(--ink); font-weight: 500; }
.field-warn::before { content: "ご注意 "; font-weight: 700; color: var(--danger); }
.field-error { font-size: 13px; color: var(--danger); font-weight: 700; margin-top: 6px; }
.field-error:empty { display: none; }
.error-summary { padding: 16px 18px; border: 2px solid var(--danger); border-radius: var(--radius); background: var(--danger-soft); }
.error-summary:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.error-summary-title { font-weight: 700; color: var(--danger); }
.error-summary ul { margin-top: 6px; padding-left: 1.2em; list-style: disc; font-size: 14px; }
.error-summary a { color: var(--danger); }
.form-privacy { font-size: 13px; color: var(--ink-2); }
.todo-link { text-decoration: underline; text-underline-offset: 3px; }

/* ハニーポット（ボット対策・人間には見えない） */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.confirm:focus { outline: none; }
.confirm-title { font-size: 20px; font-weight: 700; }
.confirm-lead { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.confirm-list { margin: 20px 0 0; border-top: 1px solid var(--line); }
.confirm-list div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.confirm-list dt { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.confirm-list dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.confirm-list .empty { color: var(--ink-3); }
.confirm-actions { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 送信結果（完了・失敗） */
.form-status { padding: 4px 0 8px; }
.form-status:focus { outline: none; }
.status-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.status-body { margin-top: 10px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.status-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.status-actions { margin-top: 24px; }
.form-status[data-state="done"] .status-title { color: var(--accent-strong); }
.form-status[data-state="done"]::before {
  content: ""; display: block; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 50%; background: var(--accent-soft); border: 2px solid var(--accent);
  background-image: none;
}
.form-status[data-state="done"] .status-title::before {
  content: ""; display: inline-block; width: 14px; height: 8px; margin-right: 10px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg) translateY(-2px);
}
.form-status[data-state="error"] { border-left: 3px solid var(--danger); padding-left: 18px; }
.form-status[data-state="error"] .status-title { color: var(--danger); }

@media (max-width: 959px) {
  .consult-grid { grid-template-columns: 1fr; gap: 32px; }
  .consult-intro { position: static; }
}
@media (max-width: 767px) {
  .form-panel { padding: 22px 18px; margin: 0 -4px; }
  .field-row { grid-template-columns: 1fr; gap: 22px; }
  .confirm-list div { grid-template-columns: 1fr; gap: 2px; }
  .confirm-actions { grid-template-columns: 1fr; }
  .confirm-actions #btn-send { order: -1; }
  .confirm-note { text-align: left; }
}

/* ---------- 9. Footer ---------- */
.site-footer { background: #10161e; color: #b6bdc6; padding: 56px 0 40px; font-size: 13px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; }
.footer-company { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #fff; }
.footer-service { margin-top: 4px; }
.footer-links { display: flex; gap: 24px; align-items: flex-start; }
.footer-links a { color: #e1e5ea; padding: 4px 0; display: inline-block; }
.todo-tag { margin-left: 6px; font-size: 10px; padding: 1px 6px; border: 1px solid #5a6573; border-radius: 4px; color: #8f99a5; vertical-align: 1px; }
.footer-disclaimer { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid #263140; line-height: 1.8; max-width: 60em; }
.footer-copy { grid-column: 1 / -1; color: #7f8996; }
@media (max-width: 767px) {
  .site-footer { padding: 44px 0 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 8px; }
}

/* ---------- Sticky CTA (SP) ---------- */
.sticky-cta { display: none; }
@media (max-width: 767px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(246,245,241,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .sticky-cta.is-visible { transform: translateY(0); }
  .sticky-cta .btn { min-height: 52px; flex-direction: column; gap: 0; line-height: 1.25; }
  .sticky-sub { font-size: 11px; font-weight: 500; opacity: .9; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } /* 追従ボタンでフッターが隠れないように */
}
