/* 地震ライブデスク — style.css
   静かに怖い業務メモ調。装飾最小限・ダーク基調（ライトモード対応あり）・スマホ最優先(375px基準)。 */

:root {
  --bg: #0b0e13;
  --bg-panel: #12161d;
  --bg-panel-2: #171c25;
  --border: #232a35;
  --text: #dfe4ea;
  --text-muted: #8993a1;
  --text-faint: #5c6570;
  --accent: #4a6fa5;

  --lv-gray: #6b7280;
  --lv-gray-text: #9aa4b2;
  --lv-gray-bg: #1c1f24;
  --lv-yellow: #d8b02c;
  --lv-yellow-bg: #2a2413;
  --lv-orange: #e2812b;
  --lv-orange-bg: #2c1c10;
  --lv-red: #ee564c;
  --lv-red-bg: #2c1414;

  --alert-bg: #3a0f0f;
  --alert-bg-2: #2a0a0a;
  --alert-border: #7a2020;
  --alert-text: #ffd9d4;

  --peace-bg: #0e1f1c;
  --peace-bg-2: #0b1a22;
  --peace-border: #1f4a3f;
  --peace-text: #bfeadd;
  --peace-icon: #4fb894;

  --map-ocean: #060a10;
  --map-land: #2e3a4a;
  --map-land-stroke: #4a5a70;

  --radius-card: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f5f8;
    --bg-panel: #ffffff;
    --bg-panel-2: #eef1f5;
    --border: #d9dee5;
    --text: #1b222c;
    --text-muted: #59616e;
    --text-faint: #8790a0;
    --accent: #35588c;

    --lv-gray-bg: #e6e9ee;
    --lv-yellow-bg: #fbedc4;
    --lv-orange-bg: #fbdec0;
    --lv-red-bg: #fbd6d2;

    --lv-gray-text: #4c5563;
    --lv-yellow: #8a6c10;
    --lv-orange: #a85419;
    --lv-red: #b5271e;

    --alert-bg: #fdeceb;
    --alert-bg-2: #fbdcda;
    --alert-border: #d9635a;
    --alert-text: #6e130d;

    --peace-bg: #e6f5f0;
    --peace-bg-2: #e2f0f7;
    --peace-border: #a9d8c8;
    --peace-text: #144537;
    --peace-icon: #1f8a63;

    --map-ocean: #d7e0e8;
    --map-land: #aebccb;
    --map-land-stroke: #8496a9;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---- header ---- */
header.site-header {
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--bg);
}
.site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
header.site-header h1 {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: 0.02em;
}
header.site-header .status-line {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-muted);
}
header.site-header .status-line.is-error {
  color: var(--lv-orange);
}

.refresh-btn {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  padding: 0;
}
.refresh-btn:active { color: var(--text); }
.refresh-icon { width: 15px; height: 15px; }
.refresh-btn.is-spinning .refresh-icon {
  animation: refresh-spin 0.7s linear;
}
@keyframes refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .refresh-btn.is-spinning .refresh-icon { animation: none; }
}

/* ---- hero status card ---- */
.hero { padding: 10px 14px 0; }
.hero-card {
  border-radius: var(--radius-card);
  padding: 16px;
}
.hero-card[hidden] { display: none; }

/* 対策モード（静かに怖い＝深く上質な赤。ネオンにしない） */
.hero-card--alert {
  background: linear-gradient(160deg, var(--alert-bg), var(--alert-bg-2));
  border: 1px solid var(--alert-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 14px 32px -18px rgba(160, 30, 20, 0.45);
}
.hero-alert-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.hero-rank {
  flex: 0 0 auto;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
}
.hero-alert-meta { min-width: 0; }
.hero-quake-place {
  margin: 0;
  color: var(--alert-text);
  font-size: 14.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-quake-time {
  margin: 2px 0 0;
  color: var(--alert-text);
  opacity: 0.8;
  font-size: 12px;
}
#alert-banner .alert-title {
  color: var(--alert-text);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 4px;
}
#alert-banner .alert-sub {
  color: var(--alert-text);
  opacity: 0.85;
  font-size: 12px;
  margin: 0 0 10px;
}
#alert-banner ol {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--alert-text);
  font-size: 13.5px;
}
#alert-banner ol li { margin-bottom: 5px; }
#alert-banner a.tsunami-link {
  display: inline-block;
  color: #fff;
  background: #7a2020;
  border: 1px solid #a13333;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}
