:root {
  --bg: #fbfbfd;
  --tile: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --blue: #0066cc;
  --blue-bright: #2997ff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }

.bar { position: sticky; top: 0; z-index: 10; background: rgba(251,251,253,.85); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.bar .in { max-width: 1024px; margin: 0 auto; padding: 0 22px; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; min-height: 44px; }
.logo img { width: 26px; height: 26px; }
.bar nav { display: flex; gap: 22px; }
.bar nav a { white-space: nowrap; color: var(--ink); opacity: .8; font-size: 13px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bar nav a[aria-current="page"] { opacity: 1; font-weight: 600; }

.doc { max-width: 760px; margin: 0 auto; padding: 64px 22px 40px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 12px; }
.doc .meta { color: var(--ink-2); margin: 0 0 28px; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; margin: 0 0 40px; }
.doc .summary h2 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.02em; }
.summary ul { margin: 0; padding-left: 1.1rem; }
.summary li { margin: .45rem 0; }
.toc { margin: 0 0 40px; padding: 0; list-style: none; columns: 2; column-gap: 28px; font-size: 15px; }
.toc li { break-inside: avoid; margin: 0 0 6px; }
.doc h2 { font-size: 26px; letter-spacing: -0.025em; line-height: 1.2; margin: 48px 0 12px; scroll-margin-top: 70px; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.2rem; }
.doc li { margin: .4rem 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--tile); font-weight: 600; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.callout { background: var(--tile); border-radius: 14px; padding: 16px 20px; margin: 16px 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin: 0 0 18px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 600; }

footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--tile); color: var(--ink-2); font-size: 12px; }
footer .in { max-width: 1024px; margin: 0 auto; padding: 18px 22px calc(26px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--ink); text-decoration: none; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { min-height: 32px; display: inline-flex; align-items: center; }

@media (max-width: 600px) {
  .bar nav { gap: 14px; }
  .logo .name { display: none; }
  .doc thead { display: none; }
  .doc tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .doc tbody td { display: block; border: 0; padding: 3px 0; }
  .doc tbody td:first-child { font-weight: 600; }
  .doc { padding-top: 40px; }
  .toc { columns: 1; }
  .doc h2 { font-size: 23px; }
}
@media print {
  .bar, footer, .toc { display: none; }
  body { background: #fff; }
}
