:root {
  --bg: #FBFAF6; --card: #FFFFFF; --ink: #1F2420; --muted: #66706A; --line: #E4E2DA;
  --green: #2F6B45; --green-deep: #1C3D29; --sand: #F1ECE0;
  --blue: #2D5F8A; --blue-bg: #E6EEF5; --amber: #9A6A1C; --amber-bg: #F6EEDF; --green-bg: #E7F0E9; --red: #A8442C; --red-bg: #F7E7E2;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,30,20,.05), 0 6px 20px rgba(20,30,20,.06);
  --fs-h1: clamp(1.7rem, 1.1rem + 2.6vw, 3rem); --fs-h2: clamp(1.25rem, 1rem + 1vw, 1.6rem);
}
body { background: var(--bg); font-size: 16px; line-height: 1.85; }
.wrap { max-width: 1160px; padding: 0 clamp(16px, 4vw, 32px); }
main.wrap { padding-bottom: 40px; }

header.wrap { position: sticky; top: 0; z-index: 50; max-width: none; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar { max-width: 1160px; margin: 0 auto; border-bottom: 0; padding: 10px 0; gap: 4px 20px; }
.logo { font-size: 1.3rem; }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { margin: 0; padding: 6px 12px; border-radius: 999px; font-size: .84rem; color: var(--ink); }
.topbar nav a:hover { background: var(--sand); }
.topbar nav a.on { background: var(--green); color: #fff; border: 0; }
@media (max-width: 760px) { .topbar nav { width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; } .topbar nav::-webkit-scrollbar { display: none; } .topbar nav a { flex: none; background: var(--card); border: 1px solid var(--line); } }

.hero { position: relative; margin: 20px 0 0; border-radius: var(--radius); overflow: hidden; }
.hero figure.ph { margin: 0; }
.hero figure.ph img { aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 760px) { .hero figure.ph img { aspect-ratio: 4 / 5; } }
.hero figure.ph figcaption { position: absolute; right: 12px; bottom: 8px; z-index: 2; color: rgba(255,255,255,.85); font-size: .66rem; padding: 0; }
.hero figure.ph figcaption b, .hero figure.ph figcaption a { color: inherit; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(10,20,12,.72) 100%); pointer-events: none; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: block; padding: clamp(18px, 4vw, 44px); color: #fff; }
.hero-text h1 { font-size: var(--fs-h1); line-height: 1.35; margin: 0 0 10px; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero-text p { color: rgba(255,255,255,.9); max-width: 34em; font-size: .92rem; margin: 0 0 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-cta a { background: rgba(255,255,255,.95); color: var(--green-deep); text-decoration: none; font-weight: 700; font-size: .88rem; padding: 9px 16px; border-radius: 999px; }
.hero-cta a.pri { background: var(--green); color: #fff; }

main figure.ph img { width: 100%; max-height: min(68vh, 540px); object-fit: cover; border-radius: var(--radius); }
.hero figure.ph img { max-height: none; border-radius: 0; }

.section-title { font-size: var(--fs-h2); margin: 56px 0 18px; }
.section-title::after { background: var(--line); }

.hub { background: none; border: 0; gap: 12px; }
.hub-t { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; transition: transform .15s; }
.hub-t:hover { transform: translateY(-2px); background: var(--card); }

.ev-list { border-top: 0; display: grid; gap: 10px; }
.ev { background: var(--card); border: 1px solid var(--line) !important; border-radius: var(--radius); padding: 14px 18px !important; box-shadow: var(--shadow); }
.ev .d { color: var(--green); }
.ev .tag { border-radius: 999px; border: 0; background: var(--green-bg); color: var(--green); padding: 2px 10px; }
@media (min-width: 900px) { .ev-list.two { grid-template-columns: 1fr 1fr; } }

.months { border: 0; gap: 6px; background: none; }
.months a { border: 1px solid var(--line) !important; border-radius: 12px; background: var(--card); }
.months a.now { background: var(--green); border-color: var(--green) !important; }

.pgrid { gap: 18px; }
.pcard, .cmp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding-bottom: 14px; transition: transform .15s; }
.pcard:hover, .cmp:hover { transform: translateY(-2px); }
.pcard > :not(.photo):not(.dummy), .cmp > :not(.photo) { margin-left: 16px; margin-right: 16px; }
.pcard .photo img, .cmp img { aspect-ratio: 3 / 2; object-fit: cover; }

.c-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .c-wrap { grid-template-columns: 1fr; } }
.c-grp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.c-ph { position: relative; } .c-ph img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
@media (max-width: 900px) { .c-ph img { aspect-ratio: 5 / 2; } }
.c-ph span { position: absolute; left: 12px; bottom: 10px; background: var(--c); color: #fff; font: 700 .78rem var(--sans); padding: 4px 12px; border-radius: 999px; letter-spacing: .06em; }
.c-grp ul { list-style: none; margin: 0; padding: 4px 16px 8px; }
.c-grp li a { display: grid; grid-template-columns: 40px 1fr 14px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.c-grp li:last-child a { border: 0; }
.c-grp li a::after { content: "›"; color: var(--c); font-weight: 700; font-size: 1.2rem; }
.c-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--bg2); display: flex; align-items: center; justify-content: center; }
.c-ic svg { width: 21px; height: 21px; stroke: var(--c); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.c-grp b { display: block; font-family: var(--serif); font-size: .98rem; line-height: 1.45; }
.c-grp em { font-style: normal; font-size: .76rem; color: var(--muted); line-height: 1.5; display: block; }

.promise { border-radius: var(--radius); }
.footer { margin-top: 60px; }

.cgroups h2 .cno { display: inline-block; min-width: 1.6em; margin-right: 6px; color: var(--green); font-size: .8em; }


table.t-scroll th, table.t-scroll td { white-space: nowrap; }
table.t-cards td.t-title { min-width: 8.5em; }

@media (max-width: 640px) {
  .a-body > *, .article, .page { min-width: 0; max-width: 100%; }
  .table-wrap { max-width: 100%; min-width: 0; contain: inline-size; }
  .table-wrap:has(> table.t-scroll) { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .table-wrap:has(> table.t-scroll)::after { content: "→ 横にスクロールできます"; display: block; text-align: right; font-size: .72rem; color: var(--muted); padding: 4px 0 0; }
  table.t-scroll { width: max-content; min-width: 100%; }
  table.t-scroll th, table.t-scroll td { white-space: nowrap; }
  table.t-scroll th:first-child, table.t-scroll td:first-child { position: sticky; left: 0; background: var(--bg); box-shadow: 4px 0 6px -4px rgba(0,0,0,.25); }
  table.t-scroll thead th:first-child { background: var(--ink); }
  table.t-scroll tbody tr:nth-child(even) td:first-child { background: color-mix(in srgb, var(--sand) 45%, var(--bg)); }

  table.t-cards, table.t-cards tbody, table.t-cards td { display: block; }
  table.t-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.t-cards tr, table.t-cards tbody tr:nth-child(even) { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 8px; margin: 0 0 10px; background: var(--card, var(--bg)); }
  table.t-cards td { padding: 3px 0 8px; border: 0; }
  table.t-cards td::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); line-height: 1.4; }
  table.t-cards td.t-title { order: -1; font-family: var(--serif); font-weight: 700; font-size: 1.02rem; border-bottom: 1px solid var(--line); padding: 0 0 8px; margin-bottom: 6px; }
  table.t-cards td.t-title::before, table.t-cards td:not([data-label])::before { display: none; }
  table.t-cards td:empty { display: none; }

  table.t-rows tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.t-rows tbody tr:nth-child(even) { background: transparent; }
  table.t-rows th, table.t-rows td { display: block; padding: 0; border: 0; white-space: normal !important; text-align: left; }
  table.t-rows th { font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); line-height: 1.4; }
}



table.t-span th,
table.t-span td { white-space: normal; }

@media (max-width: 640px) {
  .logo small,
  .issue,
  .feature-visual .slot-note,
  .feature-text .label,
  .card .label,
  .a-head .label,
  .hero figure.ph figcaption,
  .dummy::after,
  .months a small,
  .ev .d small,
  .ev .tag,
  .facts b,
  .from-video,
  .tcard .when,
  .gsrc,
  .toc b,
  .stat span,
  .intro .kicker,
  .pcard .when,
  table.t-cards td::before,
  table.t-rows th,
  .table-wrap:has(> table.t-scroll)::after { font-size: max(12px, .75rem); }

  .card p,
  .pcard p,
  .tcard p,
  .hub-t p,
  .cmp p,
  .ev p,
  .c-grp em,
  .clist li span,
  .toc,
  .request,
  .visit,
  .cr,
  .call p,
  .fig-route .seg,
  .fig-route .br small,
  .minimap .leaflet-popup-content { font-size: max(14px, .875rem); }

  table.t-cards td { min-width: 0; white-space: normal; }
  table.t-cards td.t-title { min-width: 0; }

  table.t-span { width: max(640px, 40rem); min-width: 100%; }
  table.t-span th, table.t-span td { white-space: normal; }
  table.t-span th:first-child, table.t-span td:first-child { position: static; box-shadow: none; }
  table.t-span tbody td:first-child, table.t-span tbody tr:nth-child(even) td:first-child { background: transparent; }

  .chart:has(> svg[aria-label^="野辺山の月別気温"]) { --temp-chart-font-size: max(14px, .875rem); overflow-x: auto; scrollbar-width: thin; }
  .chart > svg[aria-label^="野辺山の月別気温"] { min-width: 640px; }

  .fig-season { overflow-x: auto; scrollbar-width: thin; }
  .fig-season svg { min-width: max(780px, 48.75rem); }

  .mapwrap .side .it { font-size: max(14px, .875rem); }
  .mapwrap .side .it small { font-size: max(12px, .75rem); }
  .mapwrap .side .it a { display: inline-block; max-width: 100%; min-height: 32px; padding: 5px 0; font-size: max(14px, .875rem); line-height: 1.6; white-space: normal; overflow-wrap: anywhere; vertical-align: middle; }
}

.maplink { margin: -8px 0 14px; }
.maplink a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card, var(--bg)); color: var(--green); font-weight: 700; font-size: .86rem; text-decoration: none; }
.maplink a::before { content: ""; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; background: var(--green); transform: rotate(-45deg); }
.maplink a:hover { background: var(--green-bg, var(--sand)); }

