/* ==========================================================================
   Ri2MAPS & 冠水想定箇所WEBマップ スタイルシート
   Theme: Ri2MAPS Emerald Green (#00703c / #008748)
   ========================================================================== */

:root {
  --primary-green: #07760a;
  --primary-dark-green: #055a07;
  --primary-light-green: #098f0d;
  --header-grad-start: #07760a;
  --header-grad-mid: #07760a;
  --header-grad-end: #07760a;
  --accent-gold: #ffcc00;
  --accent-blue: #1976d2;
  --accent-orange: #f57c00;
  --accent-red: #d32f2f;
  --sidebar-width: 360px;
  --header-height: 46px;
  --footer-height: 28px;
  --text-color: #333333;
  --bg-light: #f5f6f8;
  --border-color: #d1d5db;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-light);
}

/* ==========================================================================
   全体レイアウト構造
   ========================================================================== */
#app-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ==========================================================================
   トップヘッダー (Ri2MAPSスタイル)
   ========================================================================== */
#header {
  height: var(--header-height);
  background-color: #07760a;
  background: #07760a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #ffffff;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  border-bottom: 2px solid #055a07;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  gap: 8px;
}

.brand-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-title span.highlight {
  color: #a7f3d0;
  font-size: 1.45rem;
}

.brand-badge {
  font-size: 0.72rem;
  background-color: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 4px;
  letter-spacing: 0.5px;
}

/* 検索バー (Ri2MAPS仕様) */
.header-center {
  flex: 1;
  max-width: 620px;
  margin: 0 16px;
  position: relative;
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #64748b;
  font-size: 0.95rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 32px;
  padding: 0 36px 0 34px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background-color: #ffffff;
  font-size: 0.84rem;
  color: #1e293b;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: none;
  font-size: 1rem;
}

.search-clear-btn:hover {
  color: #475569;
}

/* 検索結果サジェストドロップダウン */
.search-results-dropdown {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-height: 320px;
  overflow-y: auto;
  z-index: 2000;
  display: none;
  border: 1px solid #cbd5e1;
}

.search-result-item {
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
}

.search-result-item:hover {
  background-color: #ecfdf5;
  color: var(--primary-green);
}

/* ヘッダー右側ボタン群 */
.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  height: 30px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.header-btn i {
  font-size: 0.85rem;
}

/* ヘッダー内 背景地図選択プルダウン */
.header-basemap-select-wrapper {
  display: inline-flex;
  align-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  height: 30px;
  padding: 0 8px 0 10px;
  gap: 6px;
  transition: all 0.15s ease;
}

.header-basemap-select-wrapper:hover,
.header-basemap-select-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
}

.header-basemap-select-wrapper i {
  font-size: 0.85rem;
  color: #ffffff;
  pointer-events: none;
}

.header-basemap-select {
  background: transparent;
  color: #ffffff;
  border: none;
  outline: none;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0 16px 0 2px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23ffffff' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

.header-basemap-select option {
  background-color: #ffffff;
  color: #1e293b;
  font-weight: 500;
  padding: 6px 10px;
}

/* ==========================================================================
   メインボディ (サイドバー + 地図)
   ========================================================================== */
#main-body {
  display: flex;
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   左サイドバー (冠水想定箇所WEBマップ & Ri2MAPS)
   ========================================================================== */
#sidebar {
  width: var(--sidebar-width);
  background-color: #ffffff;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 900;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

#sidebar.collapsed {
  margin-left: calc(-1 * var(--sidebar-width));
}

/* サイドバー開閉トグルボタン */
.sidebar-toggle-btn {
  position: absolute;
  top: 10px;
  right: -24px;
  width: 24px;
  height: 48px;
  background-color: #1e293b;
  color: #ffffff;
  border: 1px solid #334155;
  border-left: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 950;
  font-size: 0.9rem;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s;
}

.sidebar-toggle-btn:hover {
  background-color: var(--primary-green);
}

/* 地図の種類 ヘッダー */
.sidebar-header {
  background: var(--primary-green);
  color: #ffffff;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-breadcrumb {
  background-color: #f1f5f9;
  padding: 6px 12px;
  font-size: 0.76rem;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* レイヤツリーコンテナ */
.layer-tree-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 4px 8px 0;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.layer-tree-container::-webkit-scrollbar {
  width: 6px;
}

.layer-tree-container::-webkit-scrollbar-track {
  background: #f8fafc;
}

.layer-tree-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.layer-tree-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ツリーカテゴリー (アコーディオン) */
.tree-group {
  border-bottom: 1px solid #e2e8f0;
}

/* フラット型ツリーアイテム（事前通行規制区間・冠水想定箇所などダイレクト選択用） */
.tree-group-flat {
  border-bottom: 1px solid #e2e8f0;
}

.tree-flat-item {
  padding: 6px 12px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background-color: #ffffff;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.tree-flat-item:hover {
  background-color: #f8fafc;
}

.tree-flat-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tree-flat-left .tree-checkbox {
  margin: 0;
  cursor: pointer;
}

.tree-flat-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

/* みんつく千葉冠水道路 透過度コントロール */
.mintsuku-opacity-container {
  padding: 6px 12px 8px 36px;
  background-color: #fffaf9;
  border-top: 1px dashed #fee2e2;
  border-bottom: 1px solid #fecaca;
  animation: photoFadeIn 0.2s ease-out;
}

.mintsuku-opacity-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #7f1d1d;
  background: #ffffff;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid #fca5a5;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.05);
}

.mintsuku-opacity-label {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-weight: 600;
  color: #991b1b;
  font-size: 0.72rem;
}

.mintsuku-slider {
  flex: 1;
  height: 5px;
  cursor: pointer;
  accent-color: #dc2626;
  outline: none;
}

.mintsuku-opacity-val {
  min-width: 32px;
  text-align: right;
  font-weight: 700;
  color: #dc2626;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
}

.mintsuku-opacity-presets {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

.mintsuku-preset-btn {
  flex: 1;
  background: #ffffff;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.mintsuku-preset-btn:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #f87171;
}

.mintsuku-preset-btn.active {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.25);
}

.tree-group-header {
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background-color: #ffffff;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.tree-group-header:hover {
  background-color: #f8fafc;
}

.tree-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

.tree-group-title i.folder-icon {
  color: #eab308;
  font-size: 1rem;
}

