/* =========================================
   Reset & Base
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Header */
  --header-h: 68px;
  --toggle-size: 30px;
  /* hamburger size */
  --pad-x: 60px;
  --nav-gap: 28px;

  /* Colors */
  --text: #111;
  --text-weak: #222;
  --border: #eee;
  --beige: #E4DFD9;

  /* Typography */
  --ff-serif: 'Playfair Display', 'Noto Serif JP', serif;

  /* Sections */
  --section-max: 1600px;
  --section-pad: 140px 6vw;

  /* Side gallery defaults */
  --gallery-side-max: 30%;
  --gallery-img-h: 300px;

  /* Hero video sizing（お好みで調整）*/
  --hero-maxw: 90vw;
  /* 80〜95vw で調整 */
  --hero-maxh: 80vh;
  /* 70〜90vh で調整 */
  --hero-dim: 0.5;
  /* 明るさ(0〜1) */
}

html,
body {
  font-family: var(--ff-serif);
  font-weight: 400;
  color: var(--text);
  background: var(--beige);
  line-height: 1.8;
  letter-spacing: .05em;
}

/* 固定ヘッダーの下に隠れないようにアンカー/スクロールオフセットを確保 */
html {
  scroll-padding-top: calc(var(--header-h) + 12px);
}

/* -----------------------------------------
   Headings / Text
----------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--ff-serif);
  font-weight: 200;
  letter-spacing: .1em;
  color: var(--text);
  margin-bottom: .6em;
}

h1 {
  font-size: clamp(28px, 4vw, 48px);
}

h2 {
  font-size: clamp(18px, 2.2vw, 28px);
}

/* Aman風に統一 */
h3 {
  font-size: clamp(18px, 2vw, 26px);
}

a,
nav,
button,
.btn-reserve {
  font-family: var(--ff-serif);
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--text);
  transition: opacity .3s ease;
}

a:hover {
  opacity: .6;
}

p {
  margin-bottom: 1.2em;
  font-size: 15px;
  color: var(--text-weak);
  line-height: 2;
  letter-spacing: .06em;
}

/* =========================================
   Header (fixed)
========================================= */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: opacity .24s ease, transform .24s ease;
  will-change: opacity, transform;
}

#header.is-hide {
  opacity: 0 !important;
  transform: translateY(-12px) !important;
  pointer-events: none !important;
}

#header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#header .logo {
  margin: 0;
  padding: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

#header .logo a {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(90deg, #000, #3a3a3a, #777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#header .nav {
  margin-left: auto;
  margin-right: 24px;
}

#header .nav ul {
  list-style: none;
  display: flex;
  gap: var(--nav-gap);
}

#header .nav a {
  font-size: 14px;
  line-height: 1;
}

#header .btn-reserve {
  padding: 6px 14px;
  border: 1px solid var(--text);
  border-radius: 50px;
  font-size: 14px;
  line-height: 1;
  transition: all .3s ease;
}

#header .btn-reserve:hover {
  background: var(--text);
  color: #fff;
}

/* コンテンツの頭打ち */
main {
  padding-top: calc(var(--header-h) + 12px);
}

/* Header responsiveness (hide nav only below laptop width) */
@media (max-width: 900px) {
  :root {
    --pad-x: 20px;
  }

  #header .nav {
    display: none;
  }

  /* 右上のハンバーガーが固定配置なので、その分の余白を確保 */
  #header .container {
    padding: 0 calc(var(--pad-x) + 120px) 0 var(--pad-x);
    justify-content: flex-start;
    gap: 14px;
  }

  /* Reservation をロゴの横に配置（左寄せ） */
  #header .btn-reserve {
    font-size: 13px;
    padding: 6px 12px;
    margin: 0 0 0 16px;
  }

  .toggle_btn {
    right: 24px;
    top: calc((var(--header-h) - var(--toggle-size)) / 2);
  }
}

/* Laptop range: leave safe space for fixed hamburger */
@media (min-width: 901px) and (max-width: 1400px) {

  /* 右端のトグル分のパディングを確保し、重なりを回避 */
  #header .container {
    padding-right: calc(var(--pad-x) + 96px);
  }

  /* 予約ボタンがトグルに近づきすぎないよう余白を追加 */
  #header .btn-reserve {
    margin-right: 16px;
  }
}

