/* ==========================================================================
   Deli Shinjuku: main stylesheet
   Convention: SUIT-style names. Components are PascalCase (.Masthead),
   descendants .Component-part, modifiers .Component--variant,
   states .is-*, utilities .u-*.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/newsreader-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/newsreader-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/sourcesans3-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/sourcesans3-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/sourcesans3-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/sourcesans3-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Subset: 14 Japanese characters + space (改善 整理 整頓 清掃 清潔 躾 もったいない) */
@font-face {
  font-family: "DS Mincho";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/shipporimincho-kanji-subset.woff2") format("woff2");
  unicode-range: U+3044, U+305F, U+3063, U+306A, U+3082, U+5584, U+6383, U+6539, U+6574, U+6E05, U+6F54, U+7406, U+8EBE, U+9813;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --washi: #f2efe7;
  --washi-deep: #e9e4d8;
  --sheet: #faf8f3;
  --sumi: #1c1d22;
  --sumi-2: #3e4048;
  --sumi-3: #5d5f66;
  --ai: #233561;
  --ai-2: #34508a;
  --ai-wash: #e1e4ec;
  --ai-mist: #eceef2;
  --shu: #b9381f;
  --shu-wash: #f3ddd5;
  --rule: rgba(28, 29, 34, 0.14);
  --rule-strong: rgba(28, 29, 34, 0.32);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --kanji: "DS Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif CJK JP", "Noto Serif JP", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.5rem + 3vw, 4.2rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --measure: 66ch;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background-color: var(--washi);
  color: var(--sumi);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 1400px) { body { font-size: 1.125rem; } }

/* Washi fibre texture: fixed, non-interactive layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("svg/washi.svg");
  background-size: 520px 520px;
  opacity: 0.55;
}

[hidden] { display: none !important; }
img, svg { max-width: 100%; height: auto; }
svg { overflow: visible; }
a { color: var(--ai); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--shu); }
:focus-visible {
  outline: 2px solid var(--shu);
  outline-offset: 3px;
  border-radius: 1px;
}
::selection { background: var(--ai); color: var(--sheet); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.2em; cursor: help; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 420;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--sumi);
  margin: 0;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); line-height: 1.06; letter-spacing: -0.015em; font-weight: 380; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 480; }
h4 { font-size: var(--step-1); font-weight: 560; }
p { margin: 0 0 1em; }
.Kanji, [lang="ja"] { font-family: var(--kanji); font-weight: 600; font-style: normal; letter-spacing: 0.04em; }
.Num, td, .Calc-out { font-variant-numeric: tabular-nums; }

/* ---------- Utilities ---------- */
.u-visuallyHidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.u-wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.u-muted { color: var(--sumi-3); }
.u-nowrap { white-space: nowrap; }

/* ---------- Skip link ---------- */
.SkipLink {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--ai);
  color: var(--sheet);
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.SkipLink:focus { top: 12px; color: var(--sheet); }

/* ---------- Hanko (seal mark) ---------- */
.Hanko { display: inline-block; flex: none; color: var(--shu); line-height: 0; }
.Hanko svg { width: 100%; height: auto; display: block; }
.Hanko--tilt { transform: rotate(-4deg); }
.Seal {
  display: inline-grid;
  place-items: center;
  min-width: 2.4em; height: 2.4em;
  padding: 0 0.5em;
  border: 1.5px solid var(--shu);
  border-radius: 50%;
  color: var(--shu);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 2px var(--washi), inset 0 0 0 3px rgba(185, 56, 31, 0.55);
}
.Seal--square { border-radius: 3px; }

/* ---------- Masthead ---------- */
.Masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 239, 231, 0.92);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.Masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.Brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sumi);
  text-decoration: none;
}
.Brand:hover { color: var(--sumi); }
.Brand .Hanko { width: 38px; }
.Brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 460;
  letter-spacing: 0.01em;
  line-height: 1;
}
.Brand-tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--sumi-3);
  margin-top: 4px;
}
.MainNav { display: flex; align-items: center; gap: 4px; }
.MainNav-list { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.MainNav-link {
  display: inline-block;
  padding: 8px 12px;
  color: var(--sumi-2);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}
.MainNav-link:hover { color: var(--ai); border-bottom-color: var(--ai); }
.MainNav-link[aria-current="page"] { color: var(--ai); border-bottom-color: var(--shu); }
.IndexToggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding: 9px 14px;
  font: 600 0.92rem/1 var(--sans);
  color: var(--ai);
  background: transparent;
  border: 1px solid var(--ai);
  border-radius: var(--radius);
  cursor: pointer;
}
.IndexToggle:hover { background: var(--ai); color: var(--sheet); }
.IndexToggle-bars { position: relative; width: 16px; height: 10px; }
.IndexToggle-bars::before, .IndexToggle-bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.IndexToggle-bars::before { top: 1px; }
.IndexToggle-bars::after { top: 7px; }
.IndexToggle[aria-expanded="true"] .IndexToggle-bars::before { top: 4px; transform: rotate(45deg); }
.IndexToggle[aria-expanded="true"] .IndexToggle-bars::after { top: 4px; transform: rotate(-45deg); }
@media (min-width: 1000px) {
  .MainNav-list { display: flex; }
}

/* Index panel (site contents) */
.IndexPanel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--sheet);
  border-bottom: 1px solid var(--rule-strong);
  box-shadow: 0 24px 48px -24px rgba(35, 53, 97, 0.25);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.IndexPanel[hidden] { display: none; }
.IndexPanel-grid {
  display: grid;
  gap: 28px 40px;
  padding-block: 32px 40px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 700px) { .IndexPanel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .IndexPanel-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); } }
.IndexPanel-title {
  font: 600 0.78rem/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shu);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.IndexPanel ul { list-style: none; margin: 0; padding: 0; }
