/* --- 基本設定 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background-color: #f0f0f0;
  overflow: hidden;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "游明朝", "MS PMincho", serif;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.wrapper {
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  height: 100vh;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

/* --- ヘッダー --- */
.header {
  position: absolute; /* 動画の上に重ねる */
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  padding: 0 20px;
  z-index: 2; /* 動画より前に表示 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #000; /* 背景黒で見やすく */
}

.header-logo img {
  height: 45px;
  width: auto;
  display: block;
}

.header-badge img {
  height: 110px;
  width: auto;
  display: block;
  padding-top: 10px;
}

/* --- スクロールコンテナ --- */
.scroll-container {
  height: 88dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* --- 各セクションの共通スタイル --- */
.section {
  height: 88dvh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 0;
}

.section#home {
  flex-direction: column;
  align-items: flex-start;
}

/* --- 背景動画 --- */
.bg-video {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* --- コンテンツ --- */
.content {
  text-align: center;
  padding: 20px;
  z-index: 2;
}
.content h1 {
  font-size: 2rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.fv-sub-title {
  font-size: 1.5rem;
}

#home .content {
  text-align: left;
  position: absolute;
  top: 10%;
}

/* --- 2番目のセクション: Wakeness --- */
/* --- 2番目のセクション: Wakeness --- */
.section#wakeness {
  position: relative; /* オーバーレイ配置のため追加 */
  flex-direction: column;
  justify-content: space-between;
  background-color: #1a1a1a;
  padding: 20px 0;
  overflow: hidden; /* 動画がはみ出さないように */
}

/* 背景動画を暗くするオーバーレイ */
.section#wakeness::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.wakeness-title,
.wakeness-points {
  width: 100%;
  height: auto;
  z-index: 2;
}

.wakeness-title {
  position: absolute;
  top: 0;
  text-align: center;
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.6;
}

.wakeness-points-text {
  position: absolute;
  bottom: 10%;
  width: 100%;
  color: #fff;
  font-size: 1.2rem;
  line-height: 2;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 2;
  font-weight: bold;
}

.wakeness-points-text li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0.5em auto;
  max-width: 90%;
}

.wakeness-points-text img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* --- 画面下部の固定CTA --- */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 450px;
  z-index: 100;
}

.fixed-cta img {
  width: 100%;
  height: auto;
  display: block;
}

/* 透明リンクの共通設定 */
.fixed-cta .cta-link {
  position: absolute;
  bottom: 0;
  top: 0;
  display: block;
  height: 100%;
}

/* 左側（50%まで） */
.fixed-cta .cta-left {
  left: 0;
  width: 60%;
}

/* 右側（残り50%） */
.fixed-cta .cta-right {
  right: 0;
  width: 40%;
}

/* --- 3番目のセクション: Point01 --- */
.section#point01 {
  background-color: #dab76c; /* 動画が読み込めない時の背景色 */
  align-items: flex-start;
  padding-top: 105px;
}

.point-img {
  width: 100%;
  height: auto;
  z-index: 2;
  position: absolute;
  top: 0;
}

.point-header {
  background-color: #D2BC66;
  text-align: center;
  padding: 12px 8px;
}

.point-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.05em;
}

/* スクロールバーを極細にする設定 */
.scroll-container::-webkit-scrollbar {
  width: 2px;   /* スクロールバー全体の幅 */
}

.scroll-container::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.4);  /* つまみ部分の色 */
  border-radius: 1px;
}

.scroll-container::-webkit-scrollbar-track {
  background-color: transparent;  /* トラック背景を透明に */
}

/* Firefox 用 */
.scroll-container {
  scrollbar-width: thin;  /* “thin” で細め表示 */
  scrollbar-color: rgba(0, 0, 0, 0.4) transparent;
}

