:root {
  --text: #1d2630;
  --muted: #65717f;
  --line: #d9e1ea;
  --soft: #f5f7fa;
  --paper: #ffffff;
  --accent: #b42318;
  --accent-2: #0f766e;
  --ink: #111827;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

body {
  margin: 0;
  background: var(--paper);
}

a {
  color: #0b5cab;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #083f75;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-inner,
.footer-inner,
.page {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.header-inner {
  padding: 18px 0 14px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  font-size: 0.94rem;
}

.global-nav a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.global-nav a:hover {
  border-bottom-color: var(--accent);
}

.page {
  padding: 34px 0 52px;
}

.hero,
.lead-block {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.75rem);
}

h2 {
  margin: 42px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1.45rem;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

p {
  margin: 0 0 1em;
}

.summary {
  max-width: 820px;
  margin-top: 16px;
  color: #334155;
  font-size: 1.03rem;
}

.notice {
  margin: 22px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: #fff7ed;
}

.visual-summary,
.icon-card-grid,
.area-map-cards,
.checklist-panel,
.pamphlet-grid {
  display: grid;
  gap: 14px;
  margin: 20px 0 30px;
}

.visual-summary,
.icon-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.visual-card,
.icon-card,
.source-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.visual-card {
  border-top: 4px solid var(--accent-2);
}

.icon-card::before,
.check-item::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #075985;
  font-weight: 800;
}

.icon-card[data-icon]::before {
  content: attr(data-icon);
}

.check-item::before {
  content: "✓";
  background: #dcfce7;
  color: #166534;
}

.timeline-visual,
.route-flow,
.traffic-flow,
.watch-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 18px 0 30px;
}

.flow-pill,
.route-stop {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.flow-pill strong,
.route-stop strong {
  display: block;
  color: var(--ink);
}

.route-map-lite {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0 30px;
  padding: 16px;
  border: 1px solid #c8e1dd;
  border-radius: 6px;
  background: #f8fffd;
}

.route-line {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 6px;
  background: #fff;
}

.route-line.a {
  border-left: 6px solid #ec4899;
}

.route-line.b {
  border-left: 6px solid #38bdf8;
}

.area-map-cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.area-card {
  padding: 16px;
  border: 1px dashed #9fb2c6;
  border-radius: 6px;
  background: #f8fafc;
}

.pamphlet-section {
  margin: 32px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.pamphlet-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.checklist-panel {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 16px;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  background: #f0fdf4;
}

.check-item {
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  background: #fff;
}

.official-source-box {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid #f3c08f;
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  background: #fff7ed;
}

.official-source-box ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.map-note {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 0.93rem;
}

.quick-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid #c8e1dd;
  border-radius: 6px;
  background: #f0fdfa;
}

.quick-item {
  padding: 10px 12px;
  border-left: 3px solid var(--accent-2);
  background: #fff;
}

.quick-item strong {
  display: block;
  color: var(--ink);
}

.guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.guide-tabs a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--text);
  text-decoration: none;
}

.guide-tabs a[aria-current="page"] {
  border-color: var(--accent);
  background: #fff7ed;
  color: var(--accent);
  font-weight: 700;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 20px 0 30px;
}

.timeline-step {
  position: relative;
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.timeline-step::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.mini-label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.82rem;
  font-weight: 700;
}

.compare-table,
.check-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 30px;
}

.compare-table th,
.compare-table td,
.check-table th,
.check-table td {
  padding: 11px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.compare-table th,
.check-table th {
  background: var(--soft);
  color: var(--ink);
}

.route-a {
  border-left: 5px solid #ec4899;
}

.route-b {
  border-left: 5px solid #38bdf8;
}

.flowchart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 18px 0 30px;
}

.flow-node {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.ok-ng {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 18px 0 30px;
}

.ok-box,
.ng-box {
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.ok-box {
  background: #f0fdf4;
}

.ng-box {
  background: #fff1f2;
}

.breadcrumb {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--muted);
}

.source-list {
  padding-left: 1.2em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 18px 0 28px;
}

.card {
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.card p {
  color: #435366;
  font-size: 0.96rem;
}

.tag-list,
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 14px 0 22px;
  list-style: none;
}

.tag-list li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: #39495a;
  font-size: 0.88rem;
}

.link-list a {
  display: inline-block;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  text-decoration: none;
}

.archive-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 30px;
  font-size: 0.96rem;
}

.archive-table th,
.archive-table td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.archive-table th {
  background: var(--soft);
}

.status {
  color: var(--accent-2);
  font-weight: 700;
}

.section-band {
  margin: 34px 0 0;
  padding: 24px 16px;
  background: var(--soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.footer-inner {
  padding: 24px 0 30px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.footer-nav a {
  color: #334155;
}

.form-shell {
  display: grid;
  gap: 12px;
  max-width: 680px;
  margin-top: 18px;
}

label {
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

textarea {
  min-height: 150px;
}

.button-link,
button {
  display: inline-block;
  width: fit-content;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 640px) {
  .header-inner,
  .footer-inner,
  .page {
    width: min(100% - 24px, var(--max));
  }

  .page {
    padding-top: 22px;
  }

  .global-nav {
    gap: 6px 10px;
  }

  .archive-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }
}
