/* ============================================================================
   Koebun（声文） — shared design system
   Aesthetic: 和紙 (washi paper) × 墨 (sumi ink) × 朱 (vermilion seal),
   with 藍 (indigo) as the chromatic identity of the privacy / on-device story.
   Editorial Japanese minimalism — calm, precise, trustworthy, craft-oriented.
   Display: Shippori Mincho (明朝) / Body: Zen Kaku Gothic New (ゴシック)
            Latin labels: Zen Kaku Gothic Antique (tracked)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;600;700;800&family=Zen+Kaku+Gothic+New:wght@400;500;700&family=Zen+Kaku+Gothic+Antique:wght@400;500;700&display=swap');

:root {
  /* ---- paper / ink ---- */
  --paper:      #FAF6EC;
  --paper-2:    #F3ECDC;
  --paper-3:    #ECE3CF;
  --sumi:       #1C1813;   /* warm near-black ink */
  --sumi-2:     #423A30;
  --sumi-cool:  #19222B;   /* cooled ink — privacy band only */
  --ink-soft:   #6A6053;   /* muted brown-gray (AA text) */
  --ink-faint:  #6F6555;   /* TEXT-SAFE faint — 5.30:1 paper / 4.86:1 paper-2 */
  --ink-ghost:  #948A79;   /* DECORATIVE ONLY — dots / hairline fills, never text */
  --hairline:   #E2D8C3;
  --hairline-2: #D6CAB0;

  /* ---- 朱 — traditional seal vermilion ---- */
  --shu:        #C2402A;   /* FILLS ONLY: seal, primary CTA, flag */
  --shu-deep:   #A2311E;   /* hover */
  --shu-ink:    #B83A26;   /* TEXT: eyebrows / links / kickers / FAQ marker */
  --shu-mute:   #B36A57;   /* dusty terracotta — utility marks (✓, card nums) */
  --shu-soft:   #E9C9BE;
  --shu-wash:   #F6E7E0;

  /* ---- 藍 — deep indigo, the privacy / trust accent ---- */
  --ai:         #2C4A5A;
  --ai-soft:    #D7E0E2;

  /* ---- type families ---- */
  --display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body:    "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --antique: "Zen Kaku Gothic Antique", var(--body);

  /* ---- modular type scale (Major Third · 1.2 on 16px) ---- */
  --step--2: .781rem;
  --step--1: .875rem;
  --step-0:  1rem;
  --step-1:  1.125rem;
  --step-2:  1.35rem;
  --step-3:  1.62rem;
  --step-4:  1.94rem;
  --step-5:  2.33rem;
  --step-6:  2.8rem;
  --step-7:  3.36rem;

  /* ---- line-height tokens ---- */
  --lh-tight: 1.3;
  --lh-snug:  1.4;
  --lh-body:  1.8;
  --lh-loose: 1.85;

  /* ---- weight tokens (semantic, Shippori Mincho) ---- */
  --w-display:        700;
  --w-display-strong: 800;  /* RESERVED: seals (整/密/帳/価/私/約) and ¥ figures */
  --w-emphasis:       600;
  --w-body:           400;
  --w-body-med:       500;

  /* ---- rhythm ---- */
  --maxw: 1120px;
  --gap:  clamp(1rem, 2.2vw, 1.6rem);
  --radius: 6px;
  --radius-lg: 14px;

  --space-section:    clamp(3.6rem, 8vw, 7rem);
  --space-section-lg: clamp(4.6rem, 10vw, 9rem);  /* privacy band + closing CTA */
  --space-section-sm: clamp(2.4rem, 5vw, 4rem);

  /* ---- elevation ---- */
  --shadow-sm: 0 1px 2px rgba(28,24,19,.05), 0 2px 8px rgba(28,24,19,.04);
  --shadow:    0 2px 6px rgba(28,24,19,.06), 0 14px 40px rgba(28,24,19,.08);
  --shadow-lg: 0 6px 18px rgba(28,24,19,.08), 0 30px 70px rgba(28,24,19,.12);

  --ease: cubic-bezier(.22,.61,.36,1);

  /* shared paper-grain noise (data URI reused by light + dark surfaces) */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: clamp(76px, 10vw, 92px);
}
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--sumi);
  line-height: var(--lh-body);
  font-weight: var(--w-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Japanese typographic finish: proportional metrics + kerning */
  font-feature-settings: 'palt' 1, 'pkna' 1;
  font-kerning: normal;
  /* progressive enhancement — newer CJK spacing controls (ignored where unsupported) */
  text-spacing-trim: trim-start;
  text-autospace: normal;
}

