/* ==========================================================================
   Reset (最小限)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

:root {
  --font-heading: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-heading-b1: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --font-body: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --col-deep:  #1c3448;
  --col-mid:   #607b96;
  --col-ice:   #f3f9fc;
  --col-white: #ffffff;
  --col-ivory: #fdfaf1;
  --section-px: 24px;
  --section-py: 64px;
}

body {
  font-family: var(--font-body);
  color: #222;
  background: #eee;
  /* PC幅で背景要素の外側に見える色。画像を敷く場合はここを background-image に差し替え可 */
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   ブレークポイント: 430px を境に PC / SP を切り替える
   （電話フレームは実機のスマホ幅でだけ100%フル表示にし、それより広い画面
   （タブレット・PCとも）では常に固定サイズのモックアップとして中央に表示する。
   フレーム自体をタブレット幅などで引き伸ばして「レスポンシブ」させない）
   ========================================================================== */

/* ---- 共通：SP幅（430px未満）をデフォルトのベーススタイルとする ---- */

.bg-fixed {
  display: none;
  /* SP幅では背景要素は使わない */
}

.pc-nav {
  display: none;
  /* SP幅では非表示 */
}

.pc-bg-logo {
  display: none;
  /* SP幅では非表示 */
}

.phone-frame {
  width: 100%;
  min-height: 100vh;
  overflow: visible;
  background: var(--col-ice);
}

.phone-frame__inner {
  width: 100%;
}

.section {
  width: 100%;
  padding: var(--section-py) var(--section-px);
  background: var(--col-ice);
}

.section h1,
.section h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.6;
}

/* ファーストビュー */
.section--fv {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.fv__base {
  width: 100%;
  display: block;
}

/* 左上のロゴ：読み込み後にふわっとフェードイン */
.fv__logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 190px;
  opacity: 0;
  animation: fvLogoIn 1s ease forwards;
  animation-delay: 0.4s;
}

@keyframes fvLogoIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* バランス配置済みのかき氷写真(fv_1〜3)を3秒おきにクロスフェード表示 */
.fv__slideshow {
  position: absolute;
  top: 6%;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.fv__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fv__slide.is-active {
  opacity: 1;
}

/* 導入セクション */
.section--intro {
  text-align: center;
  /* 前のセクション(開催概要)がiceで終わるので、そのままice */
  background: var(--col-ice);
}

/* ==========================================================================
   開催概要／開催期間
   ========================================================================== */

.section--overview {
  text-align: center;
  /* FV画像の下端は白なのでそのまま白スタート、次のセクション(ice)へ向けて下端だけ滑らかに */
  background: linear-gradient(
    to bottom,
    var(--col-white) 0,
    var(--col-white) calc(100% - 70px),
    var(--col-ice) 100%
  );
  /* 上の二重線+マージンの分、他のセクションと頭が揃うよう上パディングを詰める */
  padding-top: 20px;
  padding-bottom: 70px;
}

/* 開催期間の上下に添える二重の横線 */
.overview__rule {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 80%;
  max-width: 260px;
  margin: 0 auto;
}

.overview__rule span {
  display: block;
  width: 100%;
  background: #7691a8;
}

.overview__rule--top {
  margin-bottom: 12px;
}

.overview__rule--top span:first-child {
  height: 1.5px;
}

.overview__rule--top span:last-child {
  height: 0.8px;
}

.overview__rule--bottom {
  margin-top: 12px;
}

.overview__rule--bottom span:first-child {
  height: 0.8px;
}

.overview__rule--bottom span:last-child {
  height: 1.5px;
}

.overview__period-label {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #274a68;
}

.overview__period-year {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #5b7a99;
}

.overview__period-dates {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.overview__period-date {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.overview__period-num {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: #1c2f42;
}

.overview__period-day {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #223e58;
}

.overview__period-sep {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #223e58;
}

.overview__steps {
  list-style: none;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed #c3d1de;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

.overview__step-icon {
  display: block;
  width: 44px;
  height: 44px;
  color: #4d7ca8;
}

.overview__step-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.overview__step-text {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  color: #274a68;
}

.intro__title {
  display: inline-block;
  writing-mode: vertical-rl;
  text-orientation: upright;
  height: 210px;
  font-family: var(--font-heading-b1);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.12em;
  color: var(--col-deep);
}

/* 最初の文字から順に、一文字ずつふわっと現れる */
.intro__title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 0.09s);
}

.intro__title.is-visible span {
  opacity: 1;
  transform: translateY(0);
}

.intro__text {
  margin-top: 32px;
  font-family: var(--font-heading-b1);
  font-size: 16px;
  font-weight: 600;
  line-height: 2.1;
}

.intro__text p + p {
  margin-top: 1.5em;
}

/* 3つの文章の塊が、それぞれ画面に入ったタイミングでふわっと現れる
   （固定タイマーの連続再生ではなく、段落ごとに js-fade で個別に監視することで
   スクロールの速さに関わらず「その段落が見えてきたら現れる」ようにしている） */
.intro__text p {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro__text p.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   セクション見出し（共通）
   和文タイトル＋英字サブタイトル＋短い区切り線の2段構成。
   参加店舗／マップなど、セクション冒頭の見出しはすべてこれを使う。
   ========================================================================== */

.section-head {
  text-align: center;
}

.section-head__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #274a68;
}

.section-head__subtitle {
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: #7691a8;
}

/* ==========================================================================
   店舗一覧
   細い罫線・角丸・和文/ローマ字の二段見出しで上品な和風の印象にまとめる
   ========================================================================== */

.section--stores {
  /* 前のセクション(ice)からアイボリーへ、境目を滑らかに。ベージュ→白への変化は
     次の.section--access側で行うので、このセクション内はアイボリーのまま最後まで保つ */
  background: linear-gradient(
    to bottom,
    var(--col-ice) 0,
    var(--col-ivory) 90px
  );
  padding-top: 80px;
}

.store-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.store-card__button {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 128px;
  border: 0.72px solid #073969;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-card__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 52, 72, 0.12);
}

.store-card__thumb {
  position: relative;
  flex: 0 0 128px;
  background-color: #eee;
  background-size: cover;
  background-position: center;
}

.store-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  min-width: 0;
}

.store-card__tag {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #073969;
  background: none;
  border: 0.5px solid #073969;
  border-radius: 3px;
  padding: 3px 9px;
}

.store-card__name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #223e58;
  line-height: 1.4;
}