.tree-group-arrow {
  color: #64748b;
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.tree-group.expanded .tree-group-arrow {
  transform: rotate(90deg);
}

/* ツリーの凡例表示 */
.tree-legend-note {
  display: none;
  font-size: 0.72rem;
  color: #475569;
  padding: 1px 12px 3px 30px;
  align-items: center;
  gap: 8px;
  background-color: #fafafa;
}

.tree-group.expanded .tree-legend-note {
  display: flex;
}

.legend-line-primary {
  color: var(--accent-blue);
  font-weight: bold;
}
.legend-line-secondary {
  color: #2e7d32;
  font-weight: bold;
}
.legend-line-tertiary {
  color: var(--accent-orange);
  font-weight: bold;
}

/* ハザードマップ凡例バー */
.tree-hazard-legend {
  display: none;
  margin-top: 5px;
  padding: 3px 12px 6px 28px;
  background-color: #fafafa;
  font-size: 0.7rem;
  color: #475569;
}

.tree-group.expanded .tree-hazard-legend {
  display: block;
}

.hazard-legend-title {
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
}

.hazard-colorbar {
  display: flex;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  font-size: 0.6rem;
  line-height: 14px;
  text-align: center;
  font-weight: bold;
}

.colorbar-segment {
  flex: 1;
  color: #1e293b;
}

.colorbar-segment.lvl-1 { background-color: #fef08a; }
.colorbar-segment.lvl-2 { background-color: #fde047; }
.colorbar-segment.lvl-3 { background-color: #fb923c; color: #fff; }
.colorbar-segment.lvl-4 { background-color: #f87171; color: #fff; }
.colorbar-segment.lvl-5 { background-color: #c084fc; color: #fff; }

/* 土砂災害警戒区域凡例 */
.tree-landslide-legend {
  display: none;
  padding: 5px 12px 6px 28px;
  background-color: #fffbeb;
  font-size: 0.7rem;
  color: #78350f;
  border-top: 1px dashed #fde68a;
  border-bottom: 1px solid #fef3c7;
}

.tree-group.expanded .tree-landslide-legend {
  display: block;
}

.landslide-legend-title {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: #92400e;
}

.landslide-legend-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.landslide-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color-box {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.legend-color-box.red-zone {
  background-color: #ef4444;
}

.legend-color-box.yellow-zone {
  background-color: #fbbf24;
}

.legend-color-box.planned-zone {
  background-color: #fef08a;
  border: 2px dashed #1e3a8a;
  box-sizing: border-box;
}

.landslide-legend-item .legend-text {
  font-size: 0.68rem;
  color: #451a03;
}

.landslide-target-types {
  margin-top: 4px;
  font-size: 0.62rem;
  color: #92400e;
  opacity: 0.9;
}

/* キキクル凡例 & 透過度コントロール */
.tree-kikikuru-legend {
  display: none;
  padding: 4px 12px 6px 28px;
  background-color: #f0fdf4;
  font-size: 0.7rem;
  color: #334155;
  border-bottom: 1px dashed #cbd5e1;
}

.tree-group.expanded .tree-kikikuru-legend {
  display: block;
}

.kikikuru-legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.kikikuru-legend-title {
  font-weight: 700;
  color: #0f766e;
}

.kikikuru-time-badge {
  font-size: 0.65rem;
  color: #0369a1;
  background: #e0f2fe;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}

.kikikuru-colorbar {
  display: flex;
  height: 15px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #94a3b8;
  font-size: 0.6rem;
  line-height: 15px;
  text-align: center;
  font-weight: bold;
}

.kikikuru-segment {
  flex: 1;
}

.kikikuru-segment.lvl-yellow { background-color: #f2e700; color: #1e293b; }
.kikikuru-segment.lvl-red { background-color: #ff2800; color: #ffffff; }
.kikikuru-segment.lvl-purple { background-color: #aa00aa; color: #ffffff; }
.kikikuru-segment.lvl-black { background-color: #0c000c; color: #f5d0fe; }

.kikikuru-opacity-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 0.68rem;
  color: #475569;
}

.kikikuru-slider {
  flex: 1;
  height: 4px;
  cursor: pointer;
  accent-color: #0284c7;
}

.kikikuru-opacity-val {
  min-width: 26px;
  text-align: right;
  font-weight: 600;
  color: #0284c7;
}

/* キキクル タイル画像のレンダリング設定（拡大ズーム時もぼやけずシャープな格子メッシュ表示） */
.kikikuru-tile {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* キキクル 配信状態ステータスバッジ */
.kikikuru-status-pill {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.kikikuru-status-pill.online {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.kikikuru-status-pill.online::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
}

/* 雨雲レーダー（高解像度降水ナウキャスト）凡例 & 透過度コントロール */
.tree-nowcast-legend {
  display: none;
  margin-top: 5px;
  padding: 5px 12px 6px 28px;
  background-color: #f0f9ff;
  font-size: 0.7rem;
  color: #334155;
  border-top: 1px dashed #bae6fd;
}

.tree-group.expanded .tree-nowcast-legend {
  display: block;
}

.nowcast-legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.nowcast-legend-title {
  font-weight: 700;
  color: #0369a1;
}

.nowcast-time-badge {
  font-size: 0.65rem;
  color: #0284c7;
  background: #e0f2fe;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}

.nowcast-colorbar {
  display: flex;
  height: 15px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #94a3b8;
  font-size: 0.58rem;
  line-height: 15px;
  text-align: center;
  font-weight: bold;
}

.nowcast-segment {
  flex: 1;
}

.nowcast-segment.r-1 { background-color: #a0d2ff; color: #0f172a; }
.nowcast-segment.r-5 { background-color: #0041ff; color: #ffffff; }
.nowcast-segment.r-10 { background-color: #faf500; color: #0f172a; }
.nowcast-segment.r-20 { background-color: #ff9900; color: #ffffff; }
.nowcast-segment.r-30 { background-color: #ff2800; color: #ffffff; }
.nowcast-segment.r-50 { background-color: #b40068; color: #ffffff; }
.nowcast-segment.r-80 { background-color: #800000; color: #fecdd3; }

.nowcast-opacity-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 0.68rem;
  color: #475569;
}

.nowcast-slider {
  flex: 1;
  height: 4px;
  cursor: pointer;
  accent-color: #0284c7;
}

.nowcast-opacity-val {
  min-width: 26px;
  text-align: right;
  font-weight: 600;
  color: #0284c7;
}

/* 雨雲レーダー タイル画像の鮮明化 */
.rain-tile {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* 雨雲レーダー ステータスバッジ */
.nowcast-status-pill {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nowcast-status-pill.online {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}
.nowcast-status-pill.online::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #0284c7;
}

/* ====================================================================
   雨雲レーダー タイムシークバー＆アニメーションコントローラー (画面下部フローティング)
   ==================================================================== */
.nowcast-time-controller {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 8px 14px 6px 14px;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 480px;
  max-width: calc(100vw - 28px);
  box-sizing: border-box;
  animation: nowcastSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nowcastSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.nowcast-slider-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nowcast-slider-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.nowcast-slider-time-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nowcast-display-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.nowcast-display-type {
  font-size: 0.65rem;
  padding: 1px 7px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nowcast-display-type.past {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.nowcast-display-type.current {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.nowcast-display-type.forecast {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.nowcast-slider-track-wrap {
  position: relative;
  width: 100%;
}

.nowcast-time-slider {
  width: 100%;
  margin: 4px 0 2px 0;
  height: 6px;
  cursor: pointer;
  accent-color: #0284c7;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
}

.nowcast-ticks {
  position: relative;
  width: 100%;
  height: 22px;
  margin-top: 2px;
  user-select: none;
}

.nowcast-ticks .tick-item {
  position: absolute;
  top: 0;
  left: calc(8px + (100% - 16px) * (var(--step) / 8));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

/* 各目盛りのノッチ（小バー） */
.nowcast-ticks .tick-item::before {
  content: "";
  display: block;
  width: 1px;
  height: 4px;
  background: #cbd5e1;
  margin-bottom: 3px;
  transition: background 0.15s ease, height 0.15s ease;
}

.nowcast-ticks .tick-sub {
  color: #94a3b8;
  font-size: 0.60rem;
  font-weight: 500;
}

.nowcast-ticks .tick-item:hover {
  color: #0f172a;
}
.nowcast-ticks .tick-item:hover::before {
  background: #64748b;
  height: 5px;
}

.nowcast-ticks .tick-now {
  color: #059669;
  font-weight: 700;
}
.nowcast-ticks .tick-now::before {
  background: #10b981;
  width: 2px;
  height: 5px;
}

.nowcast-ticks .tick-forecast {
  color: #ea580c;
  font-weight: 700;
}
.nowcast-ticks .tick-forecast::before {
  background: #f97316;
}

/* 現在選択中ステップの目盛り強調 */
.nowcast-ticks .tick-item.active {
  color: #0284c7;
  font-weight: 800;
}
.nowcast-ticks .tick-item.active::before {
  background: #0284c7;
  height: 6px;
  width: 2px;
}
.nowcast-ticks .tick-item.tick-now.active {
  color: #059669;
}
.nowcast-ticks .tick-item.tick-now.active::before {
  background: #059669;
  height: 6px;
  width: 2px;
}
.nowcast-ticks .tick-item.tick-forecast.active {
  color: #ea580c;
}
.nowcast-ticks .tick-item.tick-forecast.active::before {
  background: #ea580c;
  height: 6px;
  width: 2px;
}

.nowcast-ctrl-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
}

.nowcast-ctrl-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

/* スマホ・タブレット画面対応 */
@media (max-width: 640px) {
  .nowcast-time-controller {
    bottom: 30px;
    width: calc(100vw - 16px);
    padding: 6px 10px;
    gap: 2px;
    border-radius: 8px;
  }
  .nowcast-display-time {
    font-size: 0.78rem;
  }
  .nowcast-ticks {
    height: 19px;
  }
  .nowcast-ticks .tick-item {
    font-size: 0.58rem;
  }
  .nowcast-ticks .tick-sub {
    font-size: 0.52rem;
  }
}
@media (max-width: 420px) {
  .nowcast-ticks .tick-sub {
    font-size: 0.48rem;
  }
}

/* ポップアップ内のキキクル公式リンクボタン */
.popup-kikikuru-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 10px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.popup-kikikuru-link:hover {
  background: #dcfce7;
  color: #14532d;
  border-color: #4ade80;
}

/* レイヤ項目リスト */
.tree-items-list {
  display: none;
  background-color: #fbfcfd;
  padding: 1px 0 4px 0;
}

.tree-group.expanded .tree-items-list {
  display: block;
}

.tree-item {
  display: flex;
  align-items: center;
  padding: 3px 8px 3px 20px;
  cursor: pointer;
  transition: background-color 0.15s;
  font-size: 0.82rem;
  line-height: 1.2;
  color: #334155;
  user-select: none;
}

.tree-item:hover {
  background-color: #edf7ee;
}

.tree-checkbox {
  margin-right: 6px;
  cursor: pointer;
  accent-color: var(--primary-green);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.tree-item-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.tree-item-count {
  font-size: 0.68rem;
  background-color: #e2e8f0;
  color: #64748b;
  padding: 0px 5px;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

/* 地域セクション (サイドバー内: 関東地方整備局・中部地方整備局などの折りたたみ対応) */
.tree-subgroup {
  margin-top: 3px;
}

.tree-subgroup:first-child {
  margin-top: 0;
}

.tree-section-header {
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdfa;
  padding: 4px 12px 4px 18px;
  margin-bottom: 2px;
  border-left: 3px solid #0d9488;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.3px;
  transition: background-color 0.15s;
}

.tree-section-header:hover {
  background-color: #ccfbf1;
}

.tree-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tree-section-arrow {
  color: #0d9488;
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.tree-subgroup.expanded .tree-section-arrow {
  transform: rotate(90deg);
}

.tree-subgroup-items {
  display: none;
}

.tree-subgroup.expanded .tree-subgroup-items {
  display: block;
}

/* ==========================================================================
   地図コンテナ & 国土地理院風コントロール
   ========================================================================== */
#map-wrapper {
  flex: 1;
  position: relative;
  height: 100%;
}

#map {
  width: 100%;
  height: 100%;
  background-color: #e5e5e5;
}

/* 背景地図サムネイル切替バー (Ri2MAPS風 左上) */
.basemap-switcher-bar {
  position: absolute;
  top: 10px;
  left: 45px;
  z-index: 800;
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #94a3b8;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 3px;
  gap: 4px;
}

.basemap-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.15s;
}

.basemap-btn:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.basemap-btn.active {
  background-color: var(--primary-green);
  color: #ffffff;
  border-color: var(--primary-dark-green);
}

.basemap-btn i {
  font-size: 0.9rem;
}


/* ==========================================================================
   下部ステータスバー (Ri2MAPS風)
   ========================================================================== */
#footer-status-bar {
  height: var(--footer-height);
  background-color: #262626;
  color: #d4d4d4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 0.74rem;
  z-index: 1000;
  border-top: 1px solid #404040;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-item span.value {
  color: #ffffff;
  font-family: Consolas, monospace;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-btn {
  background: #3a3a3a;
  border: 1px solid #555555;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 1px 8px;
  border-radius: 3px;
  cursor: pointer;
}

.status-btn:hover {
  background: #505050;
}

/* ==========================================================================
   ポップアップ & マーカー装飾
   ========================================================================== */
.leaflet-popup-content-wrapper {
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  padding: 0;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4;
}

/* Leaflet ポップアップ全体カスタマイズ */
.leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
}

.disaster-popup-card {
  width: 295px;
  max-height: calc(85vh - 100px);
  display: flex;
  flex-direction: column;
}

.popup-header {
  flex-shrink: 0;
  padding: 8px 28px 8px 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Leaflet クローズボタンの重なり防止・スタイル最適化 */
.leaflet-container a.leaflet-popup-close-button {
  top: 6px !important;
  right: 8px !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  z-index: 100 !important;
}

.popup-header.regulation {
  background: linear-gradient(90deg, #b91c1c, #dc2626);
}

.popup-header.flooding {
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
}

.popup-header.emergency {
  background: linear-gradient(90deg, #047857, #059669);
}

.popup-header.mintsuku {
  background: linear-gradient(90deg, #b91c1c, #dc2626);
}

.popup-header.mintsuku.pending-delete {
  background: linear-gradient(90deg, #c2410c, #ea580c);
}

.popup-title {
  font-size: 0.88rem;
  font-weight: bold;
}

.popup-badge {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.25);
  padding: 1px 6px;
  border-radius: 3px;
}

.popup-body {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #1e293b;
  background-color: #ffffff;
  overflow-y: auto;
  max-height: 320px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}

/* ポップアップ内スクロールバー */
.popup-body::-webkit-scrollbar {
  width: 6px;
}
.popup-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}
.popup-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.popup-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.popup-table {
  width: 100%;
  border-collapse: collapse;
}

.popup-table th {
  white-space: nowrap;
  min-width: 65px;
  padding-right: 8px;
  text-align: left;
  color: #64748b;
  padding-top: 3px;
  padding-bottom: 3px;
  font-weight: 500;
  vertical-align: top;
}

.popup-table td {
  padding: 3px 0;
  color: #0f172a;
  font-weight: 600;
  word-break: break-all;
}

.popup-alert-box {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 4px;
  background-color: #fef2f2;
  border-left: 3px solid #ef4444;
  font-size: 0.74rem;
  color: #991b1b;
}

/* みんつく冠水道路 出典・帰属表示ボックス */
.popup-attribution-box {
  margin-top: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.5;
}

.popup-attribution-box a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

.popup-attribution-box a:hover {
  color: #1d4ed8;
}

/* 個別箇所説明表 PDFリンクボタン */
.popup-pdf-box {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
}

.popup-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  width: 100%;
  justify-content: center;
}

.popup-pdf-link:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  text-decoration: none;
}

/* 冠水注意カスタムアイコン */
.flood-warning-icon {
  background-color: #2563eb;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  border-radius: 50%;
  width: 20px !important;
  height: 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  font-size: 0.62rem;
  transition: transform 0.2s;
}

.flood-warning-icon:hover {
  transform: scale(1.25);
  background-color: #1d4ed8;
}

/* ==========================================================================
   モーダルダイアログ
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: #ffffff;
  border-radius: 8px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-header {
  background: var(--primary-green);
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 0.95rem;
  font-weight: bold;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-body {
  padding: 16px;
  font-size: 0.85rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-secondary {
  background: #e2e8f0;
  color: #334155;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-green);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */
@media (max-width: 768px) {
  #sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
  }
  
  .header-center {
    display: none;
  }
  
  .basemap-switcher-bar {
    left: 10px;
  }
}

/* ==========================================================================
   経路検索 ＆ 冠水リスク判定フローティングパネル
   ========================================================================== */
.routing-floating-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 340px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 80px);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  border: 1px solid #cbd5e1;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideInDown 0.2s ease-out;
}

@keyframes slideInDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.routing-panel-header {
  background: #07760a;
  color: #ffffff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.routing-panel-title {
  font-size: 0.88rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.routing-panel-title i {
  color: #a7f3d0 !important;
}

.routing-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.routing-panel-body {
  padding: 10px 12px;
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}

.routing-panel-body::-webkit-scrollbar {
  width: 6px;
}

.routing-panel-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.routing-panel-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.routing-panel-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.routing-inputs-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.routing-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.route-point-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.route-point-badge.start {
  background-color: #10b981;
}

.route-point-badge.end {
  background-color: #ef4444;
}

.routing-input {
  flex: 1;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.78rem;
  background-color: #f8fafc;
  color: #1e293b;
  outline: none;
}

.routing-input:focus {
  border-color: #07760a;
  background-color: #ffffff;
}

.btn-point-select {
  height: 30px;
  width: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: all 0.15s;
}

.btn-point-select:hover {
  background: #e2e8f0;
  color: #07760a;
}

.btn-point-select.active-select {
  background: #07760a;
  color: #ffffff;
  border-color: #055a07;
  animation: pulseButton 1s infinite alternate;
}

@keyframes pulseButton {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.routing-swap-row {
  display: flex;
  justify-content: center;
  margin: -2px 0;
}

.routing-swap-btn {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  background-color: #ffffff;
}

.routing-swap-btn:hover {
  color: #07760a;
  border-color: #cbd5e1;
}

.routing-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.btn-search-route {
  flex: 1;
  height: 32px;
  background: #07760a;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.15s;
}

.btn-search-route:hover {
  background: #055a07;
}

.btn-clear-route {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #64748b;
  cursor: pointer;
}

.btn-clear-route:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* 判定結果エリア */
.routing-result-container {
  margin-top: 10px;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}

.route-stats {
  display: flex;
  justify-content: space-around;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 0.76rem;
  color: #334155;
  margin-bottom: 8px;
}

.stat-item strong {
  color: #0f172a;
  font-size: 0.85rem;
}

/* 危険バナー & 安全バナー */
.risk-banner {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.risk-banner.safe {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.risk-banner.safe i {
  font-size: 1.2rem;
  color: #10b981;
}

.risk-banner.warning {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.risk-banner.warning i {
  font-size: 1.2rem;
  color: #ef4444;
}

.risk-list-header {
  margin-bottom: 8px;
}

.risk-list-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
}

.risk-list-count-badge {
  background: #e2e8f0;
  color: #1e293b;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
}

.risk-list-scroll-hint {
  font-size: 0.65rem;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px dashed #bae6fd;
  border-radius: 4px;
  padding: 3px 6px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.risk-spots-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(380px, 45vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #0284c7 #e0f2fe;
}

.risk-spots-list::-webkit-scrollbar {
  width: 6px;
}

.risk-spots-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.risk-spots-list::-webkit-scrollbar-thumb {
  background: #0284c7;
  border-radius: 4px;
}

.risk-spots-list::-webkit-scrollbar-thumb:hover {
  background: #0369a1;
}

.risk-spot-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-left: 3px solid #ea580c;
  border-radius: 5px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.risk-spot-card:hover {
  background: #fff7ed;
  border-color: #f97316;
  transform: translateX(2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.risk-spot-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  margin-bottom: 2px;
}

.risk-spot-num {
  background: #ea580c;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: bold;
  padding: 0 4px;
  border-radius: 3px;
}

.risk-spot-name {
  font-weight: bold;
  color: #1e293b;
  flex: 1;
}

.risk-spot-dist {
  font-size: 0.68rem;
  color: #ea580c;
  font-weight: 600;
}

.risk-spot-body {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.3;
}

/* 地図上ピンマーカー */
.route-pin {
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.35);
}

.route-pin i {
  transform: rotate(45deg);
  font-size: 0.72rem;
  color: #ffffff;
}

.route-pin.start {
  background: #10b981;
}

.route-pin.end {
  background: #ef4444;
}

/* 危険冠水地点の赤色パルスマーカー */
.risk-pulse-marker {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.risk-pulse-marker .pulse-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 3px solid #ef4444;
  animation: pulseRiskRing 1.4s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

@keyframes pulseRiskRing {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ==========================================================================
   気象庁 リアルタイム警報連動 ＆ 立体交差上下判定スタイル
   ========================================================================== */
/* 気象庁ステータスバー (サイドバー内) */
.jma-status-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 12px;
  font-size: 0.76rem;
  transition: background-color 0.15s;
}

.jma-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  cursor: pointer;
  user-select: none;
  border-radius: 4px;
  padding: 2px 0;
  transition: opacity 0.15s;
}

.jma-status-header:hover {
  opacity: 0.85;
}

.jma-status-title {
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
}

.jma-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jma-refresh-btn {
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  font-size: 0.72rem;
  transition: all 0.15s;
}

.jma-refresh-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.jma-toggle-arrow {
  color: #64748b;
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.jma-status-bar.expanded .jma-toggle-arrow {
  transform: rotate(90deg);
}

.jma-status-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jma-status-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.jma-status-badge.safe {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.jma-status-badge.warning {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.jma-status-badge.danger {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
  font-weight: 700;
}

.jma-status-badge.special {
  background: #18181b;
  color: #f5d0fe;
  border: 1px solid #a855f7;
  font-weight: 700;
}

.jma-update-time {
  font-size: 0.65rem;
  color: #94a3b8;
}

/* 気象庁 全国防災警報（レベル3以上）リスト展開エリア */
.jma-warning-content {
  display: none;
  margin-top: 8px;
  border-top: 1px dashed #cbd5e1;
  padding-top: 8px;
}

.jma-status-bar.expanded .jma-warning-content {
  display: block;
}

.jma-warning-list {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}

/* スクロールバー装飾 */
.jma-warning-list::-webkit-scrollbar {
  width: 4px;
}
.jma-warning-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

/* 平常時（レベル3以上なし）メッセージ */
.jma-no-warning {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 5px;
  color: #15803d;
  font-size: 0.72rem;
  line-height: 1.4;
}

.jma-no-warning i {
  margin-top: 2px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* 警報発令 都道府県グループ */
.jma-pref-group {
  margin-bottom: 7px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.jma-pref-header {
  background: #f1f5f9;
  padding: 4px 8px;
  font-size: 0.73rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

.jma-pref-badge {
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 3px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 600;
}

.jma-city-items {
  display: flex;
  flex-direction: column;
}

.jma-city-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background-color 0.15s;
  gap: 6px;
}

.jma-city-item:last-child {
  border-bottom: none;
}

.jma-city-item:hover {
  background: #eff6ff;
}

.jma-city-name {
  font-size: 0.73rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.jma-city-name i {
  font-size: 0.65rem;
  color: #3b82f6;
  opacity: 0;
  transition: opacity 0.15s;
}

.jma-city-item:hover .jma-city-name i {
  opacity: 1;
}

.jma-city-warns {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: flex-end;
}

/* 警報タグ・ピル */
.jma-pill {
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
}

.jma-pill.warning {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.jma-pill.danger {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
  font-weight: 700;
}

.jma-pill.special {
  background: #18181b;
  color: #f5d0fe;
  border: 1px solid #a855f7;
  font-weight: 700;
}

/* 指定河川洪水予報（氾濫警戒・危険・発生・注意情報）専用ピル */
.jma-pill.flood-warning {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #ef4444;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(239, 68, 68, 0.2);
}

.jma-pill.flood-danger {
  background: #581c87;
  color: #f3e8ff;
  border: 1px solid #c084fc;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(88, 28, 135, 0.3);
}

.jma-pill.flood-special {
  background: #020617;
  color: #38bdf8;
  border: 1px solid #0284c7;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.4);
}

.jma-pill.flood-advisory {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  font-weight: 600;
}

/* 冠水アイコンの気象警報クラス */
.flood-warning-icon.jma-none {
  background-color: #2563eb; /* 通常青 */
}

.flood-warning-icon.jma-advisory {
  background-color: #d97706; /* 注意報: 黄/橙 */
}

.flood-warning-icon.jma-warning {
  background-color: #dc2626 !important; /* 警報: 赤 */
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.8) !important;
}

/* レベル4 大雨危険警報: 紫色 ＆ 警告アイコン */
.flood-warning-icon.jma-danger {
  background-color: #9333ea !important; /* レベル4 危険警報: 紫色 */
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.95), 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  font-size: 0.72rem;
  width: 24px !important;
  height: 24px !important;
  z-index: 500 !important;
}

/* レベル5 特別警報: 黒紫 */
.flood-warning-icon.jma-special {
  background-color: #18181b !important; /* 特別警報: 黒紫 */
  border: 2px solid #a855f7 !important;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.95), 0 2px 6px rgba(0, 0, 0, 0.5) !important;
  font-size: 0.75rem;
  width: 24px !important;
  height: 24px !important;
  z-index: 600 !important;
}

.flood-warning-icon .pulse-ring {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  animation: pulseRiskRing 1.3s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.flood-warning-icon.jma-danger .pulse-ring {
  border-color: #c084fc;
  border-width: 2.5px;
  animation: pulseRiskRing 1.1s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flood-warning-icon.jma-special .pulse-ring {
  border-color: #a855f7;
  border-width: 3px;
  animation: pulseRiskRing 0.9s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 立体交差（上・下）バッジ & スタイル */
.vertical-tag {
  font-size: 0.62rem;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: auto;
}

.vertical-tag.underpass {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.vertical-tag.underpass.danger {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
}

.vertical-tag.overpass {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.risk-spot-card.underpass {
  border-left: 3px solid #dc2626;
}

.risk-spot-card.underpass.danger {
  border-left: 3px solid #9333ea;
  background: #faf5ff;
}

.risk-spot-card.overpass {
  border-left: 3px solid #10b981;
  background: #f0fdf4;
}

.risk-spot-num.underpass {
  background: #dc2626;
}

.risk-spot-num.underpass.danger {
  background: #9333ea;
}

.risk-spot-num.overpass {
  background: #10b981;
}

.risk-vertical-desc {
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 2px;
}

.risk-jma-desc {
  font-size: 0.68rem;
  color: #dc2626;
  font-weight: bold;
  margin-bottom: 2px;
}

.risk-jma-desc.danger {
  color: #9333ea;
}

.risk-jma-desc.special {
  color: #581c87;
}

.jma-urgent-badge {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.72rem;
  margin: 4px 0;
  line-height: 1.4;
}

.jma-urgent-badge.danger {
  background: #f3e8ff;
  border: 1px solid #c084fc;
  color: #581c87;
}

.jma-urgent-badge.special {
  background: #18181b;
  border: 1px solid #a855f7;
  color: #f5d0fe;
}

.risk-banner.warning.danger-alert {
  background-color: #faf5ff;
  border: 1px solid #d8b4fe;
  color: #581c87;
}

.risk-banner.warning.danger-alert i {
  color: #9333ea;
}

.risk-banner.warning.special-alert {
  background-color: #18181b;
  border: 1px solid #a855f7;
  color: #f5d0fe;
}

.risk-banner.warning.special-alert i {
  color: #c084fc;
}

/* 指定河川洪水予報（氾濫警戒情報等）ポップアップアラート */
.popup-flood-alert {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  border-radius: 4px;
  padding: 6px 8px;
  margin-bottom: 6px;
  font-size: 0.74rem;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.12);
}

.popup-flood-title {
  font-weight: 700;
  color: #0369a1;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.popup-flood-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.popup-flood-item {
  font-size: 0.71rem;
  padding: 3px 6px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}

.popup-flood-item.flood-warning {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.popup-flood-item.flood-danger {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
}

.popup-flood-item.flood-special {
  background: #09090b;
  color: #38bdf8;
  border: 1px solid #0284c7;
}

.popup-flood-item.flood-advisory {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.popup-flood-river {
  font-weight: 700;
}

.popup-jma-alert {
  padding: 5px 8px;
  font-size: 0.75rem;
  margin-bottom: 6px;
  border-radius: 3px;
  line-height: 1.4;
}

.popup-jma-alert.warning {
  background: #fee2e2;
  border-left: 3px solid #dc2626;
  color: #991b1b;
}

.popup-jma-alert.danger {
  background: #faf5ff;
  border-left: 3px solid #9333ea;
  color: #581c87;
  box-shadow: 0 1px 3px rgba(147, 51, 234, 0.15);
}

.popup-jma-alert.special {
  background: #18181b;
  border-left: 3px solid #a855f7;
  color: #f5d0fe;
}

.popup-jma-alert.advisory {
  background: #fefce8;
  border-left: 3px solid #eab308;
  color: #854d0e;
}

.popup-jma-subnote {
  font-size: 0.68rem;
  margin-top: 2px;
  font-weight: 500;
  opacity: 0.92;
}

.popup-vertical-note {
  font-size: 0.72rem;
  padding: 3px 6px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.popup-vertical-note.underpass {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.popup-vertical-note.overpass {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.risk-pulse-marker.risk-overpass {
  background: #059669;
}

.risk-pulse-marker.risk-overpass .pulse-ring {
  border-color: #10b981;
}

.risk-pulse-marker.risk-jma-danger {
  background: #9333ea;
}

.risk-pulse-marker.risk-jma-danger .pulse-ring {
  border-color: #c084fc;
}

.risk-pulse-marker.risk-jma-special {
  background: #18181b;
  border-color: #a855f7;
}

.risk-pulse-marker.risk-jma-special .pulse-ring {
  border-color: #a855f7;
}

/* ==========================================================================
   監視カメラ (画像情報) スタイル
   ========================================================================== */

/* ポップアップヘッダー (紫グラデーション) */
.popup-header.camera {
  background: linear-gradient(90deg, #6d28d9, #8b5cf6);
}

/* ポップアップヘッダー (河川カメラ用 青グラデーション) */
.popup-header.camera-river {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

/* カメラ用カスタムマーカーアイコン */
.camera-marker-icon {
  background-color: #7c3aed;
  border: 2px solid #ffffff;
  color: #ffffff;
  border-radius: 50%;
  width: 24px !important;
  height: 24px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.45);
  font-size: 0.72rem;
  transition: transform 0.2s, background-color 0.2s;
  position: relative;
}

.camera-marker-icon:hover {
  transform: scale(1.25);
  background-color: #6d28d9;
}

.camera-marker-icon.is-underpass {
  background-color: #9333ea;
  border-color: #fde047;
}

.camera-marker-icon.is-river {
  background-color: #0284c7;
  border-color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.45);
}

.camera-marker-icon.is-river:hover {
  background-color: #0369a1;
}

.camera-marker-icon .camera-underpass-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.5rem;
  font-weight: bold;
  padding: 0 2px;
  border-radius: 3px;
  line-height: 1;
  border: 1px solid #ffffff;
}

.camera-marker-icon .camera-underpass-badge.is-river {
  background: #0284c7;
}

/* ポップアップ内 カメラビューアコンテナ */
.camera-popup-viewer {
  margin-top: 8px;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.camera-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.74rem;
}

.camera-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-weight: 600;
  font-size: 0.7rem;
}

.camera-status-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #10b981;
  animation: camera-pulse 2s infinite;
}

@keyframes camera-pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.camera-btn-reload {
  background: #ffffff;
  color: #6d28d9;
  border: 1px solid #c4b5fd;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.camera-btn-reload:hover {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
}

.camera-btn-reload.spinning i {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 静止画ラッパー */
.camera-img-wrap {
  position: relative;
  width: 100%;
  min-height: 140px;
  background: #0f172a;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-preview-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  transition: opacity 0.3s;
}

.camera-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #ffffff;
  padding: 4px 8px;
  font-size: 0.68rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 画像読み込み失敗時フォールバック */
.camera-fallback-card {
  padding: 12px;
  text-align: center;
  background: #fdf4ff;
  border: 1px dashed #d8b4fe;
  border-radius: 4px;
  color: #6b21a8;
  font-size: 0.72rem;
}

.camera-fallback-card a {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  background: #7c3aed;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.camera-fallback-card a:hover {
  background: #6d28d9;
}

/* アンダーパスポップアップ内 併設カメラ枠 */
.underpass-cam-section {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 2px solid #e0e7ff;
}

.underpass-cam-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   令和8年8月千葉豪雨 レイヤ & 被害写真ポップアップ & ライトボックス
   ========================================================================== */
.popup-header.flood-photo {
  background: linear-gradient(90deg, #d84315, #ea580c);
}

.popup-header.flood-photo.cat-inundation {
  background: linear-gradient(90deg, #002db3, #003fff);
}

.popup-header.flood-photo.cat-ankle {
  background: linear-gradient(90deg, #947e00, #b59b00);
}

.popup-header.flood-photo.cat-knee {
  background: linear-gradient(90deg, #6a1b9a, #8e24aa);
}

.popup-header.flood-photo.cat-waist {
  background: linear-gradient(90deg, #000000, #262626);
}

.popup-header.flood-photo.cat-vehicle {
  background: linear-gradient(90deg, #b71c1c, #d32f2f);
}

.popup-header.flood-photo.cat-manhole {
  background: linear-gradient(90deg, #e65100, #f57c00);
}

.popup-header.flood-photo.cat-other {
  background: linear-gradient(90deg, #525252, #757575);
}

.popup-header.flood-photo.cat-aerial {
  background: linear-gradient(90deg, #0284c7, #0ea5e9);
}

/* 被害写真サムネイルコンテナ */
.flood-photo-thumb-wrap {
  position: relative;
  width: 100%;
  margin-top: 8px;
  border-radius: 6px;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.flood-photo-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.flood-photo-thumb-wrap:hover .flood-photo-thumb {
  transform: scale(1.03);
}

.flood-photo-thumb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #ffffff;
  font-size: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flood-photo-zoom-badge {
  background: rgba(0, 0, 0, 0.6);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
}

/* 道路災害復旧状況 写真サムネイル (全体表示・アスペクト比維持) */
.recovery-photo-wrap {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.recovery-photo-thumb {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block;
}

.recovery-photo-wrap:hover .recovery-photo-thumb {
  transform: none;
}

.recovery-photo-wrap .flood-photo-thumb-overlay {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.recovery-photo-wrap:hover .flood-photo-thumb-overlay {
  opacity: 1;
}

.flood-photo-popup .popup-body {
  max-height: 480px;
}

/* 被害写真カテゴリバッジ */
.cat-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff;
}
.cat-badge.inundation { background-color: #003fff; }
.cat-badge.ankle { background-color: #b59b00; }
.cat-badge.knee { background-color: #8e24aa; }
.cat-badge.waist { background-color: #111111; }
.cat-badge.vehicle { background-color: #d32f2f; }
.cat-badge.manhole { background-color: #f57c00; }
.cat-badge.other { background-color: #757575; }

/* ライトボックスモーダル */
.photo-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.92);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 16px;
  backdrop-filter: blur(6px);
  animation: photoFadeIn 0.2s ease-out;
}

@keyframes photoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.photo-lightbox-modal.active {
  display: flex;
}

.photo-lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid #334155;
}

.photo-lightbox-header {
  width: 100%;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid #334155;
}

.photo-lightbox-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}

.photo-lightbox-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.photo-lightbox-img-wrap {
  position: relative;
  max-width: 100%;
  max-height: calc(88vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.photo-lightbox-img {
  max-width: 90vw;
  max-height: calc(88vh - 95px);
  object-fit: contain;
  display: block;
}

.photo-lightbox-footer {
  width: 100%;
  padding: 8px 16px;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #334155;
}

/* ==========================================================================
   画像情報レイヤ 階層ツリー & 10ptアイコン凡例スタイル
   ========================================================================== */
.tree-parent-item {
  font-weight: 600;
}

/* 子チェックボックスリスト（階層インデント） */
.tree-sub-items {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  background: #fbfcfe;
  border-left: 2px solid #e2e8f0;
  margin-left: 10px;
  margin-top: 2px;
  margin-bottom: 4px;
}

.tree-sub-item {
  padding: 3px 8px 3px 6px;
  font-size: 0.78rem;
  transition: background-color 0.15s ease;
  border-radius: 4px;
}

.tree-sub-item:hover {
  background-color: #f1f5f9;
}

.tree-sub-item .tree-item-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  white-space: nowrap;
}

.tree-sub-item .tree-item-label .tree-item-count {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

/* 10pt (直径約13.3px) 単色円ドット（被害区分色分け） */
.photo-tree-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  display: inline-block;
}

.photo-tree-dot.inundation { background-color: #003fff; }
.photo-tree-dot.ankle { background-color: #b59b00; }
.photo-tree-dot.knee { background-color: #8e24aa; }
.photo-tree-dot.waist { background-color: #111111; }
.photo-tree-dot.vehicle { background-color: #d32f2f; }
.photo-tree-dot.manhole { background-color: #f57c00; }
.photo-tree-dot.other { background-color: #757575; }

/* 小分類ごとの地点数バッジ */
.photo-count-inundation { margin-left: auto; background: #eff6ff; color: #003fff; font-weight: 700; }
.photo-count-ankle { margin-left: auto; background: #fefce8; color: #854d0e; font-weight: 700; }
.photo-count-knee { margin-left: auto; background: #faf5ff; color: #7e22ce; font-weight: 700; }
.photo-count-waist { margin-left: auto; background: #f4f4f5; color: #18181b; font-weight: 700; }
.photo-count-vehicle { margin-left: auto; background: #fee2e2; color: #b91c1c; font-weight: 700; }
.photo-count-manhole { margin-left: auto; background: #fff7ed; color: #c2410c; font-weight: 700; }
.photo-count-other { margin-left: auto; background: #f1f5f9; color: #475569; font-weight: 700; }

/* 被害区分ツリー注記 */
.photo-tree-notes {
  margin: 6px 4px 4px 4px;
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: 4px;
  border-left: 3px solid #cbd5e1;
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.45;
}
.photo-tree-notes .notes-count {
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.74rem;
  color: #0f172a;
}

/* マップ上 フローティング被害区分凡例パネル (添付画像デザイン準拠) */
.photo-floating-legend {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  width: 280px;
  font-size: 0.78rem;
  user-select: none;
  animation: photoFadeIn 0.2s ease-out;
}
.photo-floating-legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}
.photo-floating-legend-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #0f172a;
}
.photo-floating-legend-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
}
.photo-floating-legend-close:hover {
  color: #ef4444;
}
.photo-floating-legend-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.photo-floating-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.photo-floating-legend-item input[type="checkbox"] {
  accent-color: #0284c7;
  cursor: pointer;
}
.photo-floating-legend-notes {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.45;
}
.photo-floating-legend-count {
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0f172a;
}

/* 千葉県 気象警報レイヤ サイドバー凡例＆シミュレーショントグル */
.tree-warn-legend {
  margin: 6px 12px 8px 12px;
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  font-size: 0.68rem;
}

.tree-group:not(.expanded) .tree-warn-legend {
  display: none !important;
}
.tree-warn-legend-header {
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tree-warn-legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.tree-warn-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #334155;
  font-size: 0.67rem;
}
.warn-color-box {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.warn-color-box.special { background: #581c87; border: 1px solid #3b0764; }
.warn-color-box.danger { background: #9333ea; border: 1px solid #7e22ce; }
.warn-color-box.warning { background: #ef4444; border: 1px solid #b91c1c; }
.warn-color-box.advisory { background: #f59e0b; border: 1px solid #d97706; }
.warn-color-box.normal { background: rgba(148, 163, 184, 0.2); border: 1px dashed #94a3b8; }

.warn-sim-btn {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.warn-sim-btn:hover {
  background: #fee2e2;
}
.warn-sim-btn.active {
  background: #dc2626;
  color: #ffffff;
  border-color: #b91c1c;
}

/* 自治体気象警報ポリゴン ポップアップ */
.warn-city-popup {
  min-width: 220px;
  max-width: 290px;
}
.warn-city-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 3px;
}
.warn-city-badge.special { background: #f3e8ff; color: #581c87; border: 1px solid #d8b4fe; }
.warn-city-badge.danger { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.warn-city-badge.warning { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.warn-city-badge.advisory { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.warn-city-badge.normal { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

/* 従来の凡例との互換性用 */
.tree-flood-photo-legend {
  display: none;
}

/* ツリー内 タイムライン起動ボタン */
.tree-timeline-open-btn {
  margin-left: auto;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  border-radius: 4px;
  color: #ea580c;
  padding: 2px 6px;
  font-size: 0.72rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.tree-timeline-open-btn:hover {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}

/* ==========================================================================
   令和8年8月千葉豪雨 災害写真 タイムラインコントローラー
   ========================================================================== */
.photo-timeline-controller {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #ffffff;
  border: 1px solid #0f172a;
  border-top: 3px solid #ea580c;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  padding: 8px 16px 10px 16px;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 530px;
  max-width: calc(100vw - 28px);
  box-sizing: border-box;
  animation: photoTimelineSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes photoTimelineSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* 上部ヘッダー */
.photo-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
}

.photo-timeline-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c2410c;
  white-space: nowrap;
}

.photo-timeline-count-badge {
  font-size: 0.68rem;
  padding: 1px 7px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #ffedd5;
  border-radius: 10px;
  font-weight: 600;
}

.photo-timeline-count-badge .count-now {
  font-weight: 800;
  color: #ea580c;
}

/* 表示モード切替セグメントボタン */
.photo-timeline-mode-group {
  display: flex;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
  margin-left: auto;
}

.mode-toggle-btn {
  background: none;
  border: none;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mode-toggle-btn.active {
  background: #ea580c;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.3);
}

.photo-ctrl-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s, background-color 0.15s;
}

.photo-ctrl-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

/* コントローラー本体行（日時＋再生ボタン） */
.photo-timeline-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.photo-timeline-time-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.photo-display-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.photo-display-elapsed {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

/* 操作ボタン群 */
.photo-timeline-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.photo-ctrl-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.photo-ctrl-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.photo-ctrl-btn.play-btn {
  width: 34px;
  height: 34px;
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
}

.photo-ctrl-btn.play-btn:hover {
  background: #c2410c;
  border-color: #c2410c;
}

.photo-ctrl-btn.play-btn.playing {
  background: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

/* スライダートラック */
.photo-slider-track-wrap {
  position: relative;
  width: 100%;
  margin-top: 2px;
}

.photo-time-slider {
  width: 100%;
  margin: 4px 0 2px 0;
  height: 6px;
  cursor: pointer;
  accent-color: #ea580c;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
}

/* 目盛りコンテナ */
.photo-timeline-ticks {
  position: relative;
  width: 100%;
  height: 20px;
  margin-top: 2px;
  user-select: none;
}

.photo-timeline-ticks .tick-item {
  position: absolute;
  top: 0;
  left: calc(10px + (100% - 20px) * (var(--step) / 95));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.63rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.photo-timeline-ticks .tick-item::before {
  content: "";
  display: block;
  width: 1px;
  height: 4px;
  background: #cbd5e1;
  margin-bottom: 2px;
}

.photo-timeline-ticks .tick-item.tick-day {
  font-weight: 700;
  color: #334155;
}

.photo-timeline-ticks .tick-item.tick-day::before {
  height: 6px;
  width: 1.5px;
  background: #ea580c;
}

.photo-timeline-ticks .tick-item.tick-sub {
  color: #94a3b8;
  font-size: 0.58rem;
}

.photo-timeline-ticks .tick-item:hover,
.photo-timeline-ticks .tick-item.active {
  color: #ea580c;
  font-weight: 800;
}

.photo-timeline-ticks .tick-item:hover::before,
.photo-timeline-ticks .tick-item.active::before {
  background: #ea580c;
}

/* ==========================================================================
   令和8年8月千葉豪雨 記録写真 クラスター / 通常表示切替コントロール & クラスターアイコン
   ========================================================================== */
.photo-display-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 4px 8px 8px;
  padding: 4px 6px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
}

.photo-mode-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 4px;
}

.photo-mode-segmented-control {
  display: inline-flex;
  background: #ffedd5;
  border-radius: 5px;
  padding: 2px;
  gap: 2px;
}

.photo-mode-btn {
  border: none;
  background: transparent;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #7c2d12;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.photo-mode-btn:hover {
  background: rgba(234, 88, 12, 0.15);
  color: #9a3412;
}

.photo-mode-btn.active {
  background: #ea580c;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(154, 52, 18, 0.3);
}

/* カスタムマーカークラスター アイコン */
.photo-cluster-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.photo-cluster-marker:hover {
  transform: scale(1.1);
}

.photo-cluster-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  line-height: 1;
}

.photo-cluster-marker.small {
  background: rgba(249, 115, 22, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.9);
}
.photo-cluster-marker.small .photo-cluster-inner {
  background: linear-gradient(135deg, #f97316, #ea580c);
  margin: 3px;
}

.photo-cluster-marker.medium {
  background: rgba(234, 88, 12, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.95);
}
.photo-cluster-marker.medium .photo-cluster-inner {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  margin: 4px;
}

.photo-cluster-marker.large {
  background: rgba(220, 38, 38, 0.35);
  border: 2.5px solid rgba(255, 255, 255, 1);
  animation: clusterPulse 2.5s infinite;
}
.photo-cluster-marker.large .photo-cluster-inner {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  margin: 4px;
}

@keyframes clusterPulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.photo-cluster-count {
  font-size: 0.8rem;
  letter-spacing: -0.5px;
}
.photo-cluster-sub {
  font-size: 0.55rem;
  opacity: 0.9;
  margin-top: 1px;
}

/* 台風25号 航空写真・復旧作業実施状況専用クラスターマーカー（青バッジ） */
.photo-cluster-marker.aerial {
  background: rgba(2, 132, 199, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.95);
}
.photo-cluster-marker.aerial .photo-cluster-inner {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  margin: 3px;
}
.photo-cluster-marker.aerial.medium .photo-cluster-inner {
  background: linear-gradient(135deg, #0369a1, #075985);
  margin: 4px;
}
.photo-cluster-marker.aerial.large .photo-cluster-inner {
  background: linear-gradient(135deg, #075985, #0c4a6e);
  margin: 4px;
}

/* 災害規模専用クラスターマーカー（オレンジバッジ） */
.photo-cluster-marker.orange {
  background: rgba(249, 115, 22, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.95);
}
.photo-cluster-marker.orange .photo-cluster-inner {
  background: linear-gradient(135deg, #f97316, #ea580c);
  margin: 3px;
}
.photo-cluster-marker.orange.medium {
  background: rgba(234, 88, 12, 0.3);
}
.photo-cluster-marker.orange.medium .photo-cluster-inner {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  margin: 4px;
}
.photo-cluster-marker.orange.large {
  background: rgba(234, 88, 12, 0.35);
  border: 2.5px solid rgba(255, 255, 255, 1);
  animation: clusterPulseOrange 2.5s infinite;
}
.photo-cluster-marker.orange.large .photo-cluster-inner {
  background: linear-gradient(135deg, #ea580c, #9a3412);
  margin: 4px;
}

@keyframes clusterPulseOrange {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(234, 88, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

/* ====================================================================
   千葉県 県道番号標識 (フラットトップ・ヘキサゴン標識) スタイル
   平らな面が上（フラットトップ）・青地白文字・県道番号のみセンタリング
   ==================================================================== */
.kendo-shield-marker {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  filter: drop-shadow(0 1.5px 3px rgba(0, 0, 0, 0.45));
  transition: transform 0.12s ease;
  user-select: none;
}
.kendo-shield-marker:hover {
  transform: scale(1.25);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.65));
  z-index: 1000 !important;
}
.kendo-shield-svg {
  display: block;
  overflow: visible;
  width: 100%;
  height: 100%;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}
.kendo-shield-svg text {
  user-select: none;
  pointer-events: none;
}
.kendo-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  font-weight: 700;
  color: #0f172a;
}
.kendo-badge-icon {
  display: inline-block;
  width: 24px;
  height: 22px;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}
.kendo-shield-tooltip {
  background: rgba(15, 23, 42, 0.92) !important;
  border: 1px solid #38bdf8 !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  padding: 5px 10px !important;
  font-size: 0.78rem !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
.kendo-shield-tooltip::before {
  border-top-color: rgba(15, 23, 42, 0.92) !important;
}



/* ====================================================================
   道路災害復旧状況 マーカー＆スタイル
   ==================================================================== */
.recovery-marker-bullseye-red:hover,
.recovery-marker-circle-orange:hover,
.recovery-marker-triangle-blue:hover {
  transform: scale(1.25);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.recovery-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: middle;
}

/* Leaflet ズームコントロール (+/-) がサイドバー開閉ボタンと重ならないように下にオフセット配置 */
.leaflet-top.leaflet-left {
  top: 68px !important;
}

/* 台風25号 地図マーカー（二重丸 ◎）スタイル */
.typhoon25-double-circle-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}
.typhoon25-double-circle-icon:hover {
  transform: scale(1.3);
  z-index: 1000 !important;
}

/* ========================================================
   一時非表示レイヤ（令和8年8月千葉豪雨、台風25号 航空・衛星・県撮影写真）
   ※ すぐに再表示・回復させる場合：
      以下の「display: none !important;」をコメントアウト、
      または HTML内の「temp-hidden-layer」クラスを削除してください。
   ======================================================== */
.temp-hidden-layer {
  display: none !important;
}

/* 令和8年8月千葉豪雨が一時非表示の際、台風25号上部の余白・境界線を自然に整える */
.tree-items-list > .tree-parent-item.temp-hidden-layer ~ .tree-disaster-subgroup {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}