/* subtle paper grain overlay — sits BELOW sticky header & buttons */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .055;
  background-image: var(--noise);
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- focus / a11y system ---------- */
:focus-visible { outline: 2px solid var(--shu); outline-offset: 2px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* skip link (markup: <a class="skip" href="#main">本文へスキップ</a>) */
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus-visible {
  left: 1rem; top: 1rem; z-index: 200;
  background: var(--sumi); color: var(--paper);
  padding: .6em 1em; border-radius: var(--radius);
  outline-offset: 3px;
}

/* sticky-header anchor offset */
section[id], .section[id] { scroll-margin-top: clamp(76px, 10vw, 92px); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.4rem); }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: var(--space-section-sm); }
.section--lg { padding-block: var(--space-section-lg); }

/* ---------- type ---------- */
.display {
  font-family: var(--display); font-weight: var(--w-display);
  line-height: 1.28; letter-spacing: -0.01em;
  font-feature-settings: 'palt' 1;
}
h1, h2, h3 {
  font-family: var(--display); font-weight: var(--w-display);
  letter-spacing: -0.01em;
  font-feature-settings: 'palt' 1;
}
h1, h2, h3, .faq summary, .plan__name { text-wrap: balance; }
.lead, .card p, .legal p, p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--antique);
  font-size: var(--step--2); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--shu-ink);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--shu); opacity: .6; }
.eyebrow--rom { letter-spacing: .32em; }  /* truly-Latin eyebrows only */

.lead {
  font-size: clamp(var(--step-0), 1.4vw, var(--step-1));
  color: var(--ink-soft); line-height: var(--lh-loose);
  line-break: strict; overflow-wrap: anywhere;
}
.kicker { color: var(--shu-ink); font-weight: 700; }
mark { background: linear-gradient(transparent 62%, var(--shu-soft) 62%); color: inherit; padding: 0 .05em; }

/* vertical-rhythm helpers */
.stack > * + * { margin-top: 1.1rem; }
.muted { color: var(--ink-soft); }
.tnum { font-variant-numeric: tabular-nums; }

/* shared note / utility blocks (replace repeated inline styles) */
.note { margin-top: 1.2rem; font-size: var(--step--2); color: var(--ink-faint); line-height: var(--lh-body); }
.note--warn { color: var(--shu-ink); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--sumi); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--body); font-weight: 700; font-size: var(--step--1);
  letter-spacing: .04em;
  padding: .82em 1.5em;
  background: var(--bg); color: var(--fg);
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }
.btn--shu  { --bg: var(--shu);  --fg: #fff; }
.btn--shu:hover { --bg: var(--shu-deep); }
.btn--ghost { --bg: transparent; --fg: var(--sumi); border-color: var(--hairline-2); box-shadow: none; }
.btn--ghost:hover { border-color: var(--sumi); background: rgba(28,24,19,.03); }
.btn--lg { padding: 1em 1.9em; font-size: var(--step-0); }
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(1.1) blur(10px);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-head.is-scrolled { border-bottom-color: var(--hairline); }
.site-head__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: .55rem; }
.brand__mark { font-family: var(--display); font-weight: var(--w-display); font-size: var(--step-2); color: var(--sumi); letter-spacing: .04em; }
.brand__mark .dot { color: var(--shu); }
.brand__rom { font-family: var(--antique); font-size: var(--step--2); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-faint); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav__link { font-size: var(--step--1); font-weight: 500; color: var(--sumi-2); position: relative; padding-block: .3rem; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--shu); transition: width .25s var(--ease); }
.nav__link:hover::after, .nav__link:focus-visible::after { width: 100%; }
.nav .btn { padding: .56em 1.1em; font-size: var(--step--2); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem,2.4vw,2rem); }