/* --- 口コミセクションの修正 --- */
.section#reviews {
  /* .section の基本スタイルを継承 */
  height: 88dvh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  z-index: 0;

  /* --- .section からの上書き --- */
  display: flex; /* flexは維持 */
  flex-direction: column; /* 縦積みに変更 */
  justify-content: flex-start; /* 上から配置 */
  align-items: stretch; /* 横幅いっぱいに広げる */
  
  overflow-y: auto; /* 縦スクロールを許可 */
  overflow-x: hidden;
  color: #333; /* .section の color: white を上書き */
  background-color: #f9f5ee; /* 背景色を統一 */
  padding: 3rem 1.5rem 2rem 1.5rem; /* パディングを統一 */
  text-align: left; /* デフォルトを左揃えに（タイトル用） */
}

.voice-title {
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 2rem;
  text-align: left;
  color: #000000;
}

.voice-card {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
  flex-shrink: 0; /* スクロール時にカードが縮まないように */
}

.voice-rating {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.stars {
  height: 20px;
  width: auto;
}

.voice-line {
  flex-grow: 1;
  height: 1px;
  background-color: #D2BC66;
  margin-left: 0.5rem;
  position: relative;
}

.voice-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  background-color: #D2BC66;
  border-radius: 50%;
  transform: translateY(-50%);
}

.voice-name {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #000000;
}

.voice-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

/* --- 料金表セクション --- */
.section#price {
  background-color: #EFE9D3;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* デフォルトSPは上寄せ */
  padding: 15px 15px;
  color: #333;
  text-align: center;
  overflow: auto !important;
}

.price-wrapper {
  max-height: 100%;
  width: 100%;
  transform: scale(0.9);
  transform-origin: top center;
}

.price-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.price-card {
  background: #fff;
  border-radius: 8px;
  padding: 3px 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.price-card h3 {
  font-size: 1.2rem;
  margin-bottom: 2px;
  font-weight: bold;
  color: #333;
  line-height: 1.3;
}

.price-card .time {
  font-size: 0.8rem;
  font-weight: normal;
  color: #555;
}

.price-card .price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #8a5b27;
  margin: 5px 0;
  line-height: 1.2;
}

.price-card .price span {
  font-size: 1.5rem;
}

.price-card .price em {
  font-size: 0.8rem;
  font-style: normal;
  color: #555;
}

.price-card .desc {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.3;
}

.price-note {
  font-size: 0.7rem;
  color: #666;
  line-height: 1.3;
  margin-top: 8px;
  text-align: left;
}

