.ar-body, html {
  height: 100%;
}

.ar-body {
  height: 100svh;
  min-height: 100svh;
  overscroll-behavior: none;
}
/* BEM記法を使用したメインスタイルシート */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

.ar .contents {
  padding-bottom: unset;
}

body#page-login.ar .site-wrapper #main-container .contents {
  padding-bottom: unset;
  padding-top: 0;
}

/* ARページは端末全面フィット＆スクロール抑止 */
.ar-body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.ar .footer {
  margin-top: -1px;
}

.ar .sub-title-block {
  background-color: #000;
}

/* ARページのsub-title-block固定表示時のスタイル */
.ar .sub-title-block.fixed {
  position: static;
  transform: none;
  box-shadow: none;
  width: auto;
}

/* ハンバーガーが開いている時はヘッダー非表示 */
.ar .site__header.opened ~ .body__bg .sub-title-block.fixed {
  transform: none;
} 

@media (min-width: 640px) {
  .ar .sub-title-block.fixed {
    max-width: none;
    box-shadow: none;
  }
}

@media (min-width: 1024px) {
  .ar .sub-title-block.fixed {
    width: auto;
    transform: none;
  }
}

body .site-wrapper #main-container .sub-title-block {
  padding-bottom: unset;
  border-bottom: 1px solid white;
}

body#page-login.ar .site-wrapper #main-container .sub-title-block__title {
  width: 64%;
  aspect-ratio: 497 / 81;
  display: unset;
  align-items: unset;
}

.sub-title-block__title {
  margin-left: 8%;
  width: 64%;
  aspect-ratio: 497 / 81;
  display: flex;
  align-items: center;
}

/* done.html専用スタイル */
body.done-page {
  background: white;
  margin: 0;
  padding: 0;
}

img {
  width: 100%;
  height: auto;
}

button {
  background: unset;
  border: none;
  cursor: pointer;
}

/* body画面全体の背景 */
.body__bg {
  position: relative;
  min-height: 100vh;
  margin: 0 auto;
}

.body__bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../img/ar/common/bg_go-hoku.webp');
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -2;
}

.contents__bg-black {
  background-color: #000;
  /* border-top: 0.9px solid #fff; */
}

/* ヘッダー */
.header {
  text-align: center;
}

.header__title {
  color: #ecf0f1;
  font-size: 2rem;
  font-weight: bold;
}

/* スタンプラリーページ用ヘッダー */
.header__content {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.header__characters {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-shrink: 0;
  width: 95%;
}

.header__characters-img {
  width: 100%;
}

/* ナビゲーション */
.nav {
  background-color: #000;
  padding: 1rem 0;
}

.nav__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav__title {
  display: flex;
  align-items: center;
  padding-left: 1.4rem;
}

.nav__title-img {
  max-height: 35px;
  width: auto;
}

.nav__menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px;
}

.nav__menu-btn span {
  width: 20px;
  height: 2px;
  background-color: #ecf0f1;
  border-radius: 2px;
}

/* screenコンテンツ */
.screen {
  padding: 1rem 20px;
}

/* ARカメラ画面 */
.page--camera-ar .site__header {
  pointer-events: none;
}

@media (max-width: 639px) {
  .page--camera-ar .main {
    overflow: hidden;
  }
  .page--camera-ar .body__bg {
    min-height: unset;
  }
}

#ar-camera.screen {
  padding: 0;
}

.ar-screen {
  width: 100%;
  height: 100dvh;
  position: relative;
  background: #000;
  overflow: hidden;
}