/* スマホでもロゴ横に表示（重なり回避のため位置だけ微調整） */
@media (max-width: 900px) {
  :root {
    --pad-x: 12px;
  }

  #header .btn-reserve {
    display: inline-flex;
    font-size: 13px;
    padding: 6px 12px;
    margin-left: 12px;
  }

  .toggle_btn {
    right: 16px;
    top: calc((var(--header-h) - var(--toggle-size)) / 2);
  }
}

/* =========================================
   Footer
========================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* =========================================
   折りたたみ（詳細を見る）
========================================= */
.hidden-text {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: height 400ms ease, opacity 400ms ease, transform 400ms ease;
}

.hidden-text.open {
  opacity: 1;
  transform: translateY(0);
}

.btn-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  letter-spacing: .05em;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  transition: color .3s ease;
}

.btn-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease;
  opacity: .6;
}

.btn-toggle:hover {
  color: #000;
}

.btn-toggle:hover::after {
  transform: scaleX(1);
}

.btn-toggle:focus-visible {
  outline: none;
  color: #000;
}

/* =========================================
   Sections
========================================= */
.section-block {
  width: 100%;
  max-width: var(--section-max);
  margin: 0 auto;
  padding: var(--section-pad);
  text-align: left;
}

.section-block.narrow {
  max-width: calc(var(--section-max) / 2.5);
  margin-left: 0;
  margin-right: auto;
}

.section-header {
  max-width: 800px;
  margin: 0 auto;
}

.section-block:nth-of-type(odd) .section-header {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.section-block:nth-of-type(even) .section-header {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}

.section-header h2 {
  font-weight: 200;
  letter-spacing: .08em;
  line-height: 1.6;
  color: var(--text);
}

.section-header p {
  font-weight: 200;
}

/* Force left-align utility for pages that need it */
.section-block.force-left .section-header {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

/* ==============================
   About: spacing & list styling
============================== */
#about-company .section-header h2 {
  margin-bottom: 1.2em;
}

#about-company .section-header h3 {
  margin-top: 1.2em;
  margin-bottom: .6em;
}

#about-company .section-header dl {
  margin: .6em 0 0;
}

#about-company .section-header dt {
  font-size: 14px;
  opacity: .85;
}

#about-company .section-header dd {
  margin: 0 0 .4em;
}

/* 上方向へ少し寄せる（セクションの上余白を軽減） */
#about-company.section-block {
  padding-top: 80px;
}

@media (max-width:900px) {
  #about-company.section-block {
    padding-top: 64px;
  }
}

/* list-style none + staggered soft-up animation */
.stagger-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.stagger-list li {
  opacity: 0;
  transform: translateY(8px);
}