/* --- PC表示時に大きめに --- */
@media (min-width: 450px) {
  .price-wrapper {
    max-width: 520px;
  }

  .price-title {
    font-size: 1.5rem;
    margin-bottom: 18px;
  }

  .price-card {
    padding: 18px 15px;
    margin-bottom: 30px;
  }

  .price-card h3 {
    font-size: 1.2rem;
  }

  .price-card .time {
    font-size: 0.85rem;
  }

  .price-card .price {
    font-size: 1.3rem;
  }

  .price-card .price span {
    font-size: 1.6rem;
  }

  .price-card .price em {
    font-size: 0.85rem;
  }

  .price-card .desc {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .price-note {
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

/* 店舗一覧セクション */
.section#shop {
  background-color: #fff;
  background-image: url('./img/shop-background.png');
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 250px auto;
  color: #333;
  --section-padding: 20px;
  padding: 2rem var(--section-padding) 0 var(--section-padding);
  min-height: 88dvh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* 中身ラッパー：スクロール可能 */
.shop-wrapper {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 5px;
  padding-bottom: 50px;
}

.shop-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 3rem;
  flex-shrink: 0;
}

/* アコーディオン */
.shop-accordion {
  flex: 1 1 auto;
}

.accordion-toggle {
  background-color: #D2BC66;
  color: #333;
  font-weight: bold;
  padding: 1rem;
  width: 100%;
  text-align: left;
  border: none;
  margin-bottom: 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.accordion-toggle::after {
  content: "▼";
  position: absolute;
  right: 1.5rem;
  font-size: 1rem;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.accordion-toggle.active::after {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 店舗情報部分 */
.shop-item {
  margin-bottom: 2rem;
  font-size: 0.7rem;
  color: #000;
}

.shop-name {
  font-size: 1rem;
  border-bottom: 1px solid #D2BC66;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-link {
  position: relative;
  display: inline-block;
  font-size: 0.5rem;
  color: #000;
  text-decoration: none;
  padding-right: 2rem;
}

.shop-link::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1px;
  background-color: #000;
}

.shop-link::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #000;
  border-radius: 50%;
}

.shop-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -0.3rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid #D2BC66;
}

.open-date {
  color: red;
  font-size: 0.7rem;
}

.shop-sub .shop-link {
  font-size: 0.6rem;
  padding-right: 1.6rem;
}

.shop-sub .shop-link::after {
  width: 1.2rem;
}

.shop-sub .shop-link::before {
  width: 5px;
  height: 5px;
}

/* フッター */
.shop-footer {
  width: calc(100% + (var(--section-padding) * 2));
  margin-left: calc(-1 * var(--section-padding));
  margin-right: calc(-1 * var(--section-padding));
}

.shop-footer img {
  width: 100%;
  height: auto;
  display: block;
}

.shop-points {
  width: 100%;
  height: auto;
  z-index: 2;
  position: absolute;
  bottom: 10%;
  padding: 0 10px;
}

.flow-points {
  width: 100%;
  height: auto;
  z-index: 2;
  position: absolute;
  bottom: 5%;
  padding: 0 10px;
}

.flow-title {
  width: 100%;
  height: auto;
  z-index: 2;
}

.flow-section {
  height: 88dvh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  overflow: auto;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 0;
  background-color: #EFE9D3;
  padding-top: 60px;
}

.svg-text {
  display: block;
  margin: 0 auto;
  width: 80%;
}

.flow-steps {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 20px 5px 20px;
}

.flow-step {
  display: flex;
  align-items: flex-start;
}

.step-icon {
  width: 60px;
  height: auto;
  margin-right: 15px;
}

.step-content h3 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #333;
}

.step-content p {
  margin: 0;
  font-size: 0.7rem;
  color: #333;
  line-height: 1.2;
}

.flow-notes {
  font-size: 0.6rem;
  color: #333;
  max-width: 800px;
  padding: 0 20px;
}

.flow-payment {
  text-align: center;
  margin-top: 10px;
}

.flow-payment img {
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.refund-section {
  height: 88dvh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 0;
  background-color: #EFE9D3;
  padding: 40px 20px;
  box-sizing: border-box;
  color: #333;
}

.refund-inner {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.refund-subtitle {
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: #333;
}

.refund-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000;
}

.refund-text {
  font-size: 0.8rem;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #333;
  text-align: left;
}

.refund-box {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  margin: 15px 0;
  text-align: center;
}

.refund-box h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000;
}

.refund-box p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.3;
  margin: 0;
}

.refund-footer {
  font-size: 0.8rem;
  color: #333;
  line-height: 1.2;
  text-align: left;
}

.staff-section {
  padding: 3rem 1rem 2rem 1rem;
  margin: 0 auto;
  background-color: #fff;
  height: 88dvh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  overflow: auto;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 0;
  padding-top: 20px;
}

.staff-title {
  font-size: 1.4rem;
  color: #000;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
  text-align: center;
}

.staff-profile {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: #000;
  margin-bottom: 15px;
}

.staff-profile.reverse {
  flex-direction: row-reverse;
}

.staff-photo img {
  width: 90px;
  height: auto;
  background-color: #ddd;
}

.staff-text {
  flex: 1;
}

.staff-name {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 0.1rem;
}

.staff-position {
  font-size: 0.6rem;
  margin-bottom: 0.2rem;
}

.staff-message {
  font-size: 0.6rem;
  line-height: 1.2;
}

.faq-section {
  height: 88dvh;
  width: 100%;
  scroll-snap-align: start;
  background-color: #fff;
  padding: 2rem 1rem;
  color: #333;
  box-sizing: border-box;
  overflow-y: auto; /* 質問が多い場合はスクロール */
}