.store-card__shop {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #5b7a99;
}

.store-card__arrow {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 20px;
  line-height: 1;
  color: #5b7a99;
}

/* ---- 提供休止中の店舗カード（栃本農園：2027年から提供開始予定） ----
   グレーアウトはごく薄めに。サムネイルの写真はカラーのまま変更しない。 */
.store-card--unavailable .store-card__info,
.store-card--unavailable .store-card__arrow {
  opacity: 0.55;
}

.store-card__badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 6px;
  background: rgba(34, 48, 61, 0.72);
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ==========================================================================
   店舗詳細ポップアップ
   ========================================================================== */

/* モーダル表示中はページ（PC幅では枠のスクロールも兼ねる html/body）を固定 */
html.is-modal-open,
html.is-modal-open body {
  overflow: hidden;
}

.store-modal {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  height: 100vh;
  /* dvhはSafariのアドレスバー/ツールバーの出し引きに合わせて実際に見えている
     高さを返してくれるので、vhでは隠れてしまう分を防げる（非対応ブラウザはvhのまま） */
  height: 100dvh;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
  /* 閉じるときはパネルの動きが終わるまで非表示にしない */
  transition: visibility 0s linear 0.45s;
}

.store-modal.is-open {
  visibility: visible;
  pointer-events: auto;
  /* 開くときは即座に表示する */
  transition-delay: 0s;
}

.store-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.store-modal.is-open .store-modal__overlay {
  opacity: 1;
}

.store-modal__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(28px);
  opacity: 0;
  /* 閉じるとき：開くときの逆再生に見えるよう、イージングを反転させたカーブを使う */
  transition: transform 0.45s cubic-bezier(0.64, 0, 0.78, 0), opacity 0.4s ease;
  overflow: hidden;
}

.store-modal.is-open .store-modal__panel {
  transform: translateY(0);
  opacity: 1;
  /* 開くとき用のイージング（上のカーブをちょうど反転させた形） */
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.store-modal__scroll {
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* legacy Edge/IE */
}

.store-modal__scroll::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.store-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  /* JSでfocus()させているため、モバイルでフォーカスリング(水色の枠)が
     表示されてしまうのを防ぐ */
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---- ページ1：メインビジュアル ---- */
.store-modal__hero {
  position: relative;
  padding: 16px 16px 0;
}

.store-modal__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #eee;
  background-size: cover;
  background-position: center;
  clip-path: url(#torn-edge);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.store-modal__area {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #fff url("../images/bg_area.png") center / cover no-repeat;
  color: #274a68;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: pre-line;
}

.store-modal__body {
  padding: 20px;
  text-align: center;
}

.store-modal__name {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #223e58;
}

.store-modal__romaji {
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #9aa9b6;
}

.store-modal__catch {
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
  color: #274a68;
  white-space: pre-line;
}

.store-modal__desc {
  font-family: var(--font-heading-b1);
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  margin-top: 18px;
  text-align: left;
}

.store-modal__menu {
  margin-top: 18px;
  text-align: left;
}

.store-modal__menu-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0 2px;
}

