/* かずさポケット 公開サイト 基盤CSS
   ─────────────────────────────────────────────
   色の使い分け
     青緑(--blue) … UI全般。リンク・ボタン・フォーム・選択状態。
     深緑(--green)… 観光・自然のコンテンツ。コース・特産品・レジャー。
     赤(--red)    … 医療・緊急のみ。ほかの用途で使わない。
   画面幅は 900px を境に PC / SP の2通りだけ。中間段は足さず、
   auto-fit と clamp() で連続的に伸ばす。
   命名: 共通部品はフラット短名(.btn .card .tag .sec)、
   ページ固有は短い接頭辞(.dh- .pl- .ev- .of- .mc- .vg-)、状態は .is-*。
   セレクタはブロック直下1段まで。深い子孫セレクタは書かない。 */
:root {
  --bg: #fbfefc;
  --paper: #fff;
  --surface: #f6faf8;
  --surface-accent: #eaf6f2;
  --surface-accent-strong: #d9eee7;
  --sand-50: #f8f4f0;
  --ink: #2d403a;
  --ink-2: #526862;
  --ink-3: #667872;
  --line: #d8ebe5;
  --line-2: #badfd6;
  --control-border: #c8dfd8;
  --blue: #087762;
  --blue-d: #075f50;
  --blue-50: #edf9f5;
  --blue-100: #cfe9e2;
  --green: #2b806c;
  --green-d: #1f6557;
  --green-50: #effaf6;
  --green-100: #d2ede5;
  --accent: #35b8a1;
  /* Findworkの主要CTAと同じ、明るいミントから青緑へ抜ける配色。 */
  --action-start: #69d4c1;
  --action-mid: #45bea8;
  --action-end: #24a68e;
  --action-hover-start: #72dbc8;
  --action-hover-mid: #3fb9a2;
  --action-hover-end: #219b84;
  --action-ink: #fff;
  --control-active-bg: #c8eee5;
  --control-active-border: #9bd9ca;
  --control-active-ink: #28665a;
  --control-active-start: #eefbf8;
  --control-active-mid: #c6f0e7;
  --control-active-end: #9fdfd0;
  --rose: #d86482;
  --rose-light: #ef9aac;
  --rose-50: #fff4f7;
  --rose-100: #f5d5de;
  --red: #d92d20;
  --red-d: #b42318;
  --weather-cool: #286b9c;
  --red-50: #fef3f2;
  --red-100: #fee4e2;
  --amber-50: #fffaeb;
  --amber-100: #fef0c7;
  --amber-700: #b54708;
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 5rem;
  --r-s: .5rem;
  --r-m: .8rem;
  --r-l: 1.2rem;
  --r-p: 999px;
  --sh-1: 0 1px 0 rgb(29 91 78 / 5%);
  --sh-2: 0 12px 30px rgb(29 91 78 / 9%);
  --sh-3: 0 28px 70px rgb(29 91 78 / 15%);
  --fs-hero: clamp(1.9rem, 4vw, 3rem);
  --fs-1: clamp(1.7rem, 3.2vw, 2.4rem);
  --fs-2: clamp(1.35rem, 2.4vw, 1.8rem);
  --fs-3: 1.1rem;
  --fs-4: .95rem;
  --fs-s: .82rem;
  --fs-xs: .72rem;
  --t-fast: 150ms;
  --t-base: 250ms;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --z-head: 20;
  --z-menu: 30;
  --z-toast: 40;
  --z-skip: 100;
  --wrap: min(1180px, calc(100% - 2rem));
  /* 固定ヘッダーの高さ。header_offset_controller が実寸を測って上書きする。 */
  --header-min-height: 4rem;
  --header-height: var(--header-min-height);
  --below-header: calc(var(--header-height) + .9rem);
  --page-top: calc(var(--header-height) + 3rem);
}
/* パンくずがある画面では本文はヘッダーを避けなくていい(二重に空く)。 */
main:has(> .breadcrumbs) { --page-top: .7rem; }
main:not(:has(> .breadcrumbs)):has(.breadcrumbs) { --page-top: var(--below-header); }
main:not(:has(> .breadcrumbs)) .breadcrumbs { margin-top: 0; }

