/*リセット用CSS*/
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", メイリオ,
    Meiryo, "ＭＳ Ｐゴシック", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #e6e6e6;
  height: 100vh;
  overflow: hidden;
}

/*--------------------------------------------------------------------------------------------------------*/
ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
}

header {
  padding: 20px 4% 10px; /* 上下のパディングを調整 */
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100; /* モーダルよりも低い値に設定 */
}

.full {
  position: relative;
  width: 100%;
  height: 100svh;
  z-index: 1; /* モーダルの背面に設定 */
}

#mapId {
  position: relative;
  z-index: 1;
}

.popupImage {
  width: 100px; /* または適切な幅 */
  height: auto;
}

.comment-image {
  width: 100px; /* または適切な幅 */
  height: auto;
}

/* 画像拡大モーダル */
.modalImg {
  display: none;
  position: fixed;
  z-index: 1000; /* 他の要素よりも前面に表示 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.imageModalContentWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
}

.imageModalContentWrapper img {
  width: 100%; /* 横幅を親要素に合わせる */
  height: auto; /* 高さを自動調整 */
  max-height: 80vh; /* 最大高さを画面の80%に設定 */
  object-fit: contain; /* 比率を保持して収める */
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-touch-callout: none;
  -moz-user-select: none;
  user-select: none;
}

.modalClose {
  position: absolute;
  top: 10px; /* 上からの位置を調整 */
  right: 30px; /* 右からの位置を調整 */
  color: white; /* 色を白に変更 */
  font-size: 50px; /* フォントサイズを大きく設定 */
  font-weight: bold;
  cursor: pointer;
  z-index: 1001; /* バツボタンを画像よりも前面に表示 */
}

.modalClose:hover {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

#errorMessage {
  color: red;
  display: none;
}

#imagePreview {
  display: none;
}

#previewImg {
  max-width: 100%;
  height: auto;
}
