:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --text: #25302b;
  --muted: #5d6b63;
  --line: #e1e5de;
  --accent: #2f7a5a;
  --accent-soft: #e4f1ea;
  --red-bg: #fdecec;
  --red-line: #e8a9a9;
  --amber-bg: #fff4dc;
  --amber-line: #e6c26b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161b18;
    --surface: #1f2622;
    --text: #e6ece8;
    --muted: #9fb0a6;
    --line: #34403a;
    --accent: #6fcaa0;
    --accent-soft: #223a2f;
    --red-bg: #3a2222;
    --red-line: #7a4343;
    --amber-bg: #3a3220;
    --amber-line: #7a6a38;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.tagline { color: var(--muted); font-size: 0.85rem; }
main { padding-top: 24px; padding-bottom: 40px; }
h1 { font-size: 1.6rem; line-height: 1.4; margin: 0.4em 0; }
h2 { font-size: 1.15rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.05rem; margin: 0 0 0.2em; }
.kana { margin-left: 8px; font-size: 0.8em; font-weight: 400; color: var(--muted); }
.meta { margin-left: 8px; font-size: 0.8rem; color: var(--muted); }
.lead { color: var(--muted); margin-top: 0; }
.crumbs { font-size: 0.85rem; color: var(--muted); }
.hero { padding: 8px 0 8px; }
.hero h1 { font-size: 1.4rem; }
.section-title { margin-top: 2em; }

.search { position: relative; margin: 14px 0 8px; }
.search input {
  width: 100%; padding: 12px 14px; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text);
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.results {
  list-style: none; margin: 4px 0 0; padding: 4px; position: absolute; left: 0; right: 0; z-index: 5;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.results li a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--text); }
.results li a:hover, .results li a:focus { background: var(--accent-soft); }
.results .empty { padding: 8px 10px; color: var(--muted); }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 14px; }
.card h2 { margin-top: 0.8em; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  display: inline-block; padding: 4px 12px; border-radius: 999px; text-decoration: none;
  background: var(--accent-soft); color: var(--accent); font-size: 0.95rem;
}
.point-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.point-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.point-list a { text-decoration: none; }
.point-list .meta { display: block; margin: 0; }

.point-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.point-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.point-item p { margin: 0.3em 0; }

.notice { border-radius: 12px; padding: 4px 16px 12px; margin: 16px 0; }
.notice h2 { margin-top: 0.8em; font-size: 1rem; }
.notice ul { margin: 0; padding-left: 1.2em; }
.notice.red { background: var(--red-bg); border: 1px solid var(--red-line); }
.notice.amber { background: var(--amber-bg); border: 1px solid var(--amber-line); }
.caution { color: var(--muted); font-size: 0.92rem; }
.note, .evidence { color: var(--muted); font-size: 0.88rem; }
.steps { padding-left: 1.4em; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.85rem; padding: 16px 0 28px; }
.site-footer p { margin: 0.4em 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 480px) {
  h1 { font-size: 1.35rem; }
}

/* 位置図 */
:root {
  --fig-skin: #f6e6d8;
  --fig-line: #a08672;
  --fig-hair: #5b4a40;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fig-skin: #4b4039;
    --fig-line: #b59d8c;
    --fig-hair: #2c241f;
  }
}
.fig { margin: 14px 0; }
.fig svg { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.fig figcaption { color: var(--muted); font-size: 0.85rem; text-align: center; margin-top: 6px; }
.fig .b { fill: var(--fig-skin); stroke: var(--fig-line); stroke-width: 1.5; }
.fig .h { fill: var(--fig-hair); stroke: var(--fig-line); stroke-width: 1.5; }
.fig .d { fill: none; stroke: var(--fig-line); stroke-width: 1; opacity: 0.8; }
.fig .fl { fill: var(--fig-line); }
.fig .g { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; }
.fig .ld { stroke: var(--muted); stroke-width: 1; }
.fig .rg { fill: none; stroke: #d9473f; stroke-width: 1.5; opacity: 0.55; }
.fig .dt { fill: #d9473f; stroke: #fff; stroke-width: 1.5; }
.fig text { font-family: inherit; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.fig .nt { font-size: 11px; fill: var(--muted); }
.fig .lb { font-size: 13px; font-weight: 700; fill: var(--text); }