@keyframes fadeUpSoft {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* reveal開始時に各項目を順番にふわっと */
.reveal-up.is-inview .stagger-list li {
  animation: fadeUpSoft .6s ease forwards;
}

.reveal-up.is-inview .stagger-list li:nth-child(1) {
  animation-delay: 40ms;
}

.reveal-up.is-inview .stagger-list li:nth-child(2) {
  animation-delay: 80ms;
}

.reveal-up.is-inview .stagger-list li:nth-child(3) {
  animation-delay: 120ms;
}

.reveal-up.is-inview .stagger-list li:nth-child(4) {
  animation-delay: 160ms;
}

.reveal-up.is-inview .stagger-list li:nth-child(5) {
  animation-delay: 200ms;
}

.reveal-up.is-inview .stagger-list li:nth-child(6) {
  animation-delay: 240ms;
}

.reveal-up.is-inview .stagger-list li:nth-child(7) {
  animation-delay: 280ms;
}

.reveal-up.is-inview .stagger-list li:nth-child(8) {
  animation-delay: 320ms;
}

.reveal-up.is-inview .stagger-list li:nth-child(9) {
  animation-delay: 360ms;
}

.reveal-up.is-inview .stagger-list li:nth-child(10) {
  animation-delay: 400ms;
}

.reveal-up.is-inview .stagger-list li:nth-child(11) {
  animation-delay: 440ms;
}

.reveal-up.is-inview .stagger-list li:nth-child(12) {
  animation-delay: 480ms;
}

/* Responsive (tablet and below) - revert to baseline */
@media (max-width:900px) {
  .section-block {
    padding: 100px 6vw;
  }

  .section-header {
    text-align: left !important;
    margin: 0 auto !important;
  }
}

/* Global mobile tuning (reverted) */

/* =========================================
   Reveal-up animation
========================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(.25, .1, .25, 1), transform 1.2s cubic-bezier(.25, .1, .25, 1);
  will-change: opacity, transform;
}

.reveal-up.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.reveal-up[data-reveal-delay] {
  transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {

  .reveal-up,
  .reveal-up.is-inview {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 子要素の段差アニメを、親セクションの inview 状態に連動させる */
.reveal-up .section-header:not(.reveal-up),
.reveal-up .gallery-side:not(.reveal-up) {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.0s cubic-bezier(.25, .1, .25, 1), transform 1.0s cubic-bezier(.25, .1, .25, 1);
  will-change: opacity, transform;
}

.reveal-up.is-inview .section-header:not(.reveal-up),
.reveal-up.is-inview .gallery-side:not(.reveal-up) {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   2カラム：テキスト + 横スクロール画像
========================================= */
.section-block.side-by-side {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
}

.section-block.side-by-side.left-image {
  flex-direction: row-reverse;
}

/* Text */
.section-block.side-by-side .section-header {
  flex: 1;
  max-width: 600px;
  margin: 0;
}

.section-block.side-by-side .section-header h2 {
  margin: 0 0 16px;
  line-height: 1.2;
}

/* Gallery */
.gallery-side {
  flex: 1;
  max-width: var(--gallery-side-max);
  align-self: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-side::-webkit-scrollbar {
  display: none;
}



.gallery-side ul {
  display: flex;
  gap: 0;
  list-style: none;
}

.gallery-side ul {
  flex-wrap: nowrap;
}

.gallery-side li {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  overflow: hidden;
  transition: transform .3s ease;
}

.gallery-side img {
  display: block;
  width: 100%;
  height: var(--gallery-img-h);
  object-fit: cover;
  object-position: center center;
  /* タブレット以下で中央トリミング */
  margin: 0 auto;
  pointer-events: none;
  filter: brightness(.82);
  transition: filter .4s ease, transform .3s ease;
}

@media (hover:hover) {
  .gallery-side img:hover {
    filter: brightness(.95);
    transform: scale(1.03);
  }
}

@media (max-width:900px) {

  .section-block.side-by-side,
  .section-block.side-by-side.left-image {
    flex-direction: column;
    gap: 48px;
  }

  .gallery-side {
    max-width: 100%;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* タブレット以下は画像を中央寄せで表示 */
  .gallery-side ul {
    justify-content: center;
  }

  .gallery-side li {
    display: flex;
    justify-content: center;
  }

  .gallery-side img {
    margin-left: auto;
    margin-right: auto;
  }

  /* タブレット未満はセクション見出しを中央揃えに */
  .section-header {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* スマホは全て縦おきで統一 */
@media (max-width:600px) {

  .section-block.side-by-side,
  .section-block.side-by-side.left-image {
    flex-direction: column !important;
    gap: 28px;
  }

  .gallery-side {
    max-width: 100% !important;
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 横スクロールを維持（1枚ずつスナップ） */
  .gallery-side ul {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
  }

  .gallery-side li {
    flex: 0 0 100% !important;
    width: auto !important;
    margin: 0;
  }

  .gallery-side img {
    width: 100% !important;
    height: var(--gallery-img-h) !important;
  }

  /* Mapも同様に全幅で縦配置 */
  .map-side {
    max-width: 100% !important;
  }
}

/* =========================================
   Map column (for map.html)
========================================= */
.map-side {
  flex: 1;
  max-width: var(--gallery-side-max);
  align-self: flex-start;
}

.map-side .map-embed {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  border: 0;
  border-radius: 8px;
  filter: grayscale(10%);
}

@media (max-width:900px) {
  .map-side {
    max-width: 100%;
  }
}

/* ===== section1 用の可変パラメータ ===== */
#section1 {
  --gallery-width: 65%;
  --gallery-height: var(--gallery-img-h);
}

#section1 .gallery-side {
  max-width: var(--gallery-width);
}

#section1 .gallery-side img {
  width: 100%;
  height: var(--gallery-height);
  object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}

#section1 .gallery-side img:hover {
  transform: scale(1.02);
  filter: brightness(.95);
}



/* =========================================
   HERO（動画：トリミングなし・中央表示）
   ※ 複数あった #hero と #hero > video の宣言を一本化
========================================= */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ノートPC以下ではヘッダー分を差し引き、重なりを防止 */
@media (max-width: 1200px) {
  #hero {
    height: calc(100vh - var(--header-h));
  }
}

#hero>video {
  width: 100%;
  /* セクション幅にフィット */
  height: 100%;
  /* セクション高にフィット */
  object-fit: cover;
  /* セクションを隙間なくカバー */
  object-position: center;
  background: var(--beige);
  filter: brightness(var(--hero-dim));
  display: block;
  margin: 0 auto;
  z-index: 0;
}

#hero .hero-inner {
  position: absolute;
  inset: auto 50% 50% 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 1;
  padding: 0 6vw;
}

