.layerlist-opacity {
  color: #ccc;
  width: 65%;
}

input[type=range] {
  color: #ccc;
  background-color: #0b0c14;
  height: 5px;
  /* border: solid 1px #ccc; */

  &::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
    border: none;
    width: 12px;
    height: 12px;
    display: block;
    background-color: #262626;
    border-radius: 50%;
    -webkit-border-radius: 50%;
  }
}

.mapboxgl-ctrl-top-right {
  display: none;
}

.mapboxgl-ctrl-bottom-left {
  display: none;
}

.mapboxgl-popup-content {
  color: #000000;
  background-color: #E8E8E8;
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
  border-top-color: #E8E8E8 !important;
}

.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
  border-bottom-color: #E8E8E8 !important;
}

.mapboxgl-popup-close-button {
  color: #141415;
}

.popup-table {
  font-size: 12px;
  color: #fff;
}

.frInfo-popup {
  width: 450px;
}


@keyframes circular-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.circular-spinner {
  width: 40px;
  height: 40px;
  /* 線の太さと色 */
  border: 4px solid #f3f3f3;
  /* 円形にする */
  border-radius: 50%;
  /* 一部分だけ色を変えて、回転しているように見せる */
  border-top: 4px solid #3498db;
  /* 回転アニメーションを適用 */
  animation: circular-spin 1s linear infinite;
}

@keyframes spinnerBounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1.0);
  }
}

/* ローディングアニメーション */
.loader-line {
  display: flex;
  justify-content: center;
  margin: 10px auto;
  width: 200px;
  height: 4px;
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}

.loader-line:before {
  content: "";
  position: absolute;
  left: -50%;
  height: 100%;
  width: 50%;
  background-color: #ffffff;
  animation: loading-line 0.8s infinite linear;
  border-radius: 20px;
}

.loading {
  top: 45%;
  left: 42.5%;
  z-index: 99999;
  position: fixed;
  text-align: center;
}

@keyframes loading-line {
  0% {
    left: -50%;
  }

  100% {
    left: 100%;
  }
}

.maplayerlist-opacity {
  color: #ccc;
  width: 75px;
}

.maplayerlist-label {
  color: #fff;
  font-size: smaller;
  width: 60px;
  /* text-align: center; */
}

.maplayerlist-layers {
  margin: 2.5px 0 0 10px;
  padding: 0;
}

.maplayerlist-legend {
  margin: 0;
  inline-size: 10px;
  block-size: 10px;
  /* border-radius: 50%; */
  display: inline-block;
}

#monitoring-color {
  inline-size: 50px;
  block-size: 20px;
  margin: 0;
}

.modal-btn {
  background-color: #ccc !important;
  color: #0D1B36 !important;
  font-size: 11px !important;
  border: none !important;
  width: 75px !important;
}

.zoning-popup {
  max-height: 300px !important;
  max-width: 350px !important;
  /* overflow: auto; */
  margin-right: 20px;
  color: #ccc;
  font-size: 12px;
}

.shimane-popup {
  max-height: 300px !important;
  max-width: 450px !important;
  /* overflow: auto; */
  margin-right: 20px;
  color: #ccc;
  font-size: 12px;
}

.zoning-popup-title {
  color: #141415;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 8px;
  margin-top: 0px;
  letter-spacing: 0.5px;
  background: #FAFBFD;
  border-radius: 999px;
  padding: 7px 22px;
  display: inline-block;
  /* 修正: テキストをポップアップの中央に配置 */
  text-align: center;
}

.zoning-popup-content {
  color: #141415;
  font-size: 13px;
  /* overflow: auto; 削除 */
  /* max-height: 300px; 削除 */
  width: 320px;
  margin-right: 5px;
  margin-top: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 12px 16px;
  text-align: center;
}

