
:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #1f2937;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.75; }
a { color: #075985; text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: #0c4a6e; }
.site-header { position: sticky; top: 0; z-index: 2; height: 3.5rem; padding: .65rem max(1.25rem, calc((100vw - 88rem) / 2)); border-bottom: 1px solid #dbe3ea; background: #fff; }
.site-header a { color: #0f172a; font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.site-layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 2.5rem; max-width: 88rem; margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }
.sidebar { align-self: start; position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow-y: auto; padding-right: .5rem; }
.nav-group + .nav-group { margin-top: 1.4rem; }
.nav-group h2 { margin: 0 0 .35rem; color: #64748b; font-size: .8rem; letter-spacing: .04em; }
.nav-group ul { margin: 0; padding: 0; list-style: none; }
.nav-group a { display: block; padding: .25rem .55rem; border-radius: .3rem; color: #334155; font-size: .91rem; text-decoration: none; }
.nav-group a:hover { background: #f1f5f9; }
.nav-group a[aria-current="page"] { color: #0c4a6e; background: #e0f2fe; font-weight: 650; }
main { min-width: 0; max-width: 68rem; }
.document-content { overflow-wrap: anywhere; }
.document-content h1, .document-content h2, .document-content h3, .document-content h4 { position: relative; margin: 1.9em 0 .55em; line-height: 1.35; scroll-margin-top: 5rem; }
.document-content h1 { margin-top: 0; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.document-content h2 { padding-bottom: .3rem; border-bottom: 1px solid #e2e8f0; font-size: 1.55rem; }
.document-content h3 { font-size: 1.22rem; }
.document-content p, .document-content ul, .document-content ol { margin: .8rem 0; }
.heading-anchor { position: absolute; margin-left: .45rem; color: #94a3b8; font-size: .72em; opacity: 0; text-decoration: none; }
.document-content h1:hover .heading-anchor, .document-content h2:hover .heading-anchor, .document-content h3:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }
.document-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.document-content th, .document-content td { padding: .45rem .7rem; border: 1px solid #cbd5e1; text-align: left; vertical-align: top; }
.document-content th { background: #f1f5f9; }
.document-content pre { overflow-x: auto; padding: 1rem; border-radius: .45rem; background: #f1f5f9; line-height: 1.55; }
.document-content code { padding: .12em .32em; border-radius: .25rem; background: #f1f5f9; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.document-content pre code { padding: 0; background: transparent; font-size: .88rem; }
.document-content blockquote { margin-left: 0; padding-left: 1rem; border-left: 3px solid #cbd5e1; color: #475569; }
@media (max-width: 50rem) {
  .site-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-top: 1rem; }
  .sidebar { position: static; max-height: none; padding: .8rem; border: 1px solid #e2e8f0; border-radius: .5rem; background: #f8fafc; }
  .sidebar nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .8rem; }
  .nav-group + .nav-group { margin-top: 0; }
}
