/* ============================================================
   Scope Zero LP — production styles (design v2)
   Direction: Calm Decision Blueprint
   - Editorial mincho display (Shippori Mincho B1), left-aligned
   - Hairline rules + sharp corners instead of rounded cards
   - Signature: corner brackets = "範囲を括る" (defining scope)
   Depends on css/tokens.css (load first).
   ============================================================ */

:root {
  --font-serif: 'Shippori Mincho B1', 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  --ink: var(--sz-navy-950);
  --body: #3A4964;
  --muted: var(--sz-slate-500);
  --hairline: var(--sz-line);
  --accent: var(--sz-blue-500);
  --error: #B3261E;
  --paper: #FFFFFF;
  --band: #F5F9FD;
  --section-y: clamp(88px, 10vw, 140px);
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }
p + p { margin-top: 1em; }

.container { width: min(var(--container-wide), calc(100% - 48px)); margin-inline: auto; }
.sp-only { display: none; }
@media (max-width: 767px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
  .container { width: calc(100% - 40px); }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; font-size: 13px;
  transition: top .15s ease;
}
.skip-link:focus-visible { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Signature: corner brackets（範囲を括る） ---------- */
.bracket { position: relative; display: inline-block; padding: .1em .22em; }
.bracket::before, .bracket::after {
  content: ""; position: absolute; width: .42em; height: .42em;
  border: 2px solid var(--accent);
}
.bracket::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.bracket::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.bracket-light::before, .bracket-light::after { border-color: var(--sz-blue-200); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 2px;
  font-family: var(--font-sans); font-weight: 700; font-size: 14px; line-height: 1;
  letter-spacing: .04em; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease,
    transform .15s ease, box-shadow .2s ease;
}
.button-lg { min-height: 60px; padding: 0 34px; font-size: 15px; }
.button-xl { min-height: 64px; padding: 0 40px; font-size: 16px; letter-spacing: .05em; }
.button-primary {
  position: relative;
  background: linear-gradient(180deg, var(--sz-navy-900), var(--sz-navy-950));
  color: #fff;
  box-shadow: var(--shadow-cta-rest);
}
.button-primary::before, .button-primary::after {
  content: ""; position: absolute; width: 9px; height: 9px; border: 1.5px solid var(--accent);
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.button-primary::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; transform: translate(2px, 2px); }
.button-primary::after  { bottom: -5px; right: -5px; border-left: 0; border-top: 0; transform: translate(-2px, -2px); }
.button-primary:hover::before, .button-primary:hover::after { opacity: 1; transform: translate(0, 0); }
.button-primary:hover {
  background: linear-gradient(180deg, var(--sz-blue-700), var(--sz-blue-800));
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta-hover);
}
.button-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-cta-press);
  transition-duration: .06s;
}
.button-arrow { font-family: var(--font-number); font-weight: 500; transition: transform .2s ease; }
.button-primary:hover .button-arrow { transform: translateX(4px); }
.nav-cta .button-primary { box-shadow: 0 1px 2px rgba(6,26,61,.2), 0 4px 10px rgba(6,26,61,.12); }
.button-secondary { background: #fff; color: var(--ink); border-color: var(--sz-slate-300); }
.button-secondary:hover { border-color: var(--ink); }
.button-invert {
  background: #fff; color: var(--ink);
  box-shadow: 0 12px 28px rgba(0,0,0,.30);
}
.button-invert::after { content: "→"; font-family: var(--font-number); font-weight: 500; transition: transform .2s ease; }
.button-invert:hover { background: var(--sz-sky-100); transform: translateY(-1px); }
.button-invert:hover::after { transform: translateX(3px); }
.button-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.button-ghost:hover { border-color: #fff; }
.link-inline {
  font-size: 14px; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}
.link-inline:hover { color: var(--sz-blue-700); border-color: var(--sz-blue-700); }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.microcopy { font-size: 13px; line-height: 1.9; color: var(--muted); margin-top: 14px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { width: 152px; height: auto; }
.nav { display: flex; gap: 32px; font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: .06em; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  border-bottom: 1px solid var(--ink); transition: right .2s ease;
}
.nav a:hover::after { right: 0; }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .button { min-height: 44px; padding: 0 20px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  min-height: min(calc(100vh - 76px), 920px);
  min-height: min(calc(100svh - 76px), 920px);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 78% center;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,.99) 0%,
    rgba(255,255,255,.96) 30%,
    rgba(255,255,255,.82) 48%,
    rgba(255,255,255,.30) 72%,
    rgba(255,255,255,.05) 100%);
}
.hero-inner {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  flex: 1 0 auto; min-height: 0;
  padding-block: clamp(40px, 5vw, 72px);
}
.hero-copy { max-width: 620px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 20px;
  font-size: 12px; letter-spacing: .22em; color: var(--sz-blue-700);
}
.hero-eyebrow .en { font-family: var(--font-number); font-weight: 600; text-transform: uppercase; }
.hero-eyebrow .ja { font-weight: 500; color: var(--muted); letter-spacing: .18em; }
.hero-eyebrow::before { content: ""; width: 36px; border-top: 1px solid var(--sz-blue-700); }
.hero h1 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(32px, 3.1vw, 44px); line-height: 1.55; letter-spacing: .02em;
  margin: 0 0 22px;
}
.hero .lead { font-size: 15.5px; line-height: 2.15; margin: 0 0 28px; max-width: 33em; }
.hero .cta-row { gap: 28px; }

