/* オフラインダウンロードボタン */
.offline-download-container {
  margin: 20px auto 0px;
}
.offline-download-btn {
  background: #dde7ef;
  color: #111;
  border: none;
  border-radius: 14px;
  padding: 8px 18px;
  font-size: 12px;
  display: flex;
  align-items: center;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.2s;
  margin: auto;
}
.offline-download-icon {
  display: flex;
  align-items: center;
}
.offline-download-progress,
.offline-download-complete {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

[v-cloak] {
  display: none;
}

:root {
  /* カラーパレット */
  /* 白、グレー */
  --color-primary: white;
  --color-secondary: #f0f7fd;
  --color-tertiary: #434648;

  /* 水色 */
  --color-sky-card: #d4edf7;

  /* ピンク */
  --color-pink-card: #fbe3e9;

  /* 紫 */
  --color-purple-card: #f0ddea;

  /* 黄色 */
  --color-yellow-card: #fdedcb;

  /* 青 */
  --color-blue-card: #e0f0fa;

  /* 黄緑 */
  --color-lime-card: #deeec7;

  /* オレンジ */
  --color-orange-card: #fde6d2;

  /* ネイビー */
  --color-navy-card: #d8e0ef;

  /* ミント */
  --color-mint-card: #dff5f1;

  /* 基本フォントサイズ */
  --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;

  --label-pad: 8px;
  --label-gap: 6px;
  --label-row-height: 28px;

  /* カテゴリラベルのサイズ設定(PC) */
  --label-scale: 0.8;
}

/* スマホ */
@media (max-width: 700px) {
  .spot-summary {
    align-items: center;
  }

  .spot-card_text {
    position: relative;
    min-height: 100px;
    overflow: hidden;
  }

  /* タイトル */
  .spot-card_name {
    transform: translateY(-0.6em);
    line-height: 1.3;
    font-size: 13px;
  }

  /* 会社名：右下 */
  .spot-card_company {
    bottom: 4px;
    right: 0;
    font-size: 12px;
    max-width: 100%;
    /* 長いものを省略する */
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
}

/* 横向きスマホ */
@media (max-width: 900px) and (orientation: landscape) {
  .spot-summary {
    align-items: center;
  }

  .spot-card_text {
    position: relative;
    min-height: 100px;
    overflow: hidden;
  }

  /* タイトル */
  .spot-card_name {
    transform: translateY(-0.6em);
    line-height: 1.3;
    font-size: 13px;
  }

  .spot-card_company {
    bottom: 4px;
    right: 0;
    font-size: 12px;
    max-width: 100%;
    /* 長いものを省略する */
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
}

.title-container {
  position: relative;
  text-align: center;
}

.center {
  text-align: center;
}

body {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  line-height: 1.6;
  margin: 0;
  background-color: var(--color-primary);
}

body.no-scroll {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  line-height: 1.6;
  margin: 0;
  background-color: var(--color-primary);
  overflow: hidden;
}

body.toppage-body {
  background-color: #d3f0f8;
}

#app {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 5px;
}

h1 {
  color: #333;
  font-size: var(--font-size-large);
  text-align: center;
}

.main-logo {
  display: block;
  margin: 0 auto;
  margin-bottom: 10px;
  width: 40%;
  height: auto;
  align-items: center;
}

@media (max-width: 700px) {
  .main-logo {
    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
    width: 80%;
    height: auto;
    align-items: center;
  }
}

.button {
  margin-top: 20px;
  display: inline-block;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.button:hover {
  background: #0056b3;
}

.start-button-link {
  display: inline-block;
  margin-top: 20px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.start-button-image {
  max-width: 300px;
  width: 60%;
  height: auto;
  border-radius: 8px;
}

@media screen and (max-width: 800px) {
  .start-button-image {
    width: 85%;
  }
}

.start-button-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.start-button-link:active {
  transform: scale(0.95);
}

/* スポットリスト */
.spot-list {
  list-style-type: none;
  padding: 0;
}

.list-body-class {
  padding-bottom: 180px;
  /* カテゴリドック分の余白を追加 */
}

.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;
  /* モバイル端末でのタップ時のハイライトを削除 */
}

/* スポットカードの形・色 */

.category-card.施設\/体験 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-sky-card);
}

.category-card.自然\/風景 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-lime-card);
}

