/* =========================================================
   HPtukuru — Design System
   Layout concept: 12-column editorial grid. Type-led sections that
   change their split (7/5, 4/8, 5/7) by content; one dark band
   carries the 72-hour promise. Mono numerals = "measured promises".
   ========================================================= */

:root {
  /* ---- Color (light) ---- */
  --c-primary: #0B7A75;          /* エメラルドブルー：信頼・主役 */
  --c-primary-strong: #075E5A;   /* hover / active */
  --c-primary-tint: #E2F1EF;     /* 淡い面 */
  --c-ink: #0C2326;              /* ディープインク：重み・上質 */
  --c-accent: #B8873B;           /* ブラス：CTAと目印だけ */
  --c-accent-strong: #9E7230;
  --c-on-accent: #0C2326;

  --c-bg: #F7FAF9;
  --c-surface: #FFFFFF;
  --c-text: #0C2326;
  --c-text-2: #4A5F61;
  --c-border: #D3E0DE;
  --c-band: #0C2326;
  --c-band-text: #E8F1EF;
  --c-band-muted: #9DB7B4;
  --c-band-line: #24474A;

  --c-success: #1E7A4C;
  --c-warning: #8A5D0E;
  --c-error: #B3261E;
  --c-focus: #0B7A75;

  /* ---- Type ---- */
  --f-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-display: clamp(2rem, 1.25rem + 3.2vw, 3.5rem);
  --fs-h1: clamp(1.875rem, 1.4rem + 1.9vw, 2.75rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --fs-h3: 1.25rem;
  --fs-h4: 1.0625rem;
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;
  --fs-button: 1rem;

  --lh-tight: 1.35;
  --lh-head: 1.45;
  --lh-body: 1.9;

  /* ---- Space (4-based scale) ---- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 80px; --s-10: 96px; --s-11: 120px; --s-12: 160px;

  --gutter: clamp(16px, 4vw, 40px);
  --container: 1200px;
  --measure: 36em;               /* 和文本文の最大幅（約36字） */

  --radius-s: 4px;
  --radius-m: 8px;
  --ease-power4-out: cubic-bezier(.22, 1, .36, 1);
  --ease-power3-out: cubic-bezier(.25, 1, .5, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --ease: var(--ease-power4-out);
  --dur-standard: .3s;
  --dur-emphasized: .6s;
  --dur-strong: 1.2s;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-primary: #3FC2B6;
    --c-primary-strong: #6AD6CB;
    --c-primary-tint: #12302F;
    --c-ink: #E8F1EF;
    --c-accent: #D3A55A;
    --c-accent-strong: #E2B972;
    --c-on-accent: #0A1A1C;
    --c-bg: #0A1A1C;
    --c-surface: #0F2528;
    --c-text: #E8F1EF;
    --c-text-2: #A3BAB8;
    --c-border: #24403F;
    --c-band: #0C3634;
    --c-band-text: #E8F1EF;
    --c-band-muted: #A3C4C0;
    --c-band-line: #23605B;
    --c-success: #5CC48E;
    --c-warning: #E0B25C;
    --c-error: #F2877E;
    --c-focus: #6AD6CB;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --c-primary: #3FC2B6;
  --c-primary-strong: #6AD6CB;
  --c-primary-tint: #12302F;
  --c-ink: #E8F1EF;
  --c-accent: #D3A55A;
  --c-accent-strong: #E2B972;
  --c-on-accent: #0A1A1C;
  --c-bg: #0A1A1C;
  --c-surface: #0F2528;
  --c-text: #E8F1EF;
  --c-text-2: #A3BAB8;
  --c-border: #24403F;
  --c-band: #0C3634;
  --c-band-text: #E8F1EF;
  --c-band-muted: #A3C4C0;
  --c-band-line: #23605B;
  --c-success: #5CC48E;
  --c-warning: #E0B25C;
  --c-error: #F2877E;
  --c-focus: #6AD6CB;
  color-scheme: dark;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--c-bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-primary-strong); }
h1, h2, h3, h4 { margin: 0; line-height: var(--lh-head); text-wrap: balance; font-weight: 700; letter-spacing: 0.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--c-surface); color: var(--c-text); padding: 8px 16px; border: 2px solid var(--c-primary);
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

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

/* =========================================================
   Layout primitives
   ========================================================= */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-6); row-gap: var(--s-6); }
.grid-12 > * { min-width: 0; grid-column: 1 / -1; }

.section { padding-block: var(--s-11); }
.section--tight { padding-block: var(--s-9); }
.section--surface { background: var(--c-surface); border-block: 1px solid var(--c-border); }

/* Typographic roles */
.eyebrow {
  font-family: var(--f-mono); font-size: var(--fs-caption); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-primary);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: 0.02em; font-weight: 900; }
.h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 900; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); }
.lead { font-size: var(--fs-body-lg); line-height: 1.95; color: var(--c-text); max-width: var(--measure); }
.body { max-width: var(--measure); }
.body > * + * { margin-top: 1.25em; }
.muted { color: var(--c-text-2); }
.small { font-size: var(--fs-small); line-height: 1.8; }
.caption { font-size: var(--fs-caption); letter-spacing: 0.06em; color: var(--c-text-2); }
.phrase { display: inline-block; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }

.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-8); max-width: 40em; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --btn-bg: var(--c-primary); --btn-fg: #FFFFFF; --btn-bd: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 52px; padding: 0 var(--s-6);
  font: 700 var(--fs-button)/1.2 var(--f-sans); letter-spacing: 0.06em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-s); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { --btn-bg: var(--c-primary-strong); --btn-bd: var(--c-primary-strong); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--accent { --btn-bg: var(--c-accent); --btn-fg: var(--c-on-accent); --btn-bd: var(--c-accent); }
.btn--accent:hover { --btn-bg: var(--c-accent-strong); --btn-bd: var(--c-accent-strong); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-primary); --btn-bd: var(--c-primary); }
.btn--ghost:hover { --btn-bg: var(--c-primary-tint); --btn-fg: var(--c-primary-strong); }
.btn--lg { min-height: 60px; padding: 0 var(--s-7); font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: 0 var(--s-4); font-size: var(--fs-small); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.btn--accent):not(.btn--ghost) { --btn-fg: #0A1A1C; } }
:root[data-theme="dark"] .btn:not(.btn--accent):not(.btn--ghost) { --btn-fg: #0A1A1C; }

.text-link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 700; color: var(--c-primary); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px; min-height: 44px;
}
.text-link:hover { color: var(--c-primary-strong); }
.text-link .arrow { transition: transform .2s var(--ease); }
.text-link:hover .arrow { transform: translateX(3px); }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--s-5); }

.logo { display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--c-text); font-weight: 900; font-size: 1.25rem; letter-spacing: 0.02em; }
.logo-mark { background: var(--c-primary); color: var(--c-bg); padding: 0 6px; border-radius: 2px; font-family: var(--f-mono); font-weight: 500; font-size: 1rem; line-height: 1.6; }
.logo-type { color: var(--c-text); }
.logo-sub { display: block; font-size: 10px; font-weight: 500; color: var(--c-text-2); letter-spacing: .08em; }
.logo-wrap { display: grid; line-height: 1.2; text-decoration: none; }

.global-nav { display: flex; align-items: center; gap: var(--s-6); }
.global-nav ul { list-style: none; display: flex; gap: var(--s-5); }
.global-nav ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-text); text-decoration: none; font-weight: 500; font-size: 0.9375rem; position: relative; }
.global-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: var(--c-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.global-nav ul a:hover::after, .global-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.global-nav ul a[aria-current="page"] { color: var(--c-primary); }

.nav-toggle {
  display: none; min-height: 44px; min-width: 44px; padding: 0 var(--s-3);
  background: transparent; border: 1.5px solid var(--c-border); border-radius: var(--radius-s);
  color: var(--c-text); font: 700 var(--fs-small) var(--f-sans); cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .global-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--s-4);
    background: var(--c-surface); border-bottom: 1px solid var(--c-border);
    padding: var(--s-4) max(var(--gutter), env(safe-area-inset-right, 0px)) var(--s-6) max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  .global-nav:not(.is-open) { display: none; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav ul a { width: 100%; min-height: 52px; border-bottom: 1px solid var(--c-border); font-size: 1rem; }
  .global-nav ul a::after { display: none; }
  .global-nav .btn { width: 100%; min-height: 52px; font-size: 1rem; }
}

/* =========================================================
   Breadcrumb / Page header (subpages)
   ========================================================= */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-small); color: var(--c-text-2); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--c-border); }
.breadcrumb a { color: var(--c-text-2); }

.page-head { padding-block: var(--s-9) var(--s-8); border-bottom: 1px solid var(--c-border); }
.page-head .grid-12 { align-items: end; }
.page-head__title { grid-column: 1 / span 7; display: grid; gap: var(--s-4); }
.page-head__lead { grid-column: 8 / -1; }
@media (max-width: 900px) { .page-head__title, .page-head__lead { grid-column: 1 / -1; } }

/* =========================================================
   TOP — Hero (7/5)
   ========================================================= */
.hero { padding-block: var(--s-9) var(--s-10); }
.hero .grid-12 { align-items: center; }
.hero__copy { grid-column: 1 / span 7; display: grid; gap: var(--s-5); }
.hero__visual { grid-column: 8 / -1; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); margin-top: var(--s-2); }