.ar-camera-container {
  width: 100%;
  height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 戻るボタン */
.ar-camera__back-btn {
  position: absolute;
  top: 20px;
  left: 28px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ar-camera__back-btn img {
  width: 60px;
  aspect-ratio: 133 / 117;
}

/* ARビューエリア */
.ar-camera__view {
  position: absolute;
  inset: 0;
  display: block;
  touch-action: none;
  overscroll-behavior: contain;
}

/* カメラビデオ要素 */
.camera__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* インカメラ使用時の左右反転 */
.camera__video--front-camera {
  transform: scaleX(-1);
}

.ar-camera__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../img/ar/ar-camera/ar-camera_bg-dammy.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.ar-camera__ar-object {
  position: absolute;
  z-index: 5;
  border: 1.5px solid #fff;
  border-radius: 4px;
  width: auto; /* 画像サイズに合わせて自動調整 */
  height: auto; /* 画像サイズに合わせて自動調整 */
  max-width: 249px; /* 最大幅制限（240px + padding 3px×2 + border 1.5px×2） */
  max-height: 309px; /* 最大高さ制限（300px + padding 3px×2 + border 1.5px×2） */
  padding: 3px; /* 画像と枠の間に3pxの隙間 */
  box-sizing: border-box;
  display: inline-block; /* コンテンツサイズにフィット */
  /* 初期位置はJavaScriptで制御するため、CSS設定を削除 */
  /* top: 50%; */
  /* left: 50%; */
  /* transform: translate(-50%, -50%); */
  touch-action: none; /* ジェスチャー用 */
}

.ar-camera__character-img {
  width: auto;    /* 画像の自然な幅を保持 */
  height: 294px;  /* 高さを固定して幅をアスペクト比で自動調整 */
  max-width: 234px; /* 最大幅制限（240px - padding 3px×2） */
  max-height: 294px; /* 最大高さ制限（300px - padding 3px×2） */
  border-radius: 7px;
  display: block;
  object-fit: contain; /* アスペクト比を保持 */
}

.ar-camera__resize-arrow {
  position: absolute;
  width: 17px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  z-index: 10;
}

.ar-camera__resize-arrow--top-right {
  top: -9px;
  right: -9px;
  rotate: 180deg;
}

.ar-camera__resize-arrow--bottom-left {
  bottom: -9px;
  left: -9px;
}

.ar-camera__character-frame {
  width: 200px;
  height: 300px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  position: relative;
}

/* 操作パネル */
.ar-camera__controls {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 90%;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  bottom: 15px;
  z-index: 10;
  transition: bottom 0.3s ease;
}

.ar-camera__controls.logo-selection-active {
  bottom: 105px;
}

.ar-camera__control-btn--rotation {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  height: 100%;
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  justify-self: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  aspect-ratio: 211 / 151;
}

.ar-camera__control-btn--rotation img {
  width: 60%;
  aspect-ratio: 1 / 1;
}

.ar-camera__control-btn--switch {
  grid-row: 2 / 3;
  grid-column: 1 / 2;
}

.ar-camera__control-btn--capture {
  grid-row: 2 / 3;
  grid-column: 2 / 3;
}
.ar-camera__control-btn--logo {
  grid-row: 2 / 3;
  grid-column: 3 / 4;
}

.ar-camera__control-btn {
  border-radius: 8px;
  transition: all 0.3s ease;
  aspect-ratio: 70 / 39;
  height: fit-content;
}

.ar-camera__control-btn--capture {
}

.ar-camera__control-btn--logo {
  color: white;
  font-weight: bold;
  font-size: 12px;
}

.ar-camera__control-btn img {
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 5.5);
  border-radius: 6px;
}

/* 情報表示エリア */
.ar-camera__info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 20px;
  font-size: 12px;
}

.ar-camera__contact {
  margin-bottom: 10px;
}

.ar-camera__share,
.ar-camera__page-top {
  margin-bottom: 10px;
}

.ar-camera__share h4,
.ar-camera__page-top h4 {
  font-size: 14px;
  margin-bottom: 5px;
  color: #ecf0f1;
}

.ar-camera__share-buttons {
  display: flex;
  gap: 10px;
}

.ar-camera__share-btn,
.ar-camera__page-top-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.ar-camera__copyright {
  margin-top: 10px;
  font-size: 10px;
  opacity: 0.8;
}

.ar-camera__copyright p {
  margin-bottom: 2px;
}

.main__text {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}



/* スタンプラリーコンテナ */
.page--mypage .page--mypage__main {
  min-height: unset;
}

.screen__mypage {
  padding: 2rem 20px;
}

@media (min-width: 1024px) {
  .screen__mypage {
    padding: 2rem 20px;
  }
}

.stamp-screen {
  width: 100%;
}

.stamp-container {
  border-radius: 10px;
}

/* スタンプグリッド */
.stamp-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  /* grid-template-rows: repeat(4, 1fr); */
  /* display: flex; */
  /* flex-wrap: wrap; */
  gap: 3vw;
  margin-bottom: 4rem;
}

.stamp-grid::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../../img/ar/common/bg_hokkaido.webp);
  background-size: 103.8%;
  /* background-position: 17% 16%; */
  background-position: 46% 11%;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}

.stamp-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  /* aspect-ratio: 1; */
  height: fit-content;
  /* flex: 0 0 calc(33.333% - 1.4%);  */
}

.stamp-item:hover {
  transform: scale(1.02);
}

.stamp-item__img {
  width: 100%;
  height: 100%; /* auto から 100% に変更 */
  object-fit: cover; 
  display: block;
}

.stamp-item__text {
  font-weight: bold;
  font-size: 0.9rem;
  color: #000;
}

/* スタンプ特典セクション */
.stamp-benefits {
  display: flex;
  flex-direction: column;
  text-align: center;
  grid-area: 4 / 2 / 5 / 4;
  /* grid-column: 2 / 3; */
  /* grid-row: 4; */
  aspect-ratio: 278 / 134;
  height: 100%;
}