.store-modal__menu-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #223e58;
  line-height: 1.4;
  text-align: center;
  white-space: pre-line;
}

.store-modal__menu-price {
  font-family: var(--font-body);
  font-size: 13px;
  color: #4d7ca8;
  text-align: right;
}

.store-modal__menu-desc {
  margin: 14px 0 16px;
  font-family: var(--font-heading-b1);
  font-size: 16px;
  line-height: 1.85;
  color: #444;
}

/* ---- ページ2：お店について／アクセス（共通セクション見出し） ---- */
.store-modal__section {
  padding: 8px 20px 28px;
}

/* 2つ目以降のセクション（アクセスなど）の上だけ区切り線を入れる。
   最初のセクション（お店について）の上には出さない。 */
.store-modal__section+.store-modal__section {
  border-top: 1px solid #eee;
}

.store-modal__section-head {
  text-align: center;
  margin: 20px 0 16px;
}

.store-modal__section-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #274a68;
}

.store-modal__section-sub {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #7691a8;
}

/* ---- お店について ---- */
/* 外観写真は店舗ごとに用意でき次第 STORE_DATA[id].facade に設定する運用。
   未設定の店舗は store-modal.js 側で要素ごと非表示にする。 */
.store-modal__facade {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  background-color: #eee;
  background-size: cover;
  background-position: center;
}

.store-modal__infolist {
  margin-top: 16px;
}

.store-modal__info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 4px;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: #333;
}

.store-modal__info-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: #6d879e;
}

.store-modal__info-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-modal__info-label {
  flex: none;
  width: 89px;
  color: #7691a8;
  letter-spacing: 0.04em;
}

.store-modal__info-value {
  flex: 1;
  color: #333;
  white-space: pre-line;
}

.store-modal__sns-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-modal__sns-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6d879e;
  text-decoration: none;
}

.store-modal__sns-icon {
  width: 15px;
  height: 15px;
}

.store-modal__sns-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- アクセス ---- */
.store-modal__map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
}

.store-modal__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.store-modal__address {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: #333;
}

.store-modal__map-btn {
  /* SafariはブラウザのUIが下からせり出すことがあり、ボタン直後の余白が
     少ないと隠れて見えなくなるため、下の余白を多めに確保しておく */
  margin: 14px 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 999px;
  background: #223e58;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.section--access {
  /* 前のセクション(アイボリー)から白へ、境目を滑らかに */
  background: linear-gradient(to bottom, var(--col-ivory) 0, var(--col-white) 90px);
  padding-top: 32px;
}

/* アクセス：Googleマイマップ埋め込み */
.access__map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 8px;
  /* iframeの読み込み・描画が終わるまで真っ白にならないよう背景色を敷いておく */
  background: var(--col-ice);
}

.access__map iframe {
  /* マイマップ埋め込みは上部にタイトル・オーナーアイコンの帯が付く。
     枠幅が390px程度と狭く、帯の文字が2行に折り返されて高くなるため、
     大きめのオフセットで枠外（overflow:hidden）に隠す。
     高さも帯の分だけ余分に確保し、下側が欠けないようにする。
     帯の高さは環境により微妙に変わるので、実際の表示を見て調整してください。 */
  position: absolute;
  top: -76px;
  left: 0;
  width: 100%;
  height: calc(100% + 76px);
  border: 0;
}

/* 埋め込みの帯を隠した分、自分のGoogleマップで開くリンクを別途用意 */
/* 見た目はポップアップの「Googleマップで開く」ボタン(.store-modal__map-btn)を踏襲し、
   ここでは間隔だけ調整する */
.access__map-link {
  margin-top: 18px;
  /* ボタン自体の見た目は.store-modal__map-btnを踏襲しつつ、塗りではなく枠線にする */
  background: transparent;
  border: 1.5px solid #073969;
  color: #073969;
}



/* ==========================================================================
   かき氷キャッチコピー（動画カルーセルの右上に重ねて固定表示）
   ========================================================================== */

