:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1f2a37;
  --muted: #5e6b7a;
  --border: #d8e0ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.site-header {
  text-align: center;
  padding: 24px 16px 8px;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.site-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.single-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.map-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.map-panel h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.japan-map {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 420px;
  border-radius: 12px;
  border: 1px dashed #c8d3e1;
  overflow: hidden;
}

#japanLeafletMap {
  width: 100%;
  height: 100%;
  background: #eef5ff;
}

.leaflet-tooltip.region-label-tooltip {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #1f2a37;
  font-weight: 800;
  font-size: 14px;
  text-shadow: 0 1px 0 #fff;
}

.leaflet-tooltip.region-label-tooltip::before {
  display: none;
}

.leaflet-tooltip.pref-label-tooltip {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 12px;
  text-shadow: 0 1px 0 #fff;
}

.leaflet-tooltip.pref-label-tooltip::before {
  display: none;
}

.reset-btn {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}

.pref-card {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafcff;
  padding: 14px;
}

.pref-card h3 {
  margin: 0 0 8px;
}

.pref-card p {
  margin: 0;
  color: #314152;
}

@media (max-width: 768px) {
  .single-layout {
    max-width: 100%;
    padding: 8px;
  }

  .map-panel {
    padding: 10px;
    border-radius: 12px;
  }

  .japan-map {
    aspect-ratio: auto;
    height: 70vh;
    min-height: 520px;
  }
}