.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s-6); margin: var(--s-5) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--c-border); }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: var(--fs-caption); color: var(--c-text-2); letter-spacing: 0.08em; }
.facts dd { margin: 0; font-family: var(--f-mono); font-size: 1.25rem; font-weight: 500; color: var(--c-text); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.facts dd small { font-family: var(--f-sans); font-size: 0.75rem; color: var(--c-text-2); margin-left: 2px; }

/* Search-result figure: the goal of the service, shown as information */
.serp { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-m); box-shadow: 0 24px 48px -32px rgba(12, 35, 38, .35); overflow: hidden; }
.serp__bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); border-bottom: 1px solid var(--c-border); }
.serp__query { flex: 1; display: flex; align-items: center; gap: var(--s-2); padding: 8px 14px; border: 1px solid var(--c-border); border-radius: 999px; font-size: var(--fs-small); color: var(--c-text); min-width: 0; }
.serp__query svg { width: 14px; height: 14px; flex: none; color: var(--c-text-2); }
.serp__list { list-style: none; padding: var(--s-2) var(--s-4) var(--s-4); }
.serp__item { padding: var(--s-3) 0; display: grid; gap: 2px; border-bottom: 1px dashed var(--c-border); }
.serp__item:last-child { border-bottom: 0; }
.serp__url { font-size: 11px; color: var(--c-text-2); font-family: var(--f-mono); letter-spacing: 0; overflow-wrap: anywhere; }
.serp__title { font-size: 0.9375rem; font-weight: 700; color: var(--c-primary); line-height: 1.5; }
.serp__desc { font-size: 12px; color: var(--c-text-2); line-height: 1.6; }
.serp__item--target { position: relative; margin: 0 calc(var(--s-4) * -1); padding: var(--s-4); background: var(--c-primary-tint); border-left: 3px solid var(--c-accent); border-bottom: 0; }
.serp__tag { justify-self: start; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; background: var(--c-accent); color: var(--c-on-accent); padding: 2px 8px; border-radius: 2px; margin-bottom: 4px; }
.serp__item--ghost .serp__title, .serp__item--ghost .serp__desc { color: var(--c-text-2); opacity: .55; }
.serp-caption { margin-top: var(--s-3); }

@media (max-width: 960px) {
  .hero__copy, .hero__visual { grid-column: 1 / -1; }
  .hero__visual { max-width: 520px; }
}
@media (max-width: 560px) {
  .hero { padding-block: var(--s-7) var(--s-8); }
  .facts { grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); }
  .facts div:last-child { grid-column: 1 / -1; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .text-link { justify-content: center; }
  .serp__item--ghost:nth-child(n+3) { display: none; }
}

/* =========================================================
   TOP — Problems (typographic list, offset)
   ========================================================= */
.problems .grid-12 { align-items: start; }
.problems__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: var(--s-4); }
.problems__list { grid-column: 6 / -1; list-style: none; counter-reset: none; }
.problems__list li { padding: var(--s-6) 0; border-top: 1px solid var(--c-border); display: grid; gap: var(--s-2); }
.problems__list li:last-child { border-bottom: 1px solid var(--c-border); }
.problems__q { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 700; line-height: 1.6; }
.problems__a { color: var(--c-text-2); max-width: var(--measure); }
.problems__conclusion { grid-column: 6 / -1; margin-top: var(--s-6); font-size: var(--fs-body-lg); font-weight: 500; max-width: var(--measure); }
.problems__conclusion strong { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--c-accent) 35%, transparent) 62%); font-weight: 700; }
@media (max-width: 900px) {
  .problems__head, .problems__list, .problems__conclusion { grid-column: 1 / -1; position: static; }
}

/* =========================================================
   TOP — 72h promise band (signature)
   ========================================================= */
.band { background: var(--c-band); color: var(--c-band-text); }
.band .eyebrow { color: var(--c-accent); }
.band .muted { color: var(--c-band-muted); }
.promise .grid-12 { align-items: end; }
.promise__head { grid-column: 1 / span 7; display: grid; gap: var(--s-5); }
.promise__head .display em { font-style: normal; font-family: var(--f-mono); font-weight: 500; color: var(--c-accent); letter-spacing: -0.02em; }
.promise__side { grid-column: 9 / -1; }

.timeline { list-style: none; margin-top: var(--s-9); display: grid; grid-template-columns: 1fr 1.4fr 2fr; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--c-band-line); }
.timeline li { position: relative; padding-right: var(--s-6); display: grid; gap: var(--s-2); align-content: start; }
.timeline li::before { content: ""; width: 23px; height: 23px; border-radius: 50%; border: 1.5px solid var(--c-band-muted); background: var(--c-band); margin-bottom: var(--s-4); position: relative; }
.timeline li:last-child::before { background: var(--c-accent); border-color: var(--c-accent); }
.timeline__time { font-family: var(--f-mono); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.timeline li:last-child .timeline__time { color: var(--c-accent); }
.timeline__label { font-weight: 700; font-size: var(--fs-h4); }
.timeline__desc { color: var(--c-band-muted); font-size: var(--fs-small); line-height: 1.8; max-width: 22em; }
.promise__note { margin-top: var(--s-7); font-size: var(--fs-caption); color: var(--c-band-muted); letter-spacing: .04em; }

@media (max-width: 900px) {
  .promise__head, .promise__side { grid-column: 1 / -1; }
  .timeline { grid-template-columns: 1fr; gap: var(--s-6); padding-left: var(--s-7); margin-top: var(--s-7); }
  .timeline::before { left: 11px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline li { padding-right: 0; }
  .timeline li::before { position: absolute; left: calc(var(--s-7) * -1); top: 4px; margin: 0; }
}

/* =========================================================
   TOP — Services (priced rows)
   ========================================================= */
.services__list { list-style: none; border-top: 2px solid var(--c-text); }
.service-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: var(--s-6); padding: var(--s-7) 0; border-bottom: 1px solid var(--c-border); align-items: start; }
.service-row__name { display: grid; gap: var(--s-1); }
.service-row__en { font-family: var(--f-mono); font-size: var(--fs-caption); color: var(--c-text-2); letter-spacing: .1em; text-transform: uppercase; }
.service-row__price { text-align: right; display: grid; gap: var(--s-2); justify-items: end; }
.price { font-family: var(--f-mono); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-family: var(--f-sans); font-size: var(--fs-caption); color: var(--c-text-2); margin-left: 4px; letter-spacing: .04em; }
@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; gap: var(--s-3); padding: var(--s-6) 0; }
  .service-row__price { text-align: left; justify-items: start; }
}