/* spec bar（画像の上に半透明で重ねる） */
.spec-bar {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.78); backdrop-filter: blur(10px);
}
.spec-inner { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; column-gap: clamp(40px, 6vw, 96px); padding-block: 20px; }
.spec { display: flex; align-items: baseline; gap: 16px; }
.spec dt { font-size: 11px; letter-spacing: .18em; color: var(--muted); font-weight: 500; }
.spec dd { display: flex; align-items: baseline; gap: 4px; color: var(--ink); }
.spec .num { font-family: var(--font-number); font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.spec small { font-size: 13px; font-weight: 700; color: var(--ink); }

/* hero-offer（SP専用の価格・期間サマリー。PCではspec-barを使用） */
.hero-offer { display: none; }

/* ---------- Sections / headers ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--band); }
.sec-head { margin-bottom: clamp(48px, 5vw, 72px); max-width: 880px; }
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font-family: var(--font-number); font-size: 11.5px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--sz-blue-700);
}
.eyebrow::before { content: ""; width: 36px; border-top: 1px solid var(--sz-blue-700); }
.sec-head h2 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.7; letter-spacing: .02em;
}
.sec-lede { margin-top: 20px; max-width: 42em; line-height: 2.1; }

/* ---------- 02 Problem ---------- */
.problem-grid {
  display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.check-list { border-top: 1px solid var(--hairline); }
.check-list li {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 4px; border-bottom: 1px solid var(--hairline);
  font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.7;
}
.checkbox {
  flex: 0 0 20px; width: 20px; height: 20px; position: relative;
  border: 1.5px solid var(--sz-slate-300); background: #fff;
}
.checkbox::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.problem-visual img { border: 1px solid var(--hairline); }
.bridge {
  margin: clamp(48px, 5vw, 72px) auto 0; max-width: 780px; text-align: center;
  font-size: 16px; line-height: 2.2;
}
.bridge strong {
  display: inline-block; margin-top: 10px;
  font-family: var(--font-serif); font-weight: 700; font-size: clamp(19px, 2vw, 24px);
  color: var(--ink); letter-spacing: .02em;
}

/* ---- Story bridge（Problem → Solution / 漫画） ---- */
/* Problem(tinted) と Service Definition(white) の間に置く白背景バンド。
   画像自身が枠と背景を持つため、外側は影で浮かせるだけにする。 */
.section-story { padding-block: clamp(56px, 7vw, 100px); }
.container-story { width: min(1080px, calc(100% - 48px)); }
.story-figure {
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-soft); background: #fff;
}
.story-figure img { display: block; width: 100%; height: auto; }
@media (max-width: 767px) {
  .section-story { padding-block: clamp(40px, 9vw, 64px); }
  .container-story { width: calc(100% - 32px); }
}

/* ---------- 03 Flow ---------- */
.flow {
  display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr;
  align-items: stretch;
}
.flow-col { border: 1px solid var(--hairline); background: #fff; padding: 34px 30px 38px; }
.flow-core { background: var(--ink); border-color: var(--ink); color: rgba(255,255,255,.85); }
.flow-core h3 { color: #fff; }
.flow-label {
  font-family: var(--font-number); font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--sz-blue-700); margin: 0 0 16px;
}
.flow-core .flow-label { color: var(--sz-blue-200); }
.flow-col h3 { font-size: 17px; line-height: 1.8; margin: 0 0 14px; font-weight: 700; }
.flow-col p { font-size: 13.5px; line-height: 2; }
.flow-col ul li {
  position: relative; padding: 7px 0 7px 18px; font-size: 13.5px; line-height: 1.8;
  border-bottom: 1px dashed var(--hairline);
}
.flow-col ul li:last-child { border-bottom: 0; }
.flow-col ul li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 7px; height: 1.5px; background: var(--accent); }
.flow-arrow { position: relative; }
.flow-arrow::before {
  content: ""; position: absolute; top: 50%; left: 8px; right: 8px;
  border-top: 1px solid var(--sz-slate-300);
}
.flow-arrow::after {
  content: ""; position: absolute; top: 50%; right: 8px;
  width: 8px; height: 8px; border-top: 1px solid var(--sz-slate-300); border-right: 1px solid var(--sz-slate-300);
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- 04 Decisions ---------- */
.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.decision { padding: 8px 36px 8px 0; }
.decision + .decision { border-left: 1px solid var(--hairline); padding-left: 36px; }
.decision-no {
  font-family: var(--font-number); font-size: 13px; font-weight: 600;
  letter-spacing: .18em; color: var(--accent); margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.decision-no::after { content: ""; flex: 0 0 24px; border-top: 1px solid var(--sz-slate-300); }
.decision h3 { font-family: var(--font-serif); font-size: 21px; font-weight: 700; letter-spacing: .02em; margin: 0 0 14px; }
.decision p { font-size: 14.5px; line-height: 2.05; }
.value-line {
  margin: clamp(56px, 6vw, 80px) auto 0; text-align: center;
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(19px, 2.2vw, 26px); line-height: 2.1; color: var(--ink); letter-spacing: .02em;
}

/* ---------- 05 Deliverables ---------- */
.deliverable-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px); }
.paper {
  background: var(--band); border: 1px solid var(--hairline);
  padding: clamp(20px, 2vw, 30px); margin-bottom: 24px;
}
.paper img {
  aspect-ratio: 4 / 5; object-fit: cover; object-position: top;
  width: 100%; box-shadow: 0 14px 34px rgba(6, 26, 61, .14);
}
.deliverable-no {
  font-family: var(--font-number); font-size: 11.5px; font-weight: 600;
  letter-spacing: .2em; color: var(--sz-blue-700); margin: 0 0 10px;
}
.deliverable h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 700; margin: 0 0 12px; letter-spacing: .02em; }
.deliverable p { font-size: 14px; line-height: 2.05; }
.depth-note { margin-top: 40px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Mid CTA ---------- */
.mid-cta {
  margin-top: clamp(48px, 5vw, 64px);
  border: 1px solid var(--ink);
  padding: clamp(28px, 3vw, 40px) clamp(28px, 3.5vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: #fff;
}
.mid-cta > p { font-family: var(--font-serif); font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1.9; }
.mid-cta small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- 06 Difference ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%; min-width: 760px; border-collapse: collapse;
  font-size: 14px; line-height: 1.9; background: #fff;
}
.compare th, .compare td {
  padding: 20px 22px; text-align: left; vertical-align: top;
  border: 1px solid var(--hairline);
}
.compare thead th {
  font-family: var(--font-number); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: var(--muted); background: var(--sz-sky-50); white-space: nowrap;
}
.compare thead th:first-child { font-family: var(--font-sans); }
.compare tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; background: var(--sz-sky-50); }
.compare .sz { background: var(--ink); color: #fff; border-color: rgba(255,255,255,.16); font-weight: 700; }
.compare thead .sz { font-family: var(--font-sans); font-size: 14px; color: #fff; letter-spacing: .04em; }
.compare tbody td.sz { font-size: 14.5px; }

/* ---------- 07 Use cases ---------- */
.usecase-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.usecase-list li { border-top: 2px solid var(--ink); padding-top: 20px; }
.usecase-list h3 { font-family: var(--font-serif); font-size: 19px; font-weight: 700; margin: 0 0 8px; letter-spacing: .02em; }
.usecase-list p { font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.after-note { margin-top: clamp(40px, 4vw, 56px); text-align: center; font-size: 13.5px; color: var(--muted); }

/* ---------- 08 Process ---------- */
.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
}
.timeline .step { position: relative; padding-top: 34px; }
.timeline .step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-number); font-size: 13px; font-weight: 600; letter-spacing: .16em;
  color: var(--accent);
}
.timeline .step::after {
  content: ""; position: absolute; top: 9px; left: 42px; right: 0;
  border-top: 1px solid var(--sz-slate-300);
}
.period {
  display: inline-block; margin: 0 0 12px; padding: 4px 10px;
  font-family: var(--font-number); font-size: 11.5px; font-weight: 600; letter-spacing: .08em;
  color: var(--sz-blue-700); border: 1px solid var(--sz-blue-200); background: #fff;
}
.timeline h3 { font-family: var(--font-serif); font-size: 19px; font-weight: 700; margin: 0 0 10px; letter-spacing: .02em; }
.timeline .step > p:last-child { font-size: 13.5px; line-height: 2; }

