:root {
  --pin-size: 26px;
  --bg: #111;
  --panel: #1b1b1b;
  --text: #eee;
  --muted: #999;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  padding: 10px 16px;
  background: var(--panel);
  border-bottom: 1px solid #333;
}

header h1 {
  margin: 0;
  font-size: 1.1rem;
}

header p {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

#map {
  width: 100%;
  height: calc(100vh - 64px);
  background: #000;
}

/* ピン本体：中心が座標に来るよう iconAnchor を中心に指定して使う */
.pin {
  width: var(--pin-size);
  height: var(--pin-size);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .6);
  cursor: pointer;
  transition: transform .15s ease;
}

.pin:hover {
  transform: scale(1.25);
}

.pin.red   { background: #e53935; }
.pin.blue  { background: #2196f3; }
.pin.gold  { background: #ffb300; }
.pin.green { background: #43a047; }

.pin-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
  pointer-events: none;
}

.leaflet-popup-content-wrapper {
  background: #1e1e1e;
  color: #eee;
  border-radius: 8px;
}

.leaflet-popup-tip {
  background: #1e1e1e;
}

.popup-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.popup-link {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  background: #e53935;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
}

#coordHint {
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 999;
  background: rgba(0, 0, 0, .75);
  color: #9f9;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  max-width: 90vw;
}

/* ===== 詳細ページ用 ===== */
.detail-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  line-height: 1.7;
}

.detail-wrap a.back {
  color: #9cf;
  text-decoration: none;
  font-size: 0.9rem;
}

.detail-wrap h1 {
  border-left: 6px solid #ffb300;
  padding-left: 10px;
}

.detail-wrap img.hero {
  width: 100%;
  border-radius: 10px;
  margin: 16px 0;
}
