:root {
    --icon-size: 32px;
    --popup-border-radius: 10px;
    --popup-background: white;
    --idou-color: #c260fa;
    --syokuji-color: #ff821d;
    --kaimono-color: #ff4985;
    --syumi-goraku-color: #2166f4;
    --sonota-color: #616864;
    --pulse-color: #3498db;
    --marker-color: #fcff00;
  }
  
/* マップコンテナを全画面に設定 */
#mapcontainer {
    width: 100vw;
    height: 100vh;
    position: relative;
    background-color: #0AB7FF;
  }

  @keyframes pulse {
    0% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 1;
    }
    100% {
      transform: translate(-50%, -50%) scale(3);
      opacity: 0;
    }
  }
  #logo-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 500;
    width: auto;
  }
  
  .icon-container {
    width: 32px;
    height: 32px;
    z-index: 200;
  }
  
  .base-icon {
    width: 100%;
    height: 100%;
  }
  
  #compass-container {
    position: absolute;
    bottom: 20px;  /* 上(top)ではなく下(bottom)からの位置指定 */
    left: 20px;    /* 右(right)ではなく左(left)からの位置指定 */
    z-index: 1000;
  }
  
  #compass {
    width: 50px;
    height: auto;
  }
  #language-container {
    position: absolute;
    bottom: 20px;  /* コンパスと同じ高さ */
    left: 80px;    /* コンパスの右側に配置 */
    z-index: 1000;
  }
  #language-button {
    width: 50px;  /* または必要なサイズ */
    height: auto;
    cursor: pointer;
  }
  #comment-container {
    position: absolute;
    bottom: 20px;  /* コンパスと同じ高さ */
    left: 150px;    /* コンパスの右側に配置 */
    z-index: 1000;
  }
  #comment {
    width: 200px;  /* または必要なサイズ */
    height: auto;
    cursor: pointer;
  }
  #logo {
    width: 100px;
    height: auto;
  }
  .language-selector {
    position: relative;
    cursor: pointer;
  }
  
  .language-dropdown {
    display: none;
    position: absolute;
    bottom: 40px; /* 言語ボタンの上に表示 */
    left: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-width: 120px;
    z-index: 1001;
  }
  
  .language-dropdown.show {
    display: block;
  }
  
  .language-option {
    padding: 8px 12px;
    color: #333;
    transition: background-color 0.2s;
  }
  
  .language-option:hover {
    background-color: #f5f5f5;
  }
  .language-option.selected {
    background-color: #e0e0e0;
    font-weight: bold;
  }
  /* デフォルトのLeafletクラスに対してスタイルを上書き */
  .leaflet-marker-icon.custom-div-icon {
    pointer-events: none !important;
    height: 0px !important;
  }
  
  .leaflet-marker-icon.custom-div-icon div {
    pointer-events: none !important;
    height: 0px !important;
  }
  
  .leaflet-marker-icon.custom-div-icon.leaflet-zoom-animated {
    pointer-events: none !important;
    height: 0px !important;
  }
  
  .leaflet-marker-icon.custom-div-icon.leaflet-interactive {
    pointer-events: none !important;
    height: 0px !important;
  }
  .custom-div-icon {
    background: transparent;
    border: none;
    white-space: nowrap;
    text-align: center;
    transform: translate(-50%, -50%);
    text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff,
      2px 2px 0 #fff;
    pointer-events: none;
    height: 0px;
  }
  /* Leaflet画像レイヤーの回転 */
  .leaflet-image-layer {
    transform: rotate(-45deg);
  }
  body {
    margin: 0;
  }
  .leaflet-popup {
    margin-bottom: 5px;
  }
  .leaflet-popup-content-wrapper {
    border: 3px solid;
    border-radius: 10px;
    position: relative;
    background-color: white;
    overflow: visible;
  }
  .leaflet-popup-content-wrapper::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    z-index: 2;
  }
  .leaflet-popup-content-wrapper.idou,
  .leaflet-popup-tip.idou,
  .leaflet-popup-content-wrapper.idou::before {
    border: 3px solid var(--idou-color);
  }
  
  .leaflet-popup-content-wrapper.syokuji,
  .leaflet-popup-tip.syokuji,
  .leaflet-popup-content-wrapper.syokuji::before {
    border: 3px solid var(--syokuji-color);
  }
  .leaflet-popup-content-wrapper.kaimono,
  .leaflet-popup-tip.kaimono,
  .leaflet-popup-content-wrapper.kaimono::before {
    border: 3px solid var(--kaimono-color);
  }
  .leaflet-popup-content-wrapper.syumi_goraku,
  .leaflet-popup-tip.syumi_goraku,
  .leaflet-popup-content-wrapper.syumi_goraku::before {
    border: 3px solid var(--syumi-goraku-color);
  }
  .leaflet-popup-content-wrapper.sonota,
  .leaflet-popup-tip.sonota,
  .leaflet-popup-content-wrapper.sonota::before {
    border: 3px solid var(--sonota-color);
  }
  .leaflet-popup-content-wrapper::after {
    content: "";
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 19px;
    background-color: white;
    border-radius: 50% / 0 0 100% 100%;
    z-index: 2;
  }
  .leaflet-popup-content {
    position: relative;
    font-size: 10px;
    word-wrap: break-word;
    word-break: break-all;
    margin: 10px;
    max-width: calc(100vw - 300px);
    width: 100px;
    z-index: 3;
  }
  .popup-text {
    position: relative;
    display: flex;  /* Flexboxを使用 */
    align-items: center;  /* 垂直方向の中央揃え */
    justify-content: flex-end;  /* 右寄せ */
  }
  .popup-text img {
    width: 20px;
    height: 20px;
    margin-left: 5px;  /* テキストとの間隔 */
  }
  .popup-circle {
    position: absolute;
    top: -43px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 3;
  }
  .icon-gif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .leaflet-popup {
    min-width: 100px;
  }
  
  .leaflet-marker-icon.idou,
  .leaflet-marker-icon.syokuji,
  .leaflet-marker-icon.syumi_goraku,
  .leaflet-marker-icon.kaimono,
  .leaflet-marker-icon.sonota {
    z-index: 100;
  }

  .leaflet-popup-tip {
    position: relative;
    border-radius: 50%;
    width: 13px;
    height: 22px;
    transform: rotate(0deg);
    overflow: visible;
    z-index: 100;
    z-index: 4;
    top: -7px;
  }
  
  .leaflet-popup-content::after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16.5px;
    height: 4.5px;
    background-color: white;
    z-index: 5;
  }
  .png-overlay {
    position: absolute;
    top: 7%;
    left: 12%;
    width: 75%;
    height: 75%;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
  }

  /* モーダル用のCSS */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒背景 */
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
/* モーダルの基本スタイル */
.modal-content {
  position: relative;
  background-color: white;
  width: 80%;
  height: 50%;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;           /* 追加 */
  justify-content: center; /* 追加 */
  align-items: center;     /* 追加 */
}

