:root {
  --bg: #ffffff;
  --bg-panel: #f5f7f6;
  --bg-panel-2: #0f2a1d;
  --bg-deep: #0b1711;
  --canvas-start: #1f7a47;
  --border: #e4e8e6;
  --border-strong: #cdd4d0;
  --accent: #11a650;
  --accent-dark: #0b6b37;
  --accent-tint: color-mix(in srgb, var(--accent) 12%, var(--bg));
  --accent-ring: color-mix(in srgb, var(--accent) 20%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 42%, transparent);
  --text: #111613;
  --text-muted: #5d6660;
  --text-faint: #8b948e;
  --success: #11a650;
  --warn: #c98a0b;
  --error: #d23f31;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --wire: rgba(255, 255, 255, 0.42);
  --node-fill: rgba(255, 255, 255, 0.10);
  --node-edge: rgba(255, 255, 255, 0.46);
  --veil: rgba(11, 23, 17, 0.32);
  --clear: transparent;
  --shadow-soft: 0 1px 2px rgba(11, 23, 17, 0.05), 0 18px 40px rgba(11, 23, 17, 0.06);
  --shadow-lift: 0 1px 2px rgba(11, 23, 17, 0.06), 0 18px 40px rgba(11, 23, 17, 0.10);
  --shadow-float: 0 1px 2px rgba(5, 12, 8, 0.16), 0 18px 40px rgba(5, 12, 8, 0.30);
  --shadow-menu: 0 1px 2px rgba(11, 23, 17, 0.06), 0 12px 28px rgba(11, 23, 17, 0.10);
  --r-xs: 4px;
  --r-node: 7px;
  --r-btn: 8px;
  --r-card: 10px;
  --r-canvas: 12px;
  --r-pill: 999px;
  --r-circle: 50%;
  --r-logo: 28%;
  --font-display: "Inter", "Noto Sans SC", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-display: 800;
  --size-body: 16px;
  --size-small: 14px;
  --size-caption: 12.5px;
  --size-h1: clamp(34px, 1.4rem + 1.8vw, 48px);
  --size-h2: clamp(24px, 2.5vw, 36px);
  --size-h3: 22px;
  --tracking-title: -0.02em;
  --header-h: 64px;
  --container: 1312px;
  --reading: 800px;
  --gutter: 64px;
  --gap: 16px;
  --section-space: 80px;
  --ease: 0.2s ease;
  --reveal-time: 0.55s;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main, section, article, aside, nav, header, footer, div, li { min-width: 0; }
img { max-width: 100%; }
svg { display: block; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, summary { -webkit-tap-highlight-color: var(--clear); }
button { color: var(--text); }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; border-radius: var(--r-xs); }
[hidden] { display: none !important; }
::selection { background: var(--accent-tint); color: var(--text); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-title);
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--size-h1); line-height: 1.14; }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
p { margin-top: 0; }
strong { font-weight: var(--weight-bold); }
code, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 18px;
  background: var(--bg-panel);
  color: var(--text);
  border-radius: var(--r-btn);
  font-size: var(--size-small);
  line-height: 1.8;
  overscroll-behavior-inline: contain;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
