@charset "UTF-8";
/* CSS Document */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
}
#map {
  height: 70vh;
  width: 90%;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
}
.container {
  max-width: 95%;
  margin: 0 auto;
  padding: 20px;
}
h1 {
  text-align: center;
  color: #05236d;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
  font-size: 2rem;
}
h2 {
  color: #2c3e50;
  text-align: center;
  margin: 20px 0 15px 0;
}
.hanbaibox {
  display: block;
  margin: 0 auto;
  max-width: 400px;
  text-align: center;
  padding: 15px;
}
.hanbaiaddress a, .hanbaitel a {
  text-decoration: none;
  color: #01227A;
}
.hanbaitel {
  font-size: 1.2em;
  font-weight: bold;
  margin: 10px 0;
}
.chuui {
  color: #d9534f;
  font-size: 0.9em;
  margin-top: 10px;
}
.controls {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin: 20px auto;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}
.district-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.district-item {
  background: #EEEEEE;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}
.district-item:hover {
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}
.district-name {
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
}
.area-list {
  font-size: 0.9em;
  color: #546e7a;
  line-height: 1.6;
}
.btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin: 10px 5px;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #ddd;
}
.tothetop {
  display: table;
  text-align: center;
  margin: 3rem auto;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #ccc;
  padding: 1rem;
  background: #01B29F;
  border-radius: 15px;
  color: #fff;
}
.tothetop:hover {
  background: #fff;
  color: #01B29F;
}
/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  h2 {
    font-size: 1.2rem;
  }
  #map {
    height: 50vh;
    width: 95%;
    margin: 10px auto;
    border-radius: 10px;
  }
  .controls {
    width: 95%;
    padding: 15px;
    margin: 10px auto;
  }
  .legend {
    gap: 10px;
  }
  .legend-item {
    font-size: 0.85em;
  }
  .color-box {
    width: 16px;
    height: 16px;
  }
  .district-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .district-item {
    padding: 10px;
  }
  .district-name {
    font-size: 0.95em;
  }
  .area-list {
    font-size: 0.85em;
  }
  .hanbaibox {
    padding: 10px;
  }
  .hanbaitel {
    font-size: 1.1em;
  }
}
@media (max-width: 480px) {
  #map {
    height: 100svh;
  }
  h1 {
    font-size: 1.2rem;
  }
  h2 {
    font-size: 1rem;
  }
  .legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .legend-item {
    font-size: 0.8em;
  }
  .controls {
    padding: 10px;
  }
  .chuui {
    font-size: 0.8em;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .district-list {
    grid-template-columns: repeat(2, 1fr);
  }
}