:root {
  --bg:#ffffff;
  --bg-panel:#f7f7f8;
  --bg-panel-2:#f1f0f3;
  --border:#e6e5e9;
  --accent:#6d3f7d;
  --accent-dark:#4f2a5c;
  --text:#121214;
  --text-muted:#6b6a72;
  --success:#2f8a5b;
  --warn:#b7791f;
  --error:#c2413a;
  --apricot:#f0a77e;
  --mist:#e8ecf4;
  --apricot-soft:#fbe4d6;
  --ink:#26222b;
  --il-paper:var(--bg);
  --il-cubby:#dde3ee;
  --il-cubby-deep:#cdd5e3;
  --il-belt:#dcdee6;
  --il-belt-side:#c3c6d1;
  --il-desk:#fdf5ef;
  --il-desk-front:#f4dccd;
  --il-tray:#efe5f1;
  --il-tray-in:#d9c8de;
  --reverse-bg:#2c2032;
  --reverse-text:var(--bg);
  --reverse-muted:#ddd3e0;
  --reverse-link:#efd0f5;
  --accent-warm:color-mix(in srgb, var(--accent) 60%, var(--apricot));
  --accent-title-end:color-mix(in srgb, var(--accent) 84%, var(--apricot));
  --accent-tint:color-mix(in srgb, var(--accent) 8%, var(--bg));
  --glass:color-mix(in srgb, var(--bg) 72%, transparent);
  --veil:rgba(18,18,20,.32);
  --clear:transparent;
  --line-accent:color-mix(in srgb, var(--accent) 35%, var(--border));
  --dot-hero:color-mix(in srgb, var(--accent) 24%, transparent);
  --halo-plum:color-mix(in srgb, var(--accent) 13%, transparent);
  --halo-peach:color-mix(in srgb, var(--apricot) 18%, transparent);
  --halo-mist:color-mix(in srgb, var(--mist) 90%, transparent);
  --ball-edge:color-mix(in srgb, var(--apricot) 62%, var(--accent-dark));
  --ball-shadow:0 1px 3px color-mix(in srgb, var(--apricot) 70%, transparent);
  --color-primary:var(--accent);
  --color-accent:var(--accent);
  --color-text:var(--text);
  --color-bg:var(--bg);

  --font-display:'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body:'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono:'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --fs-body:16px;
  --fs-small:13px;
  --fs-display:clamp(34px, 3.3vw, 48px);
  --fs-h2:clamp(26px, 3vw, 40px);
  --fs-h3:22px;
  --fs-lede:17px;
  --lh-body:1.6;
  --lh-title:1.1;
  --track-title:-.02em;
  --track-latin:-.025em;
  --r-canvas:28px;
  --r-canvas-small:22px;
  --r-panel:24px;
  --r-card:16px;
  --r-item:10px;
  --r-mark:9px;
  --r-focus:6px;
  --r-pill:999px;
  --r-round:50%;
  --shadow-xs:0 1px 2px rgba(18,18,20,.04);
  --shadow-float:0 1px 2px rgba(18,18,20,.04), 0 14px 36px -18px rgba(18,18,20,.22);
  --shadow-canvas:0 1px 2px rgba(18,18,20,.04), 0 28px 56px -32px rgba(79,42,92,.28), 0 64px 96px -64px rgba(240,167,126,.42);
  --shadow-cta:0 1px 2px rgba(79,42,92,.20), 0 12px 26px -12px rgba(109,63,125,.60);
  --inset-hi:inset 0 1px 0 rgba(255,255,255,.22);
  --inset-canvas:inset 0 1px 0 rgba(255,255,255,.7);
  --ring:0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
  --stroke:1px solid var(--border);
  --nav-h:64px;
  --nav-wrap:1280px;
  --wrap:1360px;
  --read:76ch;
  --gutter:40px;
  --gap:20px;
  --section:80px;
  --ease:cubic-bezier(.2,.7,.2,1);
  --quick:.2s;
  --reveal-time:.45s;
  --ship-time:9s;
}
*, *::before, *::after { box-sizing:border-box; }
[hidden] { display:none !important; }
html {
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--nav-h) + 18px);
  scroll-padding-bottom:82px;
}
html.nav-open { overflow:hidden; }
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:var(--fs-body)/var(--lh-body) var(--font-body);
  overflow-wrap:break-word;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
