:root {
  --guide-ink: #10251d;
  --guide-pine: #0b3b2e;
  --guide-leaf: #177a55;
  --guide-amber: #e39a26;
  --guide-paper: #f2f1e8;
  --guide-soft: #e6e8da;
  --guide-rust: #c2452d;
}

* { box-sizing: border-box; }
html { background: var(--guide-paper); color: var(--guide-ink); }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
  overflow-x: hidden;
}
a { color: var(--guide-leaf); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--guide-rust); }
.guide-shell { min-height: 100vh; }
.guide-header { background: var(--guide-pine); color: var(--guide-paper); border-bottom: 4px solid var(--guide-amber); }
.guide-header-inner, .guide-main, .guide-footer-inner { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.guide-header-inner { padding: 22px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.guide-brand { color: var(--guide-paper); text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1.25; }
.guide-brand strong { font-family: Georgia, "Yu Mincho", serif; letter-spacing: .08em; font-size: 1.25rem; }
.guide-brand small { color: #f3ce86; font-size: .72rem; letter-spacing: .08em; margin-top: 4px; }
.guide-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; font-size: .83rem; }
.guide-nav a { color: #f3ce86; }
.guide-main { padding: 28px 0 72px; }
.guide-breadcrumb { font-size: .8rem; color: #5a6b63; margin: 0 0 34px; }
.guide-breadcrumb a { color: var(--guide-leaf); }
.guide-hero { border: 2px solid var(--guide-ink); background: #fffdf3; padding: clamp(24px, 5vw, 56px); box-shadow: 10px 10px 0 var(--guide-ink); margin-bottom: 42px; }
.guide-kicker { display: inline-block; color: var(--guide-leaf); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 15px; }
h1, h2, h3 { font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif; line-height: 1.3; }
h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin: 0 0 20px; letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.95rem); margin: 0 0 18px; }
h3 { font-size: 1.2rem; margin: 30px 0 12px; }
.guide-lead { font-size: 1.08rem; max-width: 760px; margin: 0; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #5a6b63; font-size: .8rem; margin-top: 24px; }
.guide-note, .guide-audience, .guide-safety { border-left: 5px solid var(--guide-amber); background: #fff7dc; padding: 17px 20px; margin: 26px 0; }
.guide-safety { border-left-color: var(--guide-rust); background: #fff1ec; }
.guide-audience { border-left-color: var(--guide-leaf); background: #eaf3e8; }
.guide-content { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 42px; }
.guide-article { min-width: 0; }
.guide-section { margin: 0 0 40px; }
.guide-section p:first-child { margin-top: 0; }
.guide-section ul, .guide-section ol { padding-left: 1.4em; }
.guide-section li + li { margin-top: 7px; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .88rem; line-height: 1.55; background: #fffdf3; margin: 20px 0 12px; }
.data-table th, .data-table td { border: 1px solid #aeb9a7; padding: 11px 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.data-table th { background: var(--guide-pine); color: var(--guide-paper); font-weight: 700; }
.data-table tr:nth-child(even) td { background: #f7f7ed; }
.evidence-table { font-size: .8rem; }
.table-note { color: #5a6b63; font-size: .8rem; }
.guide-sidebar { position: sticky; top: 18px; }
.side-box { border: 2px solid var(--guide-ink); background: #fffdf3; padding: 18px; margin-bottom: 18px; }
.side-box h2 { font-size: 1.05rem; margin-bottom: 10px; }
.side-box ul { margin: 0; padding-left: 1.1em; font-size: .84rem; line-height: 1.6; }
.side-box li + li { margin-top: 8px; }
.source-list { padding-left: 1.3em; font-size: .82rem; color: #40534a; }
.source-list li + li { margin-top: 13px; }
.source-list small { display: block; color: #66766d; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.related-card { border: 1px solid #aeb9a7; background: #fffdf3; padding: 15px; }
.related-card a { font-weight: 700; text-decoration: none; }
.related-card p { font-size: .82rem; margin: 7px 0 0; color: #5a6b63; line-height: 1.6; }
.hub-intro { max-width: 820px; }
.hub-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.hub-card { border: 2px solid var(--guide-ink); background: #fffdf3; padding: 20px; }
.hub-card .num { color: var(--guide-rust); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; letter-spacing: .12em; }
.hub-card h2 { font-size: 1.2rem; margin: 8px 0; }
.hub-card p { font-size: .87rem; margin: 0 0 12px; }
.guide-footer { background: var(--guide-pine); color: var(--guide-paper); padding: 28px 0; }
.guide-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; font-size: .82rem; }
.guide-footer a { color: #f3ce86; }
.guide-footer p { margin: 0; }
.print-sheet { border: 2px solid var(--guide-ink); background: #fffdf3; padding: 24px; }
.print-sheet h2 { border-bottom: 2px solid var(--guide-amber); padding-bottom: 8px; }
.print-lines { border-collapse: collapse; width: 100%; margin-top: 18px; }
.print-lines td { border-bottom: 1px solid #aeb9a7; padding: 12px 6px; vertical-align: top; }
.print-lines td:first-child { width: 30%; font-weight: 700; }

@media (max-width: 780px) {
  .guide-header-inner { align-items: flex-start; flex-direction: column; }
  .guide-nav { justify-content: flex-start; }
  .guide-content { grid-template-columns: 1fr; gap: 28px; }
  .guide-sidebar { position: static; }
  .hub-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .guide-header-inner, .guide-main, .guide-footer-inner { width: min(100% - 26px, 1040px); }
  .guide-main { padding-top: 20px; }
  .guide-hero { box-shadow: 6px 6px 0 var(--guide-ink); padding: 21px 18px; }
  .guide-lead { font-size: .98rem; }
  .data-table, .evidence-table { font-size: .75rem; }
  .data-table th, .data-table td { padding: 8px 7px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media print {
  .guide-header, .guide-sidebar, .guide-footer, .guide-breadcrumb { display: none; }
  .guide-main { width: 100%; padding: 0; }
  .guide-hero { box-shadow: none; }
}