/* buildless mobile disclosure (markup per page: <details class="nav__menu">) */
.nav__menu { position: static; }
.nav__menu > summary { list-style: none; }
.nav__menu > summary::-webkit-details-marker { display: none; }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--hairline-2); border-radius: var(--radius);
  color: var(--sumi); cursor: pointer; background: transparent;
  font-size: var(--step-1); line-height: 1;
}
.nav__toggle:focus-visible { outline: 2px solid var(--shu); outline-offset: 2px; }
.nav__menu[open] .nav__toggle { background: rgba(28,24,19,.04); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem,8vw,6.5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 2.6rem; } }
.hero h1 {
  font-size: clamp(var(--step-5), 5.2vw, var(--step-7));
  line-height: var(--lh-tight); letter-spacing: 0;
  max-width: 14ch;
  text-rendering: geometricPrecision;
}
.hero h1 .accent { color: var(--shu); }
.hero .lead { margin-top: 1.4rem; max-width: 34ch; }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__note { margin-top: 1.3rem; font-size: var(--step--2); color: var(--ink-faint); display: flex; gap: 1.2rem; flex-wrap: wrap; }
.hero__note span { display: inline-flex; align-items: center; gap: .4em; }
.hero__note .tick { color: var(--shu-mute); font-weight: 700; }
.hero__note .tick--ai { color: var(--ai); }

/* hero eyebrow rule draws in on load */
.hero .eyebrow::before { width: 0; animation: draw .6s var(--ease) .15s forwards; }

/* reveal-on-load */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1{animation-delay:.05s}.d2{animation-delay:.18s}.d3{animation-delay:.31s}.d4{animation-delay:.44s}.d5{animation-delay:.57s}

/* hero ambient ink wash — 朱 top-right, faint 藍 seed bottom-left */
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  right: -8vw; top: -10vw; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--shu-wash) 0%, transparent 62%);
  opacity: .5; filter: blur(40px);
  animation: wash 14s ease-in-out infinite alternate;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 38vw; height: 38vw; max-width: 480px; max-height: 480px;
  left: -10vw; bottom: -14vw; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--ai-soft) 0%, transparent 64%);
  opacity: .35; filter: blur(48px); pointer-events: none;
}
@keyframes wash { to { transform: translate(-2%, 2%) scale(1.06); opacity: .6; } }
@keyframes draw { to { width: 1.6rem; } }

/* ---------- reusable 朱 ink-wash atmosphere (pricing / privacy / terms) ---------- */
.page-wash { position: relative; }
.page-wash::before {
  content: ""; position: absolute; z-index: -1;
  inset: auto auto auto 0; top: -4vw;
  width: 40vw; height: 40vw; max-width: 520px; max-height: 520px;
  background: radial-gradient(circle at 30% 30%, var(--shu-wash) 0%, transparent 66%);
  opacity: .4; filter: blur(40px); pointer-events: none;
}

/* ---------- the 整文 demo card (the signature moment) ---------- */
.demo {
  background: linear-gradient(180deg, #fff, var(--paper));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.3rem, 2.6vw, 2rem);
  position: relative;
}
.demo__bar { display: flex; gap: .42rem; margin-bottom: 1.2rem; }
.demo__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline-2); display: inline-block; }
.demo__bar i:first-child { background: var(--shu); opacity: .8; }
.demo__row { position: relative; }
.demo__tag {
  font-family: var(--antique); font-size: var(--step--2); font-weight: 700;
  letter-spacing: .2em; color: var(--ink-faint);
  display: inline-block; margin-bottom: .5rem;
}
.demo__tag--shu { color: var(--shu-ink); }
.demo__spoken p {
  font-size: var(--step-0); color: var(--ink-soft); line-height: 1.9;
  position: relative;
}
.demo__filler { color: var(--ink-faint); position: relative; transition: opacity .4s var(--ease); }
/* Beat 1 — fillers get struck through, then dim */
.demo__filler::after {
  content: ""; position: absolute; top: 50%; left: 0;
  height: 1px; width: 0; background: var(--ink-faint);
  animation: strike .5s var(--ease) .9s forwards;
}
.demo__filler { animation: dim .5s var(--ease) .9s forwards; }
@keyframes strike { to { width: 100%; } }
@keyframes dim { to { opacity: .25; } }