.rks { display:flex; flex-wrap:wrap; gap:4px; margin:4px 0 6px; }
.rk { font-size:.72rem; line-height:1.4; padding:2px 8px; border-radius:8px; border:1px solid var(--line); color:var(--ink); background:var(--card); }
.rk-ng { border-style:dashed; color:var(--muted); }
.rklist q { font-size:.85em; color:var(--muted); }
.rklist .rk-ng b::after { content:"（注意）"; font-weight:normal; color:var(--muted); }

.mx-ex { display:inline-block; font-size:.72rem; padding:1px 6px; margin-right:6px; border:1px dashed var(--muted); border-radius:6px; color:var(--muted); vertical-align:1px; }

.kihon-more { margin: 10px 0 6px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; }
.kihon-more > summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--green); }
.kihon-more[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.kihon-more h3 { font-size: .95rem; margin: 14px 0 6px; }
.dmap { height: 260px; }

.tgrid-spots { gap: 12px 14px; border-top: 0; margin-bottom: 8px; }
.tgrid-spots .tcard { grid-template-columns: 76px 1fr; gap: 0 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; height: 100%; box-sizing: border-box; transition: transform .15s; }
.tgrid-spots .tcard:hover { transform: translateY(-2px); }
.tgrid-spots .tcard .ic { grid-row: span 3; width: 76px; height: 76px; border-radius: 10px; background: var(--green-bg, #EEF3EC); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tgrid-spots .tcard .ic svg { width: 34px; }
.tgrid-spots .tcard .ic.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tgrid-spots .tcard p.lead2 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tgrid-spots .tcw { height: 100%; }
.tgrid-spots .tcw .tcard { padding-right: 58px; }
.tgrid-spots .tc-chk { top: 10px; right: 8px; }
@media (max-width: 560px) { .tgrid-spots .tcard { grid-template-columns: 64px 1fr; } .tgrid-spots .tcard .ic { width: 64px; height: 64px; } }
.cmpt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .cmpt { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.cmpt .cmp { padding-bottom: 12px; }
.cmpt .cmp h3 { font-size: 1.02rem; margin-top: 4px; margin-bottom: 2px; }
.cmpt .cmp p { font-size: .8rem; color: var(--muted); margin-top: 0; }
.csteps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 14px 0; }
.csteps li { display: flex; align-items: center; gap: 8px; background: var(--green-bg); border-radius: 10px; padding: 10px; font-size: .82rem; line-height: 1.35; color: var(--green-deep); }
.csteps b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .9rem; }
@media (max-width: 480px) { .csteps li { flex-direction: column; text-align: center; padding: 8px 4px; font-size: .76rem; gap: 4px; } }
@media (max-width: 480px) { .hero-cta { gap: 6px; margin-bottom: 40px; } .hero-cta a { font-size: .8rem; padding: 8px 12px; } }

.reco { margin: 36px 0 28px; padding: 20px; background: var(--green-bg); border-radius: var(--radius); }
.reco h2.reco-h { margin: 0 0 12px; padding: 0; border: 0; font-size: 1.15rem; }
.reco-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.reco-c { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.reco-c:hover { border-color: var(--green); }
.reco-c[hidden], .hub[hidden], .hub-more[hidden] { display: none; }
.reco-c b { display: block; color: var(--green-deep); line-height: 1.5; }
.reco-c span { display: block; margin-top: 4px; font-size: .85rem; color: var(--muted); line-height: 1.6; }
.reco-mid { margin: 24px 0; padding: 10px 14px; border-left: 4px solid var(--green); background: var(--green-bg); border-radius: 0 8px 8px 0; font-size: .95rem; }
.reco-mid a { font-weight: 700; }
.hub-more { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.hub-more a { display: inline-block; margin: 0 12px 4px 0; }