/** プレリリース用音声ガイドに差し込むテキスト「プレビュー版」 */
.environment-banner {
  font-size: 48px;
  font-weight: bold;
  color: #d32f2f;
  text-align: center;
}
/* オフラインダウンロードボタン */
.offline-download-container {
  margin: 20px auto 0px;
}
.offline-download-btn {
  background: var(--tone-2);
  color: var(--tone-5);
  border: 1.5px solid var(--tone-3);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  padding: 8px 18px;
  font-size: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 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 {
  /* 5色トーン（デフォルト）
     1: #E8EFE8
     2: #DCE8DC
     3: #AEC2B4
     4: #517563
     5: #234F3A */
  --tone-1: #FFFFFF;
--tone-2: #C7CBD3;
--tone-3: #8F97A6;
--tone-4: #56637A;
--tone-5: #1E2F4D;
/* カラーパレット */
  --color-primary: var(--tone-1);
  --color-secondary: var(--tone-2);
  --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: var(--tone-1);
}

/* 音声部品（audio-player）のアクセント色（色味番号: 4） */
audio-player {
  --audio-accent: var(--tone-5);
}

#app {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
  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-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 8px 0px;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.1s ease;
  width: 100%;
  max-width: 230px;
  color: var(--tone-1);
  background: var(--tone-5);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15), 0 6px 24px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  font-weight: 800;
}

.start-button-link img {
  width: 22px;
  margin-right: 0.4rem;
  font-size: 0.9em;
  filter: invert(1);
}

.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;
  /* モバイル端末でのタップ時のハイライトを削除 */
}

/* スポットカードの形・色 */
.spot-card {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  border: 2px solid #e0e0e0;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spot-card.is-open {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.spot-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--tone-5);
}

.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: static;
  align-self: flex-end;
  text-align: left;
  font-size: 16px;
  color: #667085;
  margin: 4px 0 0;
  max-width: 600px;
  white-space: normal;
  word-break: break-word;
}

/* iPhone SE */
@media (max-width: 380px) {
  .spot-card_subtitle {
    position: static;
    align-self: flex-end;
    text-align: left;
    font-size: 15px;
    color: #667085;
    margin: 4px 0 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: static;
    align-self: flex-end;
    text-align: left;
    font-size: 12px;
    color: #667085;
    margin: 4px 0 0;
    max-width: 600px;
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 600px) {
  .spot-card_subtitle {
    font-size: 12px;
  }
}

/* スポットカード内のカテゴリラベル */
.spot-card_category {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 0;
  min-height: var(--label-row-height);
}

.spot-card_category-label {
  display: inline-flex;
  align-items: center;
  background: var(--tone-2);
  color: var(--tone-5);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 12px;
  margin-right: 2px;
  margin-bottom: 2px;
  border: 1.5px solid var(--tone-4);
  box-shadow: 0 1px 2px rgba(35, 79, 58, 0.08);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .spot-card_category-label {
    font-size: 11px;
    padding: 2px 8px;
  }
}

.spot-summary {
  color: #333;
  display: flex;
  align-items: stretch;
  position: relative;
  font-size: var(--font-size-base);
  gap: 8px;
}

/* 通常スポット：画像を右端＆縦中央に配置 */
.spot-card .spot-summary {
  align-items: center;
}

.spot-summary img {
  border-radius: 3px;
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-right: 20px;
  grid-row: 1 / span 2;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2)
}

/* スポットを開いた時の詳細パネル（リスト側の“モーダル相当”） */
.spot-details {
  background: var(--tone-2);
  border-radius: 8px;
  padding: 12px;
}

.spot-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.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,
.btn-see-on-map {
  /* グレーの横幅いっぱいのボタン */
  width: 100%;
  padding: 10px;
  background-color: var(--tone-3);
  color: var(--tone-5);
  border: none;
  font-weight: 600;
  cursor: pointer;
  /* ボタンの角に丸みをつける */
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.btn-see-on-map {
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background-color: var(--tone-4);
  color: var(--tone-1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.btn-see-on-map-icon {
  width: 24px;
  height: 24px;
  display: block;
  filter: invert(0.98);
}

.btn-map-link {
  display: flex;

  background-color: rgba(13, 34, 94, 1);
  margin: 0;
  margin-bottom: 8px;
  gap: 4px;
  cursor: pointer;
  border-radius: 24px;
}

/* 自動再生トグルスイッチ */
.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: var(--tone-4);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.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: var(--tone-2);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  color: var(--tone-5);
  font-weight: 600;
  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: var(--tone-5);
}

.selected-language:hover {
  background-color: var(--tone-3);
}

.selected-language-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background-color: var(--tone-5);
  -webkit-mask: url("../material/icons/earth-americas-solid-full.svg") no-repeat center / contain;
  mask: url("../material/icons/earth-americas-solid-full.svg") no-repeat center / contain;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background-color: var(--tone-2);
  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);
  color: var(--tone-5);
}

