/* 方向性: ロゴ（Vと重なる3層の曲線）の語彙で統一する。深い藍のヘッダーとヒーロー、層を思わせる曲線、青のグラデーション。確認の場面だけに琥珀色を使う。 */
:root {
  --paper: #f4f5f9;
  --surface: #ffffff;
  --ink: #121833;
  --ink-soft: #4a5370;
  --line: #dadef0;
  --accent: #3552d4;
  --accent-ink: #ffffff;
  --blue-300: #a5b6ff;
  --blue-400: #7b93ff;
  --blue-500: #5a78ff;
  --blue-700: #2a3fb0;
  --navy-900: #070a22;
  --navy-800: #0c1136;
  --navy-700: #141c5a;
  --caution: #a85a00;
  --caution-bg: #fff3df;
  --code-bg: #eceffa;
  --todo-bg: #ffe27a;
  --on-navy: #e6eaff;
  --on-navy-soft: rgba(222, 229, 255, 0.74);
  --on-navy-line: rgba(150, 170, 255, 0.2);
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;
  --header-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a0e24;
    --surface: #111735;
    --ink: #e8ecff;
    --ink-soft: #a6b0d4;
    --line: #26306b;
    --accent: #8ea2ff;
    --accent-ink: #0a0e24;
    --caution: #f2b45c;
    --caution-bg: #2b2112;
    --code-bg: #182046;
    --todo-bg: #6b5800;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a0e24;
  --surface: #111735;
  --ink: #e8ecff;
  --ink-soft: #a6b0d4;
  --line: #26306b;
  --accent: #8ea2ff;
  --accent-ink: #0a0e24;
  --caution: #f2b45c;
  --caution-bg: #2b2112;
  --code-bg: #182046;
  --todo-bg: #6b5800;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
html[data-lang="ja"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="ja"] { display: none !important; }

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-wrap: balance; line-height: 1.35; margin: 0; line-break: strict; word-break: auto-phrase; }
p { margin: 0 0 1em; line-break: strict; word-break: auto-phrase; text-wrap: pretty; }
code, .mono { font-family: var(--font-mono); }
code { background: var(--code-bg); padding: 1px 7px; border-radius: 6px; font-size: 0.9em; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ヘッダー（常に深い藍）*/
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 11, 38, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--on-navy-line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 23px; color: #fff; text-decoration: none; letter-spacing: -0.01em; flex: none; }
.brand img { width: 36px; height: 36px; display: block; }
.brand .sql { color: var(--blue-400); }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex: 1; font-size: 15px; }
.nav a { color: var(--on-navy-soft); text-decoration: none; padding: 6px 12px; border-radius: 8px; transition: background .15s, color .15s; }
.nav a:hover { color: #fff; background: rgba(150, 170, 255, 0.14); }
.lang { display: inline-flex; border: 1px solid var(--on-navy-line); border-radius: 10px; overflow: hidden; flex: none; }
.lang button { font: inherit; font-size: 13.5px; padding: 5px 13px; background: transparent; color: var(--on-navy-soft); border: 0; cursor: pointer; }
.lang button[aria-pressed="true"] { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--on-navy-line); border-radius: 10px; background: transparent; cursor: pointer; flex: none; position: relative; }
.menu-btn span, .menu-btn::before, .menu-btn::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn::before { top: 14px; } .menu-btn span { top: 20px; } .menu-btn::after { top: 26px; }
.site-header.nav-open .menu-btn::before { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .menu-btn span { opacity: 0; }
.site-header.nav-open .menu-btn::after { transform: translateY(-6px) rotate(-45deg); }

/* ヒーロー */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 96px 0 92px; color: var(--on-navy);
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(90, 120, 255, 0.38), transparent 62%),
    radial-gradient(700px 480px at -5% 105%, rgba(42, 63, 176, 0.5), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  border-bottom: 1px solid var(--on-navy-line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 760' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='rgba(150,170,255,.17)' stroke-width='2'%3E%3Cpath d='M-100 330 Q800 640 1700 330'/%3E%3Cpath d='M-100 410 Q800 700 1700 410' stroke='rgba(150,170,255,.12)'/%3E%3Cpath d='M-100 490 Q800 760 1700 490' stroke='rgba(150,170,255,.09)'/%3E%3Cpath d='M-100 570 Q800 820 1700 570' stroke='rgba(150,170,255,.06)'/%3E%3C/g%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -40px; width: 640px; height: 640px; pointer-events: none;
  background: url("logo-mark.svg") center / contain no-repeat; opacity: 0.11; filter: blur(1.5px);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 64px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; color: var(--blue-300); margin-bottom: 22px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: linear-gradient(90deg, var(--blue-500), transparent); border-radius: 2px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 900; letter-spacing: 0.005em; color: #fff; line-height: 1.25; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #c3cfff 0%, var(--blue-500) 55%, #4b63e6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.lead { margin-top: 26px; color: var(--on-navy-soft); font-size: 19px; max-width: 34em; }
.stores { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.store {
  display: inline-flex; flex-direction: column; gap: 2px; padding: 14px 24px; min-width: 220px;
  border: 1.5px dashed rgba(165, 182, 255, 0.45); border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); color: #fff; text-decoration: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
a.store { border-style: solid; transition: transform .15s, background .15s, border-color .15s; }
a.store:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); border-color: var(--blue-300); }
.store .os { font-weight: 800; font-size: 18px; }
.store .state { font-size: 14px; color: #ffc46b; font-weight: 700; }
.store .where { font-size: 13px; color: var(--on-navy-soft); }
.fine { font-size: 13px; color: var(--on-navy-soft); margin-top: 14px; }

/* 確認ダイアログのイメージ図 */
.confirm {
  background: var(--surface); color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(90, 120, 255, 0.6), 0 0 0 1px rgba(150, 170, 255, 0.15);
}
.confirm .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; background: var(--caution-bg); color: var(--caution); border-bottom: 1px solid var(--line); font-weight: 800; font-size: 15px; }
.confirm .bar .tag { font-family: var(--font-mono); font-size: 12px; border: 1px solid currentColor; padding: 1px 9px; border-radius: 999px; }
.confirm .body { padding: 20px; }
.confirm pre { margin: 0 0 16px; padding: 13px 15px; background: var(--code-bg); border-radius: 10px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.kw { color: var(--accent); font-weight: 700; }
.confirm .scroll { overflow-x: auto; }
.confirm table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.confirm th, .confirm td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.confirm th { color: var(--ink-soft); font-weight: 500; font-size: 13px; }
.confirm td.num { text-align: right; font-family: var(--font-mono); }
.confirm .delta { color: var(--caution); font-weight: 700; }
.confirm .ask { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.confirm .ask label { font-size: 14px; color: var(--ink-soft); }
.confirm .field { font-family: var(--font-mono); border: 1.5px solid var(--line); border-radius: 10px; padding: 4px 14px; min-width: 64px; text-align: center; background: var(--paper); }
.confirm .go { margin-left: auto; font-weight: 800; padding: 7px 22px; border-radius: 10px; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; box-shadow: 0 8px 20px -8px rgba(53, 82, 212, 0.8); }
.caption { font-size: 13px; color: var(--on-navy-soft); margin-top: 12px; }

/* セクション */
section { padding: 88px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 42em; margin-bottom: 44px; }
.section-head h2, .doc h1 { position: relative; }
.section-head h2::before, .doc h1::before {
  content: ""; display: block; width: 52px; height: 22px; margin-bottom: 20px;
  background:
    linear-gradient(var(--blue-500), var(--blue-500)) 0 0 / 100% 4px no-repeat,
    linear-gradient(rgba(90, 120, 255, 0.62), rgba(90, 120, 255, 0.62)) 0 9px / 82% 4px no-repeat,
    linear-gradient(rgba(90, 120, 255, 0.32), rgba(90, 120, 255, 0.32)) 0 18px / 62% 4px no-repeat;
}
.section-head h2 { font-size: clamp(27px, 3.8vw, 40px); font-weight: 900; }
.section-head p { color: var(--ink-soft); margin-top: 14px; margin-bottom: 0; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.shots figure { margin: 0; }
.shots .wide { grid-column: auto; }
.shots img { border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 34px 60px -34px rgba(42, 63, 176, 0.65); transition: transform .25s; }
.shots figure:hover img { transform: translateY(-4px); }
.shots figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature {
  position: relative; overflow: hidden; padding: 28px 28px 30px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--blue-500), var(--blue-700) 60%, transparent); opacity: .85; }
.feature:hover { transform: translateY(-4px); border-color: var(--blue-400); box-shadow: 0 24px 40px -28px rgba(42, 63, 176, 0.6); }
.feature .n { font-family: var(--font-mono); font-size: 30px; font-weight: 700; line-height: 1; margin-bottom: 16px; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.feature h3 { font-size: 19.5px; font-weight: 800; margin-bottom: 10px; }
.feature p { margin: 0; font-size: 15.5px; color: var(--ink-soft); line-height: 1.8; }

.dbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.dbs li {
  padding: 9px 22px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 800; font-size: 15px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--blue-500), var(--blue-700)) border-box;
}
.note { font-size: 14px; color: var(--ink-soft); max-width: 46em; }

.safety { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 52px; }
.safety > div { padding-left: 20px; border-left: 3px solid; border-image: linear-gradient(180deg, var(--blue-500), rgba(90, 120, 255, 0.08)) 1; }
.safety h3 { font-size: 18px; margin-bottom: 8px; }
.safety p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.limits { margin-top: 40px; padding: 24px 26px; border-left: 4px solid var(--caution); background: var(--caution-bg); border-radius: 0 14px 14px 0; font-size: 15px; }
.limits h3 { font-size: 16px; margin-bottom: 8px; color: var(--caution); }
.limits ul { margin: 0; padding-left: 1.2em; }
.limits li { margin-bottom: 4px; }

/* 入手方法（深い藍の帯）*/
section.get {
  position: relative; overflow: hidden; isolation: isolate; color: var(--on-navy); border: 0;
  background: radial-gradient(800px 400px at 15% 120%, rgba(90, 120, 255, 0.35), transparent 60%), linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
section.get::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 500' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='rgba(150,170,255,.15)' stroke-width='2'%3E%3Cpath d='M-100 160 Q800 440 1700 160'/%3E%3Cpath d='M-100 250 Q800 500 1700 250' stroke='rgba(150,170,255,.1)'/%3E%3Cpath d='M-100 340 Q800 560 1700 340' stroke='rgba(150,170,255,.06)'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
section.get .section-head h2 { color: #fff; }
section.get .section-head p { color: var(--on-navy-soft); }

/* フッター（深い藍）*/
footer { padding: 44px 0 60px; background: var(--navy-900); color: var(--on-navy-soft); font-size: 14px; border-top: 1px solid var(--on-navy-line); }
footer .wrap { display: grid; gap: 12px; }
footer .links { display: flex; gap: 8px 22px; flex-wrap: wrap; }
footer a { color: var(--blue-300); }
footer a:hover { color: #fff; }

/* 文書ページ（左に目次）*/
.doc { padding: 64px 0 96px; }
.doc .wrap { width: min(1160px, 100% - 40px); }
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; }
.doc-body { max-width: 790px; min-width: 0; }
.doc h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 900; margin-bottom: 8px; }
.doc .meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 22px; font-weight: 800; margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.doc h3 { font-size: 17.5px; margin: 24px 0 8px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-bottom: 6px; }
.doc strong { font-weight: 800; }

.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; font-size: 14.5px; }
.toc summary { list-style: none; cursor: default; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); padding: 0 0 12px 14px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 7px 12px 7px 14px; border-left: 2px solid var(--line); color: var(--ink-soft); text-decoration: none; line-height: 1.5; transition: color .15s, border-color .15s, background .15s; }
.toc a:hover { color: var(--ink); border-left-color: var(--blue-400); }
.toc a.active { color: var(--ink); font-weight: 800; border-left-color: var(--blue-500); background: linear-gradient(90deg, rgba(90, 120, 255, 0.14), transparent); }