/* ---------- 09 Pricing ---------- */
.pricing-grid {
  display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  gap: clamp(40px, 5vw, 88px); align-items: start;
}
.price-panel { border: 1px solid var(--ink); background: #fff; padding: clamp(32px, 3.5vw, 48px); }
.price-label {
  font-family: var(--font-number); font-size: 11.5px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--sz-blue-700); margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.price-label::after { content: ""; flex: 1; border-top: 1px solid var(--hairline); }
.price { display: flex; align-items: baseline; gap: 6px; color: var(--ink); margin: 0 0 28px; }
.price .yen { font-family: var(--font-number); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; }
.price .num { font-family: var(--font-number); font-size: clamp(52px, 5.5vw, 72px); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .tax { font-size: 14px; font-weight: 700; color: var(--muted); }
.price-spec { border-top: 1px solid var(--hairline); }
.price-spec > div {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  padding: 14px 2px; border-bottom: 1px solid var(--hairline);
  font-size: 14px; line-height: 1.8;
}
.price-spec dt { color: var(--muted); font-weight: 500; }
.price-spec dd { color: var(--ink); font-weight: 700; }
.reason h3 {
  font-family: var(--font-serif); font-size: clamp(20px, 2.2vw, 26px); font-weight: 700;
  line-height: 1.8; letter-spacing: .02em; margin: 0 0 20px;
}
.reason > p { font-size: 15px; line-height: 2.1; }
.dash-list { margin: 26px 0; border-top: 1px solid var(--hairline); }
.dash-list li {
  position: relative; padding: 14px 2px 14px 24px; border-bottom: 1px solid var(--hairline);
  font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.9;
}
.dash-list li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 12px; border-top: 2px solid var(--accent); }
.reason .note { font-size: 13px; color: var(--muted); }

.scope-grid {
  margin-top: clamp(48px, 5vw, 72px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 88px);
}
.scope-col h3 { font-family: var(--font-serif); font-size: 19px; font-weight: 700; margin: 0 0 20px; letter-spacing: .02em; }
.ok-list, .ng-list { border-top: 1px solid var(--hairline); }
.ok-list li, .ng-list li {
  position: relative; padding: 13px 2px 13px 32px; border-bottom: 1px solid var(--hairline);
  font-size: 14.5px; line-height: 1.9; color: var(--ink);
}
.ok-list li::before {
  content: ""; position: absolute; left: 4px; top: 20px; width: 6px; height: 11px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.ng-list li { color: var(--body); }
.ng-list li::before, .ng-list li::after {
  content: ""; position: absolute; left: 4px; top: 26px; width: 13px;
  border-top: 1.5px solid var(--sz-slate-300);
}
.ng-list li::before { transform: rotate(45deg); }
.ng-list li::after { transform: rotate(-45deg); }

/* ---------- 10 After ---------- */
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.route { padding: 8px 36px 8px 0; }
.route + .route { border-left: 1px solid var(--hairline); padding-left: 36px; }
.route h3 { font-family: var(--font-serif); font-size: 21px; font-weight: 700; margin: 0 0 12px; letter-spacing: .02em; }
.route p { font-size: 14.5px; line-height: 2.05; }

/* ---------- 11 Fit ---------- */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 88px); }
.fit-col h3 { font-family: var(--font-serif); font-size: 19px; font-weight: 700; margin: 0 0 20px; letter-spacing: .02em; }
.fit-note { margin-top: clamp(40px, 4vw, 56px); text-align: center; font-size: 13.5px; color: var(--muted); }