.IndexPanel li a {
  display: block;
  padding: 7px 0;
  color: var(--sumi);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
}
.IndexPanel li a:hover { color: var(--ai); }
.IndexPanel li a small { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--sumi-3); margin-top: 2px; }

/* ---------- Buttons ---------- */
.Btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  font: 600 1rem/1.1 var(--sans);
  letter-spacing: 0.01em;
  color: var(--sheet);
  background: var(--ai);
  border: 1px solid var(--ai);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.Btn:hover { background: var(--sumi); border-color: var(--sumi); color: var(--sheet); }
.Btn:active { transform: translateY(1px); }
.Btn--ghost { background: transparent; color: var(--ai); }
.Btn--ghost:hover { background: var(--ai); color: var(--sheet); border-color: var(--ai); }
.Btn--quiet { background: transparent; color: var(--sumi-2); border-color: var(--rule-strong); }
.Btn--quiet:hover { background: var(--washi-deep); color: var(--sumi); border-color: var(--sumi-3); }
.Btn-arrow { width: 18px; height: 10px; flex: none; }
@media (max-width: 520px) { .Btn { white-space: normal; text-align: center; } }
.TextLink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--ai);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.TextLink:hover { color: var(--shu); }

/* ---------- Chapter (section with vertical rail) ---------- */
.Chapter { padding-block: clamp(56px, 7vw, 104px); position: relative; }
.Chapter + .Chapter { border-top: 1px solid var(--rule); }
.Chapter--tint { background: linear-gradient(180deg, rgba(225, 228, 236, 0.55), rgba(225, 228, 236, 0.2)); }
.Chapter-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.Chapter-rail { display: flex; align-items: center; gap: 12px; }
@media (max-width: 899px) { .Chapter-rail:empty { display: none; } }
@media (min-width: 900px) {
  .Chapter-grid { grid-template-columns: 64px minmax(0, 1fr); gap: 40px; }
  .Chapter-rail { display: block; }
}
.Tategaki {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font: 600 0.78rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sumi-3);
}
.Tategaki-num { color: var(--shu); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.Tategaki-line { display: inline-block; width: 32px; height: 1px; background: var(--rule-strong); }
@media (min-width: 900px) {
  .Tategaki {
    writing-mode: vertical-rl;
    position: sticky;
    top: calc(var(--header-h) + 32px);
    gap: 18px;
  }
  .Tategaki-line { width: 1px; height: 48px; }
}
.Chapter-head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 56px); }
.Chapter-head h2 + p { margin-top: 18px; font-size: 1.1rem; color: var(--sumi-2); max-width: 60ch; }

/* ---------- Hero ---------- */
.Hero { position: relative; padding-block: clamp(32px, 5vw, 80px) clamp(40px, 5vw, 72px); overflow: hidden; }
.Hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .Hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; }
}
.Hero-mark { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.Hero-mark .Hanko { width: 64px; }
.Hero-kicker { font-size: 0.95rem; color: var(--sumi-3); line-height: 1.4; }
.Hero h1 { max-width: 17ch; }
.Hero h1 em { font-style: italic; color: var(--ai); font-weight: 360; }
.Hero-lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--sumi-2); max-width: 44ch; margin: 26px 0 34px; line-height: 1.55; }
.Hero-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.Hero-figure { position: relative; margin: 0; }
.Hero-figure svg { width: 100%; }
.Hero-caption { font-size: 0.85rem; color: var(--sumi-3); margin-top: 8px; padding-left: 14px; border-left: 1px solid var(--shu); }
.Hero-clock {
  position: absolute;
  right: 0; top: 0;
  writing-mode: vertical-rl;
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.22em;
  color: var(--sumi-3);
  text-transform: uppercase;
}

/* ---------- Principles (Három elv) ---------- */
.Principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.Principle {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 40px;
  padding-block: 36px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) {
  .Principle { grid-template-columns: 180px minmax(0, 1fr) minmax(0, 0.8fr); align-items: start; }
}
.Principle-glyph {
  font-family: var(--kanji);
  font-weight: 600;
  font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem);
  line-height: 1.05;
  color: var(--shu);
  letter-spacing: 0.06em;
}
.Principle-glyph--small { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem); line-height: 1.5; white-space: nowrap; letter-spacing: 0.02em; }
.Principle h3 { margin-bottom: 10px; }
.Principle h3 > span { display: block; font-family: var(--sans); font-size: 0.85rem; font-weight: 500; color: var(--sumi-3); letter-spacing: 0.04em; margin-top: 6px; }
.Principle-apply { font-size: 0.97rem; color: var(--sumi-2); border-left: 1px solid var(--rule-strong); padding-left: 20px; }
.Principle-apply strong { display: block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sumi-3); margin-bottom: 6px; }

/* ---------- Workplaces (asymmetric tiles) ---------- */
.Tiles {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .Tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .Tile--lead, .Tile--wide { grid-column: span 2; }
  .Tile--lead .Tile-art { min-height: 220px; }
}
@media (min-width: 1100px) {
  .Tiles { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; }
  .Tile--lead { grid-row: span 2; grid-column: auto; }
  .Tile--wide { grid-column: span 2; }
}
.Tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--sumi);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.Tile:hover { color: var(--sumi); border-color: var(--ai); transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(35, 53, 97, 0.4); }
.Tile-art { background: var(--ai-mist); border-bottom: 1px solid var(--rule); padding: 24px; display: grid; place-items: center; }
.Tile-art svg { width: 100%; max-height: 220px; }
.Tile--lead .Tile-art { flex: 1; min-height: 260px; background: var(--ai-wash); }
.Tile--lead .Tile-art svg { max-height: 360px; }
.Tile--wide { flex-direction: row; flex-wrap: wrap; }
.Tile--wide .Tile-art { flex: 1 1 260px; border-bottom: 0; border-right: 1px solid var(--rule); background: repeating-linear-gradient(90deg, rgba(35,53,97,0.05) 0 1px, transparent 1px 22px), var(--washi-deep); }
.Tile--wide .Tile-body { flex: 1 1 280px; }
.Tile-body { padding: 22px 24px 26px; }
.Tile-body h3 { font-size: 1.45rem; margin-bottom: 8px; }
.Tile-body p { color: var(--sumi-2); font-size: 0.98rem; margin-bottom: 14px; }
.Tile-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.82rem; color: var(--sumi-3); }
.Tile-meta > span::before { content: ""; display: inline-block; width: 6px; height: 6px; border: 1px solid var(--shu); transform: rotate(45deg); margin-right: 8px; vertical-align: 1px; }
.Tile-go { margin-top: auto; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ai); font-size: 0.95rem; }