:where(h1,h2,h3,h4,p,figure,pre,blockquote,dl,dd) { margin:0; }
:where(h1,h2,h3,h4) { font-family:var(--font-display); font-weight:400; overflow-wrap:break-word; }
h1 { font-size:var(--fs-display); line-height:var(--lh-title); letter-spacing:var(--track-title); text-wrap:pretty; }
h2 { font-size:var(--fs-h2); line-height:1.2; letter-spacing:var(--track-title); text-wrap:balance; }
h3 { font-size:var(--fs-h3); line-height:1.3; text-wrap:balance; }
:lang(ja) :is(h1,h2,h3,.lede) { word-break:auto-phrase; }
:lang(ko) :is(h1,h2) { word-break:keep-all; }
a { color:var(--accent); text-underline-offset:.2em; }
button, summary { font:inherit; color:inherit; }
button { overflow-wrap:break-word; }
picture, img { display:block; max-width:100%; }
img { height:auto; }
svg, .ball, .sl-dot { flex-shrink:0; }
code, pre, kbd, .mono { font-family:var(--font-mono); }
:not(pre) > code { overflow-wrap:anywhere; }
pre {
  max-width:100%;
  overflow-x:auto;
  padding:14px 16px;
  border:var(--stroke);
  border-radius:var(--r-item);
  background:var(--bg-panel);
  color:var(--text);
  white-space:pre;
  overflow-wrap:normal;
  tab-size:2;
}
:focus-visible { outline:2px solid var(--focus-color, var(--accent)); outline-offset:3px; }
:where(.wrap,.card-grid,.topbar-in,.hero-grid,.chapter-layout,.prose) > * { min-width:0; }
.wrap {
  width:100%;
  max-width:calc(var(--wrap) + var(--gutter) * 2);
  padding-inline:var(--gutter);
  margin-inline:auto;
}
.prose { width:100%; max-width:var(--read); line-height:1.8; }
.prose > * + *, .flow > * + * { margin-block-start:16px; }
.prose h2:not(:first-child) { margin-block-start:52px; }
.prose h3:not(:first-child) { margin-block-start:32px; }
.prose :is(ul,ol) { padding-inline-start:1.5em; }
.prose :is(ul,ol) li + li { margin-block-start:.5em; }
.nowrap { white-space:nowrap; }
.muted { color:var(--text-muted); }
.eyebrow { font-size:var(--fs-small); letter-spacing:.06em; color:var(--eyebrow-ink, var(--text-muted)); }
.clean-list { list-style:none; margin:0; padding:0; }
.sr-only, .skip:not(:focus) {
  position:absolute; width:1px; height:1px; padding:0; overflow:hidden;
  clip-path:inset(50%); white-space:nowrap;
}
.skip {
  position:fixed; inset:12px auto auto 16px; z-index:60;
  padding:8px 14px; border-radius:var(--r-pill);
  background:var(--accent); color:var(--bg); font-size:var(--fs-small);
}
.section { padding-block:var(--section); }
.sec--paper { background:var(--bg); color:var(--text); }
.sec--tint { background:var(--accent-tint); color:var(--text); }
.sec--ink {
  --focus-color:var(--reverse-link);
  --eyebrow-ink:var(--reverse-muted);
  background:var(--reverse-bg); color:var(--reverse-text);
}
.sec--ink a:not(.btn) { color:var(--reverse-link); }
.sec--ink .muted { color:var(--reverse-muted); }
.decor-zone, .hero { overflow-x:clip; }
@media (prefers-reduced-motion:no-preference) {
  .reveal { transition:opacity var(--reveal-time) var(--ease), transform var(--reveal-time) var(--ease); }
  html.reveal-ready .reveal:not(.shown):not(:focus-within):not(:target) { opacity:0; transform:translateY(12px); }
}

