/* Valmo — layout concept: an editorial consulting grid. White space, hairline rules, square edges,
   one typeface family for Japanese and Latin. Brand: Valmo navy for structure, amber for signals (text uses the darker amber). */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --ink: #0f1b2d;
  --ink-2: #43506a;
  --ink-3: #657084;
  --rule: #e1e5eb;
  --rule-strong: #0f1b2d;
  --brand: #0B2B4C;        /* Valmo navy */
  --brand-hover: #164272;
  --on-brand: #ffffff;
  --on-brand-hover: #ffffff;
  --signal: #F59E0B;       /* Valmo amber: logo, fills, marks — never body text on white */
  --accent: #B45309;       /* amber for text and hairlines on light grounds (5:1) */
  --accent-hover: #92400e;
  --on-accent: #ffffff;
  --accent-soft: #fdf3e4;
  --struct: #0B2B4C;       /* charts and progress */
  --logo: #0B2B4C;
  --dark: #0B2B4C;
  --on-dark: #f3f5f8;
  --on-dark-2: #a9b6c9;
  --dark-rule: #1f4166;
  --r: #c2412d; --r-soft: #fbeae7;
  --a: #a86a12; --a-soft: #f8efdf;
  --g: #2b7a52; --g-soft: #e3f2ea;

  --f: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;

  --fs-label: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-h2: clamp(1.6rem, 1.15rem + 1.7vw, 2.5rem);
  --fs-hero: clamp(1.9rem, 1.1rem + 3vw, 3.1rem);

  --wrap: 76rem;
  --gutter: clamp(16px, 4.5vw, 56px);
  --header-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1420; --bg-alt: #0f1c2c; --ink: #eef1f5; --ink-2: #b2bccb; --ink-3: #8795a9; --rule: #22324a; --rule-strong: #eef1f5;
    --brand: #eef1f5; --brand-hover: #F5A524; --on-brand: #0a1420; --on-brand-hover: #0a1420;
    --signal: #F59E0B; --accent: #F5A524; --accent-hover: #fbbf4c; --on-accent: #0a1420; --accent-soft: #2c2112;
    --struct: #8fb4e3; --logo: #eef1f5;
    --dark: #0B2B4C; --on-dark: #eef1f5; --on-dark-2: #a3b3c8; --dark-rule: #1f4166;
    --r: #f08a78; --r-soft: #33191a; --a: #e2b25c; --a-soft: #2f2616; --g: #6fc79a; --g-soft: #14291e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1420; --bg-alt: #0f1c2c; --ink: #eef1f5; --ink-2: #b2bccb; --ink-3: #8795a9; --rule: #22324a; --rule-strong: #eef1f5;
  --brand: #eef1f5; --brand-hover: #F5A524; --on-brand: #0a1420; --on-brand-hover: #0a1420;
  --signal: #F59E0B; --accent: #F5A524; --accent-hover: #fbbf4c; --on-accent: #0a1420; --accent-soft: #2c2112;
  --struct: #8fb4e3; --logo: #eef1f5;
  --dark: #0B2B4C; --on-dark: #eef1f5; --on-dark-2: #a3b3c8; --dark-rule: #1f4166;
  --r: #f08a78; --r-soft: #33191a; --a: #e2b25c; --a-soft: #2f2616; --g: #6fc79a; --g-soft: #14291e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f); font-size: var(--fs-base); font-weight: 400; line-height: 1.9;
  letter-spacing: .02em; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt" 1;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.45; text-wrap: balance; word-break: auto-phrase; }
p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-feature-settings: "tnum" 1; }