/* ---------- Lifecycle timeline ---------- */
.Lifecycle { margin: 0; }
.Lifecycle-h, .Lifecycle-v { width: 100%; }
.Lifecycle-v { display: block; max-width: 420px; margin-inline: auto; }
.Lifecycle-h { display: none; }
@media (min-width: 1000px) {
  .Lifecycle-h { display: block; }
  .Lifecycle-v { display: none; }
}
.Lifecycle a { text-decoration: none; }
.Lifecycle a:hover .lc-node { fill: var(--ai); }
.Lifecycle a:hover .lc-label { fill: var(--ai); text-decoration: underline; }
.Lifecycle a:focus-visible { outline: none; }
.Lifecycle a:focus-visible .lc-node { stroke: var(--shu); stroke-width: 3; }
.lc-node { fill: var(--sheet); stroke: var(--ai); stroke-width: 1.5; transition: fill 0.2s; }
.lc-label { font-family: var(--serif); font-size: 21px; fill: var(--sumi); }
.lc-sub { font-family: var(--sans); font-size: 13px; fill: var(--sumi-3); }
.lc-num { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: var(--shu); letter-spacing: 1px; }
.lc-path { fill: none; stroke: var(--ai); stroke-width: 1.5; }
.lc-loop { fill: none; stroke: var(--shu); stroke-width: 1.3; stroke-dasharray: 5 5; }
.lc-loop-label { font-family: var(--sans); font-size: 13px; fill: var(--shu); font-weight: 600; }
.Lifecycle-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 18px; font-size: 0.9rem; color: var(--sumi-3); }
.Lifecycle-legend i { display: inline-block; width: 28px; height: 0; border-top: 1.5px solid var(--ai); vertical-align: middle; margin-right: 8px; }
.Lifecycle-legend i.is-loop { border-top: 1.5px dashed var(--shu); }

/* Line-drawing motion: app.js sets dash values inline only when motion is allowed */
.Draw .is-drawable { transition: stroke-dashoffset 2.2s var(--ease); }

/* ---------- Split feature (calculator & checklist teasers) ---------- */
.Duo { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .Duo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px; } }
.Panel {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
}
.Panel--ink { background: var(--ai); color: #eef0f5; border-color: var(--ai); }
.Panel--ink h3, .Panel--ink h2 { color: var(--sheet); }
.Panel--ink p { color: #d7dbe6; }
.Panel--ink a:not(.Btn) { color: #ffffff; }
.Panel--ink .Btn { background: var(--sheet); color: var(--ai); border-color: var(--sheet); }
.Panel--ink .Btn:hover { background: var(--shu-wash); border-color: var(--shu-wash); color: var(--sumi); }
.Panel h3 { margin-bottom: 12px; }
.Panel .Seal + h3 { padding-right: 7.5rem; }
.Panel .Seal { position: absolute; top: 20px; right: 22px; }
.Panel--ink .Seal { color: #f3b7a8; border-color: #f3b7a8; box-shadow: none; }
.Formula {
  margin: 22px 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
  line-height: 1.6;
  color: #ffffff;
}
.Formula b { font-weight: 560; }
.Formula small { display: block; font-family: var(--sans); font-size: 0.85rem; color: #c8cede; margin-top: 8px; }
.MiniChart { margin: 8px 0 22px; }
.MiniChart svg { width: 100%; height: auto; }

.CheckPreview { list-style: none; margin: 18px 0 24px; padding: 0; counter-reset: cp; }
.CheckPreview li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--rule-strong);
  font-size: 0.98rem;
}
.CheckPreview li:last-child { border-bottom: 0; }
.CheckPreview-box { width: 18px; height: 18px; margin-top: 3px; border: 1.5px solid var(--sumi-3); border-radius: 1px; position: relative; }
.CheckPreview li.is-done .CheckPreview-box { border-color: var(--shu); }
.CheckPreview li.is-done .CheckPreview-box::after {
  content: ""; position: absolute; left: 4px; top: 0px; width: 6px; height: 11px;
  border-right: 2px solid var(--shu); border-bottom: 2px solid var(--shu); transform: rotate(40deg);
}
.CheckPreview li.is-done > span:last-child { color: var(--sumi-3); }

/* ---------- Tables ---------- */
.TableWrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1.5px solid var(--sumi);
  border-bottom: 1px solid var(--rule-strong);
  margin: 0 0 1.5rem;
  background: linear-gradient(90deg, var(--washi) 30%, rgba(242,239,231,0)) left / 32px 100% no-repeat local,
              linear-gradient(270deg, var(--washi) 30%, rgba(242,239,231,0)) right / 32px 100% no-repeat local,
              radial-gradient(farthest-side at 0 50%, rgba(28,29,34,0.16), transparent) left / 10px 100% no-repeat scroll,
              radial-gradient(farthest-side at 100% 50%, rgba(28,29,34,0.16), transparent) right / 10px 100% no-repeat scroll;
}
.TableWrap:focus-visible { outline-offset: 2px; }
.Table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.Table--narrow { min-width: 480px; }
.Table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 0 12px;
  font: 600 0.82rem/1.4 var(--sans);
  letter-spacing: 0.06em;
  color: var(--sumi-3);
}
.Table th, .Table td { text-align: left; vertical-align: top; padding: 13px 16px 13px 0; }
.Table thead th {
  font: 600 0.78rem/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sumi-2);
  border-bottom: 1px solid var(--rule-strong);
  padding-top: 14px;
}
.Table tbody tr + tr th, .Table tbody tr + tr td { border-top: 1px solid var(--rule); }
.Table tbody th { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: var(--sumi); min-width: 10rem; }
.Table td.is-num, .Table th.is-num { text-align: right; padding-right: 0; padding-left: 16px; white-space: nowrap; }
.Table tfoot td, .Table tfoot th { border-top: 1px solid var(--rule-strong); font-weight: 600; }
.Table small { color: var(--sumi-3); font-size: 0.85em; }
.Table code { font-size: 0.9em; }

