:root {
  --c-bg: #FFFFFF;
  --c-white: var(--c-bg);
  --c-panel: #F5F4F8;
  --c-panel-2: #EBE8F1;
  --c-border: #E2DFE8;
  --c-accent: #7B22DB;
  --c-accent-dark: #4E0FA0;
  --c-text: #1C1726;
  --c-muted: #5F5A6B;
  --c-success: #1E9E5A;
  --c-warn: #E58A00;
  --c-error: #D93A3A;
  --c-cobalt: #2F5BFF;
  --c-magenta: #D0288F;
  --c-night: #170A2B;
  --c-slab-1: #DAD4E5;
  --c-slab-2: #BDB3CF;
  --c-tint: #F7F2FD;
  --c-inverse-text: var(--c-white);
  --c-inverse-muted: #D9CBE8;
  --c-inverse-accent: #E5BFFF;
  --c-success-ink: #145A38;
  --c-error-ink: #A32632;
  --c-warn-ink: #754500;
  --c-clear: transparent;

  --c-white-a10: rgba(255,255,255,.10);
  --c-white-a18: rgba(255,255,255,.18);
  --c-white-a24: rgba(255,255,255,.24);
  --c-white-a50: rgba(255,255,255,.50);
  --c-white-a72: rgba(255,255,255,.72);
  --c-white-a86: rgba(255,255,255,.86);
  --c-ink-a08: rgba(28,23,38,.08);
  --c-ink-a12: rgba(28,23,38,.12);
  --c-ink-a20: rgba(28,23,38,.20);
  --c-ink-a28: rgba(28,23,38,.28);
  --c-accent-a06: rgba(123,34,219,.06);
  --c-accent-a10: rgba(123,34,219,.10);
  --c-accent-a14: rgba(123,34,219,.14);
  --c-accent-a18: rgba(123,34,219,.18);
  --c-accent-a40: rgba(123,34,219,.40);
  --c-success-a12: rgba(30,158,90,.12);
  --c-error-a12: rgba(217,58,58,.12);
  --c-cobalt-a07: rgba(47,91,255,.07);
  --c-magenta-a06: rgba(208,40,143,.06);
  --c-dot: rgba(78,15,160,.17);

  --grad-band: linear-gradient(90deg,var(--c-cobalt) 0%,var(--c-accent) 52%,var(--c-magenta) 100%);
  --grad-rail: linear-gradient(180deg,var(--c-cobalt) 0%,var(--c-accent) 52%,var(--c-magenta) 100%);
  --grad-primary: linear-gradient(180deg,var(--c-accent) 0%,var(--c-accent-dark) 100%);
  --font-display: "Inter","Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --font-body: "Inter","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --font-mono: "JetBrains Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  --fs-micro: 11px;
  --fs-caption: 12px;
  --fs-meta: 13px;
  --fs-small: 14px;
  --fs-control: 15px;
  --fs-body: 16px;
  --fs-lede: 17px;
  --fs-h3: 22px;
  --fs-h2: clamp(24px, 2.4vw, 36px);
  --fs-h1: clamp(34px, 3.4vw, 48px);
  --fs-h1-mobile: clamp(24px, 6.2vw, 30px);
  --fs-route: 52px;
  --r-ctl: 4px;
  --r-card: 6px;
  --r-panel: 10px;
  --r-note: 14px;
  --r-pill: 999px;
  --r-round: 50%;
  --gutter: clamp(16px, 3vw, 40px);
  --wrap: 1120px;
  --wide: 1280px;
  --reading: 76ch;
  --gap: 20px;
  --section-y: clamp(48px, 7vw, 88px);
  --bar-h: 32px;
  --head-h: 68px;
  --hit: 44px;
  --motion: .18s ease;
  --shadow-card: 0 1px 2px var(--c-ink-a08);
  --shadow-menu: 0 12px 28px var(--c-ink-a12);
  --shadow-rig: 5px 7px 0 var(--c-slab-2), 22px 30px 44px var(--c-ink-a12), 70px 96px 120px var(--c-accent-a18);
  --color-primary: var(--c-accent);
  --color-accent: var(--c-accent);
  --color-text: var(--c-text);
  --color-bg: var(--c-bg);
  --focus-ink: var(--c-accent);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: var(--fs-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
svg, .icon, .badge__dot, .dot { flex-shrink: 0; }
button, select, input { font: inherit; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 3px; border-radius: var(--r-ctl); }
:where(main [id]) { scroll-margin-top: 1.5rem; }
:where(h1, h2, h3, p, ul, ol, dl, figure, pre) { margin-block: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.16; overflow-wrap: break-word; }
h1 { font-size: var(--fs-h1); font-weight: 900; letter-spacing: -.02em; text-wrap: pretty; }
h2 { font-size: var(--fs-h2); font-weight: 900; }
h3 { font-size: var(--fs-h3); font-weight: 800; }
h2, h3 { text-wrap: balance; }
:lang(ja):is(h1,h2,h3,.lede) { word-break: auto-phrase; }
:lang(ko):is(h1,h2) { word-break: keep-all; }
.keep { white-space: nowrap; }
.copy-muted { color: var(--c-muted); }
.prose { max-width: var(--reading); min-width: 0; }
.prose :where(p,ul,ol,dl,pre,figure,blockquote,table,.table-scroll) { margin-block: 1em; }
.prose :where(h2,h3) { margin-block: 1.5em .5em; }
.prose a:not(.btn,.dl-fab) { color: var(--c-accent-dark); }
code, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
:not(pre) > code { font-size: .92em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 14px 16px;
  border-radius: var(--r-card);
  background: var(--c-panel);
  color: var(--c-text);
  font-size: var(--fs-meta);
}
pre code { white-space: pre; overflow-wrap: normal; }
.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}
.wrap--wide { max-width: calc(var(--wide) + var(--gutter) * 2); }
.section { padding-block-start: var(--section-y); padding-block-end: var(--section-y); }
.section--paper { background: var(--c-bg); color: var(--c-text); }
.section--tint { background: var(--c-tint); color: var(--c-text); }
.section--ink {
  --focus-ink: var(--c-inverse-accent);
  background: var(--c-night);
  color: var(--c-inverse-text);
}
.section--ink .copy-muted { color: var(--c-inverse-muted); }
.section--ink :where(a:not(.btn)) { color: var(--c-inverse-accent); }
.section--ink .prose a:not(.btn,.dl-fab) { color: var(--c-inverse-accent); }
.section--ink :is(.panel,.card,.feature-sheet) { --focus-ink: var(--c-accent); }
.section--ink :is(.panel,.card,.feature-sheet) a:not(.btn) { color: var(--c-accent-dark); }
.section--ink :is(.panel,.card,.feature-sheet) .copy-muted { color: var(--c-muted); }
.decor-clip { position: relative; overflow-x: clip; isolation: isolate; }
.decor-cover { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.grid > *, .row > * { min-width: 0; }
.grid { display: grid; gap: var(--gap); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.btn, .band__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  max-width: 100%;
  padding: 8px 26px;
  border: 0;
  border-radius: var(--r-ctl);
  font: 700 var(--fs-control)/1.25 var(--font-body);
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  overflow-wrap: break-word;
  cursor: pointer;
  transition: transform var(--motion);
}
.btn svg, .band__cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn:not(:disabled):hover, .band__cta:hover { transform: translateY(-1px); }
.btn:not(:disabled):active, .btn.demo-active { transform: translateY(1px); }
.btn--primary {
  background: var(--grad-primary);
  color: var(--c-white);
  box-shadow: inset 0 1px 0 var(--c-white-a24), 0 12px 26px -10px var(--c-accent-a40), 0 2px 6px var(--c-accent-a18);
}
.btn--ghost { background: var(--c-white-a72); color: var(--c-accent); border: 1.5px solid var(--c-accent); }
.btn--ghost:not(:disabled):hover, .btn--ghost.demo-hover { background: var(--c-tint); color: var(--c-accent-dark); }
.btn.demo-focus { outline: 2px solid var(--focus-ink); outline-offset: 3px; }
.btn:disabled {
  background: var(--c-panel-2);
  color: var(--c-muted);
  border-color: var(--c-border);
  box-shadow: none;
  cursor: not-allowed;
}
.panel, .card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-white);
  color: var(--c-text);
}
.panel--quiet { background: var(--c-panel); color: var(--c-text); }
.reveal { opacity: 1; }
.reveal.is-observed:not(.shown) { opacity: 0; transform: translateY(8px); }
.reveal.is-observed { transition: opacity .32s ease, transform .32s ease; }

