/* レイアウト */
.global-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.global-map {
  width: 100%;
  height: auto;
  display: block;
}

/* ピン */
.pin circle {
  fill: #D32F2F;
}

.pin path {
  stroke: #B71C1C;
  stroke-width: 3;
}

/* ピン＋文字セット */
.pin-group {
  cursor: pointer;
}

/* 初期アニメーション（フェードイン＋下から） */
.pin,
.pin-label {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 2.0s forwards;
}

.pin-label {
  animation-delay: 0.3s;
}

/* 都市名 */
.pin-label {
  font-size: 20px;
  fill: #222;
  font-weight: bold;
  text-decoration: underline;
  dominant-baseline: middle;
  transition: fill 0.3s, transform 0.3s, opacity 0.3s;
}

/* ホバー＆同期時 */
.pin-group.active .pin,
.pin-group:hover .pin {
  transform: scale(1.2);
}

.pin-group.active .pin-label,
.pin-group:hover .pin-label {
  fill: #D32F2F;
  transform: translateX(4px);
  opacity: 1;
}

/* フェードアップ */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* リスト */
.location-list .list-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 16px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 12px;
}



.location-list li {
  padding: 8px 0;
  font-size: 12px;
  font-weight: bold;
}

.location-list li.active a {
  color: #D32F2F;
}

/* タブレット以下ではMAPのみ表示（ピンの都市名は残す） */
@media screen and (max-width: 1024px) {

  /* レイアウトを1カラム */
  .global-layout {
    grid-template-columns: 1fr;
  }

  /* 右側リストのみ非表示 */
  .location-list {
    display: none;
  }

  /* ピンの都市名は表示させる（重要） */
  .pin-label {
    display: block;
    opacity: 1;
  }
}