#alert-banner a.tsunami-link:active { opacity: 0.8; }
#alert-banner a.region-warning-link {
  display: block;
  margin-top: 8px;
  color: var(--alert-text);
  background: transparent;
  border: 1px solid var(--alert-border);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}
#alert-banner a.region-warning-link[hidden] { display: none; }
#alert-banner a.region-warning-link:active { opacity: 0.8; }

/* 平時 */
.hero-card--peace {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(160deg, var(--peace-bg), var(--peace-bg-2));
  border: 1px solid var(--peace-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 28px -20px rgba(20, 120, 90, 0.35);
}
.hero-card--peace[hidden] { display: none; }

/* ---- ヒーロー・スケルトン（初回取得中のみ） ---- */
.hero-card--skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
}
.hero-card--skeleton[hidden] { display: none; }
.skel-line {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-panel-2) 25%, var(--border) 50%, var(--bg-panel-2) 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.6s ease-in-out infinite;
}
.skel-line--lg { height: 18px; width: 62%; }
.skel-line--md { height: 13px; width: 70%; }
.skel-line--sm { height: 12px; width: 40%; }
.skel-line--xs { height: 10px; width: 46%; margin-top: 6px; }
.skel-shimmer {
  background: linear-gradient(90deg, var(--bg-panel-2) 25%, var(--border) 50%, var(--bg-panel-2) 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.6s ease-in-out infinite;
}
.scale-badge-skel {
  flex: 0 0 auto;
  width: 40px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-panel-2);
}
li.skeleton-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
@keyframes skel-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skel-line, .skel-shimmer { animation: none; opacity: 0.75; }
}
.hero-peace-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--peace-icon);
}
.hero-card--peace p {
  margin: 0;
  color: var(--peace-text);
  font-size: 14px;
  font-weight: 600;
}

/* ---- 津波情報 ---- */
.tsunami-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 10px 14px 0;
  padding: 9px 12px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel);
  transition: background 0.2s, border-color 0.2s;
}
.tsunami-panel.tsunami-panel--active {
  border-color: var(--alert-border);
  background: linear-gradient(160deg, var(--alert-bg), var(--alert-bg-2));
}
.tsunami-panel.tsunami-panel--active .tsunami-status-text,
.tsunami-panel.tsunami-panel--active .tsunami-label {
  color: var(--alert-text);
}
.tsunami-panel-inline {
  margin: 0;
}
.tsunami-label {
  color: var(--text-muted);
  font-weight: 600;
  flex: 0 0 auto;
}
.tsunami-status-text {
  color: var(--text);
  flex: 1 1 auto;
  min-width: 140px;
}
.tsunami-official-link {
  color: var(--accent);
  text-decoration: underline;
  font-size: 12px;
  flex: 0 0 auto;
}

/* ---- 震央マップ ---- */
.map-wrap {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 260px;
  max-height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--map-ocean);
  overflow: hidden;
}
#japan-map {
  display: block;
  width: 100%;
  height: 100%;
}
/* MapLibreが起動成功した時だけJSが .has-maplibre を付与＝SVGを隠す。
   失敗確定時はJSが .map-failed を付与＝MapLibreコンテナを隠す（SVGのまま＝無言フォールバック）。
   判定中（どちらも無い間）はコンテナを display:none にしない＝ゼロサイズでMapLibreを初期化させない
   （display:noneだとcanvasが0x0扱いになり誤った400x300サイズで初期化されるバグを避けるため）。
   その間は #map-loading（不透明・最前面）が両方を覆って見た目のちらつきを防ぐ。 */
.map-wrap.has-maplibre #japan-map { display: none; }
.map-wrap.map-failed .maplibre-map { display: none; }

.maplibre-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--map-ocean);
  color: var(--text-faint);
  font-size: 12px;
}
.map-loading[hidden] { display: none; }
.map-loading-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: map-loading-pulse 1s ease-in-out infinite;
}
@keyframes map-loading-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .map-loading-dot { animation: none; opacity: 0.7; }
}

/* MapLibre 純正コントロール類のダーク化（自前ホストCSSの上書き） */
.maplibregl-ctrl-attrib,
.maplibregl-ctrl-attrib.maplibregl-compact {
  background: rgba(9, 13, 19, 0.7) !important;
  color: var(--text-faint) !important;
}
.maplibregl-ctrl-attrib a { color: var(--text-muted) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(0.85); }
.maplibregl-ctrl-group {
  background: var(--bg-panel-2) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--border) !important; }
