[v-cloak] {
  display: none;
}

:root {
  /* カラーパレット */
  --color-primary: #ffffff;
  --color-secondary: #f0f7fd;
  --color-tertiary: #434648;

  /* 基本フォントサイズ */
  --font-size-base: 16px;
  --font-size-small: 0.875rem;
  --font-size-large: 1.25rem;

  /* タッチターゲットの最小サイズ */
  --touch-target-size: 44px;

  /* インタラクションの設定 */
  --scale-active: 0.95;
  --transition-duration: 0.1s;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  margin: 0;
  background-color: var(--color-primary);
}

#app {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #009E96;
  font-size: var(--font-size-large);
  text-align: center;
}

.main-logo {
  display: block;
  margin: 0 auto;
  margin-bottom: 10px;
  width: 50%;
  height: auto;
  align-items: center;
}

/* モーダル表示時の背景固定用 */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* マップクリック時に出るモーダル */
.spot-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  overflow-y: auto; /* モーダル内のスクロールを許可 */
}

.spot-modal-overlay .btn-close-spot {
  position: absolute;
  top: 0.5%;
  right: 2%;
  background: none;
  border: none;
  font-size: 40px;
  color: white;
  display: flex;
  z-index: 300;
  min-width: var(--touch-target-size);
  min-height: var(--touch-target-size);
}

.spot-modal {
  background: var(--color-secondary);
  border-radius: 10px;
  width: 80%;
  height: 85%;
  padding: 5px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
}

.spot-modal .content {
  overflow-y: auto;
  margin-bottom: calc(7vh + 20px);
}

.spot-modal .description {
  font-size: var(--font-size-base);
  color: #222;
  line-height: 1.8;
  text-align: justify;
  flex: 1 1 auto;

  padding: 0 15px;
  margin: 0;
}

.spot-modal .image-container {
  flex: 0 0 30vh; /* 画像部分を固定サイズに */
}

.spot-modal h2 {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 5px;
  color: #333;
  font-size: var(--font-size-large);
}
.spot-modal .audio-player {
  position: fixed;
  bottom: calc(7vh + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(85% - 40px);
  max-width: 760px;
  z-index: 2;
}

/* スポットリスト */
.spot-list {
  list-style-type: none;
  padding: 0;
}

.spot-item {
  background: var(--color-secondary);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent; /* モバイル端末でのタップ時のハイライトを削除 */
}

.spot-name {
  white-space: normal;
  display: block;
  margin: 5px 0;
}

@media screen and (max-width: 393px) {
  .spot-name {
    white-space: pre-line;
  }
}

.spot-summary {
  color: #333;
  display: flex;
  align-items: center;
  font-size: var(--font-size-base);
}

.spot-summary img {
  border-radius: 3px;
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-right: 20px;
}

.spot-details h2 {
  margin: 0 0 10px;
  font-size: var(--font-size-large);
}

.spot-details .description {
  font-size: var(--font-size-base);
  text-align: justify;
}

.image-container {
  border-radius: 7px;
  width: 100%;
  /* コンテナの幅を画面幅に合わせる */
  height: 30vh;
  /* コンテナの高さを画面高さの30%に設定 */
  overflow: hidden;
  /* はみ出た部分を隠す */
  position: relative;
  /* 子要素の配置の基準点となる */
}

.image-container img {
  width: 100%;
  /* 画像の幅をコンテナに合わせる */
  height: 100%;
  /* 画像の高さをコンテナに合わせる */
  object-fit: cover;
  /* アスペクト比を保ちながら、コンテナを埋めるようにする */
  object-position: center;
  /* 画像の中心を表示 */
  position: absolute;
  /* コンテナ内で絶対配置 */
  top: 0;
  left: 0;
}

.spot-details .btn-close-spot {
  /* グレーの横幅いっぱいのボタン */
  width: 100%;
  padding: 10px;
  background-color: var(--color-tertiary);
  color: var(--color-secondary);
  border: none;
  cursor: pointer;
  /* ボタンの角に丸みをつける */
  border-radius: 5px;
}

/* 自動再生トグルスイッチ */
.audio-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.toggle-switch {
  display: flex;
  align-items: center;
  font-size: var(--font-size-small);
  margin-left: auto;
}

.toggle-switch input[type="checkbox"] {
  height: 0;
  width: 0;
  visibility: hidden;
}

.toggle-switch label {
  cursor: pointer;
  text-indent: -9999px;
  width: 50px;
  height: 25px;
  background: grey;
  display: block;
  border-radius: 100px;
  position: relative;
}

.toggle-switch label:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background: #fff;
  border-radius: 90px;
  transition: 0.3s;
}

.toggle-switch input:checked + label {
  background: #5caddb;
}

.toggle-switch input:checked + label:after {
  left: calc(100% - 2px);
  transform: translateX(-100%);
}

/* 言語選択 */
.language-selector {
  position: relative;
  width: 40%;
}

.selected-language {
  cursor: pointer;
  padding: 5px 16px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.selected-language::after {
  content: "\25BC";
  font-size: var(--font-size-small);
  color: #8e8e93;
}

.selected-language:hover {
  background-color: #f8f8f8;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 1000;
}

.language-option {
  padding: 5px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: var(--font-size-small);
}

.language-option:hover {
  background-color: #f2f2f7;
}

.language-option:not(:last-child) {
  border-bottom: 1px solid #e5e5ea;
}

/* アンケートボタン */
.survey-button-container {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

.survey-message {
  font-size: var(--font-size-base);
  margin-bottom: 8px;
  color: #555;
}

.survey-button {
  background-color: #ef716a;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-bottom: 10px;
  font-size: var(--font-size-base);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.survey-button:hover,
.survey-button.button-hover {
  background-color: #5a7680;
}

.survey-button:active {
  transform: scale(0.98);
}
.banner1 {
  margin-bottom: 10px;
  width: 50%;
  display: block;
  margin: 0 auto;
}
.banner2 {
  margin-bottom: 10px;
  width: 30%;
  display: block;
  margin: 0 auto;
}

.close-audio-guide-button-container {
  text-align: center;
  padding: 10px;
}

.close-audio-guide-button {
  background-color: #5a7680;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-bottom: 10px;
  font-size: var(--font-size-base);
  border-radius: 5px;
  cursor: pointer;
}

footer {
  font-size: var(--font-size-small);
  text-align: center;
  color: #666;
  margin-bottom: 150px;
}