.skip {
  position: absolute;
  z-index: 60;
  inset: 8px auto auto 12px;
  transform: translateY(-160%);
  padding: 8px 14px;
  border-radius: var(--r-ctl);
  background: var(--c-text);
  color: var(--c-white);
  font-size: var(--fs-small);
  text-decoration: none;
}
.skip:focus { transform: none; }
.notice {
  --focus-ink: var(--c-white);
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--gutter);
  background: var(--grad-band);
  color: var(--c-white);
  text-align: center;
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: .01em;
}
.notice a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.notice a:focus-visible { outline-offset: 1px; }
.notice a span { text-decoration: underline; text-decoration-color: var(--c-white-a50); }
.notice a:hover span { text-decoration-color: var(--c-white); }
.notice__short { display: none; }
#site-header, .site-chrome { position: relative; z-index: 20; }
.masthead {
  position: relative;
  z-index: 10;
  min-height: var(--head-h);
  background: var(--c-bg);
  color: var(--c-text);
  box-shadow: 0 1px 0 var(--c-border), 0 10px 28px -22px var(--c-ink-a28);
}
.masthead__in {
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  min-height: var(--head-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.3vw, 30px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand:hover .brand__name { text-decoration: underline; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.brand__name {
  font: 800 var(--fs-lede)/1.1 var(--font-display);
  letter-spacing: -.01em;
  color: var(--c-text);
}
.brand__domain { margin-block-start: 3px; font: var(--fs-micro)/1.1 var(--font-mono); color: var(--c-muted); }
.dotnav { display: flex; min-width: 0; margin-inline-start: auto; }
.dotnav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.dotnav__list li { display: flex; align-items: center; gap: clamp(8px, 1vw, 14px); }
.dotnav__list li + li::before { content: "·"; color: var(--c-slab-2); font-weight: 700; }
.dotnav__list a { font-size: var(--fs-control); font-weight: 600; color: var(--c-muted); text-decoration: none; }
.dotnav__list a:hover { color: var(--c-text); text-decoration: underline; }
.dotnav__list a[aria-current="page"] {
  color: var(--c-text);
  text-decoration: underline 2px var(--c-accent);
  text-underline-offset: 8px;
}
.head-tools { display: flex; align-items: center; flex-shrink: 0; gap: 6px; }
.lang-box { position: relative; }
.lang, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-ctl);
  background: var(--c-bg);
  color: var(--c-muted);
  font: 600 var(--fs-small)/1 var(--font-body);
  cursor: pointer;
}
summary.lang { list-style: none; }
summary.lang::-webkit-details-marker { display: none; }
.lang svg, .menu-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang:hover, .menu-toggle:hover { color: var(--c-text); border-color: var(--c-slab-2); }
.lang__short, .lang-links--compact, .menu-toggle { display: none; }
.lang-pop {
  position: absolute;
  z-index: 2;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  min-inline-size: 155px;
  max-inline-size: calc(100vw - var(--gutter) * 2);
  padding: 6px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-bg);
  color: var(--c-text);
  box-shadow: var(--shadow-menu);
}
.lang-pop a, .head-drawer a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--hit);
  padding: 9px 12px;
  border-radius: var(--r-ctl);
  text-decoration: none;
}
.lang-pop a:hover, .head-drawer a:hover,
:is(.lang-pop,.head-drawer) a:is([aria-current="page"],[aria-current="true"]) {
  background: var(--c-tint);
  color: var(--c-accent-dark);
  text-decoration: underline;
}
html.nav-open { overflow: hidden; }
.menu-toggle { min-width: var(--hit); min-height: var(--hit); padding: 6px; }
.menu-toggle svg { width: 20px; height: 20px; }
.head-veil { position: fixed; z-index: 0; inset: 0; background: var(--c-ink-a28); color: var(--c-white); }
.head-drawer {
  position: absolute;
  z-index: 1;
  inset: 100% 0 auto;
  max-height: calc(100vh - var(--bar-h) - var(--head-h));
  max-height: calc(100dvh - var(--bar-h) - var(--head-h));
  padding: 12px var(--gutter) 16px;
  border-block-start: 1px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text);
  box-shadow: var(--shadow-menu);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.head-drawer ul { list-style: none; padding: 0; margin: 0; }
