/* ===== Marine Navy & Platinum Silver + 全フォント単一統一テーマ ===== */
*, *::before, *::after,
html, body, input, button, select, textarea, table, th, td, span, div, small, strong {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

body {
  background: #f4f7fa !important;
  color: #0f172a !important;
  letter-spacing: 0.03em !important;
  font-weight: 400 !important;
}

#sumGrand, #sumAll, #sumKodate, #sumShugo, #sumPrice,
#radiusInput, #ratioInput, #unitTOTAL, #unitKODATE, #unitSHUGO,
#goalTargetInput, #ai9Val, #ai9SliderValLbl, .list-body td:nth-child(n+2) {
  font-variant-numeric: tabular-nums !important;
}

#map img {
  filter: saturate(0.85) contrast(1.02) brightness(0.99) !important;
}

header {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #071324 0%, #0d213d 60%, #122b4e 100%) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 6px 24px rgba(7, 19, 36, 0.28) !important;
  padding: 11px 18px !important;
}

.title-input {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(148, 184, 218, 0.25) !important;
  border-radius: 5px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  letter-spacing: 0.04em !important;
}

.title-input:focus {
  outline: none !important;
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
}

.controls {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  border-top: 1px solid rgba(148, 184, 218, 0.14) !important;
  padding-top: 8px !important;
}

.controls input[type="text"] {
  height: 29px !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0a192f !important;
  border: 1px solid rgba(148, 184, 218, 0.4) !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  padding: 0 9px !important;
}

.controls button {
  height: 29px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(148, 184, 218, 0.26) !important;
  border-radius: 5px !important;
  font-weight: 500 !important;
  font-size: 11.5px !important;
  padding: 0 11px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.2s ease !important;
}

.controls button:hover {
  background: rgba(56, 189, 248, 0.16) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

#btnOpenAi9,
.controls button[onclick*="searchAddr"],
#btnFocusPin {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
  color: #ffffff !important;
  border: 1px solid #38bdf8 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.controls > div,
.controls > label {
  height: 29px !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(148, 184, 218, 0.25) !important;
  border-radius: 5px !important;
  color: #cbd5e1 !important;
  font-weight: 400 !important;
}

.controls > div input[type="text"],
.controls > label input[type="text"] {
  height: 21px !important;
  background: #ffffff !important;
  color: #0a192f !important;
}

.controls > div button {
  height: 21px !important;
  padding: 0 7px !important;
  font-size: 11px !important;
}

.sidebar {
  background: #ffffff !important;
  border-left: 1px solid #dbe4ee !important;
  box-shadow: -4px 0 24px rgba(10, 25, 47, 0.06) !important;
}

.summary {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 12px !important;
}

.summary .card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
}

.summary .card small { color: #64748b !important; font-weight: 500 !important; }
.summary .card strong { color: #0a192f !important; font-weight: 600 !important; font-size: 17px !important; }

.summary .card.total {
  background: linear-gradient(135deg, #09182d 0%, #132d52 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 4px 14px rgba(10, 25, 47, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.summary .card.total small { color: #94a3b8 !important; }
.summary .card.total strong { color: #38bdf8 !important; font-size: 19px !important; }

.sidebar > div[style*="#fefce8"] {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.sidebar > div[style*="#fefce8"] label { color: #334155 !important; font-weight: 500 !important; }
.sidebar > div[style*="#fefce8"] input { border: 1px solid #cbd5e1 !important; border-radius: 4px !important; background: #f8fafc !important; color: #0a192f !important; }
.sidebar > div[style*="#fefce8"] div[style*="dashed"] { border-top: 1px solid #e2e8f0 !important; }
#sumPrice { color: #0284c7 !important; font-size: 20px !important; font-weight: 600 !important; }

#goalPanel { background: #f8fafc !important; border-bottom: 1px solid #e2e8f0 !important; }
#goalPanel button { background: #ffffff !important; color: #0a192f !important; border: 1px solid #cbd5e1 !important; font-weight: 500 !important; }
#goalPanel button:hover { background: #0d213d !important; color: #ffffff !important; border-color: #0d213d !important; }

.list-body th {
  background: #0d213d !important;
  color: #f8fafc !important;
  border-bottom: 1px solid #1e3a5f !important;
  font-weight: 500 !important;
}

#ai9Panel {
  border: 1px solid #1e3a5f !important;
  border-radius: 10px !important;
  box-shadow: 0 22px 48px rgba(7, 19, 36, 0.25) !important;
}
#ai9Drag {
  background: linear-gradient(90deg, #071324 0%, #122b4e 100%) !important;
  color: #f8fafc !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.3) !important;
  font-weight: 500 !important;
}
#ai9Panel > div:nth-child(2) { background: #f8fafc !important; }
#ai9Panel button[onclick*="runLocalAiSelect"] {
  background: linear-gradient(135deg, #09182d 0%, #163560 100%) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  font-weight: 600 !important;
}
#ai9Panel button[onclick*="addCurrentPinToMulti"],
#ai9Panel button[onclick*="stepLiveSlider"] {
  background: #0d213d !important;
  color: #ffffff !important;
  border: none !important;
}
#ai9LiveSlider { accent-color: #0284c7 !important; }