/* ---------- 12 FAQ ---------- */
.faq-list { max-width: 880px; border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); background: transparent; }
.faq-item summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 24px 48px 24px 2px;
  font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.8;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 14px;
  border-top: 1.5px solid var(--ink); transform: translateY(-50%);
  transition: transform .2s ease;
}
.faq-item summary::after { transform: translateY(-50%) rotate(90deg); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(0deg); }
.faq-item p { padding: 0 48px 26px 2px; font-size: 14.5px; line-height: 2.05; }

/* ---------- 13 Trust ---------- */
.trust-grid {
  display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
  gap: clamp(40px, 5vw, 88px); align-items: start;
}
.trust-copy > p { font-size: 15px; line-height: 2.15; }
.trust-photo { margin-top: 32px; }
.trust-photo img { border: 1px solid var(--hairline); }
.company-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.company-table th, .company-table td {
  padding: 18px 4px; border-bottom: 1px solid var(--hairline);
  text-align: left; vertical-align: top; line-height: 1.9;
}
.company-table tr:first-child th, .company-table tr:first-child td { border-top: 1px solid var(--ink); }
.company-table th { width: 96px; color: var(--muted); font-weight: 500; }
.company-table td { color: var(--ink); font-weight: 500; }

/* ---------- 14 Final CTA ---------- */
.final {
  position: relative; color: #fff;
  background: var(--ink) url('../assets/final/backgrounds/cta-bg-wave-dark.webp') center / cover no-repeat;
  padding-block: clamp(88px, 10vw, 136px);
}
.final::before { content: ""; position: absolute; inset: 0; background: rgba(2, 18, 56, .28); }
.final .container { position: relative; }
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 4vw, 64px); align-items: center; }
.final h2 {
  font-family: var(--font-serif); font-weight: 700; color: #fff;
  font-size: clamp(25px, 3vw, 38px); line-height: 1.8; letter-spacing: .02em; margin: 0 0 20px;
}
.final p { color: rgba(255,255,255,.82); }
.final .microcopy { color: rgba(255,255,255,.6); }