.label { font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.label-accent { color: var(--accent); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .9em;
  min-height: 48px; padding: .7em 1.4em; border: 1px solid transparent; border-radius: 0;
  font: 500 var(--fs-sm)/1.3 var(--f); letter-spacing: .04em; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn .arw { display: inline-block; transition: transform .2s; }
.btn:hover .arw { transform: translateX(4px); }
.btn-lg { min-height: 56px; padding: .9em 1.7em; font-size: var(--fs-base); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand-hover); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; background: var(--brand); color: var(--on-brand); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn-on-dark { background: var(--on-dark); color: var(--dark); }
.btn-on-dark:hover { background: var(--signal); color: #0B2B4C; }
.link-arrow { display: inline-flex; gap: .6em; align-items: center; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { display: inline-flex; color: var(--logo); }
.logo { display: block; width: auto; height: 26px; }
.logo .logo-accent { fill: var(--signal); }
.brand-tag { font-size: var(--fs-label); color: var(--ink-3); letter-spacing: .08em; padding-left: 14px; border-left: 1px solid var(--rule); white-space: nowrap; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 8px 12px; color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); position: relative; }
.nav-list a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--ink); }
.header-cta { display: flex; gap: 8px; }
.header-cta .btn { min-height: 40px; padding: .5em 1.1em; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 1100px) { .brand-tag { display: none; } }
@media (max-width: 920px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; inset: 100% 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; }
  .site-nav[hidden] { display: none; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 14px 0; font-size: var(--fs-base); border-bottom: 1px solid var(--rule); }
  .nav-list a::after { display: none; }
  .header-cta .btn-ghost { display: none; }
}
@media (min-width: 921px) { .site-nav[hidden] { display: block !important; } }