/* Header の境界に柔らかい影を追加 */
#header {
  background: var(--beige) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* ↓の説明を参照 */
}

.hidden-text {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: height 400ms ease, opacity 400ms ease, transform 400ms ease;
}

.hidden-text.open {
  opacity: 1;
  transform: translateY(0);
}





/*
ハンバーガーメニュー
解説は、「中級編：ストアサイト（インテリア）」のCSS参照
*/
#navi {
  display: block;
  position: fixed;
  top: 0;
  left: -300px;
  bottom: 0;
  width: 300px;
  color: #fff;
  padding: 60px 25px;
  background-color: #a4a4a4;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: all .5s;
  z-index: 20;
  opacity: 0;
}

#navi a {
  color: #fff;
}

.open #navi {
  left: 0;
  opacity: 1;
}

#navi ul {
  margin: 0;
  padding: 0;
}

#navi ul.nav-menu {
  margin-bottom: 60px;
  border-top: solid 1px #fff;
}

#navi ul.nav-sections {
  margin-top: 14px;
  border-top: solid 1px #fff;
}

#navi ul.nav-sections li {
  position: relative;
  margin: 0;
  padding: 12px 0;
  border-bottom: solid 1px #fff;
}

#navi ul.nav-menu li {
  position: relative;
  margin: 0;
  padding: 20px 0;
  border-bottom: solid 1px #fff;
}

#navi ul.nav-sns li {
  padding: 10px 0;
}

.toggle_btn {
  display: block;
  position: fixed;
  top: calc((var(--header-h) - var(--toggle-size)) / 2);
  right: 45px;
  width: var(--toggle-size);
  height: var(--toggle-size);
  transition: all .5s;
  cursor: pointer;
  z-index: 20;
}

.toggle_btn span {
  display: block;
  position: absolute;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #333;
  border-radius: 4px;
  transition: all .5s;
}

.toggle_btn span:nth-child(1) {
  top: 4px;
}

.toggle_btn span:nth-child(2) {
  top: 14px;
}

.toggle_btn span:nth-child(3) {
  bottom: 4px;
}

.open .toggle_btn span {
  background-color: #fff;
}

.open .toggle_btn span:nth-child(1) {
  -webkit-transform: translateY(10px) rotate(-315deg);
  transform: translateY(10px) rotate(-315deg);
}

.open .toggle_btn span:nth-child(2) {
  opacity: 0;
}

.open .toggle_btn span:nth-child(3) {
  -webkit-transform: translateY(-10px) rotate(315deg);
  transform: translateY(-10px) rotate(315deg);
}

#mask {
  display: none;
  transition: all .5s;
}

.open #mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .8;
  z-index: 10;
  cursor: pointer;
}


/* ナビの幅を padding込みで300pxに確定 → 端の欠け/はみ出し防止 */
#navi {
  box-sizing: border-box;
}

/* 黒ポチを消す＆項目のブロック化で見やすく */
#navi ul {
  list-style: none;
}

#navi ul li {
  display: block;
}

/* 念のための重なり順（見えているけど怪しい場合） */
#navi {
  z-index: 2000;
}

#mask {
  z-index: 1900;
}