/* ---------- Forms ---------- */
.forms-section { padding-block: var(--section-y); background: var(--band); border-top: 1px solid var(--hairline); }
.forms-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 3vw, 48px); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--hairline); padding: clamp(28px, 3vw, 44px); }
.form-card h3 { font-family: var(--font-serif); font-size: 21px; font-weight: 700; margin: 0 0 12px; letter-spacing: .02em; }
.form-intro { font-size: 13px; color: var(--muted); line-height: 2; margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label, .field .field-label {
  font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px;
}
.opt {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 2px 7px; line-height: 1.6;
  color: var(--muted); border: 1px solid var(--hairline);
}
.field input:not(.chip-input), .field select, .field textarea {
  font-family: var(--font-sans); font-size: 16px; color: var(--ink);
  border: 1px solid var(--sz-slate-300); border-radius: 2px; background: #fff;
  padding: 13px 14px; line-height: 1.5; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent);
}
.field-error { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--error); min-height: 1em; }
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--error);
}
.field.has-error input:focus-visible, .field.has-error select:focus-visible, .field.has-error textarea:focus-visible {
  outline-color: var(--error); border-color: var(--error);
}
/* 相談テーマ：チップ型ラジオ */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.chip-option {
  cursor: pointer; user-select: none; display: inline-flex; align-items: center;
  min-height: 44px; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip-input:checked + .chip-option { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-input:focus-visible + .chip-option { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form-actions { margin-top: 28px; }
.form-actions .button { width: 100%; }
.form-actions .button[disabled] { opacity: .6; cursor: not-allowed; }
.form-message { margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--sz-blue-700); min-height: 1em; }
.form-message.is-error { color: var(--error); }
.form-note { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: clamp(48px, 4.5vw, 64px) 0 26px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px 64px; flex-wrap: wrap; }
.footer-logo-link { display: inline-block; transition: opacity .2s ease; }
.footer-logo-link:hover { opacity: .7; }
.footer-brand img { width: 182px; height: auto; }
.footer-brand address { font-style: normal; font-size: 13px; line-height: 2.1; margin-top: 18px; }
/* ナビは2列（縦4行）にして高さを抑え、横幅を広げて中央の空洞を圧縮する */
.footer-nav {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto);
  gap: 12px 56px; font-size: 13px; align-content: start;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.5);
}