.wrap {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section--panel { background: var(--bg-panel); color: var(--text); }
.section__intro { max-width: 46em; margin-bottom: 32px; }
.section__intro p, .muted { color: var(--text-muted); }
.kicker { color: var(--accent-dark); font-size: 13px; font-weight: var(--weight-bold); }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: var(--gutter);
  z-index: 100;
  padding: 12px 18px;
  background: var(--bg);
  color: var(--accent-dark);
  border-radius: var(--r-btn);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.prose { min-width: 0; }
.prose p, .prose li { line-height: 1.85; }
.prose h2 { margin-top: 2.1em; }
.prose h3 { margin-top: 1.6em; }
.prose a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose :is(div, section, article) { min-width: 0; max-width: 100%; }
.prose :is(h2, h3, h4), [id] { scroll-margin-top: 88px; }
.grid-two, .grid-three { display: grid; gap: 24px; }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-two > *, .grid-three > * { min-width: 0; }
.card, .panel {
  padding: 28px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.card { box-shadow: var(--shadow-soft); }
.card h3, .panel h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.card__link { color: var(--accent-dark); font-weight: var(--weight-semibold); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid var(--clear);
  border-radius: var(--r-btn);
  font-size: var(--size-body);
  font-weight: var(--weight-bold);
  line-height: 1.4;
  letter-spacing: -0.005em;
  text-align: center;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn--solid { background: var(--accent); color: var(--on-dark); }
.btn--solid:hover, .btn--solid.is-hover { background: var(--accent-dark); color: var(--on-dark); }
.btn--line { background: var(--bg); color: var(--text); border-color: var(--border-strong); font-weight: var(--weight-semibold); }
.btn--line:hover { border-color: var(--text); }
.btn--text { background: var(--clear); color: var(--accent-dark); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel); color: var(--text-muted); border-color: var(--border); }
.btn.is-focus { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.topbar, #site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.header-shell {
  width: 100%;
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.topbar__row { min-height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 16px;
  letter-spacing: var(--tracking-title);
}
.brand__mark {
  display: block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--r-logo);
}
.brand__mark--placeholder {
  background: linear-gradient(150deg, var(--bg), var(--bg-panel));
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}
.mainnav { min-width: 0; margin-left: 36px; }
.mainnav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mainnav__link, .menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.mainnav__link:hover, .menu > summary:hover { background: var(--bg-panel); color: var(--text); }
.mainnav__link[aria-current="page"], .menu__item[aria-current], .drawer a[aria-current] { color: var(--accent-dark); }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__chev { width: 14px; height: 14px; color: var(--text-muted); transition: transform var(--ease); }
.menu[open] .menu__chev { transform: rotate(180deg); }
.menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 248px;
  padding: 6px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-menu);
  z-index: 5;
}
.menu__panel--end { left: auto; right: 0; min-width: 168px; }
.menu__item { display: block; min-height: 44px; padding: 9px 12px; border-radius: var(--r-btn); font-size: 14px; font-weight: var(--weight-semibold); }
.menu__item:hover { background: var(--bg-panel); color: var(--text); }
.menu__item small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: var(--weight-regular); color: var(--text-muted); }
.topbar__end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang-ico { width: 16px; height: 16px; color: var(--text-muted); }
.lang-short { display: none; }
.btn-store-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-btn);
  background: var(--accent);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}
.btn-store-sm:hover { background: var(--accent-dark); color: var(--on-dark); }
.btn-store-sm svg { width: 15px; height: 15px; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--bg);
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }
.drawer {
  position: absolute;
  inset: 100% 0 auto;
  padding: 16px var(--gutter) 24px;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  z-index: 3;
}
.drawer a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 12px; border-radius: var(--r-btn); }
.drawer a:hover { background: var(--bg-panel); color: var(--text); }
.drawer__label { padding: 16px 12px 4px; margin: 0; color: var(--text-muted); font-size: var(--size-small); border-top: 1px solid var(--border); }
.nav-veil { position: fixed; inset: var(--header-h) 0 0; border: 0; background: var(--veil); color: var(--text); z-index: 1; }
.site-footer { padding-top: 56px; padding-bottom: 28px; background: var(--bg-panel); color: var(--text); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.7fr 1.3fr 0.7fr; gap: 36px; }
.footer-grid > * { min-width: 0; }
.footer-brand .brand { white-space: normal; }
.footer-brand p { margin-top: 18px; max-width: 28em; color: var(--text-muted); font-size: var(--size-small); }
.footer-heading { margin: 0 0 14px; font-size: var(--size-small); font-weight: var(--weight-bold); }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list a { display: block; padding-top: 6px; padding-bottom: 6px; color: var(--text-muted); font-size: var(--size-small); overflow-wrap: break-word; }
.footer-list a:hover { color: var(--accent-dark); }
.footer-bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); font-size: var(--size-caption); color: var(--text-muted); }
.footer-bottom p { margin-bottom: 6px; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
html.reveal-ready .reveal { transition: opacity var(--reveal-time) ease, transform var(--reveal-time) ease; }
.reveal.shown { opacity: 1; transform: none; }
.decorated, .hero { overflow-x: clip; }
@media (max-width: 1200px) {
  :root { --gutter: 32px; }
  .mainnav { margin-left: 12px; }
  .mainnav__link, .menu > summary { padding-inline: 9px; }
}
@media (max-width: 1100px) {
  .mainnav { display: none; }
  .nav-toggle { display: inline-flex; }
  .topbar__end { margin-left: auto; }
  .topbar__end > .btn-store-sm { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1101px) {
  .drawer, .nav-veil { display: none; }
}
@media (max-width: 768px) {
  :root { --size-h1: 28px; --section-space: 48px; }
  .grid-three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .brand__text { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
  .topbar__row > .brand { min-width: 0; flex-shrink: 1; }
  .brand { gap: 7px; }
  .brand__mark { width: 28px; height: 28px; }
  .topbar__row { gap: 6px; }
  .topbar__end { margin-left: auto; gap: 4px; }
  .topbar__end .menu > summary { min-height: 44px; padding-inline: 6px; }
  .lang-full, .topbar__end .lang-ico { display: none; }
  .lang-short { display: inline; }
  .grid-two, .footer-grid { grid-template-columns: 1fr; }
  .card, .panel { padding: 22px; }
  .tilt, [data-tilt] { transform: none !important; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}