.stamp-benefits__content {
  margin-bottom: 1rem;
}

.stamp-benefits__title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stamp-benefits__text {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.stamp-benefits__subtext {
  font-size: 0.7rem;
  opacity: 0.8;
}

.stamp-benefits__van {
  /* margin-top: 0.5rem; */
}

.stamp-benefits__van-img {
  width: 100%;
  transform: translateY(16%);
}
.stamp-completion__submit-btn {
  display: block;
  transition: transform 0.2s ease;
}


/* モーダル */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  justify-content: center;
}

/* モーダル表示時のbodyスクロール防止 */
body.modal-open {
  overflow: hidden;
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal__content {
  position: relative;
  width: 90%;
  max-width: 305px;
  margin: 7rem auto;
  background: #000;
  border: 2px solid #fff;
  border-radius: 10px;
  max-height: fit-content;
  /* padding: 20px; */
}

@media screen and (min-width: 1024px) and (max-width: 1439.9px) {
  .modal__content {
    /* left: 6%; */
    width: 27.4305555556vw;
    left: unset;
    margin-left: 42.5694444444vw;
    max-width: unset;
  }
}
@media (min-width: 1440px) {
  .modal__content {
    width: 395px;
    margin-left: calc(42.5694444444vw + 45px);
  }
}

/* 獲得済みモーダル */
.modal__stamp-completed .modal__content {
  margin-top: clamp(7rem, 12vw, 170px);
}

/* 未獲得モーダル用の見た目調整 */
.modal__stamp-incomplete {
  /* overflow-y: scroll; */
}

.modal__stamp-incomplete .modal__backdrop {
  height: 110%;
}

.modal__stamp-incomplete .modal__wrapper {
  overflow-y: scroll;
}

@media (min-width: 1024px) {
  .modal__stamp-incomplete .modal__wrapper {
    position: relative;
    left: 6.2%;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1439.9px) {
  .modal__stamp-incomplete .modal__wrapper {
    width: 27.4305555556vw;
    left: unset;
    margin-left: 13vw;
    max-width: unset;
  }
}
@media (min-width: 1440px) {
  .modal__stamp-incomplete .modal__wrapper {
    width: 395px;
    position: static;
    left: unset;
    margin-left: 42.5694444444vw;
    margin-right: auto;
  }
}


.modal__content--inactive {
  height: fit-content;
  margin: 5rem auto 1rem;
}

@media (min-width: 1024px) {
  .modal__content--inactive {
    left: unset;
  }
}

.modal__content--inactive .modal__header {
  padding-bottom: unset;
}

.modal__title {
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.modal__stamp-buttons {
  width: 90%;
  margin: 0 auto;
}

.modal__stamp-buttons>* {
  margin-bottom: 0.5rem;
}

.modal__close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  width: 24px;
  aspect-ratio: 1 / 1;
  position: absolute;
  right: 0;
  top: -36px;
}

.modal__close-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
}

.modal__close-btn span:nth-child(1) {
  translate: 0 2px;
  rotate: 45deg;
}

.modal__close-btn span:nth-child(2) {
  transform: rotate(-45deg);
}


.modal__close-btn:hover {
  color: #333;
}

.modal__content--inactive .modal__body {
  padding: 1.8rem 20px;
}

.modal__body {
  padding: 20px;
}

/* ==============================
   未獲得モーダル（ポスター案内）
   ============================== */
.poster-modal {
  color: #fff;
  text-align: center;
}

.poster-modal__headline {
  color: #ebcd54; /* 黄 */
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 2px rgba(0,0,0,0.6);
}

.poster-modal__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 335 / 340;
  overflow: hidden;
}

.poster-modal__poster {
  padding-left: 1rem;
}

.poster-modal__badge {
  width: 35%;
  margin: -1rem auto 0.8rem;
}

/* circled numbers ①②③… for list markers */
@counter-style poster-circled {
  system: fixed;
  symbols: '①' '②' '③' '④' '⑤' '⑥' '⑦' '⑧' '⑨' '⑩' '⑪' '⑫' '⑬' '⑭' '⑮' '⑯' '⑰' '⑱' '⑲' '⑳';
  suffix: ' ';
}

.poster-modal__list {
  list-style: poster-circled;
  text-align: left;
  margin: 0 auto 18px;
  padding-left: 1.25rem;
  line-height: 1.6;
  max-width: 92%;
  font-size: 0.7rem;
  font-weight: bold;
}

.poster-modal__list li::marker {
  font-weight: 700;
}