.category-card.歴史\/文化 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-purple-card);
}

.category-card.交通 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-blue-card);
}

.category-card.レンタサイクル {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-yellow-card);
}

.category-card.お店 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-pink-card);
}

.category-card.飲食 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-orange-card);
}

.category-card.宿泊 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-navy-card);
}

.category-card.お散歩 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-mint-card);
}

/* スポットカードの形・色English */
.category-card.Facility\/Experience {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-sky-card);
}

.category-card.Nature\/Scenery {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-lime-card);
}

.category-card.History\/Culture {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-purple-card);
}

.category-card.Transport {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-blue-card);
}

.category-card.Bike-Rental {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-yellow-card);
}

.category-card.Shop {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-pink-card);
}

.category-card.Food\&Drink {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-orange-card);
}

.category-card.Accommodation {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-navy-card);
}

.category-card.Walk {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-mint-card);
}

/* スポットカードの形・色繁体字 */
.category-card.設施\/體驗 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-sky-card);
}

.category-card.自然\/風景 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-lime-card);
}

.category-card.歷史\/文化 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-purple-card);
}

.category-card.交通 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-blue-card);
}

.category-card.腳踏車租借 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-yellow-card);
}

.category-card.商店 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-pink-card);
}

.category-card.餐飲 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-orange-card);
}

.category-card.住宿 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-navy-card);
}

.category-card.散步 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-mint-card);
}

/* スポットカードの形・色한글 */
.category-card.시설\/체험 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-sky-card);
}

.category-card.자연\/풍경 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-lime-card);
}

.category-card.역사\/문화 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-purple-card);
}

.category-card.교통 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-blue-card);
}

.category-card.자전거대여 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-yellow-card);
}

.category-card.상점 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-pink-card);
}

.category-card.음식 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-orange-card);
}

.category-card.숙박 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-navy-card);
}

.category-card.산책 {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-mint-card);
}

.spot-card_text {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100px;
  /* 画像が100×100のときはこれでよい。サイズによって変更 */
}

/* カードタイトル：上下中央、左右左寄せ */
/* PC */
.spot-card_name {
  font-size: 20px;
  line-height: 1.4;
  margin-top: 13px;
  margin-bottom: auto;
  font-weight: 700;
  align-self: flex-start;
}

/* iPhone SE */
@media (max-width: 380px) {
  .spot-card_name {
    font-size: 16px;
    line-height: 1.4;
    margin-top: 10px;
    margin-bottom: auto;
    font-weight: 700;
    align-self: flex-start;
    white-space: pre-line;
  }
}

/* iPhone 12 Pro XR 14 Pro Max */
@media (max-width: 450px) {
  .spot-card_name {
    font-size: 18px;
    line-height: 1.4;
    margin-top: 12px;
    margin-bottom: auto;
    font-weight: 700;
    align-self: flex-start;
  }
}

@media (max-width: 600px) {
  .spot-card_name {
    font-size: 16px;
  }
}

/* subtitle：右下寄せ */
/* PC */
.spot-card_subtitle {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 16px;
  color: #667085;
  margin: 0;
  max-width: 600px;
  white-space: normal;
  word-break: break-word;
}

/* iPhone SE */
@media (max-width: 380px) {
  .spot-card_subtitle {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 15px;
    color: #667085;
    margin: 0;
    max-width: 600px;
    white-space: normal;
    word-break: break-word;
  }
}