/* ---------- SP sticky CTA ---------- */
.sp-sticky { display: none; }

/* ---------- Scroll reveal ----------
   .js ゲート：no-JS / クローラは常に表示 */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   v2.1 — 情報密度・テクスチャ・FAQ編集レイアウト
   ============================================================ */

/* セクション採番（設計書らしい通し番号） */
body { counter-reset: sec; }
.sec-head .eyebrow::after {
  counter-increment: sec;
  content: "/ " counter(sec, decimal-leading-zero);
  color: var(--sz-slate-300); letter-spacing: .14em;
}

/* 帯セクションに極薄のブループリント方眼 */
.section-alt, .forms-section {
  background-color: var(--band);
  background-image:
    repeating-linear-gradient(0deg, rgba(6,26,61,.028) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(6,26,61,.028) 0 1px, transparent 1px 56px);
}

/* 内訳ミニリスト（Decisions / Deliverables / DLパネル） */
.mini-list { margin-top: 18px; border-top: 1px solid var(--hairline); }
.mini-list li {
  position: relative; padding: 9px 0 9px 18px;
  border-bottom: 1px dashed var(--hairline);
  font-size: 13px; line-height: 1.8; color: var(--body);
}
.mini-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; border-top: 1.5px solid var(--accent); }

/* 相談例チップ */
.chips { margin-top: clamp(36px, 4vw, 52px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  border: 1px solid var(--hairline); background: #fff;
  padding: 9px 18px; font-size: 13px; color: var(--ink); line-height: 1.7;
}

/* Process：貴社の稼働 */
.step-meta {
  margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--hairline);
  font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; align-items: baseline;
}
.step-meta span {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--sz-blue-700);
}

