:root {
  --green: #075d3d;
  --green-dark: #063f2b;
  --ink: #1d302a;
  --muted: #61716c;
  --line: #cedbd4;
  --paper: #fff;
  --canvas: #f4f6f4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif; font-size: 16px; line-height: 1.8; }
a { color: var(--green); }
.guideline-header { border-bottom: 1px solid var(--line); background: var(--green); color: #fff; }
.guideline-header-inner { width: min(920px, calc(100% - 32px)); min-height: 62px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.guideline-header a { color: inherit; font-size: .82rem; font-weight: 700; text-decoration: none; }
.guideline-header nav { display: flex; align-items: center; gap: 8px; }
.guideline-header nav a { padding: 6px 10px; border: 1px solid rgba(255,255,255,.35); }
.guideline-header .header-entry { background: #fff; color: var(--green); }
main { width: min(920px, calc(100% - 32px)); margin: 34px auto 64px; padding: 44px 56px 50px; border: 1px solid var(--line); background: var(--paper); }
.document-title { padding-bottom: 28px; border-bottom: 3px solid var(--green); }
.document-title p { margin: 0 0 12px; color: var(--muted); font-size: .8rem; font-weight: 700; line-height: 1.6; }
.document-title h1 { margin: 0; color: var(--green-dark); font-size: clamp(1.7rem, 4vw, 2.35rem); line-height: 1.45; }
.document-title span { display: block; margin-top: 10px; color: var(--muted); font-size: .72rem; }
section { padding: 30px 0; border-bottom: 1px solid var(--line); }
section h2 { margin: 0 0 15px; color: var(--green-dark); font-size: 1.14rem; }
section p { margin: 0; }
section ul, section ol { margin: 0; padding-left: 1.45em; }
section li + li { margin-top: 8px; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 10px 12px; }
.facts dt { color: var(--muted); font-size: .78rem; font-weight: 700; }
.facts dd { border-left: 1px solid var(--line); font-size: .9rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: #edf5f0; color: var(--green-dark); font-size: .8rem; }
tbody th { width: 175px; color: var(--green-dark); font-size: .88rem; }
.important-note { margin-top: 18px; padding: 15px 18px; border-left: 3px solid #bd7d18; background: #fff9e9; }
.important-note strong { color: #594314; }
.important-note p { margin-top: 3px; font-size: .85rem; }
.minor-note { margin-top: 14px; color: var(--muted); font-size: .78rem; }
address { font-style: normal; }
.document-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding-top: 30px; }
.document-actions a { font-size: .82rem; font-weight: 700; }
.document-actions .entry-button { padding: 11px 18px; background: var(--green); color: #fff; text-decoration: none; }
footer { padding: 26px 16px 40px; color: var(--muted); font-size: .72rem; text-align: center; }

@media (max-width: 640px) {
  body { font-size: 15px; }
  .guideline-header-inner { min-height: 58px; }
  .guideline-header-inner > a { max-width: 120px; line-height: 1.4; }
  .guideline-header nav a { padding: 5px 7px; font-size: .7rem; }
  main { width: 100%; margin: 0; padding: 30px 18px 40px; border: 0; }
  .facts div { grid-template-columns: 100px 1fr; }
  .facts dt, .facts dd { padding: 9px 8px; }
  th, td { padding: 10px 9px; }
  tbody th { width: 112px; }
  .document-actions { align-items: stretch; flex-direction: column; text-align: center; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .guideline-header, .document-actions, footer { display: none; }
  main { width: 100%; margin: 0; padding: 0; border: 0; }
  section { break-inside: avoid; }
}