/* iPhone 12 Pro XR 14 Pro Max */
@media (max-width: 450px) {
  .spot-card_subtitle {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 12px;
    color: #667085;
    margin: 0;
    max-width: 600px;
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 600px) {
  .spot-card_subtitle {
    font-size: 12px;
  }
}

.spot-summary {
  color: #333;
  display: flex;
  align-items: stretch;
  position: relative;
  font-size: var(--font-size-base);
  gap: 8px;
}

.spot-summary img {
  border-radius: 3px;
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-right: 20px;
  grid-row: 1 / span 2;
}

.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;
}

/* アクセシビリティ：キーボードフォーカス */
.cat-btn:focus-visible {
  outline: 2px solid #1976d2;
  outline-offset: 2px;
}

.image-container {
  border-radius: 8px;
  width: 100%;
  /* コンテナの幅を画面幅に合わせる */
  aspect-ratio: 16 / 9;
  /* 画像の縦横比が16:9になるように高さを設定 */
  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;
}

.toggle-switch {
  margin: auto;
  display: flex;
  align-items: center;
  font-size: var(--font-size-small);
}

.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: #bada55;
}

.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: 0px;
  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-in-out;
}

.survey-button {
  transition: all 0.3s ease;
}

.survey-button img {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 420px) {
  .survey-button-container {
    padding: 0;
  }
}

.banner {
  margin-bottom: 10px;
  text-align: center;
  width: 40%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  box-sizing: border-box;
}

@media screen and (max-width: 800px) {
  .banner {
    width: 70%;
  }
}

.mainimage {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

footer {
  margin-top: 20px;
  font-size: var(--font-size-small);
  text-align: center;
  color: #666;
  margin-bottom: 1.5em;
}

/* カテゴリドック */
/* 共通カテゴリドック */
.category-dock-container {
  display: flex;
}

.map-category-dock-container {
  position: fixed;
  display: flex;
  width: 90%;
  top: 15%;
}

.list-category-dock-container {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-primary);
  padding-top: 20px;
  padding-bottom: 10px;
}
.category-scroll-arrow {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.category-dock {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding: 10px 0 10px 6px;
  max-width: 100vw;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f8f9fa;
}

/* スクロールバーの見た目（Webkit系） */
.category-dock::-webkit-scrollbar {
  height: 8px;
}

.category-dock::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.category-dock::-webkit-scrollbar-track {
  background: #f8f9fa;
}

.category-btn {
  background: white;
  border: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  color: #666;
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
  border-radius: 15px;
  margin: 0 2px;
  padding: 4px 20px;
  white-space: nowrap;
}

.category-btn.selected {
  color: #1976d2;
  background: #e3f2fd;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.category-icon {
  font-size: 22px;
  margin-bottom: 2px;
  margin-right: 5px;
}

/* モーダル用 */
#map {
  position: absolute;
  height: 90%;
  width: 90%;
  padding: 0px;
  border-width: 0px;
  margin: 0px;
  left: 5%;
  top: 8%;
}

body.modal-open {
  overflow: hidden;
}

/* Vueモーダル用 */
.spot-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow-y: auto;
  /* モーダル内のスクロールを許可 */
}

.spot-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 340px;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 375px) {
  .spot-modal-content {
    max-height: 80vh;
    max-width: 75vw;
  }
}

.spot-modal-content img {
  width: 100%;
  border-radius: 6px;
}

.spot-modal-content h2 {
  margin-top: 15px;
  font-size: 1.3em;
}

.spot-modal-content p {
  max-height: 25vh;
  /* モーダルの高さに応じて調整 */
  overflow-y: auto;
  margin: 10px 0 15px 0;
  color: #222;
  line-height: 1.8;
  text-align: justify;
  flex: 1 1 auto;
  padding: 0 15px;
}

@media (max-width: 375px) {
  .spot-modal-content p {
    max-height: 20vh;
    /* モーダルの高さに応じて調整 */
    overflow-y: auto;
    margin: 10px 0 15px 0;
    color: #222;
    line-height: 1.8;
    text-align: justify;
    flex: 1 1 auto;
    padding: 0 15px;
  }
}

.spot-modal-content audio {
  width: 100%;
  margin-bottom: 10px;
}

