// 日本地図のスタイル
.japan-map-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.map-wrapper {
  width: 60%;
  max-width: 700px;
  position: relative;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-wrapper svg {
  max-width: 100%;
  height: auto;
  max-height: 600px;
}

.region-info {
  width: 35%;
  min-width: 300px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.region-info h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
}

.region-info h4 {
  margin: 15px 0 10px;
  font-size: 1.1rem;
  color: var(--secondary-color);
}

.region-info ul {
  margin-bottom: 15px;
  padding-left: 20px;
  list-style-type: disc;
}

.region-info ul li {
  margin-bottom: 5px;
}

.region-cities, .region-attractions, .region-videos {
  margin-bottom: 20px;
}

.region-info .btn {
  display: inline-block;
  margin-top: 10px;
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
  .japan-map-container {
    flex-direction: column;
    align-items: center;
  }
  
  .map-wrapper, .region-info {
    width: 100%;
  }
  
  .map-wrapper {
    min-height: 500px;
  }
}

@media (max-width: 576px) {
  .map-wrapper {
    min-height: 400px;
    padding: 10px;
  }
  
  .region-info h3 {
    font-size: 1.3rem;
  }
  
  .region-info h4 {
    font-size: 1rem;
  }
}

/* ローディングインジケーター */
.map-loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 400px;
  width: 100%;
}

.map-loading-spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 都道府県ホバー効果のカスタマイズ */
.prefecture {
  transition: fill 0.3s ease, transform 0.2s ease;
}

.prefecture:hover {
  fill: #ffcc00 !important;
  transform: translate(-2px, -2px);
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.3));
}

.prefecture.selected {
  fill: #ffcc00 !important;
  transform: translate(-2px, -2px);
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.3));
}

/* 凡例のスタイル */
#legend {
  opacity: 0.9;
}

#legend:hover {
  opacity: 1;
}