.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:52px; max-width:100%; padding:8px 26px;
  border:1px solid var(--clear); border-radius:var(--r-pill);
  font-size:15.5px; font-weight:500; letter-spacing:-.005em;
  line-height:1.35; text-align:center; text-decoration:none; cursor:pointer;
  transition:transform var(--quick) var(--ease), box-shadow var(--quick) var(--ease), background-color var(--quick) var(--ease);
}
.btn svg { width:16px; height:16px; }
.btn-primary {
  background:linear-gradient(180deg, var(--accent), var(--accent-dark));
  color:var(--bg); box-shadow:var(--shadow-cta), var(--inset-hi);
}
.btn-primary:not(:disabled):hover { transform:translateY(-1px); }
.btn-primary:not(:disabled):active { transform:translateY(1px); }
.btn-primary:focus-visible { outline-offset:2px; box-shadow:var(--shadow-cta), var(--ring); }
.btn-ghost { background:var(--bg); color:var(--text); border:var(--stroke); box-shadow:var(--shadow-xs); }
.btn-ghost:hover { background:var(--bg-panel); color:var(--text); }
.btn-ghost:active { background:var(--bg-panel-2); color:var(--text); }
.btn-ghost .arrow { transition:transform var(--quick) var(--ease); }
.btn-ghost:hover .arrow { transform:translateX(3px); }
.btn:disabled { background:var(--bg-panel-2); color:var(--text-muted); border:var(--stroke); box-shadow:none; cursor:not-allowed; }
.card, .panel {
  min-width:0; padding:clamp(18px, 3vw, 36px);
  border:var(--stroke); border-radius:var(--r-card);
  background:var(--bg); color:var(--text); box-shadow:var(--shadow-xs);
}
.panel { border-radius:var(--r-panel); }
.panel--facts { background:var(--bg-panel); color:var(--text); border-radius:var(--r-canvas); }
.card :is(h2,h3) a { color:var(--text); text-decoration:none; }
.card :is(h2,h3) a:hover { text-decoration:underline; }
.card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--gap); }
@media (min-width:900px) {
  .card-grid--editorial { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .card-grid:has(> :nth-child(5):last-child) { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .card-grid:has(> :nth-child(5):last-child) > * { grid-column:span 2; }
  .card-grid:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column:span 3; }
}
@media (min-width:1100px) {
  .card-grid:has(> :nth-child(7):last-child) { grid-template-columns:repeat(12,minmax(0,1fr)); }
  .card-grid:has(> :nth-child(7):last-child) > * { grid-column:span 3; }
  .card-grid:has(> :nth-child(7):last-child) > :nth-child(n+5) { grid-column:span 4; }
}
@media (max-width:899px) {
  .card-grid:has(> :nth-child(odd):last-child) { grid-template-columns:minmax(0,1fr); }
}
@media (min-width:900px) and (max-width:1099px) {
  .card-grid:has(> :nth-child(7):last-child) > :last-child { grid-column:1 / -1; }
}

.topbar, #site-header:not(:empty) {
  position:sticky; top:0; z-index:40;
  height:var(--nav-h); background:var(--bg); color:var(--text);
  border-bottom:var(--stroke);
}
.topbar-in {
  position:relative; width:100%; height:100%;
  max-width:min(100%, calc(var(--nav-wrap) + var(--gutter) * 2));
  padding-inline:var(--gutter); margin-inline:auto;
  display:flex; align-items:center; gap:44px;
}
.brand { display:inline-flex; align-items:center; gap:11px; flex-shrink:0; color:var(--text); text-decoration:none; }
.brand:hover .brand-name { text-decoration:underline; }
.brand-mark { width:30px; height:30px; flex-shrink:0; }
.brand-mark--preview {
  border-radius:var(--r-mark); border:var(--stroke);
  background:linear-gradient(145deg, var(--bg), var(--bg-panel-2)); color:var(--text);
  box-shadow:var(--shadow-xs), inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--line-accent);
}
.brand-name { font-size:15.5px; font-weight:500; line-height:1.25; letter-spacing:-.01em; }
.mainnav-list { display:flex; align-items:center; gap:4px; list-style:none; margin:0; padding:0; }
.more, .lang-picker { position:relative; }
.mainnav-list > li > a, .more-btn, .lang {
  display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 13px;
  border-radius:var(--r-pill); border:0;
  background:var(--clear); color:var(--text); font-size:14.5px;
  text-decoration:none; cursor:pointer;
}
.mainnav-list > li > a:hover, .more-btn:hover { background:var(--bg-panel); color:var(--text); }
.mainnav-list > li > a:hover, .more-group a:hover { text-decoration:underline; }
.mainnav-list [aria-current="page"], .more-btn.is-current, .lang-panel [aria-current="page"], .mobile-drawer [aria-current="page"] {
  background:var(--bg-panel-2); color:var(--text);
}
.caret { width:10px; height:10px; transition:transform var(--quick) var(--ease); }
[aria-expanded="true"] > .caret, details[open] > summary > .caret { transform:rotate(180deg); }
.more-panel, .lang-panel {
  position:absolute; top:calc(100% + 10px); z-index:2;
  padding:10px; border:var(--stroke); border-radius:var(--r-card);
  background:var(--bg); color:var(--text); box-shadow:var(--shadow-float);
}
.more-panel { left:-12px; width:420px; display:grid; grid-template-columns:1fr 1fr; gap:4px; }
.more-group { padding:6px; min-width:0; }
.more-group + .more-group { border-inline-start:var(--stroke); }
.more-title { padding:4px 10px 8px; font-size:12px; color:var(--text-muted); letter-spacing:.04em; }
.more-group a, .lang-panel a { display:block; padding:9px 10px; border-radius:var(--r-item); color:var(--text); text-decoration:none; }
.more-group a:hover, .lang-panel a:hover { background:var(--bg-panel); color:var(--text); text-decoration:underline; }
.more-group span, .more-group small { display:block; }
.more-group span { font-size:14.5px; }
.more-group small { margin-top:2px; font-size:12.5px; line-height:1.45; color:var(--text-muted); }