/* FAQ：左見出し（sticky）+右リストの2カラム */
.faq-layout {
  display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  gap: clamp(40px, 5vw, 88px); align-items: start;
}
.faq-layout .sec-head { position: sticky; top: 116px; margin-bottom: 0; }
.faq-cta { margin-top: 28px; }
.faq-list { max-width: none; counter-reset: faq; }
.faq-item { position: relative; }
.faq-item::before {
  counter-increment: faq;
  content: "Q" counter(faq, decimal-leading-zero);
  position: absolute; left: 2px; top: 27px;
  font-family: var(--font-number); font-size: 12.5px; font-weight: 600;
  letter-spacing: .12em; color: var(--accent);
}
.faq-item summary { padding-left: 64px; }
.faq-item p { padding-left: 64px; }

/* 資料DLパネル（外部フォームへの導線） */
.download-panel {
  border: 1px solid var(--hairline); background: #fff;
  padding: clamp(28px, 3vw, 40px);
  position: sticky; top: 116px;
}
.download-label {
  font-family: var(--font-number); font-size: 11.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--sz-blue-700);
  margin: 0 0 16px; display: flex; align-items: center; gap: 12px;
}
.download-label::after { content: ""; flex: 1; border-top: 1px solid var(--hairline); }
.download-panel h3 { font-family: var(--font-serif); font-size: 19px; font-weight: 700; margin: 0 0 12px; letter-spacing: .02em; }
.download-panel > p { font-size: 13.5px; line-height: 2; }
.download-panel .mini-list { margin: 18px 0 26px; }
.download-panel .button { width: 100%; }
.download-panel .form-note { margin-top: 12px; }

/* 成果物 全10点の内訳パネル */
.deliverable-all {
  margin-top: clamp(48px, 5vw, 64px);
  border: 1px solid var(--hairline); background: var(--band);
  padding: clamp(28px, 3vw, 44px) clamp(28px, 3.5vw, 52px);
}
.deliverable-all-title {
  font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: var(--ink);
  letter-spacing: .04em; margin: 0 0 24px;
  display: flex; align-items: center; gap: 16px;
}
.deliverable-all-title::after { content: ""; flex: 1; border-top: 1px solid var(--hairline); }
.ten-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 4vw, 64px); }
.ten-grid li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px dashed var(--hairline);
}
.ten-grid li:nth-last-child(-n+1) { border-bottom: 0; }
.ten-grid .no {
  flex: 0 0 26px; font-family: var(--font-number); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; color: var(--accent);
}
.ten-grid h4 { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.7; }
.ten-grid li > div > p { font-size: 12.5px; color: var(--muted); line-height: 1.8; }