.maplibregl-ctrl-icon { filter: invert(0.85); }
.maplibregl-popup-content {
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px 9px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.maplibregl-popup-tip {
  border-top-color: var(--bg-panel) !important;
  border-bottom-color: var(--bg-panel) !important;
}
.maplibregl-popup-close-button { color: var(--text-muted); }
.ml-popup-place { font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 3px; }
.ml-popup-sub { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* MapLibre カスタムマーカー（光る円・震度色・最新はパルス） */
.ml-marker {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ml-marker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.ml-marker-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  opacity: 0.4;
}
.ml-marker.lv-gray .ml-marker-dot   { background: var(--lv-gray); }
.ml-marker.lv-gray .ml-marker-ring  { background: var(--lv-gray); }
.ml-marker.lv-yellow .ml-marker-dot { background: var(--lv-yellow); box-shadow: 0 0 0 1px rgba(255,255,255,0.55), 0 0 8px 1px rgba(216,176,44,0.55); }
.ml-marker.lv-yellow .ml-marker-ring{ background: var(--lv-yellow); }
.ml-marker.lv-orange .ml-marker-dot { background: var(--lv-orange); box-shadow: 0 0 0 1px rgba(255,255,255,0.55), 0 0 9px 1px rgba(226,129,43,0.6); }
.ml-marker.lv-orange .ml-marker-ring{ background: var(--lv-orange); }
.ml-marker.lv-red .ml-marker-dot    { background: var(--lv-red); box-shadow: 0 0 0 1px rgba(255,255,255,0.65), 0 0 12px 2px rgba(238,86,76,0.75); }
.ml-marker.lv-red .ml-marker-ring   { background: var(--lv-red); }
.ml-marker.is-latest .ml-marker-dot { width: 13px; height: 13px; }
.ml-marker.is-latest .ml-marker-ring {
  inset: 2px;
  animation: ml-pulse 1.8s ease-out infinite;
}
@keyframes ml-pulse {
  0%   { transform: scale(0.55); opacity: 0.55; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-marker.is-latest .ml-marker-ring { animation: none; opacity: 0.3; }
}
.jp-landmass {
  fill: var(--map-land);
  stroke: var(--map-land-stroke);
  stroke-width: 1;
}
.quake-marker {
  cursor: pointer;
  stroke: var(--map-ocean);
  stroke-width: 1;
  opacity: 0.92;
}
.quake-marker.lv-gray  { fill: var(--lv-gray); }
.quake-marker.lv-yellow{ fill: var(--lv-yellow); }
.quake-marker.lv-orange{ fill: var(--lv-orange); }
.quake-marker.lv-red   { fill: var(--lv-red); }
.quake-marker.is-latest {
  stroke: #fff;
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: quake-pulse 1.8s ease-in-out infinite;
}
@keyframes quake-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  .quake-marker.is-latest { animation: none; }
}
.latest-ring {
  fill: none;
  stroke: #fff;
  stroke-width: 1;
  opacity: 0.55;
  pointer-events: none;
}
.latest-label {
  fill: #eef1f5;
  font-size: 11px;
  pointer-events: none;
}
.latest-label-bg {
  fill: rgba(6, 10, 16, 0.82);
  pointer-events: none;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  padding: 10px 2px 0;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
}
.legend-item .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.lv-gray  { background: var(--lv-gray); }
.dot.lv-yellow{ background: var(--lv-yellow); }
.dot.lv-orange{ background: var(--lv-orange); }
.dot.lv-red   { background: var(--lv-red); }

.map-detail {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel);
  font-size: 13px;
  min-height: 20px;
}
.map-detail .md-place { font-weight: 600; color: var(--text); margin-bottom: 3px; }
.map-detail .md-sub { color: var(--text-muted); font-size: 12px; }

/* ---- tabs / bottom nav ---- */
nav.tabs {
  display: flex;
}
nav.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  z-index: 10;
  padding-bottom: var(--safe-bottom);
}
nav.bottom-nav button.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-faint);
  padding: 9px 4px 8px;
  font-size: 10.5px;
  font-family: inherit;
}
nav.bottom-nav .tab-icon {
  width: 20px;
  height: 20px;
}
nav.bottom-nav button.tab-btn.active {
  color: var(--accent);
}

main { flex: 1; padding: 14px 14px calc(78px + var(--safe-bottom)); }
.tab-panel[hidden] { display: none; }