.spot-modal-content button {
  display: block;
  margin: 0 auto;
  padding: 10px;
  width: 100%;
  background-color: var(--color-tertiary);
  color: var(--color-secondary);
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}

.spot-modal-content button:hover {
  background: #979797;
}

.offline-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(239, 248, 254, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.offline-modal-overlay.show {
  display: flex !important;
}

.offline-modal-content {
  background: #ffffff;
  color: #434648;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  min-width: 300px;
  max-width: 90vw;
  margin: 0 15px;
  box-shadow: 0 8px 32px rgba(67, 70, 72, 0.15);
  border: 1px solid #e0e7ee;
}

@media (max-width: 768px) {
  .offline-modal-content {
    min-width: unset;
    max-width: 95vw;
    padding: 24px 20px;
    margin: 0 10px;
  }

  .offline-modal-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .offline-modal-content p {
    font-size: 16px;
    line-height: 1.6;
    margin: 15px 0;
  }

  .offline-modal-content button {
    padding: 12px 24px;
    font-size: 16px;
    margin-top: 15px;
    min-height: 44px;
    min-width: 100px;
  }
}

.offline-modal-content h3 {
  margin-top: 0;
  color: #d97706;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.offline-modal-content p {
  margin: 10px 0;
  line-height: 1.6;
  font-size: 14px;
  color: #6b7280;
}

.offline-modal-content button {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 14px;
  transition: background 0.3s ease;
}

.offline-modal-content button:hover {
  background: #0056b3;
}

.page-switch-button button {
  font-size: 16px;
  width: 140px;
  height: 50px;
  border-width: 1px;
  color: #fff;
  font-weight: regular;
  border-radius: 42px;
  background: rgba(13, 34, 94, 1);
  cursor: pointer;
  right: 5%;
  bottom: calc(5% + env(safe-area-inset-bottom, 0px));
  position: fixed;
  transition: bottom 0.2s ease-in-out;
}

#map-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: auto;
  transition: opacity 0.3s ease;
  opacity: 1;
  gap: 2rem;
  transform: translateZ(0);
  isolation: isolate;
}

#map-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#map-loading-overlay img {
  width: 80px;
  margin-top: 12px;
}

.gm-style-mtc button {
  font-size: 12px !important;
}

.spinner {
  width: 40px;
  height: 40px;
  position: relative;
}

.spinner::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border-top: 3px solid #07d;
  border-right: 3px solid transparent;
  animation: spinner 600ms linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.loading-character {
  width: 85px; /* frame width */
  height: 117px; /* frame height */
  background-image: url("../material/mascot-sprite-sheet.png");
  background-repeat: no-repeat;
  background-size: 258px 236px;
  will-change: background-position;
  background-position: 0 0;
  animation: wave 0.5s steps(1) infinite alternate;
  backface-visibility: hidden; /* iOS対策 */
  transform: translate3d(0, 0, 0); /* iOS対策 */
}

@keyframes wave {
  0%,
  10% {
    background-position: 0 0;
  } /* frame 1 */
  20%,
  30% {
    background-position: -86px 0; /* 172 / 2 */
  } /* frame 2 */
  40%,
  50% {
    background-position: -172px 0; /* 344 / 2 */
  } /* frame 3 */
  60%,
  70% {
    background-position: 0 -118px; /* 236 / 2 */
  } /* frame 4 */
  80%,
  90% {
    background-position: -86px -118px; /* 172 / 2, 236 / 2 */
  } /* frame 5 */
  100% {
    background-position: 0 0;
  } /* loop back to frame 1 */
}
/* ホームに戻るボタン用スタイル */
.back-home-button {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #253a6b;
  font-size: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.back-home-arrow {
  display: flex;
  align-items: center;
}
.back-home-arrow svg {
  vertical-align: middle;
  margin-right: 2px;
}
.back-home-icon {
  display: flex;
  align-items: center;
}
.back-home-icon svg {
  vertical-align: middle;
  margin-left: 2px;
}

.footer-cookie-link {
  color: #888888 !important;
}