.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule); gap: 8px;
}
.mobile-cta .btn { flex: 1 1 0; min-width: 0; min-height: 48px; }
@media (max-width: 720px) {
  .mobile-cta { display: flex; }
  body.has-mobile-cta { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- section grid ---------- */
.section { padding-block: clamp(72px, 9vw, 136px); }
.section + .section { border-top: 1px solid var(--rule); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
.sec-head { display: grid; gap: 18px; align-content: start; }
.sec-title { font-size: var(--fs-h2); letter-spacing: .01em; line-height: 1.4; }
.sec-body { min-width: 0; display: grid; gap: 32px; align-content: start; }
.lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 40em; line-height: 1.95; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(64px, 9vw, 128px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero-title { font-size: var(--fs-hero); line-height: 1.3; letter-spacing: .005em; font-weight: 600; }
.hero-title .line { display: block; }
@media (min-width: 1120px) { .hero-title .line { white-space: nowrap; } }
.hero-title .accent { color: var(--accent); }
.hero-sub { font-size: var(--fs-md); color: var(--ink-2); max-width: 36em; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.motif { width: 100%; max-width: 440px; justify-self: end; }
.motif svg { width: 100%; height: auto; display: block; overflow: visible; }
.motif .ring { fill: none; stroke: var(--rule); stroke-width: 1; }
.motif .ring-outer { stroke: var(--ink-3); }
.motif .axis { stroke: var(--rule); stroke-width: 1; }
.motif .shape { fill: color-mix(in srgb, var(--struct) 8%, transparent); stroke: var(--struct); stroke-width: 1.5; stroke-linejoin: round; }
.motif .pt { fill: var(--struct); }
.motif .pt-weak { fill: var(--signal); stroke: var(--signal); stroke-width: 1.5; }
.motif text { fill: var(--ink-2); font: 500 14px/1 var(--f); letter-spacing: .06em; }
.motif .cap { fill: var(--ink-3); font-size: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .motif .shape { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.8s .3s cubic-bezier(.3,.6,.2,1) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .motif { justify-self: center; max-width: 380px; } }

.facts { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.fact { padding: 22px 24px 26px 0; display: grid; gap: 6px; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--rule); }
.fact .fact-num { color: var(--ink); font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); font-weight: 500; line-height: 1.1; font-feature-settings: "tnum" 1; letter-spacing: -.01em; }
.fact .fact-num small { font-size: .42em; font-weight: 500; margin-left: .2em; letter-spacing: .04em; }
.fact p { font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact, .fact + .fact { padding: 18px 16px 20px 0; border-left: 0; }
  .fact:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------- signs ---------- */
.signs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--rule-strong); }
.signs li { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 8px; font-size: var(--fs-md); line-height: 1.75; }
.signs .idx { font-size: var(--fs-label); color: var(--ink-3); font-weight: 500; padding-top: .45em; font-feature-settings: "tnum" 1; }
@media (max-width: 760px) { .signs { grid-template-columns: 1fr; } }
.statement { font-size: var(--fs-lg); font-weight: 500; line-height: 1.7; max-width: 32em; padding-left: 20px; border-left: 2px solid var(--accent); }

/* ---------- three decisions ---------- */
.decisions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.decision { padding: 28px 28px 8px 0; display: grid; gap: 14px; align-content: start; }
.decision + .decision { padding-left: 28px; border-left: 1px solid var(--rule); }
.decision-name { font-size: 1.9rem; font-weight: 600; line-height: 1.2; }
.decision p { color: var(--ink-2); }
@media (max-width: 760px) {
  .decisions { grid-template-columns: 1fr; }
  .decision, .decision + .decision { padding: 24px 0; border-left: 0; }
  .decision + .decision { border-top: 1px solid var(--rule); }
}
.note { color: var(--ink-2); max-width: 44em; }

/* ---------- approach ---------- */
.do-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.do-list li { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.do-list h3 { font-size: var(--fs-md); }
.do-list p { color: var(--ink-2); }
@media (max-width: 640px) { .do-list li { grid-template-columns: 1fr; gap: 6px; } }
.model { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--rule); }
.model > div { padding: 24px; display: grid; gap: 6px; align-content: start; }
.model > div + div { border-left: 1px solid var(--rule); background: var(--bg-alt); }
.model h3 { font-size: var(--fs-lg); }
.model p { color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 560px) { .model { grid-template-columns: 1fr; } .model > div + div { border-left: 0; border-top: 1px solid var(--rule); } }
.not-do { font-size: var(--fs-sm); color: var(--ink-2); }
.not-do strong { color: var(--ink); font-weight: 600; margin-right: .6em; }

/* ---------- perspective ---------- */
.sides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--rule-strong); }
.side { padding: 28px 32px 8px 0; display: grid; gap: 12px; align-content: start; }
.side + .side { padding-left: 32px; border-left: 1px solid var(--rule); }
.side h3 { font-size: var(--fs-lg); }
.side p { color: var(--ink-2); }
@media (max-width: 640px) { .sides { grid-template-columns: 1fr; } .side, .side + .side { padding: 24px 0; border-left: 0; } .side + .side { border-top: 1px solid var(--rule); } }

/* ---------- services ---------- */
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.plan { border-top: 1px solid var(--rule-strong); padding: 24px 24px 0 0; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; }
.plan + .plan { padding-left: 24px; border-left: 1px solid var(--rule); }
.plan.is-featured { border-top: 3px solid var(--signal); padding-top: 22px; }
.plan-step { font-size: var(--fs-label); letter-spacing: .14em; color: var(--ink-3); font-weight: 600; }
.plan.is-featured .plan-step { color: var(--accent); }
.plan h3 { font-size: var(--fs-md); }
.plan p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.85; }
.plan-price { border-top: 1px solid var(--rule); padding: 14px 0 4px; display: grid; gap: 2px; }
.plan-price b { font-size: var(--fs-lg); font-weight: 500; font-feature-settings: "tnum" 1; }
.plan-price span { font-size: var(--fs-label); color: var(--ink-3); letter-spacing: .04em; }
@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .plan:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 580px) {
  .plans { grid-template-columns: 1fr; row-gap: 32px; }
  .plan, .plan + .plan { padding-left: 0; padding-right: 0; border-left: 0; }
}
.small-note { font-size: var(--fs-sm); color: var(--ink-3); }