/* =========================================================
   TOP — Search approach (4/8)
   ========================================================= */
.seo .grid-12 { align-items: start; }
.seo__head { grid-column: 1 / span 4; display: grid; gap: var(--s-4); }
.seo__body { grid-column: 6 / -1; display: grid; gap: var(--s-7); }
.checklist { list-style: none; display: grid; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--c-border); }
.checklist li:first-child { border-top: 1px solid var(--c-border); }
.checklist svg { width: 20px; height: 20px; margin-top: 6px; color: var(--c-primary); }
.checklist strong { display: block; font-weight: 700; }
.checklist span { color: var(--c-text-2); font-size: var(--fs-small); }
.notice { border-left: 3px solid var(--c-text); padding: var(--s-2) 0 var(--s-2) var(--s-5); display: grid; gap: var(--s-2); max-width: var(--measure); }
.notice__title { font-weight: 700; }
@media (max-width: 900px) { .seo__head, .seo__body { grid-column: 1 / -1; } }

/* =========================================================
   Process (real sequence → numbered)
   ========================================================= */
.process__list { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); counter-reset: step; }
.process__list li { counter-increment: step; display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 2px solid var(--c-border); }
.process__list li:first-child { border-top-color: var(--c-primary); }
.process__list li::before { content: "STEP " counter(step, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--fs-caption); color: var(--c-primary); letter-spacing: .1em; }
.process__list h3 { font-size: var(--fs-h4); }
.process__list p { font-size: var(--fs-small); color: var(--c-text-2); line-height: 1.8; }
.process__meta { font-family: var(--f-mono); font-size: var(--fs-caption); color: var(--c-text); letter-spacing: 0; }
@media (max-width: 960px) { .process__list { grid-template-columns: 1fr 1fr; row-gap: var(--s-6); } }
@media (max-width: 560px) {
  .process__list { grid-template-columns: 1fr; gap: 0; }
  .process__list li { grid-template-columns: 72px 1fr; column-gap: var(--s-3); padding: var(--s-4) 0; }
  .process__list li::before { grid-row: 1 / span 3; padding-top: 4px; }
}

/* =========================================================
   Representative (5/7)
   ========================================================= */
.person .grid-12 { align-items: center; }
.person__visual { grid-column: 1 / span 5; }
.person__body { grid-column: 7 / -1; display: grid; gap: var(--s-5); }
/* 代表写真に差し替える場所。写真が入るまではモノグラムで表示 */
.portrait { aspect-ratio: 4 / 5; width: 100%; max-width: 380px; max-width: 100%; background: var(--c-primary-tint); border-radius: var(--radius-s); display: grid; place-items: center; position: relative; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__mono { font-family: var(--f-mono); font-size: clamp(3rem, 2rem + 4vw, 5.5rem); color: var(--c-primary); letter-spacing: -0.04em; }
.portrait__label { position: absolute; left: var(--s-4); bottom: var(--s-4); font-size: var(--fs-caption); color: var(--c-text-2); }
.signature { display: grid; gap: 2px; padding-top: var(--s-4); border-top: 1px solid var(--c-border); }
.signature span { font-size: var(--fs-caption); color: var(--c-text-2); }
.signature strong { font-size: var(--fs-h4); }
.vows { list-style: none; display: grid; gap: var(--s-3); }
.vows li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: baseline; }
.vows li::before { content: ""; width: 8px; height: 8px; background: var(--c-accent); transform: translateY(-2px); }
@media (max-width: 900px) {
  .person__visual { grid-column: 1 / -1; max-width: 320px; }
  .person__body { grid-column: 1 / -1; }
}

/* =========================================================
   FAQ (accordion via details/summary)
   ========================================================= */
.faq-list { border-top: 1px solid var(--c-border); }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 32px 1fr 24px; gap: var(--s-3);
  align-items: baseline; padding: var(--s-5) 0; font-weight: 700; font-size: var(--fs-h4); line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; font-family: var(--f-mono); color: var(--c-primary); font-weight: 500; }