/* Intensity marks: filled squares + text label (not colour-only) */
.Marks { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.Marks-dots { display: inline-flex; gap: 3px; }
.Marks-dots i { width: 9px; height: 9px; border: 1.2px solid var(--shu); display: inline-block; }
.Marks-dots i.on { background: var(--shu); }
.Marks-text { font-size: 0.88rem; color: var(--sumi-2); }

/* ---------- FAQ ---------- */
.Faq { border-top: 1px solid var(--rule-strong); max-width: 54rem; }
.Faq details { border-bottom: 1px solid var(--rule); }
.Faq summary {
  list-style: none;
  cursor: pointer;
  display: block;
  position: relative;
  padding: 22px 48px 22px 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  line-height: 1.3;
}
.Faq summary::-webkit-details-marker { display: none; }
.Faq summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--ai), var(--ai)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ai), var(--ai)) center / 1.5px 14px no-repeat;
  transition: transform 0.25s var(--ease);
}
.Faq details[open] summary::after { transform: rotate(45deg); }
.Faq summary:hover { color: var(--ai); }
.Faq-body { padding: 0 0 24px; max-width: 64ch; color: var(--sumi-2); }

/* ---------- Breadcrumbs ---------- */
.Crumbs { padding-top: 26px; font-size: 0.88rem; color: var(--sumi-3); }
.Crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.Crumbs li { display: inline-flex; align-items: center; }
.Crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--rule-strong); }
.Crumbs a { color: var(--sumi-2); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.Crumbs a:hover { color: var(--ai); border-color: var(--ai); }

/* ---------- Article head ---------- */
.ArticleHead { padding-block: clamp(28px, 4vw, 56px) clamp(32px, 4vw, 48px); }
.ArticleHead-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: end; }
@media (min-width: 1000px) { .ArticleHead-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 56px; } }
.ArticleHead-topic { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; font: 600 0.8rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--shu); }
.ArticleHead-topic { flex-wrap: wrap; row-gap: 6px; line-height: 1.4; }
.ArticleHead-topic .Kanji { font-size: 1.15rem; letter-spacing: 0.1em; text-transform: none; white-space: nowrap; flex-shrink: 0; }
.ArticleHead-rule { display: inline-block; width: 32px; height: 1px; background: var(--shu); }
.ArticleHead h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); max-width: 20ch; }
.ArticleHead-lede { font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem); line-height: 1.5; color: var(--sumi-2); max-width: 52ch; margin: 22px 0 0; }
.ArticleHead-art { margin: 0; }
.ArticleHead-art svg { width: 100%; max-height: 300px; }
.Meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  margin-top: 28px; padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem; color: var(--sumi-3);
}
.Meta strong { color: var(--sumi-2); font-weight: 600; }

/* ---------- Article body layout ---------- */
.ArticleBody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: clamp(56px, 8vw, 112px); }
@media (min-width: 1100px) {
  .ArticleBody { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
}
.Shiori { font-size: 0.93rem; }
.Shiori-inner { border-top: 1.5px solid var(--sumi); padding-top: 14px; }
@media (min-width: 1100px) { .Shiori-inner { position: sticky; top: calc(var(--header-h) + 28px); } }
.Shiori-title { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sumi-3); margin: 0 0 12px; }
.Shiori ol { list-style: none; margin: 0; padding: 0; counter-reset: sh; }
.Shiori li { counter-increment: sh; }
.Shiori a {
  display: block;
  position: relative;
  padding: 7px 0 7px 30px;
  color: var(--sumi-2);
  text-decoration: none;
  line-height: 1.35;
}
.Shiori a::before { content: counter(sh, decimal-leading-zero); position: absolute; left: 0; top: 9px; font-size: 0.75rem; color: var(--sumi-3); font-variant-numeric: tabular-nums; }
.Shiori a:hover { color: var(--ai); }
.Shiori a.is-active { color: var(--ai); font-weight: 600; }
.Shiori a.is-active::before { color: var(--shu); }
@media (max-width: 1099px) {
  .Shiori-inner { background: var(--sheet); border: 1px solid var(--rule); border-top: 1.5px solid var(--sumi); padding: 16px 18px 10px; }
  .Shiori ol { columns: 2 220px; column-gap: 28px; }
  .Shiori li { break-inside: avoid; }
}

.Prose { max-width: var(--measure); min-width: 0; }
.Prose > h2 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem);
  margin: 3.2rem 0 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.Prose > h2:first-child { margin-top: 0; }