/* 成果物モックのホバーリフト */
.paper img { transition: transform .35s ease, box-shadow .35s ease; }
.deliverable:hover .paper img { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(6, 26, 61, .18); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1023px) {
  .nav { display: none; }
  .hero-inner { min-height: 0; padding-block: clamp(64px, 10vw, 96px); }
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(255,255,255,.98) 0%,
      rgba(255,255,255,.96) 52%,
      rgba(255,255,255,.86) 72%,
      rgba(255,255,255,.45) 100%);
  }
  .hero-bg { object-position: 72% center; }
  .spec-inner { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .problem-grid, .pricing-grid, .trust-grid, .forms-grid { grid-template-columns: 1fr; }
  .decision-grid, .route-grid { grid-template-columns: 1fr; }
  .decision, .route { padding: 24px 0; }
  .decision + .decision, .route + .route { border-left: 0; border-top: 1px solid var(--hairline); padding-left: 0; }
  .deliverable-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .ten-grid { grid-template-columns: 1fr; }
  .ten-grid li:nth-last-child(-n+1) { border-bottom: 0; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .sec-head { position: static; margin-bottom: 40px; }
  .download-panel { position: static; }
  .usecase-list { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { height: 44px; }
  .flow-arrow::before { top: 4px; bottom: 10px; left: 50%; right: auto; border-top: 0; border-left: 1px solid var(--sz-slate-300); }
  .flow-arrow::after {
    top: auto; bottom: 6px; right: auto; left: 50%;
    transform: translateX(-54%) rotate(135deg);
  }
  .final-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .header-inner { height: 64px; }
  .logo { width: 124px; }
  .nav-cta .button-secondary { display: none; }
  .hero-inner { padding-block: 48px; }
  .hero h1 { font-size: clamp(27px, 7.6vw, 34px); line-height: 1.5; }
  .hero .lead { font-size: 14.5px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .button { width: 100%; }
  .cta-row .link-inline { align-self: center; }
  .spec-bar { display: none; }
  .hero-offer { display: flex; margin: 0 0 24px; border-block: 1px solid var(--hairline); }
  .hero-offer > div { flex: 1; text-align: center; padding: 12px 0; }
  .hero-offer > div + div { border-left: 1px solid var(--hairline); }
  .hero-offer dt { font-size: 10px; letter-spacing: .14em; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
  .hero-offer .num { font-family: var(--font-number); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
  .hero-offer small { font-size: 11px; font-weight: 700; }
  .hero-offer .tax { font-weight: 400; color: var(--muted); margin-left: 2px; }
  .spec-inner { grid-template-columns: 1fr; row-gap: 0; padding-block: 8px; }
  .spec { justify-content: space-between; padding: 14px 0; }
  .spec + .spec { border-top: 1px solid var(--hairline); }
  .spec .num { font-size: 26px; }
  .check-list li { font-size: 14px; padding: 18px 2px; }
  .mid-cta { flex-direction: column; align-items: stretch; text-align: left; }
  .mid-cta .cta-row { align-items: stretch; }
  .scope-grid, .fit-grid { grid-template-columns: 1fr; gap: 40px; }
  .usecase-list { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline .step::after { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 14.5px; padding-left: 48px; }
  .faq-item p { padding-left: 48px; }
  .faq-item::before { top: 28px; }
  .chip { font-size: 12px; padding: 8px 14px; }
  .footer-grid { flex-direction: column; }
  .site-footer { padding-bottom: 110px; }
  /* 最下部の行を縦積み・左寄せにして右下のトップ戻るボタンとの重なりを避ける */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sp-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
    border-top: 1px solid var(--hairline);
    transition: transform .25s ease, opacity .25s ease;
  }
  .sp-sticky.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
  .sp-sticky .button { min-height: 48px; padding: 0 12px; font-size: 13px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .button, .button::after, .nav a::after, .faq-item summary::before, .faq-item summary::after, .sp-sticky, .paper img { transition: none; }
  .deliverable:hover .paper img { transform: none; }
  .button-primary, .button-primary:hover, .button-primary:active,
  .button-primary::before, .button-primary::after,
  .button-arrow, .button-primary:hover .button-arrow,
  .button-invert:hover {
    transition: none; transform: none;
  }
}

/* ---------- ページトップへ戻るボタン ---------- */
/* スクロールで .is-visible が付き右下にフェードイン。header(z40)/sp-sticky(z50)
   とは干渉しない位置に配置。モバイルでは固定CTAバーの上へ逃がす。 */
.to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 45;
  width: 48px; height: 48px; display: grid; place-items: center;
  padding: 0; border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, color .15s ease, border-color .15s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
.to-top svg { width: 20px; height: 20px; display: block; }
@media (max-width: 767px) {
  /* 固定CTAバー（約73px）の上に余裕を持って逃がす */
  .to-top { right: 16px; bottom: 88px; width: 44px; height: 44px; }
  .to-top svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .2s ease, visibility .2s; transform: none; }
  .to-top.is-visible { transform: none; }
}
