/* ============================================================
   enhance.css — 元デザインを保ったまま、JSで動きを足すための追加スタイル
   ============================================================ */

/* ===== ★ 白背景を統一 #F2EFE8 に置換 ===== */
:root {
  --paper: #F2EFE8;
  --paper-soft: #ECE7DA; /* 微妙に深い影色 */
}
body { background: #F2EFE8 !important; }

/* 白だったセクション・カード類を #F2EFE8 に */
.concept.split-section,
.recommend.split-section,
.feature-card,
.recommend-card,
.around__card,
.amenity-item,
.access__photo,
.access__photo figcaption,
.route .route-step,
.facility-list,
.room-block,
.rooms-layout__main,
.amenity-section {
  background: #F2EFE8 !important;
}

/* hero, page-headerなど画像背景には影響させない（背景透明 or 画像のため） */

/* ===== 改行ヘルパー：括弧やフレーズを途中で切らない ===== */
.nowrap { white-space: nowrap; }

/* テキスト全般：日本語は単語境界で、英語は語境界で改行 */
.feature-card__body h3,
.recommend-card h3,
.around__card h3,
.room-block__text h3,
.route-step h3,
.access__row dd,
.access__table td,
.facility-list__label,
.recommend-card p,
.around__card p,
.room-block__text p,
.feature-card__body p {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

/* ===== 0. アンカーリンク移動時の固定ヘッダー分のオフセット ===== */
html {
  scroll-padding-top: 90px;
  scroll-behavior: smooth;
}
@media (max-width: 720px) {
  html { scroll-padding-top: 180px; } /* スマホはヘッダーが3段に折り返すため広めに */
}

/* ===== 1. ページローダー ===== */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #1d2c4a;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity .8s ease, visibility .8s ease;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; }
.page-loader__logo {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: #ede3cd;
  font-size: 18px; letter-spacing: .25em;
  margin-bottom: 24px;
  opacity: 0;
  animation: loaderFadeIn 1s ease forwards;
}
.page-loader__bar {
  width: 200px; height: 1px;
  background: rgba(237, 227, 205, 0.2);
  position: relative; overflow: hidden;
}
.page-loader__bar::after {
  content: '';
  position: absolute; top: 0; left: 0;
  height: 100%; width: 30%;
  background: #b89968;
  animation: loaderSlide 1.4s ease-in-out infinite;
}
@keyframes loaderFadeIn {
  to { opacity: 1; }
}
@keyframes loaderSlide {
  0% { left: -30%; }
  100% { left: 100%; }
}

/* ===== 2. スクロール進捗バー ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, #b89968 0%, #d4b97a 100%);
  z-index: 1000;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(184, 153, 104, 0.5);
}

/* ===== 3. ヘッダーのスクロール変化 ===== */
.site-header {
  transition: padding .35s ease, background .35s ease, box-shadow .35s ease !important;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(29, 44, 74, 0.18);
}

/* ===== 4. フローティング予約ボタン（スクロール後に出現） ===== */
.floating-book {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  background: #b89968;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .12em;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(184, 153, 104, 0.4);
  display: flex; align-items: center; gap: 10px;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.22,.61,.36,1), background .3s ease;
}
.floating-book.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.floating-book:hover {
  background: #1d2c4a;
  transform: translateY(-2px) scale(1.05);
}
.floating-book::before {
  content: '';
  width: 8px; height: 8px;
  background: #F2EFE8;
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

/* ===== 5. ライトボックス（画像クリックで拡大） ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15, 20, 35, 0.92);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__caption {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: #ede3cd;
  font-size: 13px; letter-spacing: .15em;
  background: rgba(29, 44, 74, 0.7);
  padding: 8px 18px;
  border-radius: 4px;
}
.lightbox__close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(237, 227, 205, 0.3);
  border-radius: 50%;
  color: #ede3cd;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, transform .25s ease;
}
.lightbox__close:hover {
  background: rgba(184, 153, 104, 0.3);
  transform: rotate(90deg);
}

/* ===== 6. クリック可能な画像にカーソルヒント ===== */
[data-zoomable] {
  cursor: zoom-in;
  position: relative;
}
[data-zoomable]::after {
  content: '⤢';
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(29, 44, 74, 0.7);
  color: #ede3cd;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  z-index: 2;
}
[data-zoomable]:hover::after {
  opacity: 1;
  transform: scale(1.1);
}

/* ===== 7. カードのチルト用：transformの土台 ===== */
.feature-card,
.recommend-card,
.around__card {
  transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ===== 8. ヒーロー画像のパララックス用 ===== */
.hero__image img {
  transition: transform .1s linear;
  will-change: transform;
}

/* ===== 9. 数字カウンター（hero__title-num）の出現 ===== */
.hero__title-num.is-counted {
  display: inline-block;
}

/* ===== 10. リビールのアップグレード（既存の.revealをよりリッチに） ===== */
.reveal {
  transition: opacity 1s cubic-bezier(.22,.61,.36,1),
              transform 1s cubic-bezier(.22,.61,.36,1) !important;
}

/* ===== 11. 「もう一押し」のスクロールヒント矢印アニメ ===== */
.hero__scroll {
  cursor: pointer;
  transition: opacity .4s ease;
}
.hero__scroll:hover { opacity: 0.7; }

/* ===== 12. 予約ボタンのキラリ光るホバー ===== */
.booking__cta,
.site-header__cta {
  position: relative;
  overflow: hidden;
}
.booking__cta::before,
.site-header__cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  transition: left .7s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
.booking__cta:hover::before,
.site-header__cta:hover::before {
  left: 100%;
}

/* ===== モバイルでフローティングボタンを少し小さく ===== */
@media (max-width: 720px) {
  .floating-book { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 12px; }
  .lightbox { padding: 16px; }
  .lightbox__close { top: 12px; right: 12px; width: 36px; height: 36px; }
  /* モバイルではチルトを無効化 */
  .feature-card,
  .recommend-card,
  .around__card { transform: none !important; }
}

/* ============================================================
   ★ 写真の角丸＋浮き出るエフェクト（index.html 全写真）
   ============================================================ */

/* ヒーロー画像 */
.hero__image {
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(29, 44, 74, 0.35),
    0 18px 36px -18px rgba(29, 44, 74, 0.25);
  transition: transform .6s cubic-bezier(.22,.61,.36,1), box-shadow .6s ease;
}
.hero__image:hover {
  transform: translateY(-6px);
  box-shadow:
    0 40px 80px -20px rgba(29, 44, 74, 0.45),
    0 22px 44px -18px rgba(29, 44, 74, 0.3);
}
.hero__image img { border-radius: 18px; }

/* EXPERIENCE 3カードの画像 */
.feature-card {
  border-radius: 16px;
  overflow: hidden;
  background: #F2EFE8;
  box-shadow:
    0 14px 30px -14px rgba(29, 44, 74, 0.25),
    0 6px 14px -6px rgba(29, 44, 74, 0.15);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s ease;
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 30px 60px -20px rgba(29, 44, 74, 0.35),
    0 12px 24px -10px rgba(29, 44, 74, 0.22);
}
.feature-card__media {
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.feature-card__media img { border-radius: 0; }

/* RECOMMEND 6カード（写真は無いが、立体感を統一） */
.recommend-card {
  border-radius: 16px;
  background: #F2EFE8;
  box-shadow:
    0 10px 24px -12px rgba(29, 44, 74, 0.2),
    0 4px 10px -4px rgba(29, 44, 74, 0.12);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s ease;
}
.recommend-card:hover {
  box-shadow:
    0 24px 50px -18px rgba(29, 44, 74, 0.32),
    0 10px 20px -8px rgba(29, 44, 74, 0.2);
}

/* アクセス：エントランス・駐車場の写真 */
.access__photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 16px 32px -14px rgba(29, 44, 74, 0.3),
    0 6px 14px -6px rgba(29, 44, 74, 0.18);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s ease;
  background: #F2EFE8;
}
.access__photo:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 56px -18px rgba(29, 44, 74, 0.4),
    0 12px 24px -10px rgba(29, 44, 74, 0.25);
}
.access__photo img {
  border-radius: 14px 14px 0 0;
  display: block;
}
.access__photo figcaption {
  padding: 10px 14px;
  background: #F2EFE8;
  border-radius: 0 0 14px 14px;
}

/* room-block / amenity-item / route-step：写真がはっきり浮き出る立体感 */
.room-block__img,
.amenity-item img,
.route-step__img,
.route-step__img img {
  border-radius: 14px;
  overflow: hidden;
}

/* room-block画像 */
.room-block__img {
  box-shadow:
    0 24px 48px -16px rgba(29, 44, 74, 0.45),
    0 12px 24px -10px rgba(29, 44, 74, 0.25),
    0 2px 6px rgba(29, 44, 74, 0.08);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s ease;
}
.room-block__img:hover {
  transform: translateY(-8px);
  box-shadow:
    0 36px 70px -18px rgba(29, 44, 74, 0.55),
    0 18px 36px -12px rgba(29, 44, 74, 0.35),
    0 4px 10px rgba(29, 44, 74, 0.1);
}

/* amenity-item：写真とキャプションを1つの統合カードに（feature-card風） */
.amenity-item {
  background: #F2EFE8;
  border-radius: 16px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-shadow:
    0 20px 40px -16px rgba(29, 44, 74, 0.38),
    0 10px 20px -8px rgba(29, 44, 74, 0.22),
    0 2px 4px rgba(29, 44, 74, 0.06);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s ease;
  display: flex;
  flex-direction: column;
}
.amenity-item img {
  width: 100%;
  display: block;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22,.61,.36,1);
}
.amenity-item figcaption {
  margin: 18px 18px 22px;
  padding: 4px 0 4px 14px;
  text-align: left;
  font-size: 15px;
  letter-spacing: .03em;
  color: #1d2c4a;
  font-weight: 600;
  border-left: 3px solid #b89968;
  /* 日本語の途中で不自然に切れないようにする */
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}
.amenity-item:hover {
  transform: translateY(-10px);
  box-shadow:
    0 36px 70px -18px rgba(29, 44, 74, 0.5),
    0 18px 36px -10px rgba(29, 44, 74, 0.32),
    0 4px 8px rgba(29, 44, 74, 0.1);
}
.amenity-item:hover img { transform: scale(1.04); }

/* route-step画像 */
.route-step__img {
  box-shadow:
    0 22px 44px -16px rgba(29, 44, 74, 0.42),
    0 10px 22px -8px rgba(29, 44, 74, 0.25);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s ease;
}
.route-step__img:hover {
  transform: translateY(-8px);
  box-shadow:
    0 34px 68px -18px rgba(29, 44, 74, 0.55),
    0 16px 32px -10px rgba(29, 44, 74, 0.35);
}

/* ヒーロー画像も影を一段強く */
.hero__image {
  box-shadow:
    0 36px 70px -22px rgba(29, 44, 74, 0.5),
    0 20px 40px -16px rgba(29, 44, 74, 0.3),
    0 4px 8px rgba(29, 44, 74, 0.08);
}
.hero__image:hover {
  box-shadow:
    0 50px 90px -22px rgba(29, 44, 74, 0.6),
    0 26px 52px -16px rgba(29, 44, 74, 0.38),
    0 6px 12px rgba(29, 44, 74, 0.12);
}

/* feature-card：影を強化 */
.feature-card {
  box-shadow:
    0 22px 44px -16px rgba(29, 44, 74, 0.35),
    0 10px 22px -8px rgba(29, 44, 74, 0.22),
    0 2px 4px rgba(29, 44, 74, 0.06);
}
.feature-card:hover {
  box-shadow:
    0 38px 76px -20px rgba(29, 44, 74, 0.5),
    0 18px 36px -10px rgba(29, 44, 74, 0.32),
    0 4px 8px rgba(29, 44, 74, 0.1);
}

/* access__photo：影を強化 */
.access__photo {
  box-shadow:
    0 24px 48px -18px rgba(29, 44, 74, 0.42),
    0 12px 24px -10px rgba(29, 44, 74, 0.25),
    0 2px 4px rgba(29, 44, 74, 0.08);
}
.access__photo:hover {
  box-shadow:
    0 38px 76px -20px rgba(29, 44, 74, 0.55),
    0 18px 36px -10px rgba(29, 44, 74, 0.35),
    0 4px 8px rgba(29, 44, 74, 0.1);
}

/* ============================================================
   ★ 1日満喫プラン（route）の順序アニメーション
   ============================================================ */

/* タイムライン線：各ステップの番号同士をつなぐ */
.route .route-step {
  position: relative;
  /* 上品なイージング：ease-out quart で落ち着いた減速 */
  transition:
    transform .9s cubic-bezier(.16, 1, .3, 1),
    box-shadow .9s cubic-bezier(.16, 1, .3, 1),
    border-color .7s ease,
    background-color .7s ease;
  border-radius: 14px;
  overflow: hidden;
  /* レンダリング最適化 */
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

/* ホバー：そっと浮き上がる */
.route .route-step:not(.is-active):hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 28px -10px rgba(29, 44, 74, 0.18),
    0 4px 10px -4px rgba(29, 44, 74, 0.1);
  border-color: rgba(184, 153, 104, 0.25);
}

/* 中の要素も静かに反応：画像とテキストにそれぞれ別の動き */
.route .route-step__img {
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1),
              filter .8s ease;
}
.route .route-step:hover .route-step__img,
.route .route-step.is-active .route-step__img {
  transform: scale(1.04);
}
.route .route-step h3 {
  transition: color .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}