.Prose > h3 { margin: 2.2rem 0 0.7rem; font-size: 1.35rem; }
.Prose p, .Prose li { color: var(--sumi); }
.Prose ul, .Prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.Prose li { margin-bottom: 0.45em; }
.Prose ul li::marker { color: var(--shu); }
.Prose ol li::marker { color: var(--shu); font-weight: 600; }
.Prose .TableWrap { margin-block: 1.8rem; }
.Prose .Wide { margin-right: 0; }
@media (min-width: 1300px) { .Prose .Wide, .Prose > .TableWrap, .Prose > .Fig > .TableWrap { width: calc(100% + 200px); max-width: none; } }
.Lead { font-size: 1.15rem; color: var(--sumi-2); }

/* Röviden (key takeaways) */
.Brief {
  position: relative;
  margin: 0 0 2.6rem;
  padding: 26px 26px 20px 26px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ai);
}
.Brief-title { margin: 0 0 16px; padding: 0; border: 0; font-size: 1rem; line-height: 1; }
.Brief-title .Seal { font-size: 0.74rem; height: 2.6em; padding: 0 1.1em; border-radius: 999px; transform: rotate(-3deg); }
.Brief ul { margin: 0; padding: 0; list-style: none; }
.Brief li { position: relative; padding-left: 22px; margin-bottom: 0.6em; }
.Brief li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; background: var(--shu); transform: rotate(45deg); }

/* Callouts */
.Note {
  margin: 2rem 0;
  padding: 18px 22px;
  background: var(--ai-mist);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
}
.Note-label { font: 700 0.75rem/1.6 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ai); padding-top: 2px; }
.Note p:last-child { margin-bottom: 0; }
.Note--warn { background: var(--shu-wash); }
.Note--warn .Note-label { color: #8e2a17; }
.Note--plain { background: transparent; border: 1px dashed var(--rule-strong); }
@media (max-width: 560px) { .Note { grid-template-columns: minmax(0, 1fr); } }

/* Margin aside (sidenote) */
.Aside {
  margin: 2rem 0;
  padding-left: 18px;
  border-left: 1px solid var(--shu);
  font-size: 0.95rem;
  color: var(--sumi-2);
}
.Aside strong { color: var(--sumi); }

/* Pull quote: an editorial principle, not a testimonial */
.Pull {
  margin: 2.6rem 0;
  padding: 8px 0 8px 28px;
  border-left: 2px solid var(--ai);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem);
  line-height: 1.4;
  color: var(--ai);
}

/* Definition grid */
.Defs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 1.8rem 0; border-top: 1px solid var(--rule-strong); }
.Defs div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .Defs div { grid-template-columns: 12rem minmax(0, 1fr); } }
.Defs dt { font-family: var(--serif); font-weight: 500; font-size: 1.08rem; }
.Defs dd { margin: 0; color: var(--sumi-2); }

/* Figures */
.Fig { margin: 2.4rem 0; }
.Fig-frame { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(14px, 2.5vw, 28px); }
.Fig svg { width: 100%; height: auto; display: block; }
.Fig figcaption { font-size: 0.88rem; color: var(--sumi-3); margin-top: 10px; padding-left: 14px; border-left: 1px solid var(--shu); }
.ill-stroke { fill: none; stroke: var(--ai); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ill-thin { fill: none; stroke: var(--ai); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; opacity: 0.6; }
.ill-fill { fill: var(--ai-wash); stroke: none; }
.ill-accent { fill: var(--shu); }
.ill-accent-stroke { fill: none; stroke: var(--shu); stroke-width: 1.3; }
.ill-text { font-family: var(--sans); font-size: 13px; fill: var(--sumi-2); }
.ill-text-strong { font-family: var(--sans); font-size: 13px; font-weight: 700; fill: var(--shu); }
.ill-serif { font-family: var(--serif); font-size: 17px; fill: var(--sumi); }

/* Numbered steps (vertical) */
.Steps { list-style: none; margin: 2rem 0; padding: 0; counter-reset: st; }
.Steps > li {
  counter-increment: st;
  position: relative;
  padding: 0 0 28px 64px;
  border-left: 1px solid var(--rule-strong);
  margin-left: 20px;
}
.Steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.Steps > li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: -20px; top: -2px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--washi);
  border: 1.5px solid var(--ai);
  border-radius: 50%;
  font: 700 0.85rem/1 var(--sans);
  color: var(--ai);
  font-variant-numeric: tabular-nums;
}
.Steps h3 { margin: 4px 0 8px; font-size: 1.3rem; }
.Steps p { margin-bottom: 0.6em; }

/* 5S step blocks */
.Five { list-style: none; margin: 2.4rem 0; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--sumi); }
.Five > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 28px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 680px) { .Five > li { grid-template-columns: 120px minmax(0, 1fr); } }
.Five-mark { display: flex; flex-direction: row; align-items: baseline; gap: 14px; }
@media (min-width: 680px) { .Five-mark { flex-direction: column; gap: 6px; } }
.Five-num { font: 700 0.8rem/1 var(--sans); letter-spacing: 0.12em; color: var(--sumi-3); font-variant-numeric: tabular-nums; }
.Five-kanji { font-family: var(--kanji); font-weight: 600; font-size: 2.3rem; line-height: 1.1; color: var(--shu); letter-spacing: 0.08em; }
.Five h3 { font-size: 1.35rem; margin-bottom: 6px; }
.Five h3 > span { font-family: var(--sans); font-size: 0.85rem; font-weight: 500; color: var(--sumi-3); margin-left: 8px; }
.Five ul { margin: 10px 0 0; }