/* 気象庁レーダーの共通凡例。トップ・天気・釣りで同じ意味と配色を使う。 */
.rain-legend { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem .8rem; align-items: center; padding: .55rem .7rem; color: var(--ink-2); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-m) var(--r-m); background: var(--paper); }
.rain-legend > strong { font-size: .62rem; white-space: nowrap; }
.rain-legend__items { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .25rem; }
.rain-legend__item { display: grid; grid-template-columns: .55rem 1fr; gap: 0 .25rem; min-width: 0; align-items: center; }
.rain-legend__item i { grid-row: 1 / 3; width: .55rem; height: 1.55rem; border: 1px solid rgb(0 0 0 / 9%); border-radius: .2rem; }
.rain-legend__item b { color: var(--ink); font-size: .54rem; line-height: 1.2; white-space: nowrap; }
.rain-legend__item small { overflow: hidden; color: var(--ink-3); font-size: .5rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.rain-legend__item--trace i { background: #f2f2ff; }
.rain-legend__item--light i { background: #a0d2ff; }
.rain-legend__item--steady i { background: #218cff; }
.rain-legend__item--rather i { background: #0041ff; }
.rain-legend__item--strong i { background: #fff500; }
.rain-legend__item--heavy i { background: #ff9900; }
.rain-legend__item--very-heavy i { background: #ff2800; }
.rain-legend__item--violent i { background: #b40068; }
.rain-legend--compact { gap: .35rem; padding: .4rem .5rem; border-inline: 0; border-radius: 0; }
.rain-legend--compact > strong { font-size: .52rem; }
.rain-legend--compact .rain-legend__items { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: .35rem; }
.rain-legend--compact .rain-legend__item i { height: 1.25rem; }

@media (max-width: 700px) {
  .rain-legend { grid-template-columns: 1fr; gap: .25rem; }
  .rain-legend__items { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: .4rem; }
}

/* ── base ── */
*, *::before, *::after { box-sizing: border-box; }
/* Turbo visits and history restoration must never animate the document. */
html { scroll-behavior: auto !important; -webkit-text-size-adjust: 100%; }
body { scroll-behavior: auto !important; }
#search, #results, #explore, #medical-title, #rain-radar, #forecast, #warnings, #river-monitoring, #kazusa-map { scroll-margin-top: var(--below-header); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 18%, rgb(53 184 161 / 5%), transparent 25rem),
    var(--bg);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif;
  font-feature-settings: "palt";
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
#main-content { position: relative; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  margin: 0;
  overflow-wrap: break-word;
  line-height: 1.3;
  line-break: strict;
  letter-spacing: -.01em;
  word-break: normal;
}

.u-nowrap { white-space: nowrap; }
h1 { font-size: var(--fs-1); }
h2 { font-size: var(--fs-2); }
h3 { font-size: var(--fs-3); }
p { margin: 0; }
p + p { margin-top: .8em; }
dl, dd, figure { margin: 0; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-text-fill-color: currentcolor; }
time, .num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::selection { background: var(--blue-100); }
.ui-icon { display: inline-block; flex: 0 0 auto; width: 1.15em; height: 1.15em; vertical-align: -.18em; }
.wrap { width: var(--wrap); margin-inline: auto; }
.seasonal-demand { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; padding: 1.1rem 1.25rem; margin-top: 1rem; border: 1px solid var(--green-100); border-radius: var(--r-l); background: var(--green-50); }
.seasonal-demand h2 { margin: .15rem 0 .25rem; font-size: var(--fs-3); }
.seasonal-demand div > p:last-child { color: var(--ink-2); font-size: var(--fs-s); }
.skip-link {
  position: fixed;
  z-index: var(--z-skip);
  top: .7rem;
  left: .7rem;
  padding: .7rem 1rem;
  color: #fff;
  border-radius: var(--r-s);
  background: var(--blue);
  font-weight: 700;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

/* ── form controls ── */
input:where([type="text"], [type="search"], [type="email"], [type="tel"], [type="url"], [type="number"], [type="password"]),
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .8rem;
  color: var(--ink);
  border: 1px solid var(--control-border);
  border-radius: var(--r-s);
  background: var(--paper);
  box-shadow: inset 0 1px 2px rgb(29 91 78 / 3%);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  -webkit-text-fill-color: currentcolor;
}
select {
  padding-right: 2rem;
  appearance: none;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23526862' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right .75rem center;
}
textarea { min-height: 6rem; resize: vertical; }
:where(input, select, textarea):focus-visible { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-100); }
:where(input, select, textarea)::placeholder { color: var(--ink-3); }
input:where([type="checkbox"], [type="radio"]) { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--blue); }
.field { display: grid; gap: .35rem; }
.field > span { color: var(--ink-2); font-size: var(--fs-xs); font-weight: 700; }
.check { display: inline-flex; gap: .5rem; align-items: center; min-height: 2.2rem; cursor: pointer; }
.check > span { margin: 0; color: var(--ink); font-size: var(--fs-s); font-weight: 500; }

/* ── buttons ── */
.btn {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: .55rem 1.1rem;
  color: var(--ink);
  border: 1px solid var(--control-border);
  border-radius: var(--r-p);
  background: linear-gradient(180deg, var(--paper), var(--surface));
  box-shadow: var(--sh-1);
  font-size: var(--fs-s);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
}
.btn:hover { color: var(--blue-d); border-color: var(--blue-100); background: var(--surface-accent); }
.btn:hover, .btn:focus-visible { transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn:active { transform: none; box-shadow: none; }
.btn--p,
.btn--g {
  min-height: 3rem;
  color: var(--action-ink);
  border-color: transparent;
  background: linear-gradient(135deg, var(--action-start), var(--action-end));
  box-shadow: 0 10px 22px rgb(36 166 142 / 17%);
  font-weight: 800;
}
.btn--p:hover,
.btn--g:hover {
  color: var(--action-ink);
  border-color: transparent;
  background: linear-gradient(135deg, var(--action-hover-start), var(--action-hover-end));
  box-shadow: 0 14px 30px rgb(8 113 95 / 28%);
  filter: saturate(1.08);
  transform: translateY(-2px);
}
.btn--r { color: var(--red-d); border-color: var(--red-100); background: var(--red-50); }
.btn--r:hover { color: #fff; border-color: var(--red); background: var(--red); }
.btn--sm { min-height: 2.15rem; padding: .35rem .8rem; font-size: var(--fs-xs); }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--ghost:hover { background: var(--blue-50); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: default; opacity: .5; transform: none; box-shadow: none; }
.link { color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em; transition: text-decoration-color var(--t-fast), color var(--t-fast); }
.link:hover, .link:focus-visible { color: var(--blue-d); text-decoration-color: currentcolor; }
.link--g { color: var(--green); }
.link--g:hover, .link--g:focus-visible { color: var(--green-d); }

/* ── surfaces ── */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--paper);
  box-shadow: var(--sh-1);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base);
}
.card:hover, .card:focus-within { border-color: var(--blue-100); box-shadow: var(--sh-2); transform: translateY(-2px); }
.card--g:hover, .card--g:focus-within { border-color: var(--green-100); }
.card--flat, .card--flat:hover { transform: none; box-shadow: none; }
.card img { transition: transform var(--t-base) var(--ease); }
.card:hover img { transform: scale(1.03); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .6rem;
  color: var(--blue-d);
  border-radius: var(--r-p);
  background: var(--blue-50);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.tag--g { color: var(--green-d); background: var(--green-50); }
.tag--r { color: var(--red-d); background: var(--red-50); }
.tag--n { color: var(--ink-2); background: #eef2f6; }
.tag--a { color: var(--amber-700); background: var(--amber-50); }
.tag--o { color: var(--ink-2); border: 1px solid var(--line); background: var(--paper); }
.eyebrow { margin: 0; color: var(--blue); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; }
.eyebrow--g { color: var(--green); }
.eyebrow--r { color: var(--red); }
.sec { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: var(--sp-5); }
.sec h1, .sec h2 { margin-top: .3rem; }
.sec p { max-width: 42rem; margin-top: .5rem; color: var(--ink-2); font-size: var(--fs-s); }
.sec > a { flex: 0 0 auto; }
.note {
  padding: .9rem 1.1rem;
  color: var(--amber-700);
  border: 1px solid var(--amber-100);
  border-radius: var(--r-m);
  background: var(--amber-50);
  font-size: var(--fs-xs);
  line-height: 1.7;
}
.note--r { color: var(--red-d); border-color: var(--red-100); background: var(--red-50); }
.note--b { color: var(--ink-2); border-color: var(--blue-100); background: var(--blue-50); }
.note strong { display: block; margin-bottom: .2rem; }
.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: minmax(6rem, 9rem) 1fr; gap: .5rem 1rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: var(--fs-s); }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.pager { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; margin-top: var(--sp-6); font-size: var(--fs-s); }
.pager .page-status { color: var(--ink-3); font-weight: 700; }

/* ── header ── */
.site-header {
  position: fixed;
  z-index: var(--z-head);
  inset: 0 0 auto;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-min-height);
  padding: .55rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgb(216 235 229 / 90%);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(18px) saturate(120%);
  transition: box-shadow var(--t-base);
}
.site-header.is-scrolled { box-shadow: var(--sh-2); }
.brand { display: flex; gap: .65rem; align-items: center; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; aspect-ratio: 1; color: #fff; border-radius: .7rem; background: linear-gradient(145deg, #69d4c1, #24a68e); box-shadow: 0 8px 18px rgb(13 146 123 / 20%); }
.brand-mark .ui-icon { width: 1.35rem; height: 1.35rem; }
.brand strong { display: block; color: var(--ink); font-size: .95rem; letter-spacing: -.01em; }
.brand small { display: block; margin-top: .05rem; color: var(--ink-3); font-size: .55rem; letter-spacing: .1em; }
.desktop-navigation { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem .65rem; align-items: center; min-width: 0; }
.desktop-navigation > .nav { flex: 0 0 auto; overflow: visible; }
.header-utilities { display: flex; gap: .55rem; align-items: center; flex: 0 0 auto; }
.header-weather { display: inline-flex; gap: .45rem; align-items: center; justify-content: center; flex: 0 0 6.5rem; width: 6.5rem; height: 3rem; padding: .32rem .45rem; color: var(--blue-d); border: 1px solid var(--blue-100); border-radius: var(--r-p); background: var(--blue-50); line-height: normal; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast); }
.header-weather:hover, .header-weather:focus-visible { color: var(--blue-d); border-color: var(--accent); background: #e3f6f0; transform: translateY(-1px); }
.weather-symbol { display: inline-block; width: 2.2rem; height: 2.2rem; vertical-align: middle; background-image: url("/assets/weather-characters-v2-5082c39a.webp"); background-size: 400% 300%; background-repeat: no-repeat; mix-blend-mode: multiply; }
.weather-symbol--sunny { background-position: 0 0; }
.weather-symbol--partlyCloudy { background-position: 33.333333% 0; }
.weather-symbol--cloudy { background-position: 66.666667% 0; }
.weather-symbol--rain { background-position: 100% 0; }
.weather-symbol--snow { background-position: 0 50%; }
.weather-symbol--thunderstorm { background-position: 33.333333% 50%; }
.weather-symbol--fog { background-position: 66.666667% 50%; }
.weather-symbol--windyRain { background-position: 100% 50%; }
.weather-symbol--sunny.weather-symbol--night { background-position: 0 100%; }
.weather-symbol--partlyCloudy.weather-symbol--night { background-position: 33.333333% 100%; }
.weather-symbol--cloudy.weather-symbol--night { background-position: 66.666667% 100%; }
.weather-symbol--windy { background-position: 100% 100%; }
.weather-symbol--unknown { background-image: none; color: var(--ink-3); text-align: center; line-height: 2.2rem; }
.header-weather__icon.weather-symbol { width: 1.75rem; height: 1.75rem; line-height: 1.75rem; }
.header-weather__copy { display: grid; justify-items: center; align-self: center; gap: 0; line-height: 1; white-space: nowrap; }
.header-weather__copy strong { font-size: .65rem; text-align: center; }
.header-weather__status { color: var(--ink-3); font-size: .65rem; max-width: 3rem; line-height: 1.25; text-align: center; }
.header-weather__temperatures { display: grid; align-self: center; transform: translateY(.2rem); gap: .18rem; justify-items: end; line-height: 1.15; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-weather__temperatures[hidden] { display: none; }
.header-weather__status[hidden] { display: none; }
.header-weather__high { color: var(--red-d); }
.header-weather__low { color: var(--weather-cool); }
.nav { display: flex; gap: .1rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: .45rem clamp(.35rem, .7vw, .65rem); color: var(--ink-2); border-radius: var(--r-s); font-size: .8rem; font-weight: 600; white-space: nowrap; transition: color var(--t-fast), background var(--t-fast); }
.nav a:hover, .nav a:focus-visible { color: var(--blue-d); background: var(--blue-50); }
.nav a[aria-current="page"] { color: var(--blue-d); background: var(--blue-50); }
.nav .urgent { color: var(--red); }
.nav .urgent:hover, .nav .urgent:focus-visible { color: var(--red-d); background: var(--red-50); }
.nav-more { position: relative; flex: 0 0 auto; }
.nav-more > summary { padding: .45rem .65rem; color: var(--ink-2); border-radius: var(--r-s); font-size: .8rem; font-weight: 700; white-space: nowrap; cursor: pointer; list-style: none; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { display: inline-block; margin-left: .35rem; content: "▾"; font-size: .62rem; transition: transform var(--t-fast); }
.nav-more[open] > summary::after { transform: rotate(180deg); }
.nav-more > summary:hover, .nav-more > summary:focus-visible, .nav-more[open] > summary { color: var(--blue-d); background: var(--blue-50); }
.nav-more__panel { position: absolute; z-index: var(--z-menu); top: calc(100% + .65rem); right: 0; width: 24rem; padding: .55rem; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); box-shadow: var(--sh-3); }
.nav-more__panel .nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; overflow: visible; }
.nav-more__panel .nav a { padding: .7rem .75rem; background: var(--bg); }
.account-actions { display: flex; gap: .35rem; align-items: center; }
.account-action { display: inline-flex; align-items: center; min-height: 2.15rem; padding: .35rem .8rem; border: 1px solid var(--line-2); border-radius: var(--r-p); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.account-action--secondary { color: var(--ink-2); border-color: var(--line-2); }
.account-action--secondary:hover { color: var(--blue-d); border-color: var(--blue); background: var(--blue-50); }
.account-action--primary { color: var(--action-ink); border-color: transparent; background: linear-gradient(135deg, var(--action-start), var(--action-end)); box-shadow: 0 7px 18px rgb(36 166 142 / 17%); }
.account-action--primary:hover { color: var(--action-ink); border-color: transparent; background: linear-gradient(135deg, var(--action-hover-start), var(--action-hover-end)); box-shadow: 0 10px 24px rgb(8 113 95 / 24%); }
.locale-switcher { display: flex; gap: .1rem; padding: .15rem; border: 1px solid var(--line); border-radius: var(--r-p); background: var(--surface); }
.locale-switcher a { padding: .25rem .45rem; color: var(--ink-3); border-radius: var(--r-p); font-size: .6rem; font-weight: 700; line-height: 1.4; white-space: nowrap; transition: color var(--t-fast), background var(--t-fast); }
.locale-switcher a:hover, .locale-switcher a:focus-visible { color: var(--blue-d); }
.locale-switcher a.active { color: var(--blue-d); background: #fff; box-shadow: var(--sh-1); }
.mobile-menu { display: none; }
.mobile-menu__toggle { display: flex; gap: .4rem; align-items: center; min-height: 2.5rem; padding: .5rem .85rem; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-p); background: #fff; font-size: var(--fs-xs); font-weight: 700; cursor: pointer; }
.mobile-menu__toggle .ui-icon { width: 1rem; height: 1rem; }
.mobile-menu__toggle[aria-expanded="true"] { color: var(--blue); border-color: var(--blue); }
.mobile-menu__panel {
  position: fixed;
  z-index: var(--z-menu);
  top: calc(var(--header-height) + .5rem);
  right: .75rem;
  left: .75rem;
  display: grid;
  gap: 1rem;
  max-height: calc(100svh - var(--header-height) - 1.5rem);
  padding: 1rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--paper);
  box-shadow: var(--sh-3);
  animation: menu-in var(--t-base) var(--ease);
}
.mobile-menu__panel[hidden] { display: none; }
.mobile-menu__panel .nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: .3rem; }
.mobile-menu__panel .nav a { padding: .8rem .9rem; color: var(--ink-2); background: var(--bg); font-size: var(--fs-s); }
.mobile-menu__panel .nav a:hover, .mobile-menu__panel .nav a:focus-visible { color: var(--blue-d); background: var(--blue-50); }
.mobile-menu__panel .nav .urgent { background: var(--red-50); }
.mobile-menu__section { display: grid; gap: .4rem; }
.mobile-menu__section > strong { padding-inline: .2rem; color: var(--ink-3); font-size: .62rem; letter-spacing: .06em; }
.mobile-menu__panel .nav--guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-menu__panel .nav--support { display: flex; flex-wrap: wrap; padding-top: .65rem; border-top: 1px solid var(--line); }
.mobile-menu__panel .nav--support a { padding: .35rem .5rem; background: transparent; font-size: .65rem; }
.mobile-menu__panel .account-actions { justify-content: stretch; }
.mobile-menu__panel .account-action { flex: 1 1 auto; justify-content: center; min-height: 2.6rem; }
.mobile-menu__panel .account-action--secondary { color: var(--ink-2); border-color: var(--line-2); }
.mobile-menu__panel .locale-switcher { justify-self: start; border-color: var(--line); background: var(--bg); }
.mobile-menu__panel .locale-switcher a { color: var(--ink-3); }
.mobile-menu__panel .locale-switcher a.active { color: var(--blue-d); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

/* ── flash / breadcrumbs ── */
.flash {
  position: fixed;
  z-index: var(--z-toast);
  top: calc(var(--header-height) + .8rem);
  left: 50%;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: .75rem 1.2rem;
  color: var(--green-d);
  border: 1px solid var(--green-100);
  border-radius: var(--r-m);
  background: var(--green-50);
  box-shadow: var(--sh-3);
  font-size: var(--fs-s);
  font-weight: 700;
  transform: translateX(-50%);
  animation: menu-in var(--t-base) var(--ease);
}
.flash.alert { color: var(--red-d); border-color: var(--red-100); background: var(--red-50); }
.breadcrumbs { position: relative; z-index: 2; width: var(--wrap); margin: calc(var(--header-height) + .45rem) auto 0; font-size: .66rem; }
.breadcrumbs ol { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 1.75rem; padding: .1rem .25rem; margin: 0; overflow: hidden; border: 1px solid rgb(29 91 78 / 10%); border-radius: var(--r-p); background: rgb(255 255 255 / 78%); box-shadow: 0 4px 16px rgb(29 91 78 / 4%); list-style: none; backdrop-filter: blur(10px); }
.breadcrumbs li { display: flex; gap: .1rem; align-items: center; min-width: 0; }
.breadcrumbs li:first-child { flex: 0 0 auto; }
.breadcrumbs li:not(:first-child) { flex: 0 1 auto; overflow: hidden; }
.breadcrumbs li:last-child { flex: 1 1 auto; }
.breadcrumbs a, .breadcrumbs li > span:not(.breadcrumbs__separator) { display: inline-flex; align-items: center; min-height: 1.45rem; padding: .08rem .38rem; overflow: hidden; border-radius: var(--r-p); line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs a { color: var(--ink-2); font-weight: 600; transition: color var(--t-fast), background var(--t-fast); }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { color: var(--blue); background: var(--blue-50); }
.breadcrumbs li:last-child > span { color: var(--ink); font-weight: 700; }
.breadcrumbs__separator { display: inline-grid; place-items: center; width: .7rem; color: var(--ink-3); font-size: .72rem; }

/* ── footer ── */
.site-footer { margin-top: var(--sp-8); padding: var(--sp-7) 0 var(--sp-6); border-top: 1px solid var(--line); background: var(--paper); }
.site-footer > * { width: var(--wrap); margin-inline: auto; }
.site-footer__directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: 2rem 3rem; padding-bottom: var(--sp-6); margin-bottom: var(--sp-6); border-bottom: 1px solid var(--line); }
.site-footer__directory strong { display: block; margin-bottom: .6rem; color: var(--ink); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; }
.site-footer__directory ul { display: grid; gap: .1rem; padding: 0; margin: 0; list-style: none; }
.site-footer__directory a { display: inline-block; padding: .22rem 0; color: var(--ink-2); font-size: var(--fs-s); transition: color var(--t-fast); }
.site-footer__directory a:hover, .site-footer__directory a:focus-visible { color: var(--blue); }
.site-footer__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 2rem 3rem; }
.site-footer__meta strong { display: block; margin-bottom: .3rem; font-size: var(--fs-4); }
.site-footer p { max-width: 34rem; color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.75; }
.site-footer p a { color: var(--ink-2); text-decoration: underline; text-underline-offset: .15em; }
.site-footer__meta > div:last-child { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-content: start; align-items: center; font-size: var(--fs-xs); }
.site-footer__meta > div:last-child a { color: var(--ink-2); font-weight: 700; }
.site-footer__meta > div:last-child a:hover { color: var(--blue); }
.site-footer small { flex-basis: 100%; color: var(--ink-3); }

/* ── motion ── */
.reveal-ready [data-reveal-target="item"] { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal-ready [data-reveal-target="item"].is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 60ms; }
.reveal-delay-2 { transition-delay: 120ms; }
.reveal-delay-3 { transition-delay: 180ms; }
.reveal-delay-4 { transition-delay: 240ms; }
.reveal-delay-5 { transition-delay: 300ms; }

@media (min-width: 901px) and (max-width: 1200px) {
  .site-header { gap: .7rem; }
  .desktop-navigation { display: none; }
  .mobile-menu { display: block; }
  .header-utilities { margin-left: auto; }
}
@media (max-width: 900px) {
  .seasonal-demand { grid-template-columns: 1fr; }
  /* SP。ヘッダーはメニューボタン1段になり、段組みは1列になる。 */
  :root { --header-min-height: 3.5rem; --page-top: calc(var(--header-height) + 1.8rem); }
  .site-header { gap: .7rem; padding: .5rem 1rem; }
  .desktop-navigation { display: none; }
  .mobile-menu { display: block; }
  .header-utilities { margin-left: auto; }
  .header-weather { min-height: 2.4rem; padding: .25rem .45rem; }
  .brand { gap: .5rem; flex: 1 1 auto; min-width: 0; }
  .brand-mark { width: 2.1rem; flex: 0 0 auto; }
  .brand > span:last-child { min-width: 0; }
  .brand strong { font-size: .88rem; line-height: 1.2; }
  .brand small { display: none; }
  .sec { align-items: start; flex-direction: column; gap: .6rem; }
  .kv > div { grid-template-columns: 1fr; gap: .15rem; }
  /* 狭い画面では、ホームと直前・現在だけ残す(構造化データ側は全段そのまま)。 */
  .breadcrumbs li:not(:first-child):not(:nth-last-child(-n+2)) { display: none; }
  .site-footer { padding-top: var(--sp-6); }
}
@media (max-width: 420px) {
  .mobile-menu__toggle { width: 2.75rem; min-height: 2.75rem; padding: 0; justify-content: center; }
  .mobile-menu__toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 380px) {
  .site-header { gap: .4rem; padding-inline: .65rem; }
  .header-utilities { gap: .3rem; }
  .brand { gap: .35rem; }
  .brand-mark { width: 1.8rem; }
  .mobile-menu__toggle { padding-inline: .55rem; }
}
@media (max-width: 350px) {
  .brand strong { font-size: .78rem; }
  .brand-mark { width: 1.5rem; }
  .header-weather { gap: .2rem; padding-inline: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal-ready [data-reveal-target="item"] { opacity: 1; transform: none; }
}