.toggle_btn {
  z-index: 2100;
}


#navi {
  padding: 24px 20px;
}

#navi ul.nav-menu li {
  padding: 14px 0;
}


/* 1) ヘッダー分だけ下げて、残りを縦いっぱいにする */
#navi {
  top: var(--header-h);
  /* ← 68px 下げる */
  height: calc(100vh - var(--header-h));
  /* ← 残りを全部使う */
  bottom: auto;
  /* ← 既存の bottom:0 を無効化 */
  box-sizing: border-box;
  /* ← padding込みで幅を確定 */
  overflow-y: auto;
  /* ← 中身が長い時にスクロール */
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px;
  /* ← 60pxだと実質表示が狭いので軽めに */
}

/* 2) リスト初期値の黒ポチ/余白をリセット（詰まり防止） */
#navi ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#navi li {
  display: block;
}

/* 3) 重なり順を明示（見えない/クリックできない対策） */
#navi {
  z-index: 2000;
}

#mask {
  z-index: 1900;
}

.toggle_btn {
  z-index: 2100;
}

/* 4) 開いている間は背面スクロール停止（位置ブレ防止） */
body.open {
  overflow: hidden;
}

/* マスクを画面全体に固定（アドレスバー伸縮にも強い） */
#mask {
  position: fixed;
  /* ← 重要 */
  inset: 0;
  /* top/right/bottom/left を 0 に */
  width: 100vw;
  height: 100dvh;
  /* 100vh よりモバイルで安定 */
  background: rgba(0, 0, 0, .8);
  display: none;
  /* 初期は非表示のままでOK */
  z-index: 1900;
  /* #header(1000) より高く、#navi(2000) より低く */
}

/* 開いたときに表示 */
.open #mask {
  display: block;
}

/* 背面スクロールを止める（マスクの下が覗かれないように） */
body.open {
  overflow: hidden;
}


/* --- MASK 強制安定版（必ず末尾に配置） --- */
#mask {
  position: fixed !important;
  /* いつでも画面固定 */
  inset: 0 !important;
  /* top/right/bottom/left を 0 に */
  width: 100vw !important;
  height: 100dvh !important;
  /* モバイルでのvh伸縮に強い */
  background: rgba(0, 0, 0, .8) !important;
  display: none !important;
  /* 初期非表示。open時に切替 */
  z-index: 1900 !important;
  /* header(1000) < mask(1900) < navi(2000) */
}

.open #mask {
  display: block !important;
}

/* 念のため重なり順を固定（ほかの宣言を上書き） */
#navi {
  z-index: 2000 !important;
}

.toggle_btn {
  z-index: 2100 !important;
}


#navi {
  position: fixed;
  top: 0;
  left: -300px;
  bottom: 0;
  width: 300px;
  background: rgba(18, 18, 18, 0.95);
  /* ← 暗めで透け感を調整 */
  color: #fff;
  padding: 60px 25px;
  overflow-y: auto;
  transition: all .5s ease;
  z-index: 2000;
  opacity: 0;
}

.open #navi {
  left: 0;
  opacity: 1;
}

/* 背景をよりAman風にしたい場合 */
#navi::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(175, 174, 174, 0.6);
  backdrop-filter: blur(6px);
  /* ★ ぼかし効果 */
  z-index: -1;
}






/* ===============================
   ハンバーガーメニュー全画面化対策
=============================== */
#navi {
  position: fixed !important;
  top: 0 !important;
  left: -300px !important;
  right: auto !important;
  bottom: 0 !important;
  /* ← 高さを画面下まで確保 */
  width: 300px !important;
  height: 100dvh !important;
  /* ← スマホでも全画面（動的ビュー対応） */
  overflow-y: auto !important;
  /* ← 下にスクロールできる保険 */
  box-sizing: border-box;
  background-color: rgba(60, 60, 60, 0.92) !important;
  /* ← 半透明グレー背景 */
  color: #fff;
  z-index: 2000 !important;
  transition: all .5s;
  padding-bottom: env(safe-area-inset-bottom);
  /* ← iPhoneの下安全域対応 */
}

.open #navi {
  left: 0 !important;
  opacity: 1;
}