/* Decision tree */
.Tree { margin: 2.4rem 0; }
.Tree-q {
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--ai);
  padding: 16px 20px;
  font-family: var(--serif);
  font-size: 1.12rem;
}
.Tree-q small { display: block; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sumi-3); margin-bottom: 4px; }
.Tree-branches { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0 0 0 22px; padding: 14px 0 14px 22px; border-left: 1px solid var(--rule-strong); }
@media (min-width: 640px) { .Tree-branches { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.Tree-out { padding: 12px 16px; border: 1px dashed var(--rule-strong); font-size: 0.95rem; background: rgba(250, 248, 243, 0.6); }
.Tree-out b { display: block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sumi-3); margin-bottom: 4px; }
.Tree-out--stop { border-color: var(--shu); border-style: solid; }
.Tree-out--stop b { color: #8e2a17; }
.Tree-out--go { border-color: var(--ai); border-style: solid; }
.Tree-out--go b { color: var(--ai); }

/* Related */
.Related { padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--rule); }
.Related h2 { font-size: var(--step-2); margin-bottom: 24px; }
.Related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border-top: 1.5px solid var(--sumi); }
@media (min-width: 760px) { .Related-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.Related-list li { border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .Related-list li + li { border-left: 1px solid var(--rule); } }
.Related-list a { display: block; padding: 20px 22px 24px 0; text-decoration: none; color: var(--sumi); height: 100%; }
@media (min-width: 760px) { .Related-list li + li a { padding-left: 22px; } }
.Related-list a:hover { color: var(--ai); background: rgba(225, 228, 236, 0.35); }
.Related-list a > span { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--shu); font-weight: 600; margin-bottom: 8px; }
.Related-list strong { font-family: var(--serif); font-weight: 460; font-size: 1.25rem; line-height: 1.25; display: block; }
.Related-list em { display: block; font-style: normal; font-size: 0.93rem; color: var(--sumi-3); margin-top: 8px; }

/* ---------- Calculator ---------- */
.Calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 1080px) { .Calc { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 40px; align-items: start; } }
.Calc-inputs { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(18px, 2.6vw, 32px); }
.Calc-results { min-width: 0; }
@media (min-width: 1080px) { .Calc-results { position: sticky; top: calc(var(--header-h) + 20px); } }
.Calc fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.Calc legend { font-family: var(--serif); font-size: 1.3rem; font-weight: 480; padding: 0; margin-bottom: 6px; }
.Calc-shared { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.Calc-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; }
@media (min-width: 560px) { .Calc-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.Calc-colhead { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; font-weight: 700; font-size: 0.95rem; }
.Calc-swatch { width: 22px; height: 0; border-top: 2.5px solid var(--ai); }
.Calc-swatch--b { border-top: 2.5px dashed var(--shu); }
.Field { display: grid; gap: 5px; margin: 12px 0; }
.Field label { font-size: 0.9rem; font-weight: 600; color: var(--sumi-2); line-height: 1.3; }
.Field-help { font-size: 0.8rem; color: var(--sumi-3); line-height: 1.35; }
.Field-input { display: flex; align-items: stretch; border: 1px solid var(--sumi-3); background: #fff; border-radius: var(--radius); }
.Field-input:focus-within { outline: 2px solid var(--shu); outline-offset: 2px; }
.Field input, .Field select, .Field textarea {
  width: 100%;
  min-width: 0;
  font: 500 1rem/1.3 var(--sans);
  color: var(--sumi);
  background: transparent;
  border: 0;
  padding: 10px 12px;
  font-variant-numeric: tabular-nums;
}
.Field input:focus, .Field select:focus, .Field textarea:focus { outline: none; }
.Field-unit { display: grid; place-items: center; padding: 0 12px; font-size: 0.85rem; color: var(--sumi-3); border-left: 1px solid var(--rule); background: var(--washi); white-space: nowrap; }
.Field.is-invalid .Field-input { border-color: var(--shu); }
.Field-error { font-size: 0.82rem; color: #8e2a17; font-weight: 600; }
.Field-error:empty { display: none; }

.Verdict {
  background: var(--ai);
  color: #eef0f5;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--radius);
  position: relative;
}
.Verdict-label { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #c3cadc; margin: 0 0 10px; }
.Verdict-main { font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + 0.9vw, 2rem); line-height: 1.25; color: #fff; margin: 0; }
.Verdict-main strong { font-weight: 560; color: #ffd9cf; }
.Verdict-sub { margin: 10px 0 0; color: #d3d8e5; font-size: 0.95rem; }
.Stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 18px 0 0; border-top: 1.5px solid var(--sumi); }
.Stats div { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--rule); }
.Stats div:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--rule); }
.Stats dt { font-size: 0.8rem; color: var(--sumi-3); line-height: 1.3; margin-bottom: 4px; }
.Stats dd { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); font-variant-numeric: tabular-nums lining-nums; }
.Chart { margin: 22px 0 0; background: var(--sheet); border: 1px solid var(--rule); padding: 14px 12px 8px; }
.Chart svg { width: 100%; height: auto; display: block; }
.Chart figcaption { font-size: 0.82rem; color: var(--sumi-3); padding: 6px 4px 4px; }
.ch-grid { stroke: var(--rule); stroke-width: 1; }
.ch-axis { stroke: var(--sumi-3); stroke-width: 1; }
.ch-tick { font-family: var(--sans); font-size: 12px; fill: var(--sumi-3); }
.ch-a { fill: none; stroke: var(--ai); stroke-width: 2.5; stroke-linejoin: round; }
.ch-b { fill: none; stroke: var(--shu); stroke-width: 2.5; stroke-dasharray: 7 5; stroke-linejoin: round; }
.ch-dot-a { fill: var(--ai); }
.ch-dot-b { fill: var(--shu); }
.ch-cross { fill: var(--sheet); stroke: var(--sumi); stroke-width: 1.5; }
.ch-label { font-family: var(--sans); font-size: 13px; font-weight: 700; }
.Formulas { margin-top: 28px; }
.Formulas details { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.Formulas summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ai); }
.Formulas ol { margin: 0 0 18px; padding-left: 1.3em; }
.Formulas li { margin-bottom: 10px; }
.Formulas code, .FormulaLine {
  font-family: var(--serif);
  font-size: 1.02rem;
  background: var(--ai-mist);
  padding: 2px 6px;
  border-radius: 1px;
}
.FormulaLine { display: block; padding: 10px 14px; margin: 6px 0; line-height: 1.5; }