.todo { background: var(--todo-bg); color: #000; padding: 0 6px; border-radius: 4px; font-weight: 700; }
:root[data-theme="dark"] .todo, :root:not([data-theme="light"]) .todo { color: #fff; }

/* 仕様表（特商法表記など） */
.doc table.spec { width: 100%; border-collapse: collapse; margin: 1em 0 2em; font-size: .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc table.spec th, .doc table.spec td { text-align: left; vertical-align: top; padding: .9em 1.1em; border-bottom: 1px solid var(--line); }
.doc table.spec tr:last-child th, .doc table.spec tr:last-child td { border-bottom: 0; }
.doc table.spec th { width: 11em; font-weight: 800; white-space: nowrap; background: linear-gradient(90deg, rgba(90, 120, 255, 0.09), transparent); }

/* レスポンシブ */
@media (max-width: 1000px) {
  .hero { padding: 72px 0 68px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero::after { width: 460px; height: 460px; right: -140px; top: -30px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; max-height: none; overflow: visible; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .toc summary { cursor: pointer; padding: 14px 18px; color: var(--ink); font-size: 13px; position: relative; }
  .toc summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
  .toc[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
  .toc ol { padding: 0 8px 12px; }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .menu-btn { display: block; }
  .site-header .wrap { gap: 12px; }
  .brand { font-size: 21px; margin-right: auto; }
  .brand img { width: 32px; height: 32px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; flex: none;
    padding: 10px 20px 18px; background: rgba(7, 10, 34, 0.97); border-bottom: 1px solid var(--on-navy-line);
  }
  .site-header.nav-open .nav { display: flex; }
  .nav a { padding: 13px 12px; font-size: 16px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 52px 0 52px; }
  .lead { font-size: 17px; }
  section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
  .shots { grid-template-columns: 1fr; gap: 24px; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 24px 22px 26px; }
  .store { min-width: 100%; }
  .confirm .body { padding: 16px; }
  .doc { padding: 40px 0 64px; }
  .doc table.spec, .doc table.spec tbody, .doc table.spec tr, .doc table.spec th, .doc table.spec td { display: block; width: auto; }
  .doc table.spec th { white-space: normal; border-bottom: 0; padding-bottom: .1em; background: none; }
  .doc table.spec td { padding-top: .2em; }
}

/* 名前の由来 */
.origin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eq { font-family: var(--font-mono); padding: 36px 34px; border-radius: 20px; color: var(--on-navy);
  background: radial-gradient(500px 260px at 100% 0%, rgba(90, 120, 255, 0.4), transparent 65%), linear-gradient(180deg, var(--navy-800), var(--navy-900));
  box-shadow: 0 30px 60px -34px rgba(42, 63, 176, 0.7); }
.eq .row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; font-size: clamp(24px, 3.6vw, 40px); font-weight: 700; color: var(--on-navy-soft); }
.eq .w { color: rgba(222, 229, 255, 0.5); }
.eq .row i { font-style: normal; color: var(--blue-400); }
.eq b { font-weight: 800; background: linear-gradient(135deg, #c3cfff, var(--blue-500)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.eq .res { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--on-navy-line); font-size: clamp(32px, 5.4vw, 60px); font-weight: 800; line-height: 1.1; color: #fff; }
.eq .res span { color: var(--blue-400); }
.eq .res em { font-style: normal; color: var(--blue-400); }
.why p { color: var(--ink-soft); }
@media (max-width: 1000px) { .origin { grid-template-columns: 1fr; gap: 28px; } }