/* ---------- diagnostic band ---------- */
.band { background: var(--dark); color: var(--on-dark); }
.band + .section { border-top: 0; }
.band .label { color: var(--on-dark-2); }
.band .sec-title { color: var(--on-dark); }
.band p { color: var(--on-dark-2); }
.band-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.band-meta { font-size: var(--fs-sm); color: var(--on-dark-2); }
.axes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--on-dark-2); counter-reset: ax; }
.axes li { counter-increment: ax; padding: 16px 0; border-bottom: 1px solid var(--dark-rule); display: grid; grid-template-columns: 2.2em minmax(0, 1fr); color: var(--on-dark); }
.axes li::before { content: counter(ax, decimal-leading-zero); color: var(--on-dark-2); font-size: var(--fs-label); padding-top: .35em; font-feature-settings: "tnum" 1; }
@media (max-width: 520px) { .axes { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-weight: 500; font-size: var(--fs-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq summary:hover { color: var(--accent); }
.faq .answer-text { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 44em; }

/* ---------- profile ---------- */
.person { display: grid; gap: 16px; }
.person-photo { display: block; width: 100%; max-width: 240px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--rule); background: var(--bg-alt); margin-bottom: 8px; }
.person-name { font-size: var(--fs-h2); font-weight: 600; line-height: 1.3; }
.person-role { font-size: var(--fs-sm); color: var(--ink-3); letter-spacing: .06em; }
.person p { color: var(--ink-2); }
.cred { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: var(--fs-sm); border-top: 1px solid var(--rule); padding-top: 18px; }
.cred dt { color: var(--ink-3); }
.cred dd { margin: 0; }
.independence { font-size: var(--fs-label); color: var(--ink-3); letter-spacing: .04em; line-height: 1.8; }
.career { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.career li { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.career .tag { font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; color: var(--accent); padding-top: .35em; }
.career h3 { font-size: var(--fs-base); margin-bottom: 6px; }
.career .period { font-size: var(--fs-label); color: var(--ink-3); letter-spacing: .06em; line-height: 1.6; margin-bottom: 2px; }
.career p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.85; }
@media (max-width: 520px) { .career li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- contact ---------- */
.contact-title { font-size: var(--fs-h2); line-height: 1.35; }
.contact-box { display: grid; gap: 20px; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); padding: 16px 0; }
.mail-addr { font-size: var(--fs-lg); font-weight: 500; letter-spacing: .02em; user-select: all; word-break: break-all; }
.contact-list { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: var(--fs-sm); }
.small { font-size: var(--fs-label); color: var(--ink-3); letter-spacing: .04em; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding-block: 56px 48px; font-size: var(--fs-sm); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.footer-brand { color: var(--on-dark); margin-bottom: 14px; }
.footer-brand .logo { height: 28px; }
.site-footer .small { color: var(--on-dark-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; align-content: start; }
.footer-links a { color: var(--on-dark); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: .3em; }

/* ---------- plain pages ---------- */
.page-head { padding-block: clamp(56px, 8vw, 104px) 32px; display: grid; gap: 14px; }
.page-title { font-size: var(--fs-h2); }
.doc { max-width: 46rem; padding-bottom: 96px; display: grid; gap: 32px; }
.doc h2 { font-size: var(--fs-md); border-top: 1px solid var(--rule); padding-top: 22px; margin-bottom: 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 4px; }
.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule-strong); }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 18px 8px 18px 0; border-bottom: 1px solid var(--rule); }
.info-table th { width: 9em; color: var(--ink-3); font-weight: 500; font-size: var(--fs-sm); }
@media (max-width: 520px) { .info-table th, .info-table td { display: block; width: auto; padding: 4px 0; } .info-table th { padding-top: 16px; border-bottom: 0; } }

/* ---------- diagnostic ---------- */
.check-hero { padding-block: clamp(48px, 7vw, 96px) 32px; display: grid; gap: 18px; max-width: 48rem; }
.check-hero h1 { font-size: var(--fs-h2); }
.check-hero p { color: var(--ink-2); }
.check-meta { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: var(--fs-sm); color: var(--ink-3); list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--rule); }
#check-app { padding-bottom: 104px; scroll-margin-top: 96px; }
.check-card { border-top: 1px solid var(--rule-strong); padding-top: 32px; display: grid; gap: 32px; max-width: 54rem; }
.eyebrow { font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.eyebrow-inv { color: var(--on-dark-2); }
.field { display: grid; gap: 14px; }
.field-label { font-weight: 500; font-size: var(--fs-md); }
.choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); }
.choice { display: grid; gap: 2px; padding: 16px 18px; cursor: pointer; background: var(--bg); transition: background-color .15s, color .15s; }
.choice-row > label:nth-of-type(n+2) { border-left: 1px solid var(--rule); }
.choice:hover { background: var(--bg-alt); }
.choice-label { font-weight: 500; }
.choice-sub { font-size: var(--fs-label); color: var(--ink-3); }
input:checked + .choice { background: var(--ink); color: var(--bg); }
input:checked + .choice .choice-sub { color: color-mix(in srgb, var(--bg) 70%, transparent); }
input:focus-visible + .choice, input:focus-visible + .answer { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 560px) {
  .choice-row { grid-template-columns: 1fr; }
  .choice-row > label:nth-of-type(n+2) { border-left: 0; border-top: 1px solid var(--rule); }
}
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.step-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 24px; }
.form-error { color: var(--r); font-weight: 500; font-size: var(--fs-sm); }
.privacy-note { font-size: var(--fs-label); color: var(--ink-3); letter-spacing: .04em; }