/* ---------- Checklist ---------- */
.Checklist-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(242, 239, 231, 0.96);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
}
.Checklist-barInner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.Progress { flex: 1 1 260px; display: flex; align-items: center; gap: 14px; }
.Progress-track { position: relative; flex: 1; height: 6px; border-bottom: 1px solid var(--rule-strong); }
.Progress-fill { position: absolute; left: 0; bottom: -1px; height: 3px; background: var(--shu); width: 0; transition: width 0.35s var(--ease); }
.Progress-text { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.95rem; white-space: nowrap; }
.Checklist-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.Checklist-actions .Btn { padding: 10px 16px; font-size: 0.92rem; }
.Group { margin: 0 0 40px; border: 0; padding: 0; min-width: 0; }
.Group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1.5px solid var(--sumi); padding-bottom: 10px; margin-bottom: 4px; }
.Group-head h2 { font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.9rem); }
.Group-count { font-size: 0.9rem; color: var(--sumi-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.Group.is-complete .Group-count { color: var(--shu); font-weight: 700; }
.Item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.Item input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; margin: 2px 0 0;
  border: 1.5px solid var(--sumi-3); border-radius: 1px;
  background: #fff; cursor: pointer; position: relative;
  display: grid; place-items: center;
}
.Item input[type="checkbox"]:checked { border-color: var(--shu); background: var(--shu); }
.Item input[type="checkbox"]:checked::after {
  content: ""; width: 6px; height: 12px; margin-top: -3px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg);
}
.Item label { cursor: pointer; }
.Item label strong { display: block; font-weight: 600; }
.Item label > span { display: block; font-size: 0.92rem; color: var(--sumi-3); margin-top: 2px; }
.Item input:checked + label strong { color: var(--sumi-3); text-decoration: line-through; text-decoration-color: var(--shu); text-decoration-thickness: 1px; }
.PrintHead { display: none; }

/* ---------- Contact form ---------- */
.Composer { display: grid; gap: 4px; max-width: 40rem; }
.Composer .Field-input { background: #fff; }
.Composer textarea { min-height: 160px; resize: vertical; }
.Composer-note { font-size: 0.88rem; color: var(--sumi-3); margin-top: 6px; }
.Composer-status { font-size: 0.92rem; color: var(--ai); font-weight: 600; min-height: 1.4em; }

/* ---------- Legal documents ---------- */
.LegalDoc { padding-bottom: clamp(56px, 8vw, 112px); }
.LegalDoc .Prose > h2 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); }
.Placeholder { background: var(--shu-wash); padding: 0 4px; border-radius: 1px; font-weight: 600; color: #7a2412; white-space: normal; }
.DataCard { border: 1px solid var(--rule-strong); background: var(--sheet); padding: 20px 22px; margin: 1.6rem 0; }
.DataCard dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 20px; }
@media (min-width: 620px) { .DataCard dl { grid-template-columns: 13rem minmax(0, 1fr); } }
.DataCard dt { font-weight: 600; color: var(--sumi-2); font-size: 0.93rem; padding-top: 8px; }
.DataCard dd { margin: 0; padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
@media (min-width: 620px) { .DataCard dt { border-bottom: 1px solid var(--rule); padding-bottom: 8px; } }

/* ---------- Page head (simple pages) ---------- */
.PageHead { padding-block: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--rule); margin-bottom: clamp(32px, 5vw, 56px); }
.PageHead h1 { font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.4rem); max-width: 22ch; }
.PageHead p { font-family: var(--serif); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--sumi-2); max-width: 56ch; margin: 18px 0 0; }
.PageHead .Meta { max-width: 56rem; font-family: var(--sans); font-size: 0.88rem; color: var(--sumi-3); margin-top: 26px; }
.PageHead-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.PageHead-row .Hanko { width: 76px; margin-top: 8px; }
@media (max-width: 640px) { .PageHead-row .Hanko { display: none; } }

/* Two-column page body for about/contact */
.Columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: clamp(56px, 8vw, 112px); }
@media (min-width: 1000px) { .Columns { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; } }
.Sidecard { border-top: 1.5px solid var(--sumi); padding-top: 16px; font-size: 0.95rem; }
@media (min-width: 1000px) { .Sidecard { position: sticky; top: calc(var(--header-h) + 28px); } }
.Sidecard h2 { font-size: 1.25rem; margin-bottom: 10px; }
.Sidecard ul { padding-left: 1.1em; margin: 0 0 1em; }
.Sidecard + .Sidecard { margin-top: 32px; }

.Evidence { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: 12px; }
.Evidence li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 16px; background: var(--sheet); border: 1px solid var(--rule); }
.Evidence-badge { width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid var(--ai); border-radius: 50%; font: 700 1rem/1 var(--serif); color: var(--ai); }
.Evidence li:first-child .Evidence-badge { background: var(--ai); color: var(--sheet); }
.Evidence strong { display: block; }

/* ---------- 404 ---------- */
.Lost { min-height: 62vh; display: grid; align-items: center; padding-block: 64px; }
.Lost-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .Lost-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.Lost-code { font-family: var(--serif); font-size: clamp(5rem, 3rem + 10vw, 11rem); line-height: 0.9; color: var(--ai); font-weight: 300; letter-spacing: -0.03em; }
.Lost ul { padding-left: 1.2em; }

