:root {
  color-scheme: light;
  --bg: #f3f3f3;
  --paper: #ffffff;
  --paper-soft: #f8f8f7;
  --ink: #171819;
  --muted: #6f7376;
  --line: #dedfdf;
  --line-strong: #cbcdce;
  --accent: #0aa5d7;
  --accent-soft: #e7f7fc;
  --dark: #1d1f21;
  --dark-soft: #292c2f;
  --success: #1b7650;
  --danger: #b7473f;
  --warning: #946614;
  --shadow: 0 14px 42px rgba(23, 24, 25, .07), 0 2px 8px rgba(23, 24, 25, .035);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
a { color: inherit; }

.site-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 80px; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: 54px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 15px; font-weight: 800; }
.brand-name { font-size: 18px; font-weight: 760; letter-spacing: -.025em; }
.tag { padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 680; }
.site-nav { display: flex; align-items: center; gap: 5px; }
.site-nav a { padding: 9px 12px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: white; color: var(--ink); }
.site-nav .console-link { border: 1px solid var(--dark); background: var(--dark); color: white; }
.site-nav .console-link:hover { background: #080909; color: white; }
.site-nav .language-link { border: 1px solid var(--line-strong); color: var(--ink); }
.site-nav .language-link:hover { border-color: #aeb1b2; }

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 18px; font-size: clamp(43px, 7vw, 78px); line-height: .99; letter-spacing: -.06em; }
h2 { margin-bottom: 10px; font-size: clamp(25px, 4vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
h3 { margin-bottom: 8px; font-size: 17px; letter-spacing: -.02em; }
.eyebrow { margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.lede { max-width: 760px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.muted { color: var(--muted); }
.hero { margin-bottom: 44px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--dark); border-radius: 14px; background: var(--dark); color: white; font-size: 14px; font-weight: 720; text-decoration: none; cursor: pointer; }
.button:hover { background: #070808; }
.button.secondary { border-color: var(--line-strong); background: white; color: var(--ink); }
.button.secondary:hover { border-color: #aeb1b2; }
.button:disabled { opacity: .48; cursor: wait; }

.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 64px; }
.path-card { min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.path-card strong { display: block; margin: 25px 0 8px; font-size: 22px; letter-spacing: -.035em; }
.path-card p { color: var(--muted); line-height: 1.6; }
.path-card a { color: #087da4; font-weight: 690; text-decoration: none; }
.path-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: #087da4; font-size: 12px; font-weight: 800; }
.path-card[data-status="preview"] .path-number { background: #f0f0ef; color: var(--muted); }

.section { margin-top: 70px; }
.section-intro { max-width: 720px; color: var(--muted); line-height: 1.65; }
.sandbox-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr); gap: 16px; align-items: start; }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.panel.dark { border-color: var(--dark); background: var(--dark); color: white; }
.panel.dark .muted { color: #9ca1a4; }
.purchase-brief { display: grid; gap: 8px; margin: 20px 0; }
.purchase-brief div { padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.purchase-brief small, .purchase-brief strong, .purchase-brief span { display: block; }
.purchase-brief small { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.purchase-brief strong { font-size: 13px; }
.purchase-brief span { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.scenario-list { display: grid; gap: 9px; margin: 22px 0; }
.scenario { display: grid; grid-template-columns: 18px 1fr; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper-soft); cursor: pointer; }
.scenario input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
.scenario strong, .scenario span { display: block; }
.scenario span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.run-note { min-height: 22px; margin: 12px 0 0; color: var(--muted); font-size: 13px; }

.timeline { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 13px 13px 13px 42px; border: 1px solid #383c3f; border-radius: 14px; background: var(--dark-soft); }
.timeline li::before { position: absolute; top: 16px; left: 16px; width: 9px; height: 9px; border-radius: 50%; background: #686e72; content: ""; }
.timeline li[data-state="complete"]::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(10, 165, 215, .12); }
.timeline strong, .timeline span { display: block; }
.timeline strong { font-size: 13px; }
.timeline span { margin-top: 4px; color: #9ca1a4; font-size: 11px; line-height: 1.45; }
.timeline-detail-toggle { display: none; margin-top: 8px; padding: 0; border: 0; background: transparent; color: #65cbea; font-size: 11px; font-weight: 680; cursor: pointer; }
.timeline li[data-state="complete"] .timeline-detail-toggle { display: inline-block; }
.timeline-detail-toggle:hover { text-decoration: underline; }
.timeline-detail-toggle:focus-visible { border-radius: 4px; outline: 2px solid #65cbea; outline-offset: 3px; }
.timeline li[data-expanded="true"] { border-color: #4c5459; background: #2d3133; }
.timeline-detail-panel { margin-top: 13px; padding-top: 13px; border-top: 1px solid #44494d; }
.timeline-detail-summary { margin: 0 0 10px !important; color: #c3c9cc !important; font-size: 11px !important; line-height: 1.55 !important; }
.timeline-detail-panel dl { margin: 0; }
.timeline-detail-panel dl > div { display: grid; grid-template-columns: minmax(100px, .42fr) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid #3c4144; }
.timeline-detail-panel dl > div:first-child { border-top: 0; }
.timeline-detail-panel dt { color: #8f969a; font-size: 10px; font-weight: 680; line-height: 1.5; }
.timeline-detail-panel dd { margin: 0; overflow-wrap: anywhere; color: #e5e8e9; font-size: 11px; line-height: 1.5; }
.timeline-detail-panel dd[data-tone="pass"] { color: #6edcaf; font-weight: 720; }
.timeline-detail-panel dd[data-tone="fail"] { color: #ff9a92; font-weight: 720; }
.timeline-detail-panel dd[data-tone="wait"] { color: #f3ca76; font-weight: 720; }
.verdict { margin-top: 16px; padding: 18px; border: 1px solid #3b3e41; border-radius: 16px; background: #151718; }
.verdict small, .verdict strong, .verdict span { display: block; }
.verdict small { color: #8f969a; font-size: 10px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.verdict strong { margin: 6px 0; font-size: 25px; letter-spacing: -.035em; }
.verdict span { color: #b0b5b8; font-size: 12px; line-height: 1.55; }
.verdict[data-tone="pass"] strong { color: #6edcaf; }
.verdict[data-tone="fail"] strong { color: #ff9a92; }
.verdict[data-tone="wait"] strong { color: #f3ca76; }

.boundary { margin-top: 16px; padding: 18px 20px; border: 1px solid #cdeaf3; border-radius: 18px; background: var(--accent-soft); color: #236273; font-size: 13px; line-height: 1.65; }
.boundary strong { color: #0b556b; }

.code-card { overflow: hidden; border: 1px solid var(--dark); border-radius: 22px; background: #15181d; color: #dfe5ec; box-shadow: var(--shadow); }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid #2b3038; color: #99a3b2; font-size: 12px; }
.code-head button { border: 0; background: transparent; color: #b9c2cf; font-size: 12px; cursor: pointer; }
pre { margin: 0; padding: 22px; overflow-x: auto; font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.inline-code { padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-soft); font-size: .88em; }
.command-list { counter-reset: command; }
.command-list span { display: block; }
.command-list span::before { display: inline-block; width: 28px; color: #687386; counter-increment: command; content: counter(command) "."; }

.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 780px); gap: 48px; align-items: start; }
.doc-nav { position: sticky; top: 22px; display: grid; gap: 4px; }
.doc-nav a { padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 13px; text-decoration: none; }
.doc-nav a:hover { background: white; color: var(--ink); }
.doc-content section { padding: 38px 0; border-top: 1px solid var(--line); }
.doc-content section:first-child { padding-top: 0; border-top: 0; }
.doc-content p, .doc-content li { color: #4f5356; line-height: 1.75; }
.doc-content ul, .doc-content ol { padding-left: 22px; }
.status-note { padding: 18px 20px; border: 1px solid var(--line); border-radius: 17px; background: white; color: var(--muted); line-height: 1.65; }
.status-note strong { color: var(--ink); }
.flow-list { display: grid; gap: 8px; padding: 0 !important; list-style: none; }
.flow-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.flow-list b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: #087da4; font-size: 11px; }
.flow-list strong, .flow-list span { display: block; }
.flow-list span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; font-size: 13px; }
.data-table th, .data-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font-weight: 700; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 74px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer a { margin-left: 12px; }

@media (max-width: 860px) {
  .site-header { align-items: flex-start; gap: 18px; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; }
  .path-grid, .sandbox-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 0; }
  .doc-layout { grid-template-columns: 1fr; gap: 26px; }
  .doc-nav { position: static; display: flex; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .site-shell { width: min(100% - 22px, 1180px); padding-top: 12px; }
  .site-header { margin-bottom: 38px; }
  .brand-name, .tag { display: none; }
  .site-nav a { padding: 8px 9px; font-size: 12px; }
  h1 { font-size: 43px; }
  .panel { padding: 20px; border-radius: 20px; }
  .timeline-detail-panel dl > div { grid-template-columns: 1fr; gap: 3px; }
  .hero-actions, .site-footer { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .site-footer a { margin: 0 12px 0 0; }
  .data-table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