section.block { margin-bottom: 22px; }
section.block h2 {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---- 地域枠 ---- */
.region-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.region-select-row label {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}
.region-select-row select {
  flex: 1;
  background: var(--bg-panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 13px;
}
.region-note {
  font-size: 11px;
  color: var(--text-faint);
  margin: 4px 0 0;
}

#your-region-box[hidden] { display: none; }
#your-region-box {
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 12px 12px 4px;
  margin-bottom: 16px;
  background: rgba(74, 111, 165, 0.08);
}
#your-region-box h2 { color: var(--accent); margin-bottom: 8px; }
.region-count-line {
  font-size: 12px;
  color: var(--text-muted);
  margin: -2px 0 10px;
}

/* ---- 地域の防災リンク集（「あなたの地域」内・区切り線で下にぶら下げる） ---- */
.region-links-card {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.region-links-card h3 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 8px;
}
a.region-link {
  display: block;
  font-size: 12.5px;
  color: var(--text);
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  margin-bottom: 8px;
  text-decoration: none;
}
a.region-link:last-child { margin-bottom: 0; }
a.region-link:active { opacity: 0.8; }

/* ---- quake list（カード化） ---- */
ul.quake-list { list-style: none; margin: 0; padding: 0; }

li.date-group-heading {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  padding: 10px 2px 6px;
  letter-spacing: 0.03em;
}
li.date-group-heading:first-child { padding-top: 0; }

ul.quake-list li.quake-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
}
ul.quake-list li.quake-item:last-child { margin-bottom: 0; }

.scale-badge {
  flex: 0 0 auto;
  min-width: 40px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 6px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.scale-badge.lv-gray  { color: var(--lv-gray-text); background: var(--lv-gray-bg); }
.scale-badge.lv-yellow{ color: var(--lv-yellow); background: var(--lv-yellow-bg); box-shadow: 0 0 0 1px rgba(216,176,44,0.18) inset, 0 0 14px -6px rgba(216,176,44,0.6); }
.scale-badge.lv-orange{ color: var(--lv-orange); background: var(--lv-orange-bg); box-shadow: 0 0 0 1px rgba(226,129,43,0.2) inset, 0 0 14px -6px rgba(226,129,43,0.65); }
.scale-badge.lv-red   { color: var(--lv-red);    background: var(--lv-red-bg); box-shadow: 0 0 0 1px rgba(238,86,76,0.22) inset, 0 0 16px -5px rgba(238,86,76,0.7); }

.quake-meta { flex: 1; min-width: 0; }
.quake-meta .quake-place {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quake-meta .quake-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.empty-note {
  font-size: 12.5px;
  color: var(--text-faint);
  padding: 10px 0;
}

/* ---- 備え面 ---- */
.prep-list {
  margin: 0 0 4px;
  padding-left: 20px;
  font-size: 13.5px;
}
.prep-list li { margin-bottom: 6px; }

a.note-cta {
  display: block;
  text-align: center;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 14px;
  border-radius: var(--radius-card);
  text-decoration: none;
  font-size: 13.5px;
  margin: 10px 0 4px;
}
a.note-cta .pr-tag {
  display: inline-block;
  font-size: 10px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
}

a.plain-link {
  color: var(--accent);
  font-size: 13px;
  text-decoration: underline;
}

/* ---- 最新情報面 ---- */
.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 11px 12px;
  margin-bottom: 10px;
  background: var(--bg-panel);
}
.news-card .news-date { font-size: 11px; color: var(--text-faint); }
.news-card .news-title { font-size: 13.5px; font-weight: 600; margin: 3px 0 4px; }
.news-card .news-body { font-size: 13px; color: var(--text-muted); }
.news-card .news-source { font-size: 11px; color: var(--text-faint); margin-top: 6px; }

/* ---- footer ---- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 14px 16px calc(22px + 78px + var(--safe-bottom));
  font-size: 11px;
  color: var(--text-faint);
}
footer.site-footer p { margin: 0 0 8px; }
footer.site-footer .disclaimer {
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.7;
}

/* ---- toast ---- */
.toast-root {
  position: fixed;
  left: 50%;
  bottom: calc(70px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  width: 100%;
  max-width: 440px;
  padding: 0 16px;
}
.toast {
  pointer-events: none;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12.5px;
  padding: 9px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 100%;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---- ガラス質カード（backdrop-filter対応端末のみ・非対応は既存の単色背景にフォールバック） ---- */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  ul.quake-list li.quake-item,
  .map-detail,
  .news-card,
  .tsunami-panel,
  #your-region-box {
    background: color-mix(in srgb, var(--bg-panel) 78%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .tsunami-panel.tsunami-panel--active {
    background: color-mix(in srgb, var(--alert-bg) 80%, transparent);
  }
  header.site-header {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  nav.bottom-nav {
    background: color-mix(in srgb, var(--bg-panel) 82%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}