/* ---------- Footer ---------- */
.Colophon { background: var(--sumi); color: #c9cad0; padding-block: clamp(48px, 6vw, 80px) 28px; font-size: 0.95rem; }
.Colophon a { color: #eceae4; text-decoration: none; border-bottom: 1px solid rgba(236, 234, 228, 0.25); }
.Colophon a:hover { color: #ffffff; border-color: #f3b7a8; }
.Colophon-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(236, 234, 228, 0.16); }
@media (min-width: 760px) { .Colophon-top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1100px) { .Colophon-top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); } }
.Colophon-brand { display: flex; gap: 14px; align-items: flex-start; }
.Colophon-brand .Hanko { width: 44px; }
.Colophon-name { font-family: var(--serif); font-size: 1.5rem; color: #f5f3ee; line-height: 1.1; }
.Colophon-domain { display: block; margin-top: 6px; font-size: 0.9rem; letter-spacing: 0.04em; color: #a9abb3; }
.Colophon-about { margin-top: 16px; max-width: 34ch; color: #b5b7be; }
.Colophon h2 { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #a9abb3; margin: 4px 0 14px; }
.Colophon ul { list-style: none; margin: 0; padding: 0; }
.Colophon li { margin-bottom: 9px; }
.Colophon-age {
  display: flex; gap: 14px; align-items: center;
  margin-top: 28px; padding: 16px 18px;
  border: 1px solid rgba(243, 183, 168, 0.4);
  color: #ecebe6;
}
.Colophon-age b {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  border: 1.5px solid #f3b7a8; border-radius: 50%; color: #f3b7a8;
  font: 700 0.9rem/1 var(--sans);
}
.Colophon-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-top: 22px; font-size: 0.85rem; color: #a3a5ad; }
.Colophon-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }
.LinkButton {
  font: inherit; color: #eceae4; background: none; border: 0; padding: 0; cursor: pointer;
  border-bottom: 1px solid rgba(236, 234, 228, 0.25);
}
.LinkButton:hover { color: #fff; border-color: #f3b7a8; }
.Placeholder--dark { background: rgba(243, 183, 168, 0.16); color: #f6d3ca; }

/* ---------- Cookie bar ---------- */
.CookieBar {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 60;
  max-width: 560px;
  background: var(--sheet);
  color: var(--sumi);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--ai);
  box-shadow: 0 20px 50px -20px rgba(28, 29, 34, 0.45);
  padding: 18px 20px;
  font-size: 0.93rem;
  line-height: 1.5;
}
@media (min-width: 640px) { .CookieBar { left: auto; right: 24px; bottom: 24px; padding: 22px 24px; } }
.CookieBar[hidden] { display: none; }
.CookieBar h2 { font-size: 1.15rem; margin: 0 0 6px; }
.CookieBar p { margin: 0 0 14px; color: var(--sumi-2); }
.CookieBar-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.CookieBar-actions .Btn { padding: 11px 12px; width: 100%; }
.CookieBar-actions .Btn--ghost { background: var(--sheet); }

/* ---------- Reveal motion ----------
   Nothing is hidden by CSS alone: app.js adds .is-pending only to elements
   that are below the fold when it runs, so a failed script never hides content. */
@media (prefers-reduced-motion: no-preference) {
  .Reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .Reveal.is-pending { opacity: 0; transform: translateY(14px); }
  .Reveal--d1 { transition-delay: 0.08s; }
  .Reveal--d2 { transition-delay: 0.16s; }
  .Reveal--d3 { transition-delay: 0.24s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  body::before, .Masthead, .Colophon, .CookieBar, .SkipLink, .Crumbs, .Related, .Shiori, .Checklist-actions, .IndexPanel, .noPrint { display: none !important; }
  a { color: #000; text-decoration: none; }
  .Checklist-bar { position: static; background: none; border: 0; padding: 0 0 8pt; }
  .PrintHead { display: block; border-bottom: 1pt solid #000; padding-bottom: 6pt; margin-bottom: 10pt; font-size: 9pt; }
  .PageHead { padding: 0; margin: 0 0 8pt; border: 0; }
  .PageHead h1 { font-size: 20pt; }
  .PageHead p { font-size: 11pt; }
  .Group { break-inside: auto; margin-bottom: 14pt; }
  .Group-head { break-after: avoid; }
  .Item { break-inside: avoid; padding: 5pt 0; grid-template-columns: 18pt minmax(0, 1fr); }
  .Item input[type="checkbox"] { -webkit-print-color-adjust: exact; print-color-adjust: exact; width: 12pt; height: 12pt; }
  .Item input:checked + label strong { text-decoration: none; color: #000; }
  .Progress-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .Reveal { opacity: 1 !important; transform: none !important; }
  .Draw .is-drawable { stroke-dashoffset: 0 !important; }
  .TableWrap { overflow: visible; background: none; }
  .Verdict { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .Calc-results { position: static; }
  .Columns, .ArticleBody { display: block; }
  .PageHead-row .Hanko { width: 44px; }
  .Group { margin-bottom: 10pt; }
}

/* Checklist extras */
.Group-num { display: block; font: 700 0.75rem/1 var(--sans); letter-spacing: 0.12em; color: var(--shu); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.LinkButton--light { color: var(--ai); border-bottom-color: currentColor; font-weight: 600; }
.LinkButton--light:hover { color: var(--shu); }
#lista-mentes { margin-top: 0; }
.IndexPanel li a[aria-current="page"] { color: var(--ai); }
.IndexPanel li a[aria-current="page"]::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--shu); transform: rotate(45deg); margin: 0 10px 2px 0; vertical-align: middle; }

/* Sources list at the end of articles */
.Prose .Sources { font-size: 0.93rem; padding-left: 1.2em; }
.Prose .Sources li { color: var(--sumi-2); margin-bottom: 0.6em; }
.Prose .Sources a { overflow-wrap: anywhere; }
@media (min-width: 760px) { .Related-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.Verdict-main strong { white-space: nowrap; }