.demo__arrow {
  display: flex; align-items: center; gap: .7rem;
  margin: 1.1rem 0; color: var(--ink-faint);
  font-family: var(--antique); font-size: var(--step--2); letter-spacing: .18em;
}
.demo__arrow::before, .demo__arrow::after { content: ""; height: 1px; background: var(--hairline); flex: 1; }
.demo__refined {
  background: var(--paper-2); border-radius: var(--radius);
  padding: 1rem 1.1rem; padding-right: 3.4rem;  /* clear the absolute seal */
  border: 1px solid var(--hairline);
}
.demo__refined p {
  font-family: var(--display); font-weight: var(--w-emphasis);
  font-size: var(--step-1); line-height: var(--lh-loose); color: var(--sumi);
  hanging-punctuation: allow-end;
  /* Beat 2 — refined sentence wipes in */
  clip-path: inset(0 100% 0 0);
  animation: wipe-in .7s var(--ease) 1.1s forwards;
}
@keyframes wipe-in { to { clip-path: inset(0 0 0 0); } }
/* tag fades in (retimed so it doesn't collide with the card's own rise) */
.demo__tag--shu { opacity: 0; animation: rise .8s var(--ease) 1.0s forwards; }

/* 朱 seal — Beat 3, presses at 2.0s */
.demo__seal {
  position: absolute; right: clamp(1rem,2.6vw,1.8rem); bottom: clamp(1rem,2.6vw,1.6rem);
  width: 44px; height: 44px; border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: var(--w-display-strong); font-size: var(--step-2);
  color: #fff; background: var(--shu);
  box-shadow: 0 4px 14px rgba(194,64,42,.4);
  text-rendering: geometricPrecision;
  transform: rotate(-7deg) scale(0);
  animation: stamp .7s var(--ease) 2.0s forwards;
}
/* one-shot ink bloom ring on contact */
.demo__seal::after {
  content: ""; position: absolute; inset: -3px;
  border: 1px solid var(--shu); border-radius: 9px;
  opacity: 0;
  animation: ring .6s var(--ease) 2.15s forwards;
}
@keyframes stamp {
  0%  { transform: rotate(-7deg) scale(1.6); opacity: 0; box-shadow: 0 8px 22px rgba(194,64,42,.2); }
  60% { transform: rotate(-7deg) scale(.92); opacity: 1; box-shadow: 0 2px 6px rgba(194,64,42,.55); }
  100%{ transform: rotate(-7deg) scale(1);   opacity: 1; box-shadow: 0 4px 14px rgba(194,64,42,.4); }
}
@keyframes ring { from { opacity: .35; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

@media (max-width: 900px) { .demo { box-shadow: var(--shadow); } }

/* ---------- section heading ---------- */
.shead { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.shead h2 { font-size: clamp(var(--step-3), 3.4vw, var(--step-5)); line-height: 1.32; margin-top: .8rem; }
.shead .lead { margin-top: 1rem; }
.shead--center { margin-inline: auto; text-align: center; }
.shead--center .eyebrow { justify-content: center; }
.shead--narrow { max-width: 680px; margin-inline: auto; text-align: center; }
.shead--narrow .eyebrow { justify-content: center; }

/* ---------- bands ---------- */
.band-ink { background: var(--sumi); color: var(--paper); position: relative; }
.band-ink .eyebrow { color: var(--shu-soft); }
.band-ink .eyebrow::before { background: var(--shu-soft); }
.band-ink .lead, .band-ink .muted { color: #C9C0B0; }
.band-ink .hairline { border-color: rgba(255,255,255,.12); }
.band-paper2 { background: var(--paper-2); }

/* light grain on dark surfaces — 墨 reads inky, not flat */
.band-ink::after, .site-foot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--noise);
  mix-blend-mode: screen; opacity: .05;
}

/* privacy = the indigo room */
#privacy.band-ink { background: linear-gradient(180deg, var(--sumi) 0%, var(--sumi-cool) 100%); }
#privacy .shead { border-bottom: 1px solid rgba(44,74,90,.45); padding-bottom: 1.4rem; }

/* ---------- feature grid ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--hairline-2); }
.card__num { font-family: var(--display); font-weight: var(--w-display-strong); color: var(--shu-mute); font-size: var(--step-1); letter-spacing: .1em; }
.card h3 { font-size: var(--step-2); margin: .7rem 0 .6rem; line-height: var(--lh-snug); }
.card p { color: var(--ink-soft); font-size: var(--step-0); }
.card .ic { font-size: 1.5rem; line-height: 1; }
.band-ink .card { background: #26211A; border-color: rgba(255,255,255,.1); border-top: 1px solid rgba(255,255,255,.06); }
.band-ink .card p { color: #B8AF9F; }
.band-ink .card:hover { border-color: rgba(255,255,255,.22); }

/* two-stage diptych */
.stage { position: relative; overflow: hidden; }
.stage__time { font-family: var(--display); font-weight: var(--w-display-strong); font-size: clamp(var(--step-4),4vw,var(--step-6)); color: var(--sumi); font-variant-numeric: tabular-nums lining-nums; }
.stage__time small { font-size: var(--step--1); color: var(--ink-faint); font-family: var(--body); font-weight: 500; }
.stage--fast .stage__time { color: var(--ai); }
.stage--quality .stage__time { color: var(--shu); }

/* privacy modes */
.modes { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,2vw,1.4rem); }
@media (max-width: 820px){ .modes { grid-template-columns: 1fr; } }
.mode { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 1.6rem; background: #26211A; border-top: 1px solid rgba(255,255,255,.06); }
.mode__lvl { font-family: var(--antique); font-size: var(--step--2); letter-spacing: .2em; font-weight:700; color: var(--shu-soft); }
.mode h3 { color: var(--paper); font-size: var(--step-1); margin: .6rem 0 .7rem; }
.mode p { color: #B8AF9F; font-size: var(--step-0); }
.mode--secure { border-color: var(--shu); border-top-color: var(--ai); background: linear-gradient(180deg, #2A211C, #241F19); box-shadow: inset 0 1px 0 var(--ai-soft, rgba(215,224,226,.12)); }
.mode--secure .mode__lvl { color: var(--shu); }
.mode__seal { float: right; font-family: var(--display); color: var(--shu); font-weight:var(--w-display-strong); font-size:var(--step-2); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem,2vw,1.5rem); align-items: stretch; }
@media (max-width: 900px){ .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline:auto; } }
.plans--2 { grid-template-columns: repeat(2,1fr); max-width: 760px; margin-inline: auto; }
@media (max-width: 640px){ .plans--2 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2rem); display: flex; flex-direction: column;
  position: relative; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--feature { border-color: var(--shu); box-shadow: var(--shadow); background: linear-gradient(180deg, #fff, var(--paper)); }
.plan__flag {
  position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%);
  background: var(--shu); color: #fff; font-size: var(--step--2); font-weight: 700;
  letter-spacing: .18em; padding: .35em 1em; border-radius: 100px;
  font-family: var(--antique);
}
.plan__name { font-family: var(--display); font-weight: var(--w-display); font-size: var(--step-2); }
.plan__for { color: var(--ink-faint); font-size: var(--step--2); margin-top: .2rem; }
.plan__price { margin: 1.1rem 0 .2rem; display: flex; align-items: baseline; gap: .25rem; }
.plan__price .yen { font-family: var(--display); font-weight: var(--w-display-strong); font-size: clamp(2rem,5vw,2.7rem); color: var(--sumi); font-variant-numeric: tabular-nums lining-nums; }
.plan__price .per { color: var(--ink-faint); font-size: var(--step--1); font-variant-numeric: tabular-nums lining-nums; }
.plan__year { font-size: var(--step--2); color: var(--shu-ink); font-weight: 500; min-height: 1.2em; font-variant-numeric: tabular-nums lining-nums; }
.plan__list { list-style: none; padding: 0; margin: 1.3rem 0; display: grid; gap: .7rem; flex: 1; }
.plan__list li { display: flex; gap: .6rem; font-size: var(--step-0); color: var(--sumi-2); align-items: flex-start; }
.plan__list li::before { content: "✓"; color: var(--shu-mute); font-weight: 800; flex: none; }
.plan__list li.no { color: var(--ink-faint); }
.plan__list li.no::before { content: "—"; color: var(--ink-faint); }
.plan .btn { width: 100%; justify-content: center; }

.pill { display:inline-block; font-family:var(--antique); font-size:var(--step--2); letter-spacing:.16em; font-weight:700; color:var(--ink-faint); border:1px solid var(--hairline-2); border-radius:100px; padding:.3em .9em; }

/* faq */
.faq { max-width: 740px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 1.1rem 0; }
.faq summary { font-family: var(--display); font-weight: var(--w-emphasis); font-size: var(--step-1); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; border-radius: 4px; }
.faq summary::after { content: "＋"; color: var(--shu-ink); font-weight: 700; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-soft); font-size: var(--step--1); margin-top: .8rem; }
.faq details[open] p { animation: faq-open .28s var(--ease) both; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- status / confirmation pages ---------- */
.statuspage { min-height: 78vh; display: grid; place-items: center; text-align: center; }
.statuscard { max-width: 560px; }
.statusmark {
  width: 78px; height: 78px; border-radius: 16px; margin: 0 auto 1.6rem;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: var(--w-display-strong); font-size: 2.2rem; color: #fff;
  background: var(--shu); box-shadow: 0 10px 30px rgba(194,64,42,.35);
  text-rendering: geometricPrecision;
  transform: rotate(-6deg) scale(0); animation: stamp .7s var(--ease) .2s forwards;
}
.statusmark--ai { background: var(--ai); box-shadow: 0 10px 30px rgba(44,74,90,.3); }
.statuspage h1 { font-size: clamp(var(--step-4),4vw,var(--step-5)); margin-bottom: 1rem; text-rendering: geometricPrecision; }
.statuspage .lead { margin-inline: auto; max-width: 46ch; }
.statussteps { text-align: left; max-width: 420px; margin: 2rem auto 0; display: grid; gap: .9rem; }
.statussteps li { display: flex; gap: .9rem; align-items: flex-start; color: var(--sumi-2); font-size: var(--step-0); list-style: none; }
.statussteps li b { font-family: var(--display); color: var(--shu); }
.statuspage .btnrow { margin-top: 2.2rem; display:flex; gap:.8rem; justify-content:center; flex-wrap:wrap; }

/* ---------- legal / prose ---------- */
.legal { max-width: 760px; }
.legal .eyebrow { margin-bottom: .8rem; }
.legal h1 { font-size: clamp(var(--step-4), 4vw, var(--step-5)); margin-bottom: .4rem; }
.legal__meta { color: var(--ink-faint); font-size: var(--step--1); margin-bottom: 2rem; }
.legal h2 { font-size: var(--step-2); margin: 2.6rem 0 .9rem; padding-top: 1.6rem; border-top: 1px solid var(--hairline); }
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-size: var(--step-1); margin: 1.4rem 0 .5rem; }
.legal p, .legal li { color: var(--sumi-2); font-size: var(--step-0); line-height: var(--lh-loose); line-break: strict; overflow-wrap: anywhere; hanging-punctuation: allow-end; }
.legal ul, .legal ol { padding-left: 1.3rem; display: grid; gap: .5rem; margin: .6rem 0; }
.legal strong { color: var(--sumi); font-weight: 700; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: var(--step--1); }
.legal th, .legal td { border: 1px solid var(--hairline); padding: .7rem .8rem; text-align: left; vertical-align: top; }
.legal th { background: var(--paper-2); font-family: var(--antique); font-weight: 700; }
.legal a { color: var(--shu-ink); border-bottom: 1px solid var(--shu-soft); }

/* page seal beside inner-page eyebrows (markup: <span class="page-seal" aria-hidden="true">私</span>) */
.page-seal {
  font-family: var(--display); font-weight: var(--w-display-strong);
  color: var(--shu); font-size: var(--step-2); line-height: 1;
  display: inline-grid; place-items: center;
  width: 1.7em; height: 1.7em;
  border: 1.5px solid var(--shu); border-radius: 7px;
  vertical-align: middle;
}

/* draft banner + fill-in placeholder */
.draft-banner {
  background: var(--shu-wash); border: 1px solid var(--shu-soft); color: var(--shu-deep);
  border-radius: var(--radius); padding: 1rem 1.2rem; font-size: var(--step--1); margin-bottom: 2rem;
  line-height: 1.7;
}
.draft-banner b { color: var(--shu-deep); }
.fill {
  background: #F6E7C4; color: #5E4A12; border-bottom: 2px dotted #A8801A;
  padding: 0 .35em; font-weight: 700; border-radius: 2px;
}

/* ---------- footer ---------- */
.site-foot { background: var(--sumi); color: #B8AF9F; padding-block: clamp(2.6rem,5vw,4rem) 2rem; position: relative; }
.site-foot a { color: #D8CFBE; }
.site-foot a:hover { color: #fff; }
.site-foot a:focus-visible, .band-ink a:focus-visible { outline-color: var(--shu-soft); }
.foot__top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot__brand .brand__mark { color: var(--paper); }
.foot__brand p { color: #9B927F; font-size: var(--step--1); max-width: 30ch; margin-top: .8rem; }
.foot__cols { display: flex; gap: clamp(2rem,5vw,4rem); flex-wrap: wrap; }
.foot__col h4 { font-family: var(--antique); font-size: var(--step--2); letter-spacing: .2em; color: #9B927F; text-transform: uppercase; margin-bottom: 1rem; font-weight: 700; }
.foot__col a { display: block; font-size: var(--step--1); padding: .3rem 0; }
.foot__bottom { padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--step--2); color: #928979; }

/* utilities */
.hairline { border: none; border-top: 1px solid var(--hairline); }
.center { text-align: center; }
.mt-0{margin-top:0}.mt-1{margin-top:.6rem}.mt-2{margin-top:1.2rem}.mt-3{margin-top:2rem}
.vert { writing-mode: vertical-rl; text-orientation: upright; }
/* 縦書き signature (decorative, aria-hidden) */
.vert--sig {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--display); color: var(--shu-ink);
  letter-spacing: .25em; font-size: var(--step-1);
}
@media (max-width: 900px) { .vert--sig { display: none; } }

/* ---------- scroll-reveal (CSS-only, view() timeline; degrades to visible) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    /* per-column stagger via inline --i (1..n) */
    .scroll-reveal[style*="--i"] {
      animation-range: entry calc(var(--i) * 3%) entry calc(35% + var(--i) * 3%);
    }
  }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- responsive / mobile ---------- */
@media (max-width: 720px) {
  /* buildless <details> nav: hide the inline link row, show toggle + panel */
  .nav__toggle { display: inline-flex; }
  .nav__menu .nav__links {
    position: absolute; left: 0; right: 0; top: 68px;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .6rem 0;
  }
  .nav__menu:not([open]) .nav__links { display: none; }
  .nav__menu .nav__links .nav__link {
    padding: .9rem clamp(1.1rem, 4vw, 2.4rem);
    font-size: .95rem;
    border-top: 1px solid var(--hairline);
  }
  /* legacy plain nav (no <details>): keep links hidden as before */
  .nav:not(.nav--menu) .nav__links { display: none; }
}

@media (max-width: 600px) {
  .brk { display: none; }
  .hero h1 { line-height: var(--lh-tight); letter-spacing: 0; }
}
@media (max-width: 520px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .statuspage .btnrow { flex-direction: column; align-items: stretch; }
  .statuspage .btnrow .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .hero__note { flex-direction: column; gap: .5rem; }
}
@media (max-width: 560px) {
  .foot__top { flex-direction: column; gap: 2rem; }
  .foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
}

/* ---------- prefers-reduced-motion (complete coverage) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .demo__refined p, .demo__tag--shu { animation: none; opacity: 1; transform: none; clip-path: none; }
  .demo__seal { animation: none; transform: rotate(-7deg) scale(1); opacity: 1; }
  .demo__seal::after { animation: none; opacity: 0; }
  .demo__filler { animation: none; opacity: 1; }
  .demo__filler::after { animation: none; width: 0; }
  .statusmark { animation: none; transform: rotate(-6deg) scale(1); opacity: 1; }
  .scroll-reveal { animation: none; opacity: 1; transform: none; }
  .faq details[open] p { animation: none; }
  .hero .eyebrow::before { animation: none; width: 1.6rem; }
  .hero::after { animation: none; }
  /* damp positional hover motion; keep color/border feedback */
  .btn:hover, .card:hover, .plan:hover { transform: none; }
}