.modal-body {
  width: 100%;            /* 追加 */
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#commentForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.textarea-container {
  width: 100%;           /* 80%から100%に変更 */
  display: flex;         /* 追加 */
  justify-content: center; /* 追加 */
}

#commentTextarea {
  width: 80%;           /* コンテナ内での幅を指定 */
  height: 150px;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  resize: none;
  font-size: 16px;
}

.submit-button-container {
  text-align: center;
  width: 100%;    
}

.submit-button {
  width: 80%;          /* ボタンサイズを50%に設定 */
  height: auto; 
  cursor: pointer;
  transition: transform 0.2s;
}

.submit-button:hover {
  transform: scale(1.05);
}
/* モーダル用のCSS */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒背景 */
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background-color: white;
  width: 80%;
  height: 50%;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.close-button img {
  width: 24px;
  height: 24px;
}

.modal-body {
  height: 100%;
  overflow-y: auto;
}

/* モーダルを表示するときのクラス */
.modal-overlay.show {
  display: flex;
}
.batsu {
  display: block;
  position: relative;
  width: 30px;
  height: 30px;
}
 
.batsu::before, .batsu::after { /* 共通設定 */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px; /* 棒の幅（太さ） */
  height: 30px; /* 棒の高さ */
  background: #333;
}
 
.batsu::before {
  transform: translate(-50%,-50%) rotate(45deg);
}
 
.batsu::after {
  transform: translate(-50%,-50%) rotate(-45deg);
}

.button-container {
  display: flex;
  justify-content: flex-end;  /* 中身を右寄せ */
  align-items: center;
  gap: 20px;  /* プルダウンとボタンの間隔 */
  width: 100%;
}
/* プルダウンのスタイル */
.comment-type-select {
  padding: 8px 12px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 6px;
  background-color: white;
  cursor: pointer;
  min-width: 100px;
  margin-bottom: 8px;  /* コンテナの幅を100%に */

}

.comment-type-select:focus {
  outline: none;
  border-color: #007bff;
}