.head-drawer__label {
  margin-block: 10px 2px;
  padding: 10px 12px 0;
  border-block-start: 1px solid var(--c-border);
  font-size: var(--fs-meta);
  color: var(--c-muted);
}
.footer {
  border-block-start: 1px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 24px min(4vw, 48px);
  padding-block-start: 48px;
  padding-block-end: 30px;
}
.footer__grid > * { min-width: 0; }
.footer__intro { max-width: 30ch; margin-block-start: 12px; color: var(--c-muted); font-size: var(--fs-small); }
.footer__label { margin-block-end: 10px; font-size: var(--fs-control); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li + li { margin-block-start: 5px; }
.footer a:not(.brand) { color: var(--c-muted); text-decoration: none; font-size: var(--fs-small); }
.footer a:not(.brand):hover { color: var(--c-accent-dark); text-decoration: underline; }
.footer__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  border-block-start: 1px solid var(--c-border);
  padding-block: 16px 22px;
  color: var(--c-muted);
  font-size: var(--fs-small);
}

@media (max-width: 960px) {
  .masthead__in > .dotnav:not(.dotnav--preview) { display: none; }
  .masthead:not(.masthead--preview) .head-tools { margin-inline-start: auto; }
  .menu-toggle { display: inline-flex; }
  .masthead .brand__name {
    max-width: min(16.5rem, calc(100vw - 160px));
    line-height: 1.25;
    text-wrap: balance;
  }
}
@media (max-width: 768px) {
  h1 { font-size: var(--fs-h1-mobile); }
  .footer__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .notice__long { display: none; }
  .notice__short { display: inline; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .lang { min-height: var(--hit); padding-inline: 8px; }
  .masthead__in { gap: 6px; }
  .masthead .brand { gap: 7px; }
  .masthead .brand__name { font-size: var(--fs-small); }
  .btn { min-height: 46px; padding-inline: 20px; }
  .tilt, .tilt--short { transform: none !important; }
  .footer__grid { gap: 20px 14px; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal.is-observed:not(.shown) { opacity: 1; transform: none; }
}