.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.stepper-item { display: grid; gap: 8px; font-size: var(--fs-label); color: var(--ink-3); }
.stepper-item::before { content: ""; height: 3px; background: var(--rule); }
.stepper-item.is-done::before { background: var(--ink-2); }
.stepper-item.is-active::before { background: var(--struct); }
.stepper-item.is-active { color: var(--ink); font-weight: 600; }
.stepper-dot { display: none; }
@media (max-width: 560px) { .stepper-name { display: none; } }
.progress { display: flex; align-items: center; gap: 12px; }
.progress-track { flex: 1; height: 1px; background: var(--rule); }
.progress-fill { display: block; height: 1px; width: 0; background: var(--ink); transition: width .35s ease; }
.progress-count { font-size: var(--fs-label); color: var(--ink-3); font-feature-settings: "tnum" 1; white-space: nowrap; letter-spacing: .06em; }
.step-head { display: grid; gap: 6px; }
.step-title { font-size: var(--fs-h2); }
.q-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.q-item { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.q-fieldset { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 16px 32px; align-items: center; }
.q-text { padding: 0; display: grid; grid-template-columns: 2.8em minmax(0, 1fr); gap: 8px; font-size: var(--fs-base); line-height: 1.8; }
.q-no { font-size: var(--fs-label); color: var(--ink-3); font-weight: 600; padding-top: .45em; letter-spacing: .06em; font-feature-settings: "tnum" 1; }
.q-item.is-answered .q-no { color: var(--struct); }
.answer-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); }
.answer { display: grid; justify-items: center; text-align: center; padding: 10px 4px; cursor: pointer; background: var(--bg); transition: background-color .15s, color .15s; min-height: 58px; align-content: center; }
.answer-row > label:nth-of-type(n+2) { border-left: 1px solid var(--rule); }
.answer:hover { background: var(--bg-alt); }
.answer-label { font-weight: 500; font-size: var(--fs-sm); }
.answer-sub { font-size: .7rem; color: var(--ink-3); line-height: 1.4; letter-spacing: .02em; }
input:checked + .answer-2 { background: var(--g); color: #fff; }
input:checked + .answer-1 { background: var(--a); color: #fff; }
input:checked + .answer-0 { background: var(--r); color: #fff; }
:root[data-theme="dark"] input:checked + .answer { color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) input:checked + .answer { color: var(--bg); } }
input:checked + .answer .answer-sub { color: inherit; opacity: .85; }
@media (max-width: 760px) { .q-fieldset { grid-template-columns: 1fr; } }
.step-hint { font-size: var(--fs-sm); color: var(--ink-3); min-height: 1.5em; }

/* results */
.result { display: grid; gap: 56px; max-width: 64rem; }
.result-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); border-top: 1px solid var(--rule-strong); padding-top: 32px; }
.result-verdict { display: grid; gap: 14px; align-content: start; }
.score-dial { display: flex; align-items: baseline; gap: 10px; }
.score-num { font-size: clamp(4rem, 2.6rem + 6vw, 7rem); font-weight: 500; line-height: 1; letter-spacing: -.03em; font-feature-settings: "tnum" 1; }
.score-unit { color: var(--ink-3); font-size: var(--fs-md); }
.score-r .score-num { color: var(--r); } .score-a .score-num { color: var(--a); } .score-g .score-num { color: var(--g); }
.verdict-title { font-size: var(--fs-lg); }
.verdict-body { color: var(--ink-2); max-width: 36em; }
.result-facts { margin: 0; display: grid; align-content: start; border-top: 1px solid var(--rule); }
.result-facts div { padding: 14px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.result-facts dt { font-size: var(--fs-sm); color: var(--ink-2); }
.result-facts dd { margin: 0; font-size: var(--fs-md); text-align: right; }
.result-facts strong { font-size: 1.6rem; font-weight: 500; font-feature-settings: "tnum" 1; }
@media (max-width: 760px) { .result-head { grid-template-columns: 1fr; } }
.result-notes { display: grid; gap: 10px; padding-left: 20px; border-left: 2px solid var(--a); color: var(--ink); }
.result-h { font-size: var(--fs-lg); margin-bottom: 20px; }
.result-chart { border-top: 1px solid var(--rule-strong); padding-top: 28px; }
.chart-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 800px) { .chart-grid { grid-template-columns: 1fr; } }
.radar-wrap { max-width: 400px; width: 100%; justify-self: center; }
.radar { width: 100%; height: auto; display: block; overflow: visible; }
.radar-ring { stroke: var(--rule); stroke-width: 1; }
.radar-ring-mid { stroke: var(--ink-3); stroke-dasharray: 2 3; }
.radar-axis { stroke: var(--rule); stroke-width: 1; }
.radar-shape { fill: color-mix(in srgb, var(--struct) 10%, transparent); stroke: var(--struct); stroke-width: 1.75; stroke-linejoin: round; animation: radar-in .9s cubic-bezier(.3,.6,.2,1) both; transform-origin: 180px 180px; }
@keyframes radar-in { from { transform: scale(.15); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.radar-dot { stroke: var(--bg); stroke-width: 2; }
.radar-dot-r { fill: var(--r); } .radar-dot-a { fill: var(--a); } .radar-dot-g { fill: var(--g); }
.radar-label { fill: var(--ink); font: 500 12.5px var(--f); }
.radar-value { fill: var(--ink-3); font: 400 11.5px var(--f); }
.radar-tick { fill: var(--ink-3); font: 400 10px var(--f); }
.cat-bars { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.cat-bar { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr) 2.4em 4.4em; gap: 14px; align-items: center; font-size: var(--fs-sm); padding: 11px 0; border-bottom: 1px solid var(--rule); }
.cat-bar .rag { order: 4; justify-self: end; }
.cat-name { font-weight: 500; }
.bar-track { height: 4px; background: var(--bg-alt); }
.bar-fill { display: block; height: 100%; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.bar-r { background: var(--r); } .bar-a { background: var(--a); } .bar-g { background: var(--g); }
.cat-pct { text-align: right; font-feature-settings: "tnum" 1; font-weight: 500; }
@media (max-width: 460px) { .cat-bar { grid-template-columns: minmax(0, 1fr) 2.4em 4.4em; } .cat-bar .bar-track { grid-column: 1 / -1; grid-row: 2; } }
.rag { display: inline-flex; align-items: center; gap: .45em; font-size: var(--fs-label); font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.rag::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.rag-r { color: var(--r); } .rag-a { color: var(--a); } .rag-g { color: var(--g); }
.legend { margin-top: 16px; font-size: var(--fs-label); color: var(--ink-3); letter-spacing: .02em; }
.result-weak { display: grid; gap: 0; }
.weak-card { border-top: 1px solid var(--rule-strong); padding: 28px 0 36px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px clamp(24px, 4vw, 56px); }
.weak-card > .weak-head { grid-row: span 7; align-content: start; }
.weak-head { display: grid; gap: 10px; }
.weak-rank { font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; color: var(--accent); }
.weak-title { font-size: var(--fs-lg); }
.weak-impact { color: var(--ink); }
.weak-impact strong { font-weight: 600; margin-right: .3em; }
.weak-label { font-size: var(--fs-label); color: var(--ink-3); font-weight: 600; letter-spacing: .1em; margin-top: 8px; }
.weak-q, .next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.weak-q li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 10px; color: var(--ink-2); line-height: 1.8; }
.weak-mark { font-size: .68rem; font-weight: 600; letter-spacing: .04em; padding-top: .3em; }
.is-no .weak-mark { color: var(--r); } .is-part .weak-mark { color: var(--a); }
.next-list li { padding-left: 1.6em; position: relative; line-height: 1.8; }
.next-list li::before { content: ""; position: absolute; left: 0; top: .9em; width: .9em; height: 1px; background: var(--accent); }
@media (max-width: 760px) { .weak-card { grid-template-columns: 1fr; } .weak-card > .weak-head { grid-row: auto; } }
.result-cta { background: var(--dark); color: var(--on-dark); padding: clamp(28px, 5vw, 64px); display: grid; gap: 18px; }
.cta-title { font-size: var(--fs-h2); }
.cta-body { color: var(--on-dark-2); max-width: 40em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.result-cta .btn-ghost { color: var(--on-dark); border-color: var(--on-dark-2); }
.result-cta .btn-ghost:hover { background: var(--on-dark); color: var(--dark); }
.cta-mail { font-size: var(--fs-sm); color: var(--on-dark-2); }
.cta-mail .mail-addr { color: var(--on-dark); font-size: var(--fs-sm); }
.summary-text { width: 100%; font: var(--fs-sm)/1.7 var(--f); background: transparent; color: var(--on-dark); border: 1px solid var(--dark-rule); padding: 14px; }
.result-again { display: flex; flex-wrap: wrap; gap: 12px; }

/* Concept figure: influence vs cost of change across project phases (#why) */
.curve { margin: 8px 0 36px; max-width: 600px; }
.curve svg { width: 100%; height: auto; display: block; overflow: visible; }
.curve .band { fill: var(--accent-soft); }
.curve .grid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 4; }
.curve .axis { stroke: var(--ink-3); stroke-width: 1; }
.curve .line-influence { fill: none; stroke: var(--struct); stroke-width: 2.5; stroke-linecap: round; }
.curve .line-cost { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-linecap: round; }
.curve .dot-influence { fill: var(--struct); }
.curve .dot-cost { fill: var(--signal); }
.curve text { font-family: var(--f); letter-spacing: .04em; }
.curve .lbl { font-size: 15px; font-weight: 600; }
.curve .lbl-influence { fill: var(--struct); }
.curve .lbl-cost { fill: var(--accent); }
.curve .tick { fill: var(--ink-2); font-size: 14px; font-weight: 500; }
.curve .bracket { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.curve .band-lbl { fill: var(--accent); font-size: 14px; font-weight: 600; }
.curve figcaption { margin-top: 14px; color: var(--ink-3); font-size: var(--fs-label); letter-spacing: .04em; line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) {
  .curve .line-influence, .curve .line-cost { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s .2s cubic-bezier(.3,.6,.2,1) forwards; }
}
@media (max-width: 560px) {
  .curve .lbl { font-size: 19px; }
  .curve .tick { font-size: 18px; }
  .curve .band-lbl { font-size: 18px; }
}
/* diagnostic: third-party check and self-assessment caveat */
.weak-third { font-size: var(--fs-sm); line-height: 1.8; color: var(--ink); background: var(--accent-soft); border-left: 2px solid var(--accent); padding: 10px 14px; }
.result-caveat { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.85; margin: 4px 0 20px; max-width: 46em; }
/* diagnostic: detailed report request */
.report-box { border: 1px solid var(--rule); background: var(--bg-alt); padding: clamp(24px, 4vw, 48px); display: grid; gap: 16px; }
.report-title { font-size: var(--fs-lg); line-height: 1.5; }
.report-points { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: var(--fs-sm); display: grid; gap: 4px; }
.report-form { display: grid; gap: 16px; margin-top: 8px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
@media (max-width: 640px) { .report-grid { grid-template-columns: 1fr; } }
.report-field { display: grid; gap: 6px; }
.report-field label { font-size: var(--fs-sm); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.report-field .req, .report-field .opt { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; padding: 1px 6px; border: 1px solid currentColor; }
.report-field .req { color: var(--accent); }
.report-field .opt { color: var(--ink-3); }
.report-field input { font: inherit; font-size: var(--fs-base); color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 0; padding: 10px 12px; min-height: 46px; width: 100%; }
.report-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; cursor: pointer; }
.check-line input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--brand); }
.check-line a { color: var(--accent); }
.report-actions { margin-top: 4px; }
.report-status { font-size: var(--fs-sm); color: var(--r); min-height: 1.5em; }
.report-status:empty { display: none; }
.report-done { font-size: var(--fs-base); color: var(--ink); border-left: 2px solid var(--g); padding: 6px 0 6px 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