.zoning-popup-content-table {
  width: 100%;
  color: #141415;
  font-size: 13px;
  border-collapse: collapse;
  margin: 8px 0;
  background: #FAFBFD;
  border-radius: 6px;
  /* overflow: hidden; 削除 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.zoning-popup-content-table th,
.zoning-popup-content-table td {
  border: 1px solid #D2D5DA;
  padding: 8px 12px;
  color: #141415;
  background: #FAFBFD;
  text-align: center;
  font-weight: normal;
}

.zoning-popup-content-table th {
  background: #FAFBFD;
  color: #141415;
  font-weight: normal;
  border-bottom: 1px solid #D2D5DA;
}

.zoning-popup-content-table td.value-cell {
  text-align: right !important;
  padding-right: 20px;
}

.zoning-popup-content-table tr.sum-row td {
  border-top: 3px double #888 !important;
}

.zoning-popup-content-table tr:nth-child(even) {
  background: #383838;
}

#dissolve-button-area {
  margin-top: 10px;
  text-align: center;
}

.dissolve-button {
  margin-right: 10px;
}

.zoning-conditional-search-body {
  margin: 0 10px 20px 10px;
}

.zoning-conditional-search-top {
  margin: 10px 10px 20px 10px;
}

.zoning-conditional-search-bottom {
  margin: 0 10px 0 10px;
}

.zoning-conditional-search-label {
  margin-bottom: 5px;
}

.zoning-conditional-search-color {
  margin-bottom: 2.5px;
}

#zoning-conditional-search-modal {
  max-width: 700px !important;
}

#close-maplayer-button {
  position: absolute;
  right: 20px;
  top: 10px;
  width: 20px;
  height: 30px;
  cursor: pointer;
}

.monitoring-popup {
  max-width: 900px !important;
}

/* 市場価格ポップアップ専用のカスタムスタイル */
.custom-market-price-popup .mapboxgl-popup-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

.custom-market-price-popup .mapboxgl-popup-tip {
  display: none !important;
}

.custom-market-price-popup .mapboxgl-popup-close-button {
  display: none !important;
}

/* ポップアップコンテナ全体の影も削除 */
.custom-market-price-popup {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  filter: none !important;
}

/* テーブルに影を追加してテーブルのみ強調 */
.custom-market-price-popup table {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: white !important;
}

/* ゾーニングポップアップの影や枠を除去 */
.zoning-popup-content {
  box-shadow: none !important;
  border: none !important;
}

.zoning-popup-content-table {
  box-shadow: none !important;
  border: none !important;
}

/* 生物多様性詳細パネルのスタイル（チャット下に挿入） */
.biodiversity-detail-panel {
  background-color: #ffffff;
  border-top: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
  padding: 16px;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  color: #141415;
  max-height: 300px;
  overflow-y: auto;
  box-sizing: border-box;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.biodiversity-detail-content {
  color: #141415;
  font-size: 14px;
  line-height: 1.6;
}

#biodiversityDetailContent table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

#biodiversityDetailContent table th,
#biodiversityDetailContent table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

#biodiversityDetailContent table th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #141415;
}

#biodiversityDetailContent table tr:hover {
  background-color: #f9f9f9;
}

#biodiversityDetailContent .species-item {
  margin: 8px 0;
  padding: 8px;
  background-color: #f9f9f9;
  border-left: 3px solid #4CAF50;
}

#biodiversityDetailContent .species-name {
  font-weight: 600;
  color: #141415;
}

#biodiversityDetailContent .species-probability {
  color: #666;
  font-size: 12px;
}

/* ===== 詳細パネル スタイル定義 ===== */
#detailPanelDynamic {
  position: fixed;
  bottom: 10px;
  left: 20px;
  right: 20px;
  background-color: #ffffff;
  border-top: 2px solid #ddd;
  border-radius: 12px 12px 0 0;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  color: #141415;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  display: flex;
  flex-direction: column;
}

/* パネルの閉じるボタン */
.detail-panel-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #666;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.detail-panel-close-btn:hover {
  color: #333;
}

/* パネルのリサイザーバー */
.detail-panel-resizer {
  flex-shrink: 0;
  width: 100%;
  height: 6px;
  background: #ddd;
  cursor: ns-resize;
  border-top: 1px solid #ccc;
}

/* パネルのヘッダー */
.detail-panel-header {
  flex-shrink: 0;
  border-bottom: 2px solid #f0f0f0;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #141415;
}

.detail-panel-header button {
  background: none;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* パネルのフィルターセクション */
.detail-panel-filters {
  flex-shrink: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  display: none;
}

.detail-panel-filters > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* パネルのコンテンツエリア */
.detail-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
  color: #141415;
  font-size: 14px;
  line-height: 1.6;
}
