:root {
  color-scheme: light;
  --brand: #7460ae;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --line: #d2d2d7;
  --link: #5e498f;
  --focus: #5e498f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.skip-link { position: fixed; left: 14px; top: -60px; z-index: 1000; padding: 10px 14px; background: #fff; color: #111; border-radius: 8px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; height: 92px; display: grid; place-items: center; background: var(--brand); border-bottom: 1px solid rgba(0,0,0,.08); }
.site-header img { display: block; width: min(520px, 72vw); height: 68px; object-fit: contain; }
.doc-switch { position: sticky; top: 92px; z-index: 40; display: flex; justify-content: center; gap: 34px; min-height: 54px; padding: 0 20px; background: rgba(251,251,253,.94); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(0,0,0,.08); }
.doc-switch a { position: relative; display: inline-flex; align-items: center; min-height: 54px; color: var(--secondary); font-size: 14px; font-weight: 650; text-decoration: none; }
.doc-switch a[aria-current="page"] { color: var(--text); }
.doc-switch a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand); }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 86px; }
.page-grid { display: grid; grid-template-columns: 230px minmax(0, 760px); justify-content: center; gap: 72px; align-items: start; }
.toc { position: sticky; top: 174px; max-height: calc(100vh - 200px); overflow: auto; padding-right: 10px; }
.toc-title { margin: 0 0 11px; color: var(--secondary); font-size: 12px; font-weight: 700; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a { display: block; padding: 7px 0 7px 12px; border-left: 2px solid transparent; color: var(--secondary); font-size: 12.5px; line-height: 1.5; text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--brand); font-weight: 650; }
.mobile-toc { display: none; margin: 0 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mobile-toc summary { padding: 13px 2px; cursor: pointer; font-weight: 700; }
.mobile-toc .toc { position: static; max-height: none; padding: 0 0 12px; overflow: visible; }
.document { min-width: 0; font-size: 16px; line-height: 1.86; overflow-wrap: anywhere; }
.document > :first-child { margin-top: 0; }
.document h1 { margin: 0 0 12px; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.14; letter-spacing: -.035em; }
.document .updated { margin: 0 0 34px; color: var(--secondary); font-size: 13px; }
.document h2 { scroll-margin-top: 176px; margin: 62px 0 18px; padding-top: 2px; font-size: 25px; line-height: 1.3; letter-spacing: -.02em; }
.document h3 { scroll-margin-top: 176px; margin: 38px 0 14px; font-size: 19px; }
.document p { margin: 0 0 22px; }
.document ul, .document ol { margin: 0 0 24px; padding-left: 1.45em; }
.document li { margin: 7px 0; padding-left: .15em; }
.document a { color: var(--link); text-underline-offset: 3px; }
.document strong { font-weight: 700; }
.document blockquote { margin: 28px 0; padding: 0 0 0 18px; border-left: 3px solid var(--brand); color: var(--secondary); }
.document code { padding: .13em .35em; border-radius: 5px; background: #f1f1f3; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.document pre { overflow: auto; margin: 28px 0; padding: 16px 18px; border-radius: 10px; background: #f1f1f3; }
.document pre code { padding: 0; background: transparent; }
.document table { width: 100%; margin: 28px 0; border-collapse: collapse; font-size: 14px; }
.document th, .document td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.document th { background: #f5f5f7; }
.markdown-status { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 11px; }
.site-footer { display: flex; justify-content: space-between; gap: 22px; width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 38px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 12px; }
.site-footer a { text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 820px) {
  .site-header { height: 76px; }
  .site-header img { height: 54px; width: min(440px, 78vw); }
  .doc-switch { top: 76px; min-height: 50px; justify-content: flex-start; overflow-x: auto; gap: 24px; }
  .doc-switch a { flex: 0 0 auto; min-height: 50px; }
  .page-shell { width: min(760px, calc(100% - 30px)); padding-top: 34px; }
  .page-grid { display: block; }
  .page-grid > aside { display: none; }
  .mobile-toc { display: block; }
  .document { font-size: 15px; line-height: 1.84; }
  .document h1 { font-size: 34px; }
  .document h2, .document h3 { scroll-margin-top: 142px; }
  .document h2 { margin-top: 50px; font-size: 23px; }
  .site-footer { align-items: flex-start; flex-direction: column; width: calc(100% - 30px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