.faq-item summary::after { content: "+"; font-family: var(--f-mono); font-weight: 400; font-size: 1.25rem; color: var(--c-text-2); justify-self: end; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--c-primary); }
.faq-item__a { display: grid; grid-template-columns: 32px 1fr; gap: var(--s-3); padding: 0 32px var(--s-6) 0; color: var(--c-text-2); }
.faq-item__a::before { content: "A"; font-family: var(--f-mono); color: var(--c-accent); }
.faq-item__a > div { max-width: var(--measure); }
.faq-item__a > div > * + * { margin-top: .8em; }

.faq-top .grid-12 { align-items: start; }
.faq-top__head { grid-column: 1 / span 4; display: grid; gap: var(--s-4); }
.faq-top__list { grid-column: 5 / -1; }
@media (max-width: 900px) { .faq-top__head, .faq-top__list { grid-column: 1 / -1; } }

.faq-group + .faq-group { margin-top: var(--s-9); }
.faq-group h2 { margin-bottom: var(--s-5); }

/* =========================================================
   Final CTA
   ========================================================= */
.cta-final { padding-block: var(--s-11); }
.cta-final .grid-12 { align-items: end; }
.cta-final__copy { grid-column: 1 / span 7; display: grid; gap: var(--s-5); }
.cta-final__action { grid-column: 8 / -1; display: grid; gap: var(--s-4); justify-items: start; }
.cta-final__action .btn { width: 100%; }
.mail-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font-size: var(--fs-small); color: var(--c-text-2); }
.mail-line .addr { font-family: var(--f-mono); color: var(--c-text); font-size: 0.9375rem; letter-spacing: 0; user-select: all; }
.copy-btn { min-height: 36px; padding: 0 12px; border: 1px solid var(--c-border); background: transparent; color: var(--c-text); border-radius: var(--radius-s); font: 500 var(--fs-caption) var(--f-sans); cursor: pointer; }
.copy-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
@media (max-width: 900px) { .cta-final__copy, .cta-final__action { grid-column: 1 / -1; } }

/* =========================================================
   Service page — pricing tables
   ========================================================= */
.plan-table-wrap { overflow-x: auto; }
.plan-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.9375rem; }
.plan-table th, .plan-table td { padding: var(--s-4) var(--s-4); border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.plan-table thead th { vertical-align: bottom; border-bottom: 2px solid var(--c-text); }
.plan-table tbody th { font-weight: 500; color: var(--c-text-2); width: 24%; }
.plan-table .is-featured { background: var(--c-primary-tint); }
.plan-name { display: grid; gap: var(--s-1); }
.plan-name .badge { justify-self: start; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; background: var(--c-accent); color: var(--c-on-accent); padding: 2px 8px; border-radius: 2px; }
.plan-name .price { font-size: 1.5rem; }
.yes { color: var(--c-primary); font-weight: 700; }
.no { color: var(--c-text-2); }

.plan-intro .grid-12 { align-items: start; }
.plan-intro__head { grid-column: 1 / span 4; display: grid; gap: var(--s-4); }
.plan-intro__body { grid-column: 5 / -1; min-width: 0; }
@media (max-width: 900px) { .plan-intro__head, .plan-intro__body { grid-column: 1 / -1; } }

/* Mobile: tables become stacked plan blocks */
.plan-stack { display: none; }
@media (max-width: 700px) {
  .plan-table-wrap { display: none; }
  .plan-stack { display: grid; gap: var(--s-5); }
  .plan-block { border-top: 2px solid var(--c-text); padding-top: var(--s-4); }
  .plan-block.is-featured { border-top-color: var(--c-accent); }
  .plan-block dl { display: grid; grid-template-columns: 1fr auto; margin: var(--s-3) 0 0; }
  .plan-block dt, .plan-block dd { padding: 10px 0; border-bottom: 1px solid var(--c-border); margin: 0; font-size: var(--fs-small); }
  .plan-block dt { color: var(--c-text-2); }
  .plan-block dd { text-align: right; }
}

.extra-costs { list-style: none; display: grid; gap: 0; max-width: 46em; }
.extra-costs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--c-border); }
.extra-costs li:first-child { border-top: 1px solid var(--c-border); }
.extra-costs span:last-child { font-family: var(--f-mono); font-size: var(--fs-small); letter-spacing: 0; text-align: right; }

/* =========================================================
   Company page
   ========================================================= */
.info-table { display: grid; grid-template-columns: minmax(7em, 1fr) 3fr; margin: 0; border-top: 2px solid var(--c-text); max-width: 52em; }
.info-table dt, .info-table dd { margin: 0; padding: var(--s-5) 0; border-bottom: 1px solid var(--c-border); }
.info-table dt { color: var(--c-text-2); font-size: var(--fs-small); padding-right: var(--s-5); }
.info-table dd { min-width: 0; overflow-wrap: anywhere; }
.todo { background: color-mix(in srgb, var(--c-warning) 14%, transparent); color: var(--c-text); padding: 0 4px; border-radius: 2px; font-size: .9em; }
@media (max-width: 560px) {
  .info-table { grid-template-columns: 1fr; }
  .info-table dt { padding-bottom: 0; border-bottom: 0; }
  .info-table dd { padding-top: var(--s-1); }
}