/* ===== 画像スタイルを全セクションで統一（section1と同じ） ===== */
#section1,
#section2,
#section3,
#section4,
#section5 {
  --gallery-width: 65%;
  /* 統一サイズに合わせて全セクション同一高に */
  --gallery-height: var(--gallery-img-h);
}

/* Desktop: Design/Amenity の左（画像）幅を広げる */

#section1 .gallery-side,
#section2 .gallery-side,
#section3 .gallery-side,
#section4 .gallery-side,
#section5 .gallery-side {
  max-width: var(--gallery-width);
}

#section1 .gallery-side img,
#section2 .gallery-side img,
#section3 .gallery-side img,
#section4 .gallery-side img,
#section5 .gallery-side img {
  width: 100%;
  height: var(--gallery-height);
  object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}

#section1 .gallery-side img:hover,
#section2 .gallery-side img:hover,
#section3 .gallery-side img:hover,
#section4 .gallery-side img:hover,
#section5 .gallery-side img:hover {
  transform: scale(1.02);
  filter: brightness(.95);
}

.footer-nav {
  padding: 20px;
}

.footer-nav li {
  padding: 10px;
  list-style: none;
}




/* =========================================
   Slide-in（強制上書き・末尾に置くこと）
========================================= */
.section-block .gallery-side li img.fx-slide {
  opacity: 0 !important;
  transform: translateX(-60px) !important;
  /* ← 左から（既定） */
  transition: opacity 2.5s ease-out, transform 2.5s ease-out !important;
  will-change: opacity, transform;
}

/* 右からにしたいとき */
.section-block#section2 .gallery-side li img.fx-slide,
.section-block#section4 .gallery-side li img.fx-slide {
  transform: translateX(60px) !important;
  /* ← 右から */
}

/* 可視化されたらゴール位置へ */
.section-block .gallery-side li img.fx-slide.is-visible {
  opacity: 1 !important;
  transform: translateX(0) !important;
}






/* === gallery-side のスクロール先を UL に変更（バーが流れないように） === */
.gallery-side {
  overflow: visible !important;
  /* 本体は流さない */
  position: relative;
}

.gallery-side ul {
  overflow-x: auto !important;
  /* ← 横スクロールはUL */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
}

.gallery-side ul::-webkit-scrollbar {
  display: none;
}

/* WebKit */

/* Aman風カスタムバー（そのまま） */
.gallery-side .gs-bar {
  position: relative;
  /* ULの直後に固定配置され続ける */
  height: 2px;
  background: rgba(0, 0, 0, .18);
  border-radius: 999px;
  margin-top: 14px;
}

.gallery-side .gs-bar {
  --thumb-w: 20%;
  --thumb-x: 0%;
}

.gallery-side .gs-bar .gs-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-side .gs-bar .gs-thumb {
  position: absolute;
  top: 50%;
  transform: translate(var(--thumb-x, 0%), -50%);
  width: var(--thumb-w);
  min-width: 28px;
  height: 100%;
  border-radius: 999px;
  background: rgba(0, 0, 0, .65);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  transition: transform .25s ease;
  cursor: pointer;
}

.gallery-side .gs-bar .gs-thumb::after {
  content: "";
  position: absolute;
  inset: -8px 0;
}


/* --- Aman風カスタムバー：サム位置を left(%) で制御する確実版 --- */
.gallery-side {
  position: relative;
}

/* 親基準 */

.gallery-side .gs-bar {
  position: relative;
  height: 2px;
  background: rgba(0, 0, 0, .18);
  border-radius: 999px;
  margin-top: 14px;
  --thumb-w: 20%;
  /* JSで上書き：100 / 枚数 */
  --thumb-x: 0%;
  /* JSで上書き：0〜(100 - --thumb-w) */
}

.gallery-side .gs-bar .gs-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-side .gs-bar .gs-thumb {
  position: absolute;
  top: 50%;
  /* ここがポイント：translateX をやめて left(%) にする */
  left: var(--thumb-x);
  transform: translateY(-50%);
  width: var(--thumb-w);
  min-width: 28px;
  height: 100%;
  border-radius: 999px;
  background: rgba(0, 0, 0, .65);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  transition: left .25s ease;
  /* ← transform ではなく left を遷移 */
  cursor: pointer;
}