body {
  margin: 0;
  padding: 0;
}
#map {
  width: 100%;
  height: 100vh;
}
.icon-gray {
  filter: grayscale(100%);
}
.info {
  color: #333;
  background: white;
  padding: 10px;
  border: 1px solid #5d5d5d;
  border-radius: 4px;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.info p {
  padding: 0;
  margin: 0 0 2px 0;
  font-weight: bold;
}
.legend {
  line-height: 18px;
}
.progressValue {
  font-size: 25px;
  line-height: 1;
  margin: 0;
}
.legend-inner-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.legend-gradient {
  background: linear-gradient(
    to top,
    #eaf8ff,
    #a0cdff,
    #6394ff,
    #2960ff,
    #0032ff 95%,
    #0019ff 95% 100%
  );
  height: 100px;
  width: 20px;
}
.legend-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100px; /* same as legend-gradient */
  margin-left: 10px;
}
.legend-labels span {
  text-align: left;
}

/* アーカイブ切り替えコントロール */
.archive-toggle-control {
  background: white;
  padding: 12px;
  border: 1px solid #5d5d5d;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.archive-toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
  background-color: #2196f3;
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-label {
  display: flex;
  align-items: center;
}

.toggle-text {
  font-weight: 500;
  white-space: nowrap;
}

/* アーカイブドロップダウン */
.archive-select {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s;
}

.archive-select:hover {
  border-color: #2196f3;
}

.archive-select:focus {
  border-color: #2196f3;
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

/* 既存のレスポンシブデザイン */
@media (max-width: 767px) {
  .info {
    padding: 7px;
  }
  .legend {
    margin-bottom: 50px !important;
  }
  .progressValue {
    font-size: 25px;
  }

  /* モバイル用アーカイブ切り替えコントロール調整 */
  .archive-toggle-control {
    padding: 8px;
    font-size: 12px;
    /* 位置を下部に固定 */
    position: fixed !important;
    bottom: 20px !important;
    right: 10px !important;
    top: auto !important;
    z-index: 1000;
    max-width: 200px;
  }

  .archive-toggle-container {
    gap: 8px;
    align-items: flex-start;
  }

  .toggle-switch {
    width: 40px;
    height: 20px;
  }

  .toggle-slider:before {
    height: 14px;
    width: 14px;
  }

  input:checked + .toggle-slider:before {
    transform: translateX(20px);
  }

  /* モバイル用ドロップダウン調整 */
  .archive-select {
    font-size: 12px;
    padding: 2px 6px;
    max-width: 150px;
  }
}