.area-head { grid-column: 1 / span 5; display: grid; gap: var(--s-4); align-content: start; }
.area-body { grid-column: 7 / -1; display: grid; gap: var(--s-5); }
@media (max-width: 900px) { .area-head, .area-body { grid-column: 1 / -1; } }
.area-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.area-list li { padding: 4px 12px; border: 1px solid var(--c-border); border-radius: 2px; font-size: var(--fs-small); }
.area-list li.is-main { border-color: var(--c-primary); color: var(--c-primary); font-weight: 700; }

/* =========================================================
   Contact form
   ========================================================= */
.contact .grid-12 { align-items: start; }
.contact__form { grid-column: 1 / span 7; }
.contact__aside { grid-column: 9 / -1; display: grid; gap: var(--s-6); position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 960px) { .contact__form, .contact__aside { grid-column: 1 / -1; position: static; } }

.steps-indicator { list-style: none; display: flex; gap: var(--s-5); margin-bottom: var(--s-7); font-size: var(--fs-small); color: var(--c-text-2); }
.steps-indicator li { display: flex; align-items: center; gap: var(--s-2); }
.steps-indicator li span { font-family: var(--f-mono); width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--c-border); border-radius: 50%; font-size: 11px; }
.steps-indicator li[aria-current="step"] { color: var(--c-text); font-weight: 700; }
.steps-indicator li[aria-current="step"] span { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-bg); }

.field { display: grid; gap: var(--s-2); margin-bottom: var(--s-6); }
.field > label, .field legend { font-weight: 700; font-size: 0.9375rem; display: flex; align-items: center; gap: var(--s-2); padding: 0; }
.req, .opt { font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: 2px; letter-spacing: .04em; }
.req { background: var(--c-primary); color: var(--c-bg); }
.opt { border: 1px solid var(--c-border); color: var(--c-text-2); }
.hint { font-size: var(--fs-caption); color: var(--c-text-2); }
fieldset.field { border: 0; margin: 0 0 var(--s-6); padding: 0; min-width: 0; }

.input, .textarea, .select {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 1rem/1.6 var(--f-sans); letter-spacing: .02em; color: var(--c-text);
  background: var(--c-surface); border: 1.5px solid var(--c-border); border-radius: var(--radius-s);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.textarea { min-height: 180px; resize: vertical; }
.input:hover, .textarea:hover { border-color: var(--c-text-2); }
.input:focus, .textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 25%, transparent); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--c-error); }
.input:disabled { opacity: .5; }
.error-msg { color: var(--c-error); font-size: var(--fs-small); font-weight: 500; }
.error-msg:empty { display: none; }

.choice-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
@media (max-width: 480px) { .choice-group { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice label { display: flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--c-border); border-radius: var(--radius-s); cursor: pointer; font-size: 0.9375rem; background: var(--c-surface); }
.choice label::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--c-text-2); flex: none; }
.choice input:checked + label { border-color: var(--c-primary); background: var(--c-primary-tint); font-weight: 700; }
.choice input:checked + label::before { border: 5px solid var(--c-primary); }
.choice input:focus-visible + label { outline: 3px solid var(--c-focus); outline-offset: 2px; }

.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-small); }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--c-primary); flex: none; }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; margin-top: var(--s-6); }
@media (max-width: 560px) { .form-actions { flex-direction: column-reverse; align-items: stretch; } .form-actions .btn { width: 100%; } }

.confirm-list { display: grid; grid-template-columns: minmax(8em, 1fr) 3fr; margin: 0 0 var(--s-5); border-top: 2px solid var(--c-text); }
.confirm-list dt, .confirm-list dd { margin: 0; padding: var(--s-4) 0; border-bottom: 1px solid var(--c-border); }
.confirm-list dt { color: var(--c-text-2); font-size: var(--fs-small); }
.confirm-list dd { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 560px) { .confirm-list { grid-template-columns: 1fr; } .confirm-list dt { border: 0; padding-bottom: 0; } }

.form-alert { padding: var(--s-4) var(--s-5); border-left: 3px solid var(--c-error); background: color-mix(in srgb, var(--c-error) 8%, transparent); margin-bottom: var(--s-6); font-size: var(--fs-small); }
.form-done { padding: var(--s-7) 0; display: grid; gap: var(--s-4); }
.form-done .mark { width: 48px; height: 48px; color: var(--c-success); }

