* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  overflow: hidden;
}

.container {
  max-width: 100%;
  height: calc(100vh - 40px);
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.map-container {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #e7c2c2;
  border-radius: 10px;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.geolonia-svg-map {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.geolonia-svg-map .prefecture {
  stroke: #ffffff;
  stroke-width: 2;
  cursor: pointer;
  transition: all 0.3s ease;
}

.geolonia-svg-map .prefecture:hover {
  filter: brightness(0.85);
  stroke: #333;
  stroke-width: 3;
}

.geolonia-svg-map .boundary-line {
  stroke: #999999;
  stroke-width: 1;
}

/* 地方区分颜色 */
.hokkaido {
  fill: #ff6b6b;
}
.tohoku {
  fill: #4ecdc4;
}
.kanto {
  fill: #45b7d1;
}
.chubu {
  fill: #ffa07a;
}
.kinki {
  fill: #98d8c8;
}
.chugoku {
  fill: #f7dc6f;
}
.shikoku {
  fill: #bb8fce;
}
.kyushu-okinawa {
  fill: #85c1e2;
}

.info-box {
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  pointer-events: none;
  display: none;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 250px;
}

.info-box.show {
  display: block;
}

.info-box h3 {
  margin-bottom: 8px;
  font-size: 1.3em;
  border-bottom: 2px solid white;
  padding-bottom: 5px;
}

.info-box p {
  margin: 5px 0;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .map-container {
    padding: 10px;
  }
}