@media (min-width: 768px) {
  .poster-modal__headline {
    font-size: 1.6rem;
  }
  .poster-modal__question {
    font-size: 7.5rem;
  }
}

/* ゴールデンワゴンモーダル */
.golden-wagon-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.golden-wagon-modal__headline {
  width: 85%;
  height: auto;
  margin-bottom: 1rem;
}

.golden-wagon-modal__image {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.golden-wagon-modal__text {
  font-size: 0.7rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
}

.modal__golden-wagon .modal__stamp-image {
  max-width: unset;
  width: 140%;
  right: -21.2%;
}

.modal__golden-wagon .modal__stamp-info {
  margin: 9.3rem auto 0;
}

.modal__golden-wagon .modal__btn--gourmet {
  display: none;
}

.modal__golden-wagon .modal__stamp-buttons>* {
  margin-bottom: 0.5rem;
}

.modal__upopoy .modal__stamp-image {
  max-width: unset;
  width: 140%;
  right: -21.2%;
}

.modal__golden-wagon .modal__btn--download {
  display: none;
}

/* ARカメラ完成モーダル専用スタイル */
.modal__ar-completion .modal__content {
  background: unset;
  border: unset;
  box-shadow: unset;
  padding-top: 0.8rem;
  height: 100%;
  pointer-events: none;
}

.modal__ar-completion .modal__header {
  border-bottom: none;
  width: 33%;
  margin: 0 auto;
}

.modal__ar-completion .modal__body {
  padding: 0 20px;
}

.modal__ar-completion .modal__backdrop {
  background-color: rgba(0, 0, 0, 0.8);
}

.modal__bottom-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* スタンプ獲得確認モーダル専用スタイル */
/* 画像完成画面モーダルとスタンプ獲得確認モーダルスタイル */
.modal__ar-completion .modal__title {
  margin-bottom: 0.4rem;
}

.modal__ar-completion .modal__content,
.modal__stamp-acquisition .modal__content {
  background: unset;
  border: unset;
  box-shadow: unset;
  max-height: 100vh;
  /* margin: 0 auto; */
  margin-top: 0;
  overflow-y: auto;
}

.modal__stamp-acquisition .modal__body {
  padding: 0;
}

.stamp-acquisition__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10vh 20px;
  text-align: center;
}

.stamp-acquisition__character {
  margin-bottom: 20px;
}

.stamp-acquisition__character-img {
  width: 100%;
  height: auto;
}

.stamp-acquisition__banner {
  background: #000;
  color: #ffd700;
  padding: 15px 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 300px;
}

.stamp-acquisition__title {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stamp-acquisition__buttons {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  max-width: 300px;
}

.stamp-acquisition__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stamp-acquisition__btn--gourmet {
  color: white;
}

.stamp-acquisition__btn--back {
  color: white;
}

.stamp-acquisition__btn img {
  max-height: 20px;
  width: auto;
  margin: 0 8px;
}

/* モーダル内のスタンプ情報 */
.modal__stamp-info {
  text-align: center;
  position: relative;
  width: 66%;
  margin: 7.9rem auto 0;
  z-index: 0;
}

.modal__stamp-image {
  max-width: 200px;
  width: 90%;
  height: auto;
  margin-bottom: 1rem;
  position: absolute;
  bottom: 53%;
  right: 3.8%;
  z-index: -1;
}

.modal__stamp-description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.modal__buttons {
  display: flex;
  flex-direction: column;
  /* gap: 1rem; */
  margin-top: 0.6rem;
  position: relative;
}

.modal__btn {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0;
  display: block;
}

.modal__btn:hover {
  transform: scale(1.05);
}

.modal__btn img {
  width: 100%;
  height: auto;
}

.modal__btn--download {
  margin-bottom: 0.5rem;
}

/* スタート画面モーダル専用スタイル */

@media (min-width: 1024px) {
  .modal__content--start {
    left: 6%;
  }
}


.start-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.start-modal__headline {
  width: 25%;
  margin-bottom: 1rem;
}

.start-modal__hero {
  width: 70%;
  margin-bottom: 1rem;
}

.start-modal__texts {
  font-size: 0.55rem;
  color: #fff;
  margin-bottom: 2rem;
}

/* テスト用コントロール（開発完了後削除予定） */
.test-controls {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 1rem;
  border-radius: 5px;
  z-index: 999;
  flex-direction: column;
}

.test-controls button {
  display: block;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.test-controls button:hover {
  background-color: #2980b9;
}

.test-controls button:last-child {
  margin-bottom: 0;
}

/* ARカメラページではテスト用ボタンを非表示 */
#ar-camera .test-controls {
  display: none;
}

/* フッター */
.footer {
  background-color: #000;
  color: #ecf0f1;
  padding: 1.5rem 0;
  /* margin-top: 1rem; */
}

.footer__content {
  padding: 0 20px;
  text-align: center;
}

.footer__contact {
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.footer__share {
  margin-bottom: 1rem;
}

.footer__share-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.footer__share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer__share-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #ecf0f1;
  color: #000;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.footer__share-btn:hover {
  background-color: #bdc3c7;
}

.footer__page-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer__page-top-text {
  color: #FFD700;
  font-weight: bold;
  font-size: 0.9rem;
}

.footer__page-top-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #FFD700;
  color: #000;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.footer__page-top-btn:hover {
  background-color: #FFA500;
}