.aside-block { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--c-border); }
.aside-block h2 { font-size: var(--fs-h4); }
.aside-block ol { list-style: none; display: grid; gap: var(--s-2); font-size: var(--fs-small); color: var(--c-text-2); }
.aside-block ol li { display: grid; grid-template-columns: 56px 1fr; }
.aside-block ol .num { color: var(--c-text); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-border); padding-block: var(--s-9) var(--s-7); font-size: var(--fs-small); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: var(--s-7); }
.footer-grid h2 { font-size: var(--fs-caption); font-family: var(--f-mono); font-weight: 500; letter-spacing: .12em; color: var(--c-text-2); text-transform: uppercase; margin-bottom: var(--s-3); }
.footer-nav { list-style: none; display: grid; }
.footer-nav a { display: inline-flex; min-height: 40px; align-items: center; color: var(--c-text); text-decoration: none; }
.footer-nav a:hover { color: var(--c-primary); text-decoration: underline; }
.footer-about p { color: var(--c-text-2); max-width: 26em; margin-top: var(--s-3); }
.footer-contact { display: grid; gap: var(--s-2); color: var(--c-text-2); }
.footer-bottom { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--c-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); color: var(--c-text-2); font-size: var(--fs-caption); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Mobile sticky CTA (one-hand reach)
   ========================================================= */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-2);
    padding: var(--s-2) max(12px, env(safe-area-inset-right, 0px)) calc(var(--s-2) + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: var(--c-surface); border-top: 1px solid var(--c-border);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { min-height: 48px; padding: 0 var(--s-3); font-size: 0.9375rem; }
  .has-mobile-cta .site-footer { padding-bottom: calc(var(--s-7) + 72px); }
}

/* =========================================================
   Motion
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .motion .reveal { animation: rise .6s var(--ease) both; }
  .reveal-2 { animation-delay: .08s; }
  .reveal-3 { animation-delay: .16s; }
  @keyframes rise { from { opacity: .6; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  :root:not(.motion) *, :root:not(.motion) *::before, :root:not(.motion) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:root[data-reduced-motion="reduce"] *, :root[data-reduced-motion="reduce"] *::before, :root[data-reduced-motion="reduce"] *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }

@media (max-width: 560px) {
  .section { padding-block: var(--s-9); }
  .section--tight { padding-block: var(--s-8); }
  .section-head { margin-bottom: var(--s-7); }
  body { letter-spacing: 0.03em; }
}

/* =========================================================
   Motion layer — active only when JS adds html.motion
   (no JS / reduced motion = everything shown in final state)
   ========================================================= */

/* Header gains depth once the page scrolls */
.site-header { transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(12, 35, 38, .45); }

/* Scroll reveal */
.motion [data-reveal] { transition: opacity var(--dur-emphasized) var(--ease-power3-out), transform var(--dur-strong) var(--ease-power4-out); transition-delay: calc(var(--i, 0) * 80ms); }
.motion [data-reveal].is-pending { opacity: 0; transform: translateY(32px); }