.faq-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left;
  color: #000;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list dt {
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #000;
  border-bottom: 2px solid #D2BC66;
  padding-bottom: 0.3rem;
  font-size: 0.8rem;
}

.faq-list dd {
  margin: 0;
  padding-left: 0.5rem;
  font-size: 0.7rem;
  color: #333;
  line-height: 1.2;
}

/* リアルタイム空き状況 */
.availability-section {
  height: 88dvh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  color: white;
  z-index: 0;
  background-color: #2B2623;
  padding: 50px 15px 0 15px;
  overflow-y: auto;
}

.availability-section > * {
  position: relative;
  z-index: 1;
}

/* 見出し・説明 */
.availability-title {
  color: #D2BC66;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
.availability-text {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* アコーディオンリスト */
.accordion-list {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-right: 5px;
  flex: 1 1 auto;
}

/* アコーディオン */
.accordion-button {
  background: #D2BC66;
  color: #000;
  font-weight: bold;
  border: none;
  width: 100%;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  position: relative;
  margin-bottom: 0.5rem;
}
.accordion-button::after {
  content: "▼";
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s;
}
.accordion-button.active::after {
  transform: translateY(-50%) rotate(180deg);
}

/* このセクション専用のアコーディオン中身 */
#realtime .accordion-content {
  display: none;
  padding: 10px 12px;
  margin-bottom: 12px;
  background-color: transparent;
  border-radius: 6px;
  box-shadow: none;
}

.accordion-item + .accordion-item {
  margin-top: 0.8em;
}

/* 店舗カード */
.store-card {
  background: #fff;
  border-radius: 5px;
  margin: 0.5em 0;
  border: 1px solid #c3a656;
  font-family: sans-serif;
}
.store-name {
  background-color: #c3a656;
  color: #000;
  text-align: center;
  padding: 0.4em;
  border-radius: 5px 5px 0 0;
  font-size: 1em;
}
.store-info {
  display: flex;
  justify-content: space-between;
  padding: 0.5em;
  background-color: #fff;
  font-size: 0.95em;
  border-radius: 0 0 5px 5px;
  color: #000;
}
.store-info div {
  width: 48%;
  text-align: center;
}
.gold-text {
  color: #c3a656;
}

/* 背景（PC時のみ） */
.pc-background {
  display: none;
}

@media (min-width: 768px) {
  .pc-background {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('./img/pc-mv.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
  }
}

/* 左サイド（PC時のみ表示） */
.side-left {
  display: none;
}

@media (min-width: 1200px) {
  .side-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 10%;
    width: 220px;
    z-index: 10;
    color: #fff;
  }

  .side-logo {
    max-width: 230px;
    margin-bottom: 40px;
  }

  .side-cta {
    max-width: 230px;
  }
}

.copyright {
  text-align: center;
  font-size: 10px;
}

.copyright a {
  color: #fff;
}

/* ページトップへ戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 110px;
  right: 15px;
  width: 50px;
  height: 50px;
  background-color: #000;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* 矢印（beforeとafterで描画） */
.back-to-top::before {
  content: "";
  border: solid #fff;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 7px;
  transform: rotate(-135deg);
  margin-bottom: -10px;
}

/* スクロール時に表示 */
.back-to-top.show {
  opacity: 0.8;
  pointer-events: auto;
}

/* 追尾フッター */
.nav-wrap {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 100%;
  max-width: 450px;
  background: #fff;
  box-shadow: none;
}

.footer-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90px;
  padding: 4px 0;
  background: #fff;
  border: none;
  box-shadow: none;
  margin: 0 auto;
  width: 100%;
}

.footer-bar__item {
  flex: 1;
  text-align: center;
  margin: 0 2px;
}

.footer-bar__item a {
  display: block;
  height: 100%;
  width: 100%;
  line-height: 0;
  padding: 0;
  margin: 0;
}

.footer-bar__item img {
  display: block;
  width: 95%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  vertical-align: bottom;
  border-radius: 4px;
}

.footer-bar__item a:hover,
.footer-bar__item a:active {
  opacity: 0.85;
  background: none;
}