.language-option:hover {
  background-color: var(--tone-3);
}

.language-option:not(:last-child) {
  border-bottom: 1px solid #e5e5ea;
}

/* アンケートボタン */
.survey-button-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  padding: 0 12px;
  background: transparent;
  box-shadow: none;
  transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
  z-index: 1200;
  pointer-events: none;
}

.survey-button {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(520px, 100%);
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tone-5), var(--tone-4));
  color: var(--tone-1);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px rgba(35, 79, 58, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.survey-button:hover,
.survey-button.button-hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 34px rgba(35, 79, 58, 0.42);
}

.survey-button:active {
  transform: translateY(1px) scale(0.99);
}

.survey-button:focus-visible {
  outline: 3px solid var(--tone-2);
  outline-offset: 3px;
}

.survey-button__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.survey-button__text {
  flex: 1;
  text-align: center;
}

.survey-button__chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.95;
}

@media screen and (max-width: 420px) {
  .survey-button {
    padding: 11px 14px;
    font-size: 0.95rem;
  }
}

.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: 95%;
  top: 10%;
}

.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;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  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: var(--tone-2);
  border: 2px solid var(--tone-3);
  display: flex;
  flex-direction: row;
  align-items: center;
  color: var(--tone-5);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
  border-radius: 15px;
  margin: 0 2px;
  padding: 4px 20px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.category-btn.selected {
  color: var(--tone-1);
  background: var(--tone-5);
  border-color: var(--tone-5);
  box-shadow: 0 3px 8px rgba(35, 79, 58, 0.3);
}

.category-icon {
  width: 22px;
  height: 22px;
  display: block;
  margin-right: 5px;
  filter: contrast(0.1);
}

/* モーダル用 */
#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: var(--tone-1);
  padding: 20px;
  border-radius: 10px;
  max-width: 340px;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

@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 .modal-button {
  display: block;
  margin: 0 auto;
  padding: 10px;
  width: 100%;
  background-color: var(--tone-2);
  color: var(--tone-5);
  border: 1px solid var(--tone-4);
  border-radius: 5px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.spot-modal-content .modal-button:hover {
  background: var(--tone-5);
  color: var(--tone-1);
}

.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: 98px;
  height: 35px;
  color: var(--tone-5);
  font-weight: 700;
  border: 2px solid var(--tone-5);
  border-radius: 42px;
  background: var(--tone-1);
  cursor: pointer;
  right: 5%;
  bottom: calc(5% + env(safe-area-inset-bottom, 0px));
  position: fixed;
  white-space: nowrap;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 2px 6px rgba(0, 0, 0, 0.2)
}

#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;
}

.click-to-unlock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
}

.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 rgb(55, 79, 100);
  border-right: 3px solid transparent;
  animation: spinner 600ms linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.speech-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 18px;
  background: var(--color-sky-card);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  max-width: max-content;
  display: inline-block;
  min-width: 120px;
  max-width: 300px;
  width: auto;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 16px 16px 0;
  border-style: solid;
  border-color: var(--color-sky-card) transparent transparent transparent;
}

#orientation-mascot-speech {
  color: #000000;
}

html[lang="ja"] #orientation-mascot-speech {
  min-width: 260px;
}

html[lang="en"] #orientation-mascot-speech {
  min-width: 250px;
}

html[lang="ko"] #orientation-mascot-speech {
  min-width: 190px;
}

html[lang="zh-tw"] #orientation-mascot-speech {
  min-width: 145px;
}

#mascot-speech,
#orientation-mascot-speech {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* ホームに戻るボタン用スタイル */
.back-home-button {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--tone-5);
  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;
}

.spot-bottom-popup {
  position: fixed;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tone-1);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 90vw;
  max-width: 90vw;
  min-height: 96px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9998;
}

.spot-bottom-popup img {
  width: 100px;
  height: 100%;
  max-height: 100px;
  border-radius: 4px;
  margin-right: 10px;
  margin-left: 10px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.spot-bottom-popup span {
  font-weight: bold;
}

.spot-bottom-popup-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  text-align: center;
}

.spot-bottom-popup-text-link {
  color: var(--tone-5);
}