.kaki-steps {
  position: absolute;
  top: 0;
  right: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

/* 各行共通：スライドさせず、ふわっとフェードインのみ */
.kaki-step {
  opacity: 0;
  transition: opacity 1.1s ease;
}

.kaki-step.is-visible {
  opacity: 1;
}

/* 左上→右下：各行を右にずらす。ゆっくり順番に現れるよう間隔を広めに */
.kaki-step--1 { margin-left: 0;   transition-delay: 0s; }
.kaki-step--2 { margin-left: 48px; transition-delay: 0.5s; }
.kaki-step--3 { margin-left: 96px; transition-delay: 1s; }

.kaki-step__text {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 4px 2px 10px;
  font-family: var(--font-heading-b1);
  font-size: 20px;
  font-weight: 700;
  color: #274a68;
  letter-spacing: 0.08em;
}

/* エリアマップ */
.section--area-map {
  text-align: center;
  padding-top: 0;
}

.area-map__img {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   注意事項
   ========================================================================== */

.section--notes {
  background: var(--col-white);
  padding-top: 32px;
}

.notes__list {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notes__list li {
  position: relative;
  padding-left: 14px;
  font-family: var(--font-heading-b1);
  font-size: 16px;
  line-height: 1.9;
  color: #666;
}

.notes__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b7c6d4;
}

/* ==========================================================================
   下呂温泉観光協会（フッター内の外部リンクカード）
   ========================================================================== */

.gero-spa__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.gero-spa__link {
  position: relative;
  display: block;
  padding: 14px 34px 14px 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(34, 48, 61, 0.1);
  text-decoration: none;
  color: inherit;
  text-align: left;
}

.gero-spa__card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gero-spa__icon {
  flex: none;
  width: 28px;
  height: 28px;
  color: #4d7ca8;
}

.gero-spa__icon svg,
.gero-spa__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* 元画像が正方形の背景色付きロゴのため、白カード上では
   背景が透明に見えるようブレンドで馴染ませる（Instagramのアイコンは
   透過PNGなのでこの処理は不要） */
.gero-spa__icon--site img {
  mix-blend-mode: multiply;
}

.gero-spa__card-heading {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gero-spa__card-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #223e58;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gero-spa__card-handle {
  font-family: var(--font-body);
  font-size: 11px;
  color: #7691a8;
}

.gero-spa__external {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 15px;
  height: 15px;
  color: #4d7ca8;
}

.gero-spa__external svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gero-spa__divider {
  display: block;
  margin: 10px 0 8px;
  border-top: 1px solid #dfe6ec;
}

.gero-spa__card-text {
  display: block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.7;
  color: #223e58;
}

/* ---- PC幅（430px以上、タブレット含む） ---- */
@media (min-width: 430px) {

  body {
    background: #333;
    /* 枠外に見える領域の色（背景画像未設定時のフォールバック） */
  }

  /* 背景要素：ビューポート全体に固定表示。スクロールしても動かない */
  .bg-fixed {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: #333 url("../images/fv_pc.webp") center / cover no-repeat;
  }

  /* 背景左側のロゴ：背景画像には文字を焼き込まず、コードで重ねる。
     電話フレーム(表示上468px幅で中央配置)の左側の余白の、ちょうど中央に来るようにする */
  .pc-bg-logo {
    display: block;
    position: fixed;
    top: 50%;
    left: calc(25vw - 117px);
    width: 300px;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    animation: pcBgFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0s forwards;
  }

  /* 背景右側の縦ナビゲーション：左寄せ・各行に丸矢印アイコン。
     電話フレームの右側の余白の、ちょうど中央にナビ全体が来るようにする */
  .pc-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    position: fixed;
    top: 50%;
    left: calc(75vw + 117px);
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    animation: pcBgFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0s forwards;
  }

  @keyframes pcBgFadeIn {
    0% {
      opacity: 0;
      transform: translate(-50%, -47%);
    }
    100% {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
  }

  .pc-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 220px;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: #274a68;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  .pc-nav a::after {
    content: "\203A";
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #274a68;
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
  }

  .pc-nav a:hover {
    opacity: 0.7;
  }

  /* スマホ枠：通常の文書フローに置いて中央寄せするだけにし、
     スクロールはページ本体（html/body）にまかせる。
     これにより、スクロールバーは枠の脇ではなく画面の右端（通常のPCサイトと同じ位置）に表示される。
     背景（.bg-fixed）は position:fixed のため、ページがスクロールしても動かない。 */
  .phone-frame {
    position: relative;
    margin: 0 auto;
    width: 390px;
    min-height: 100vh;
    overflow: visible;
    /* 画面が狭くロゴ/ナビと重なっても、電話フレームが手前に来て隠れないようにする */
    z-index: 3;
    background: #fff;
    /* 幅だけでなくSPの見た目全体を縦横比そのままに1.2倍拡大する */
    transform: scale(1.2);
    transform-origin: top center;
  }

  /* .phone-frame自体が1.2倍に拡大されるため、枠線・アウトラインの太さも
     そのままだと1.2倍太く見えてしまう。375px幅で見たときと同じ太さになるよう、
     あらかじめ1/1.2の太さにしておく */
  .store-card__button {
    border-width: 0.6px;
  }

  .video-reel__item {
    outline-width: 0.6px;
  }

  .phone-frame__inner {
    width: 100%;
  }

  /* 背景の暗いオーバーレイ(グレー)だけを、1.2倍に拡大された.phone-frameの
     見た目の幅に合わせて広げる（.store-modal自体の幅は変えず、
     パネル側のスケール計算に影響しないようにする） */
  .store-modal__overlay {
    left: 50%;
    right: auto;
    width: calc(390px * 1.2);
    transform: translateX(-50%);
  }

  /* PC版もSP版と同じ88%を上限にする。
     拡大後にビューポート内へ収まるよう、拡大率分だけ差し引いておく */
  .store-modal__panel {
    max-height: calc(88% / 1.2);
    transform-origin: bottom center;
  }

  .store-modal.is-open .store-modal__panel {
    transform: translateY(0) scale(1.2);
  }

  .store-modal__scroll {
    max-height: calc(88vh / 1.2);
    max-height: calc(88dvh / 1.2);
  }
}

/* ---- PC幅が狭め（768〜1080px、タブレット含む）：ナビが電話フレームに被りそうな幅なので、
   左のロゴ・右のナビともに非表示にし、電話フレームだけのレイアウトにする ---- */
@media (min-width: 430px) and (max-width: 1080px) {
  .pc-bg-logo {
    display: none;
  }

  .pc-nav {
    display: none;
  }
}

/* ==========================================================================
   フッター
   ========================================================================== */

.section--footer {
  position: relative;
  padding: 0;
  border-bottom: none;
  background: none;
}

/* フッター本体
   上端は上のセクション背景色(白)から本体の青(--col-mid)へ、他の境目と同じ考え方で
   カードより手前ではなく背景そのものとして滑らかに変化させる
   （カード類は不透明な白背景のため、グラデーションはカードの隙間にのみ見える） */
.footer__body {
  background: var(--col-mid);
  text-align: center;
  padding: 40px 32px 24px;
  color: #ffffff;
}

/* ---- ロゴエリア ---- */
.footer__logo {
  margin-bottom: 16px;
}

.footer__logo a {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.footer__logo a:hover {
  opacity: 0.8;
}

.footer__logo img {
  max-width: 180px;
  margin: 0 auto;
  display: block;
}

/* ---- 下呂温泉観光協会（フッター内リンクカード） ---- */
.footer__gero-spa {
  margin-bottom: 24px;
}

/* ---- フッターリンク（プライバシーポリシー・お問い合わせ） ---- */
.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.footer__link {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #fff;
  opacity: 0.75;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer__link:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer__link-sep {
  font-size: 10px;
  opacity: 0.4;
  color: #fff;
}

/* ---- コピーライト ---- */
.footer__copy {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-top: 8px;
}

/* ==========================================================================
   縦動画 無限横スクロール（参加店舗の上）
   ========================================================================== */

.section--video-reel {
  position: relative;
  padding: 0;
  overflow: hidden;
}

/* トラックをはみ出し非表示にするラッパー */
.video-reel__track-wrap {
  overflow: hidden;
}

/* 6アイテム（3本＋クローン3本）を横一列に並べるトラック */
.video-reel__track {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  animation: videoReelScroll 32s linear infinite;
  width: max-content;
}

/* モーション軽減設定に対応 */
@media (prefers-reduced-motion: reduce) {
  .video-reel__track {
    animation: none;
  }
}

@keyframes videoReelScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * (200px + 24px) * 3)); }
}

/* 各動画カード：縦長（9:16）*/
.video-reel__item {
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  /* 動画の枠に直接接しない、少し離れた細い枠（カード・タグと同じ紺色） */
  outline: 0.72px solid #073969;
  outline-offset: 4px;
}

.video-reel__item video {
  display: block;
  height: 450px;
  width: auto;
  object-fit: cover;
  border-radius: 6px;
}