.topbar-end { margin-left:auto; display:flex; align-items:center; gap:10px; flex-shrink:0; }
.lang { min-height:38px; gap:7px; padding-inline:14px; background:var(--bg-panel); color:var(--text); font-size:14px; }
.lang:hover { background:var(--bg-panel-2); color:var(--text); }
.lang svg { width:15px; height:15px; color:var(--text-muted); }
.lang-short, .nav-toggle, .mobile-drawer, .nav-veil, .preview-mobile { display:none; }
.lang-panel { right:0; min-width:156px; width:max-content; max-width:calc(100vw - var(--gutter) * 2); }
.cta-pill {
  display:inline-flex; align-items:center; gap:7px; min-height:38px; padding-inline:18px;
  border-radius:var(--r-pill); background:var(--accent); color:var(--bg);
  font-size:14px; font-weight:500; text-decoration:none; box-shadow:var(--shadow-xs);
}
.cta-pill:hover { background:var(--accent-dark); color:var(--bg); }
.cta-pill svg { width:14px; height:14px; }
.nav-toggle {
  place-items:center; min-width:44px; min-height:44px; padding:0;
  border:var(--stroke); border-radius:var(--r-pill); background:var(--bg); color:var(--text); cursor:pointer;
}
.nav-toggle svg { width:18px; height:18px; }
.topbar summary { list-style:none; }
.topbar summary::-webkit-details-marker { display:none; }

.site-footer {
  border-top:var(--stroke); background:var(--bg-panel); color:var(--text);
  padding-block:52px 88px;
}
.footer-columns { display:grid; grid-template-columns:minmax(0,1.35fr) repeat(3,minmax(0,1fr)); gap:32px; }
.footer-columns ul { list-style:none; margin:0; padding:0; }
.footer-columns li + li { margin-top:5px; }
.footer-heading { margin-bottom:12px; font-size:14px; font-weight:500; }
.footer-brand p { max-width:28em; margin-top:14px; font-size:14px; color:var(--text-muted); }
.site-footer a { color:var(--text); text-decoration:none; }
.site-footer a:hover { text-decoration:underline; }
.site-footer [aria-current="page"] { text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:2px; }
.footer-end {
  margin-top:34px; padding-top:16px; border-top:var(--stroke); display:flex; flex-wrap:wrap;
  align-items:baseline; gap:12px 28px; font-size:var(--fs-small); color:var(--text-muted);
}
.footer-end nav { display:flex; flex-wrap:wrap; gap:8px 16px; }

@media (max-width:1200px) {
  .topbar-in { gap:28px; }
}
@media (max-width:1040px) {
  .topbar-in { gap:12px; }
  .brand-name { font-size:14.5px; }
  .mainnav { display:none; }
  .topbar-end { margin-left:auto; }
  .nav-toggle { display:inline-grid; }
  .nav-veil {
    position:fixed; inset:var(--nav-h) 0 0; z-index:0;
    display:block; background:var(--veil); color:var(--bg);
  }
  .mobile-drawer {
    position:fixed; inset:var(--nav-h) 0 auto; z-index:1; display:block;
    max-height:calc(100vh - var(--nav-h)); max-height:calc(100dvh - var(--nav-h));
    overflow-y:auto; overscroll-behavior:contain;
    padding:16px var(--gutter) 24px;
    border-bottom:var(--stroke); background:var(--bg); color:var(--text); box-shadow:var(--shadow-float);
  }
  .mobile-drawer a {
    display:flex; align-items:center; width:100%; min-height:44px; padding:10px 14px;
    border-radius:var(--r-item); color:var(--text); text-decoration:none;
  }
  .mobile-drawer a:hover { background:var(--bg-panel); color:var(--text); text-decoration:underline; }
  .mobile-drawer .more-title { margin-top:12px; }
  .preview-mobile { display:block; }
  .preview-mobile > details:not([open]) > nav { display:none; }
}
@media (max-width:960px) {
  :root { --gutter:24px; --section:64px; }
  .footer-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:768px) {
  :root { --fs-display:clamp(24px, 7.4vw, 30px); }
}
@media (max-width:640px) {
  :root { --gutter:18px; --section:48px; --gap:14px; }
  .topbar-in, .topbar-end { gap:6px; }
  .topbar .brand, #site-header .brand { flex-shrink:1; gap:7px; }
  .brand-name { max-width:min(16.5rem, calc(100vw - 128px)); text-wrap:balance; font-size:14px; }
  .topbar-end .cta-pill, .lang-full { display:none; }
  .lang-short { display:inline; }
  .lang { padding-inline:9px; }
  .lang svg { display:none; }
  .btn { min-height:48px; padding-inline:20px; font-size:15px; }
  .card-grid { grid-template-columns:minmax(0,1fr); }
  .footer-columns { gap:24px 14px; }
  .footer-brand { grid-column:1 / -1; }
  .site-footer { padding-bottom:100px; }
  .tilt, [data-tilt] { transform:none !important; rotate:none !important; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { transition-duration:0s !important; }
}