.footer__copyright {
  font-size: 0.7rem;
  opacity: 0.8;
}

.footer__copyright p {
  margin-bottom: 0.25rem;
}

/* ナビゲーション */
.nav {
  background-color: #000;
  padding: 0.8rem 0;
}

.nav__list {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
}

.nav__item {
  margin: 0;
}

.nav__link {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: #3498db;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #2980b9;
}

.btn--secondary {
  background-color: #95a5a6;
}

.btn--secondary:hover {
  background-color: #7f8c8d;
}

/* ログインフォーム */
.login {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login__label {
  font-weight: bold;
  color: #2c3e50;
}

.login__input {
  padding: 0.75rem;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  font-size: 1rem;
}

.login__input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.login__button {
  margin-top: 1rem;
}

/* メールログインフォーム */
/* メールログインページ専用スタイル */
.mail-login-page {
  background-color: #000;
}

.mail-login-page .header__title {
  visibility: hidden;
}

/* 利用規約ページ専用スタイル */
.terms-page {
  background-color: #000;
  color: #fff;
}

.terms-page .screen {
  padding-top: 2rem;
}

.terms__title {
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #fff;
}

.terms__content {
  padding: 0 20px;
  font-size: 0.85rem;
  height: 60vh;
  overflow-y: scroll;
  margin-bottom: 2rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* スクロールバーのスタイル */
.terms__content::-webkit-scrollbar {
  width: 8px;
}

.terms__content::-webkit-scrollbar-track {
  border-radius: 4px;
}

.terms__content::-webkit-scrollbar-thumb {
  background: #e2b92f;
  border-radius: 4px;
}

.terms__content::-webkit-scrollbar-thumb:hover {
  background: #d4a82a;
}

.terms__section {
  margin-bottom: 2rem;
}

.terms__section:last-child {
  margin-bottom: 0;
}

.terms__section-title {
  font-size: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.terms__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.terms__text:last-child {
  margin-bottom: 0;
}

/* 番号付きリスト（ol）のスタイル */
.terms__list {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.6;
  margin: 0 0 1rem 1.5rem;
  padding-left: 0.5rem;
  list-style: decimal;
  list-style-position: outside;
}

.terms__list li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 0.5rem;
}

.terms__list li:last-child {
  margin-bottom: 0;
}

/* ネストしたサブリストのスタイル */
.terms__sub-list {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: #fff;
  line-height: 1.6;
  margin: 0.8rem 0 0 1.5rem;
  padding-left: 0.5rem;
  list-style: lower-alpha;
  list-style-position: outside;
}

.terms__sub-list li {
  margin-bottom: 0.6rem;
  padding-left: 0.5rem;
}

.terms__sub-list li:last-child {
  margin-bottom: 0;
}

/* 箇条書きリスト（ul）のスタイル */
.terms__contact-list {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.6;
  margin: 0 0 1rem 1.5rem;
  padding-left: 0.5rem;
  list-style: disc;
  list-style-position: outside;
}

.terms__contact-list li {
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
}

.terms__contact-list li:last-child {
  margin-bottom: 0;
}

/* リンクのスタイル */
.terms__content a {
  color: #3498db;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.terms__content a:hover {
  color: #5dade2;
}

.terms__content a[href^="mailto:"] {
  color: #e74c3c;
}

.terms__content a[href^="mailto:"]:hover {
  color: #c0392b;
}

.terms__btn {
  display: block;
  width: 170px;
  margin: 0 auto;
  text-align: center;
  margin-top: 1rem;
  background-color: #fff;
  color: #000;
  padding: 1rem;
  border: 1px solid #fff;
  border-radius: 7px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  font-family: 'Noto Sans JP', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: scale 0.3s ease;
}

.terms__btn img {
  width: 90%;
  object-fit: contain;
}

.terms__btn:hover {
  scale: 1.05;
}

/* メールで登録ページ */
.mail-login {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem 0;
}

.mail-login__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.8rem;
}

.mail-login__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mail-login__label {
  font-weight: bold;
  color: #fff;
}

.mail-login__input {
  padding: 0.75rem;
  border: 1px solid #bdc3c7;
  border-radius: 7px;
  font-size: 1rem;
}

.mail-login__input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.mail-login__button {
  margin-top: 1rem;
  background-color: unset;
  transition: transform 0.2s ease;
  padding: 0;
  width: 90%;
  margin: 0 auto;
}

.stamp-completion__submit-btn:hover, 
.mail-login__button:hover {
  background-color: unset;
  transform: scale(1.05);
}

/* タブレット以上用のスタイル */
@media (min-width: 640px) {
  .header__characters-img {
    max-height: 80px;
  }
  
  .nav__title-img {
    max-height: 40px;
  }
  
  .nav__menu-btn span {
    width: 25px;
    height: 3px;
  }
  
  .main {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .stamp-grid {
    gap: 0.7rem;
    margin-bottom: 2rem;
  }
  
  .stamp-item {
    /* padding: 1rem; */
  }
  
  .stamp-item__img {
    /* max-width: 80px;
    margin-bottom: 0.5rem; */
  }
  
  .stamp-item__text {
    font-size: 1rem;
  }
  
  .stamp-benefits {
    /* flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 1.5rem; */
  }
  
  .stamp-benefits__content {
    margin-bottom: 0;
  }
  
  .stamp-benefits__title {
    font-size: 1.5rem;
  }
  
  .stamp-benefits__text {
    font-size: 1rem;
  }
  
  .stamp-benefits__van {
    /* margin-top: 0;
    margin-left: 1rem; */
  }
  
  .stamp-benefits__van-img {
    /* max-height: 100px; */
  }
  
  .footer {
    padding: 2rem 0;
    margin-top: 2rem;
  }
  
  .footer__content {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer__contact {
    font-size: 0.9rem;
  }
  
  .footer__share-title {
    font-size: 1.2rem;
  }
  
  .footer__share-btn {
    width: 40px;
    height: 40px;
  }
  
  .footer__page-top-text {
    font-size: 1rem;
  }
  
  .footer__page-top-btn {
    width: 40px;
    height: 40px;
  }
  
  .footer__copyright {
    font-size: 0.8rem;
  }
}

/* ロゴ選択オーバーレイ */
.logo-selection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.logo-selection__container {
  background: rgba(0, 0, 0, 0.75);
  width: 100%;
  max-width: 500px;
  max-height: 60vh;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
}

.logo-selection__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-selection__title {
  color: #ecf0f1;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

.logo-selection__close-btn {
  background: none;
  border: none;
  color: #ecf0f1;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.logo-selection__close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.logo-selection__content {
  padding: 10px 0 5px 15px;
}

.logo-selection__scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.logo-selection__logos {
  display: flex;
  gap: 14px;
  padding: 0 15px 10px 0;
  min-width: max-content;
  align-items: center;
  justify-content: center;
}

.logo-selection__logo-item {
  flex-shrink: 0;
  width: fit-content;
  height: 43px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .logo-selection__logo-item:nth-child(3) {
  height: 60px;
} */

.logo-selection__logo-item:hover {
  border-color: #3498db;
  background: rgba(52, 152, 219, 0.2);
  transform: scale(1.05);
}

.logo-selection__logo-item.selected {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.2);
}

.logo-selection__logo-item img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

/* ARスタンプ表示エリア */
.ar-stamp-area {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 15;
  pointer-events: none;
}

.ar-stamp-area__logo {
  width: fit-content;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: stampAppear 0.5s ease-out;
  pointer-events: auto;
  cursor: move;
}

@keyframes stampAppear {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.ar-stamp-area__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 横スクロールバーのカスタマイズ */
.logo-selection__scroll-container::-webkit-scrollbar {
  height: 6px;
}

.logo-selection__scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.logo-selection__scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.logo-selection__scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
} 

/* ARカメラ完成モーダル */
.modal__completion-content {
  text-align: center;
  padding: 0 1rem;
  position: relative;
  height: 82%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal__completion-image {
  border-radius: 3px;
  /* overflow: hidden; */
  border: 2px solid #fff;
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  /* width: auto; */
  /* min-width: 100px; */
  max-height: 50vh;
  /* margin: 0 auto 0.5rem; */
  /* max-width: 187px; */
  /* max-height: 300px; */
  /* position: absolute; */
  /* top: 60px; */
  /* left: 50%; */
  /* transform: translateX(-50%); */
  pointer-events: auto;
}

.modal__completion-image img {
  display: block;
  /* 基本スタイル - 必要に応じて個別にオーバーライド */
}

.modal__completion-text {
  font-size: 0.9rem;
  color: #ebcd54;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

.modal__completion-buttons {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  width: 90%;
}

.modal__completion-buttons .modal__btn img {
  width: 100%;
  max-width: unset;
  height: auto;
}

.modal__completion-undo {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.modal__btn--share,
.modal__btn--back-stamp,
.modal__btn--undo {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0;
}

.modal__btn--share:hover,
.modal__btn--back-stamp:hover,
.modal__btn--undo:hover {
  transform: scale(1.05);
}

.modal__btn--share img,
.modal__btn--back-stamp img,
.modal__btn--undo img {
  width: 100%;
  height: auto;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
  .modal__completion-image img {
    max-width: 500px;
  }
} 

/* ==========================================
   done-ar.html 専用スタイル
   ========================================== */

/* 完成画像のスタイル（done-ar.html専用） */
.modal__completion-image img#captured-image {
  width: auto;
  height: 300px;
  object-fit: contain;
  object-position: center;
}

/* オーバーレイUI要素のスタイル */
.modal__overlay-ui {
  height: fit-content;
  padding-top: 1rem;
  pointer-events: auto;
}

/* ボタン画像のサイズ調整（done-ar.html専用） */
.modal__btn--share img,
.modal__btn--back-stamp img,
.modal__btn--undo img {
  width: auto;
  height: 50px;
}

/* スタンプ帳に戻るボタンとやり直しボタンの表示設定 */
.modal__btn--back-stamp,
.modal__btn--undo {
  display: block;
}

/* 見た目として不要なアイコンを非表示にする */
.ui__shutter-icon {
  display: none;
} 

/* Start screen */
.start {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.start__content {
  text-align: center;
  color: #fff;
}

.start__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.start__message {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.start__btn {
  padding: 1rem 3rem;
  font-size: 1.2rem;
  color: #000;
  background: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s;
}

.start__btn:active {
  transform: scale(0.95);
}

/* login.html専用スライダー修正CSS */
.page--login .slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: fit-content;
}

.page--login .slider-track {
  display: flex;
  width: 700%; /* 7枚 × 100% = 700% */
  height: fit-content;
  transition: transform 0.5s ease-in-out;
  background-color: #000;
}

.page--login .slide {
  width: 14.2857%; /* 100% ÷ 7 = 14.2857% */
  height: fit-content;
  flex-shrink: 0;
  padding: 0.3rem 1rem 1rem;
}

.page--login .slide figure {
  width: 90%;
  margin: 1rem auto;
  pointer-events: none;
}

.page--login .slide__content {
  text-align: center;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page--login .contents__howto__list-title {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 各画像の幅を個別指定 */
.page--login .contents__howto__list-title.--1 img {
  width: calc(177 / 375 * 100vw);
}

.page--login .contents__howto__list-title.--2 img {
  width: calc(321 / 375 * 100vw);
}

.page--login .contents__howto__list-title.--3 img {
  width: calc(355 / 375 * 100vw);
}

.page--login .contents__howto__list-title.--4 img {
  width: calc(325 / 375 * 100vw);
}

.page--login .contents__howto__list-title.--5 img {
  width: calc(166 / 375 * 100vw);
}

.page--login .contents__howto__list-title.--6 img {
  width: calc(225 / 375 * 100vw);
}

.page--login .contents__howto__list-title.--7 img {
  width: calc(322 / 375 * 100vw);
}

@media screen and (min-width: 640px) and (max-width: 1023.9px) {
  .page--login .contents__howto__list-title.--1 img {
    width: 187px;
  }
  
  .page--login .contents__howto__list-title.--2 img {
    width: 339px;
  }
  
  .page--login .contents__howto__list-title.--3 img {
    width: 374px;
  }
  
  .page--login .contents__howto__list-title.--4 img {
    width: 343px;
  }
  
  .page--login .contents__howto__list-title.--5 img {
    width: 175px;
  }
  
  .page--login .contents__howto__list-title.--6 img {
    width: 238px;
  }
  
  .page--login .contents__howto__list-title.--7 img {
    width: 340px;
  }
}

@media screen and (min-width: 1024px) {
  .page--login .contents__howto__list-title.--1 img {
    width: calc(177 / 375 * 25vw);
  }
  
  .page--login .contents__howto__list-title.--2 img {
    width: calc(321 / 375 * 25vw);
  }
  
  .page--login .contents__howto__list-title.--3 img {
    width: calc(355 / 375 * 25vw);
  }
  
  .page--login .contents__howto__list-title.--4 img {
    width: calc(325 / 375 * 25vw);
  }
  
  .page--login .contents__howto__list-title.--5 img {
    width: calc(166 / 375 * 25vw);
  }
  
  .page--login .contents__howto__list-title.--6 img {
    width: calc(225 / 375 * 25vw);
  }
  
  .page--login .contents__howto__list-title.--7 img {
    width: calc(322 / 375 * 25vw);
  }
  
}

.page--login .slide__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  aspect-ratio: 679 / 444;
}

.page--login .slide__text {
  font-size: 0.9rem;
  color: #2c1810;
  line-height: 1.5;
}

/* 他のlogin.html専用スタイル */
.page--login .site-wrapper {
  /* margin: 0 auto; */
  padding: 0;
  background: unset;
}

.page--login .how-to-play {
  background: #fff;
  margin: 30px;
  padding: 5px;
}

.page--login .how-to-play__title h2 {
  text-align: center;
  font-size: 1.1rem;
  color: #2c1810;
  margin-bottom: 0.4rem;
  font-weight: 800;
}

.page--login .how-to-play__slider {
  position: relative;
}

.page--login .slider-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  position: absolute;
  width: calc(100% + 60px);
  top: 30%;
  left: -30px;
}

.page--login .slider-nav__btn {
  color: #000;
  border: none;
  width: 30px;
  height: 60px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.page--login .slider-nav__btn--prev {
  padding-right: 5px;
}

.page--login .slider-nav__btn--next {
  padding-left: 5px;
}

.page--login .slider-nav__btn:hover {
}

.page--login .slider-dots {
  display: flex;
  gap: 8px;
}

.page--login .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease;
}

.page--login .dot.active {
  background: #d4af37;
} 

/* マイページ作成セクション */
.create-mypage {
  background: #000;
  padding: 30px 5px;
  height: fit-content;
}

.create-mypage__title {
  text-align: center;
  width: 55%;
  margin: 0 auto 0.6rem;
}
.terms-agreement {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.checkbox-container {
  font-size: 0.9rem;
  margin: 0 auto 0.4rem;
  width: fit-content;
  font-weight: 800;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.checkbox-container input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  cursor: pointer;
}

.checkbox-container .checkmark {
  height: 15px;
  width: 15px;
  background-color: #000;
  border: 1px solid #fff;
  border-radius: unset;
  margin-right: 6px;
  margin-top: 2px;
  display: inline-block;
  position: relative;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #000;
}

.checkbox-container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 4px;
  top: 0px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.login-btn {
  width: 75%;
  margin: 0 auto;
  display: block;
  transition: scale 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.login-btn:hover {
  scale: 1.05;
}

.login-btn:disabled,
.login-btn.disabled {
  opacity: 0.5;
  filter: grayscale(100%);
  cursor: not-allowed;
  pointer-events: none;
}

.login-btn:disabled:hover,
.login-btn.disabled:hover {
  scale: 1;
}

.create-mypage .terms-link {
  color: #3498db;
  text-decoration: underline;
  transition: color 0.3s ease;
  margin-right: 3px;
}

.create-mypage .terms-link:hover {
  color: #fff;
}

.terms-agreement__text {
  font-size: 0.8rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
}

/* ==========================================
   GPS Error Overlay Styles
   ========================================== */

.gps-error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.gps-error-overlay__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.gps-error-overlay__content {
  position: relative;
  background-color: #1a1a1a;
  border: 2px solid #d4af37;
  border-radius: 10px;
  padding: 30px 25px;
  max-width: 350px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: gpsErrorFadeIn 0.3s ease-out;
}

@keyframes gpsErrorFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.gps-error-overlay__message-container {
  margin-bottom: 25px;
}

.gps-error-overlay__message {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.gps-error-overlay__detail {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.gps-error-overlay__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.gps-error-overlay__button {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
  text-align: center;
}

.gps-error-overlay__button--retry {
  background-color: #d4af37;
  color: #000;
}

.gps-error-overlay__button--retry:hover {
  background-color: #e6c252;
  transform: translateY(-1px);
}

.gps-error-overlay__button--retry:active {
  transform: translateY(0);
}

.gps-error-overlay__button--back {
  background-color: #444;
  color: #fff;
  border: 1px solid #666;
}

.gps-error-overlay__button--back:hover {
  background-color: #555;
  border-color: #777;
  transform: translateY(-1px);
}

.gps-error-overlay__button--back:active {
  transform: translateY(0);
}

/* スマートフォン対応 */
@media (max-width: 480px) {
  .gps-error-overlay {
    padding: 15px;
  }
  
  .gps-error-overlay__content {
    padding: 25px 20px;
    max-width: 320px;
  }
  
  .gps-error-overlay__message {
    font-size: 1.1rem;
  }
  
  .gps-error-overlay__detail {
    font-size: 0.85rem;
  }
  
  .gps-error-overlay__buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .gps-error-overlay__button {
    width: 100%;
    padding: 14px 20px;
  }
}