/* Hero: search typed, then the client's result rises to first place */
.serp__query.is-typing span::after {
  content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px;
  background: var(--c-primary); vertical-align: -0.15em; animation: caret .8s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.serp__item--target { transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.serp__item--target .serp__tag { transition: opacity .35s var(--ease), transform .45s cubic-bezier(.3, 1.6, .5, 1); transform-origin: left center; }
.serp__item--target.is-rising { background: transparent; border-left-color: transparent; }
.serp__item--target.is-rising .serp__tag { opacity: 0; transform: scale(.6); }

/* 72h band: line draws from 0h to 72h, dots light up in order */
.timeline::after {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; margin-top: -0.5px;
  background: linear-gradient(90deg, var(--c-band-muted), var(--c-accent));
  transform-origin: left center;
}
.motion .timeline::after { transform: scaleX(0); transition: transform 1.6s var(--ease); }
.motion .timeline.is-active::after { transform: scaleX(1); }
.motion .timeline li::before { transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.motion .timeline li:last-child::before { background: var(--c-band); border-color: var(--c-band-muted); }
.motion .timeline.is-active li:nth-child(1)::before { background: var(--c-band-muted); transition-delay: .05s; }
.motion .timeline.is-active li:nth-child(2)::before { background: var(--c-band-muted); transition-delay: .7s; }
.motion .timeline.is-active li:last-child::before { background: var(--c-accent); border-color: var(--c-accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-accent) 22%, transparent); transition-delay: 1.5s; }
.motion .timeline li:last-child .timeline__time { transition: color .4s var(--ease) 1.5s; color: var(--c-band-text); }
.motion .timeline.is-active li:last-child .timeline__time { color: var(--c-accent); }
@media (max-width: 900px) {
  .timeline::after { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; margin: 0 0 0 -0.5px; background: linear-gradient(180deg, var(--c-band-muted), var(--c-accent)); transform-origin: center top; }
  .motion .timeline::after { transform: scaleY(0); }
  .motion .timeline.is-active::after { transform: scaleY(1); }
}

/* Process: steps light up in sequence */
.motion .process__list li { transition: opacity .7s var(--ease), transform .7s var(--ease), border-top-color .4s var(--ease); transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 220ms + .2s); }
.motion .process__list li:first-child { border-top-color: var(--c-border); }
.motion .process__list.is-active li { border-top-color: var(--c-primary); }

/* Service rows: price nudges toward the reader on hover */
.service-row .price { transition: color .25s var(--ease), transform .25s var(--ease); display: inline-block; }
@media (hover: hover) {
  .service-row:hover .price { color: var(--c-primary); transform: translateX(-4px); }
  .problems__list li { transition: padding-left .3s var(--ease); }
  .problems__list li:hover { padding-left: var(--s-3); }
}

@media (prefers-reduced-motion: reduce) {
  .motion [data-reveal].is-pending { opacity: 1; transform: none; }
  .serp__query.is-typing span::after { display: none; }
}
.timeline li { z-index: 1; }


/* =========================================================
   Goodpatch-inspired layer
   ========================================================= */

/* Keywords: the words that carry the message take the brand color */
.kw { color: var(--c-primary); }
.band .kw { color: var(--c-accent); }

/* Typo motion — wave: characters fill in, slightly out of step */
.typo .ch { transition-delay: var(--d, 0s); }
.motion .eyebrow.typo .ch { transition: opacity var(--dur-emphasized) var(--ease-power3-out); transition-delay: var(--d, 0s); }
.motion .eyebrow.typo:not(.is-on) .ch { opacity: .25; }
.motion .kw.typo--wave .ch { transition: color var(--dur-emphasized) var(--ease-power3-out); transition-delay: calc(var(--d, 0s) + .15s); }
.motion .kw.typo--wave:not(.is-on) .ch { color: var(--c-text); }
.motion .band .kw.typo--wave:not(.is-on) .ch { color: var(--c-band-text); }

/* Typo motion — bounce: page titles rise letter by letter */
.typo--bounce .ch { display: inline-block; }
.motion .typo--bounce .ch {
  transform-origin: 50% 100%;
  transition: transform var(--dur-strong) var(--ease-power4-out), opacity var(--dur-emphasized) var(--ease-power3-out);
  transition-delay: var(--d, 0s);
}
.motion .typo--bounce:not(.is-on) .ch { opacity: 0; transform: translate3d(0, .6em, 0) rotate(8deg); }
.motion .typo--bounce .kw .ch { transition: transform var(--dur-strong) var(--ease-power4-out), opacity var(--dur-emphasized) var(--ease-power3-out), color var(--dur-emphasized) var(--ease-power3-out); transition-delay: var(--d, 0s), var(--d, 0s), calc(var(--d, 0s) + .5s); }
.motion .typo--bounce:not(.is-on) .kw .ch { color: var(--c-text); }

/* Hero figure opens from a circle on load */
.motion .hero__visual { clip-path: circle(150% at 50% 45%); transition: clip-path 1.6s var(--ease-power4-out) .25s; }
.motion .hero__visual.is-opening { clip-path: circle(0% at 50% 45%); transition: none; }

/* 72h band opens from a circle while scrolling (clip-path set in JS) */
[data-circle-reveal] { will-change: clip-path; }

/* Sticky headings: the left column stays while the right side scrolls */
@media (min-width: 901px) {
  .seo__head, .plan-intro__head, .faq-top__head, .area-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}

/* Area marquee — slow, informative */
.marquee { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; border-block: 1px solid var(--c-border); background: var(--c-bg); overflow: hidden; }
.marquee__label {
  padding-block: var(--s-4); padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: var(--s-5);
  font-family: var(--f-mono); font-size: var(--fs-caption); letter-spacing: .12em; color: var(--c-primary);
  border-right: 1px solid var(--c-border); background: var(--c-bg); position: relative; z-index: 1; white-space: nowrap;
}
.marquee__viewport { overflow: hidden; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; width: max-content; }
.motion .marquee__track { animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { list-style: none; display: flex; align-items: center; }
.marquee__list li {
  display: inline-flex; align-items: center; gap: var(--s-6); padding: var(--s-4) 0 var(--s-4) var(--s-6);
  font-size: clamp(1.25rem, 1rem + 1.6vw, 2.25rem); font-weight: 900; letter-spacing: .04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--c-text-2);
}
.marquee__list li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.marquee__list li.is-main { color: var(--c-primary); -webkit-text-stroke: 0; }
@supports not (-webkit-text-stroke: 1px black) { .marquee__list li { color: var(--c-text-2); } }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* Motion switch (header) — a real on/off control, so it is shaped like a switch */
.motion-switch {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0;
  background: none; border: 0; color: var(--c-text-2); font: 700 var(--fs-caption) var(--f-sans); letter-spacing: .06em; cursor: pointer;
}
.motion-switch:hover { color: var(--c-text); }
.motion-switch__track { width: 34px; height: 20px; border-radius: 10px; background: var(--c-border); position: relative; transition: background-color var(--dur-standard) var(--ease); }
.motion-switch__thumb { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-surface); box-shadow: 0 1px 2px rgba(12,35,38,.3); transition: transform var(--dur-standard) var(--ease); }
.motion-switch[aria-checked="true"] .motion-switch__track { background: var(--c-primary); }
.motion-switch[aria-checked="true"] .motion-switch__thumb { transform: translateX(14px); }
@media (max-width: 860px) {
  .global-nav .motion-switch { justify-content: space-between; width: 100%; min-height: 52px; font-size: var(--fs-small); border-bottom: 1px solid var(--c-border); }
}