.route .route-step:hover h3,
.route .route-step.is-active h3 {
  color: #1d2c4a;
}
.route .route-step h3,
.route .route-step p {
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}
.route .route-step.is-active > div {
  transform: translateX(4px);
  transition: transform 1s cubic-bezier(.16, 1, .3, 1);
}
.route .route-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 50px;          /* 番号円（44px）の中心位置：route-stepのpadding-left 28 + 22 */
  top: 100%;
  width: 3px;
  height: 20px;        /* ステップ間 gap と一致 */
  background: var(--border, #e3ddd0);
  transform: translateX(-50%);
  transition: background .6s ease;
  border-radius: 2px;
  z-index: 0;
}
.route .route-step.is-passed:not(:last-child)::after,
.route .route-step.is-active:not(:last-child)::after {
  background: var(--accent, #b89968);
}

/* 番号円：基本のトランジションと位置調整 */
.route .route-step__num {
  position: relative;
  z-index: 2;
  transition:
    transform .5s cubic-bezier(.34, 1.56, .64, 1),
    box-shadow .5s ease,
    background .5s ease;
}

/* 通過済みのステップ：番号がゴールドで完了感 */
.route .route-step.is-passed .route-step__num {
  background: var(--accent, #b89968);
  box-shadow: 0 4px 12px -4px rgba(184, 153, 104, 0.6);
}

/* 現在地（画面中央付近）のステップ：脈打つ光輪＋拡大 */
.route .route-step.is-active .route-step__num {
  transform: scale(1.18);
  background: var(--accent, #b89968);
  animation: stepActivePulse 2s ease-in-out infinite;
}
@keyframes stepActivePulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(184, 153, 104, 0.6),
      0 6px 16px -4px rgba(184, 153, 104, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 14px rgba(184, 153, 104, 0),
      0 6px 16px -4px rgba(184, 153, 104, 0.5);
  }
}

/* 現在地のカード：上品に浮上＋ゆったり呼吸 */
.route .route-step.is-active {
  transform: translateX(8px) translateY(-4px);
  box-shadow:
    0 24px 48px -16px rgba(29, 44, 74, 0.28),
    0 12px 24px -10px rgba(29, 44, 74, 0.18),
    0 0 0 1px rgba(184, 153, 104, 0.15);
  border-color: rgba(184, 153, 104, 0.45);
  background: linear-gradient(135deg, #F2EFE8 0%, #EDE6D2 100%);
  animation: stepBreathe 4.5s ease-in-out infinite;
}
/* ゆったりと呼吸する微細な上下運動 */
@keyframes stepBreathe {
  0%, 100% {
    transform: translateX(8px) translateY(-4px);
  }
  50% {
    transform: translateX(8px) translateY(-7px);
  }
}

/* 通過済み：静かに後ろに下がる */
.route .route-step.is-passed {
  transform: translateX(0) translateY(0);
  opacity: 0.92;
  filter: saturate(0.95);
}

/* 未到達のステップは少し薄く（順序を強調） */
.route .route-step:not(.is-passed):not(.is-active) .route-step__num {
  opacity: 0.85;
}

/* スマホ：番号は36px、padding 18px → 中心は左から36px */
@media (max-width: 720px) {
  .route .route-step:not(:last-child)::after {
    left: 36px;
    height: 16px;
    width: 2px;
  }
  .route .route-step.is-active {
    transform: translateX(3px);
  }
}

/* ===== 開始時のシーケンシャル登場アニメーション =====
   .route-step が画面に入る際、リストの最初から順番にゆったり出現 */
.route .route-step.reveal {
  opacity: 0;
  transform: translateX(-40px) translateY(20px);
  /* 上品な減速カーブ */
  transition:
    opacity 1.2s cubic-bezier(.16, 1, .3, 1),
    transform 1.2s cubic-bezier(.16, 1, .3, 1),
    box-shadow .9s cubic-bezier(.16, 1, .3, 1) !important;
}
.route .route-step.reveal.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* 番号も画像も少し遅れて表現を変える（リッチな登場感） */
.route .route-step.reveal .route-step__num,
.route .route-step.reveal .route-step__img {
  opacity: 0;
  transition: opacity .9s ease, transform 1s cubic-bezier(.16, 1, .3, 1);
}
.route .route-step.reveal .route-step__num {
  transform: scale(0.6);
  transition-delay: .15s;
}
.route .route-step.reveal .route-step__img {
  transform: scale(0.94);
  transition-delay: .25s;
}
.route .route-step.reveal.is-visible .route-step__num {
  opacity: 1;
  transform: scale(1);
}
.route .route-step.reveal.is-visible .route-step__img {
  opacity: 1;
  transform: scale(1);
}
/* is-active が後から上書きするので両立できるように分離 */
.route .route-step.reveal.is-visible.is-active .route-step__img {
  transform: scale(1.04);
}

/* ===========================================================
   ★ ルートステップ：スクロール非依存の自動アニメーション
   - 5つのボックスが順番にスポットライトを浴びる（1→2→3→4→5→繰返し）
   - 各ボックスがゆったりと上下にフロート（位相をずらす）
   - ホバーで自動アニメ一時停止＋特別な浮上
   =========================================================== */

/* ① 5つのボックスが順番にスケールアップする（リレー型）
   サイクル6s、各ステップ 1.2s ずれで主役が回る */
.route .route-step.reveal.is-visible {
  animation: routeBoxScale 6s ease-in-out infinite;
  transition:
    transform .6s cubic-bezier(.16, 1, .3, 1),
    box-shadow .6s ease,
    border-color .6s ease,
    background-color .6s ease;
  /* スケール時に隣にぶつからないよう transform-origin を中央に */
  transform-origin: center center;
}
.route .route-step.reveal.is-visible:nth-child(1) { animation-delay: 1s; }
.route .route-step.reveal.is-visible:nth-child(2) { animation-delay: 2.2s; }
.route .route-step.reveal.is-visible:nth-child(3) { animation-delay: 3.4s; }
.route .route-step.reveal.is-visible:nth-child(4) { animation-delay: 4.6s; }
.route .route-step.reveal.is-visible:nth-child(5) { animation-delay: 5.8s; }

@keyframes routeBoxScale {
  0%, 18%, 100% {
    transform: scale(1) translateY(0);
    box-shadow:
      0 8px 20px -10px rgba(29, 44, 74, 0.15),
      0 2px 6px -2px rgba(29, 44, 74, 0.08);
    border-color: var(--border, #e3ddd0);
  }
  8% {
    transform: scale(1.035) translateY(-4px);
    box-shadow:
      0 28px 56px -14px rgba(29, 44, 74, 0.3),
      0 12px 24px -8px rgba(29, 44, 74, 0.18),
      0 0 0 1px rgba(184, 153, 104, 0.3);
    border-color: rgba(184, 153, 104, 0.5);
  }
}

@media (max-width: 720px) {
  @keyframes routeBoxScale {
    0%, 18%, 100% {
      transform: scale(1) translateY(0);
      box-shadow:
        0 6px 14px -8px rgba(29, 44, 74, 0.18),
        0 2px 4px -2px rgba(29, 44, 74, 0.08);
    }
    8% {
      transform: scale(1.02) translateY(-2px);
      box-shadow:
        0 18px 36px -10px rgba(29, 44, 74, 0.28),
        0 8px 16px -6px rgba(29, 44, 74, 0.16);
    }
  }
}

/* ② 番号円：5つが順番に光るスポットライト
      合計サイクル 6s、各ステップが 1.2s ずつ「主役」になる */
.route .route-step__num {
  position: relative;
  z-index: 2;
  animation: numberSpotlight 6s ease-in-out infinite;
  background: var(--accent, #b89968);
  color: #fff;
}
.route .route-step:nth-child(1) .route-step__num { animation-delay: 2s; }
.route .route-step:nth-child(2) .route-step__num { animation-delay: 3.2s; }
.route .route-step:nth-child(3) .route-step__num { animation-delay: 4.4s; }
.route .route-step:nth-child(4) .route-step__num { animation-delay: 5.6s; }
.route .route-step:nth-child(5) .route-step__num { animation-delay: 6.8s; }

@keyframes numberSpotlight {
  0%, 18%, 100% {
    background: var(--accent, #b89968);
    box-shadow: 0 0 0 0 rgba(184, 153, 104, 0);
    transform: scale(1);
  }
  6% {
    background: #d4b97a;
    box-shadow:
      0 0 0 8px rgba(184, 153, 104, 0.15),
      0 4px 12px -2px rgba(184, 153, 104, 0.5);
    transform: scale(1.18);
  }
  12% {
    box-shadow:
      0 0 0 16px rgba(184, 153, 104, 0),
      0 4px 12px -2px rgba(184, 153, 104, 0.5);
  }
}

/* ③ 接続線：定常的に流れるゴールドの「光のリレー」 */
.route .route-step:not(:last-child)::after {
  background: linear-gradient(
    180deg,
    var(--accent, #b89968) 0%,
    var(--border, #e3ddd0) 50%,
    var(--accent, #b89968) 100%
  );
  background-size: 100% 200%;
  animation: lineFlow 6s linear infinite;
}
@keyframes lineFlow {
  0%   { background-position: 0% 100%; }
  100% { background-position: 0% -100%; }
}

/* ④ ホバー：自動アニメを止めて、その箱だけしっかり浮上 */
.route .route-step.reveal.is-visible:hover {
  animation-play-state: paused;
  transform: translateY(-10px);
  box-shadow:
    0 28px 56px -16px rgba(29, 44, 74, 0.3),
    0 14px 28px -10px rgba(29, 44, 74, 0.18),
    0 0 0 1px rgba(184, 153, 104, 0.2);
  border-color: rgba(184, 153, 104, 0.5);
  background: linear-gradient(135deg, #F2EFE8 0%, #EDE6D2 100%);
}
.route .route-step.reveal.is-visible:hover .route-step__num {
  animation-play-state: paused;
  transform: scale(1.15);
  background: #d4b97a;
  box-shadow: 0 0 0 6px rgba(184, 153, 104, 0.2);
}
.route .route-step.reveal.is-visible:hover .route-step__img {
  transform: scale(1.05);
}


/* モーション抑制ユーザーには停止 */
@media (prefers-reduced-motion: reduce) {
  .route .route-step.reveal.is-visible,
  .route .route-step__num,
  .route .route-step:not(:last-child)::after {
    animation: none !important;
  }
}

/* ライトボックスの拡大画像も角丸に */
.lightbox__img { border-radius: 12px; }

/* zoomable のヒントアイコン位置を角丸に合わせて少し内側へ */
[data-zoomable]::after { top: 16px; right: 16px; }

/* スマホ：rooms.html の設備一覧（aside）をページ最下部に移動 */
@media (max-width: 900px) {
  .rooms-layout {
    display: flex !important;
    flex-direction: column;
  }
  .rooms-layout__main {
    order: 1;
  }
  .rooms-layout__aside {
    order: 2;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border, #e3ddd0);
  }
}

/* モバイルでは影を少し控えめに */
@media (max-width: 720px) {
  .hero__image,
  .feature-card,
  .access__photo,
  .room-block__img,
  .amenity-item,
  .route-step__img {
    border-radius: 12px;
    box-shadow:
      0 10px 20px -10px rgba(29, 44, 74, 0.25),
      0 4px 10px -4px rgba(29, 44, 74, 0.15);
  }
  .hero__image img { border-radius: 12px; }
  .feature-card__media { border-radius: 12px 12px 0 0; }
  .access__photo img { border-radius: 12px 12px 0 0; }
  .access__photo figcaption { border-radius: 0 0 12px 12px; }

  /* ★ Rooms ページ：写真を 4:3 比率に統一（padding-top ハック）
     画面サイズによらず常に 4:3 を保つ */

  /* === room-block 部屋写真：4:3 === */
  .room-block__img {
    width: 100% !important;
    height: 0 !important;
    padding-top: 75% !important; /* 4:3 = 3/4 = 75% */
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background: transparent !important;
    margin: 0 !important;
    display: block !important;
  }
  .room-block__img img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* === amenity-item 12枚の設備写真：4:3 === */
  .amenity-item {
    overflow: hidden !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .amenity-item > img {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
  }

  /* === feature-card 画像：4:3 === */
  .feature-card__media {
    width: 100% !important;
    height: 0 !important;
    padding-top: 66.67% !important; /* 3:2 = やや横長で印象的 */
    position: relative !important;
    overflow: hidden !important;
  }
  .feature-card__media img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  /* === access__photo：4:3 === */
  .access__photo {
    overflow: hidden !important;
    width: 100% !important;
  }
  .access__photo > img {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }
}

/* ===== モーション抑制 ===== */
@media (prefers-reduced-motion: reduce) {
  .page-loader { display: none; }
  .scroll-progress, .floating-book::before { display: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
