/* =========================================================
   r21: 動画なしの冒頭（食材のこだわり）→お品書き→こだわり→予約→締めの動画
   ========================================================= */

/* ファーストビュー：キービジュアル（ポスター）→グラデーション→強み */
.intro {
  --kv-bg: #1c1512;
  --kv-gold: #d9b878;
  position: relative;
  background: var(--kv-bg);
  color: #fff;
  text-align: center;
}
.intro__kv { position: relative; margin: 0; }
.intro__kv img { display: block; width: 100%; height: auto; }
.intro__kv::before,
.intro__kv::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.intro__kv::before { top: 0; height: 14%; background: linear-gradient(180deg, rgba(28, 21, 18, .55), rgba(28, 21, 18, 0)); }
.intro__kv::after { bottom: -1px; height: 16%; background: linear-gradient(180deg, rgba(28, 21, 18, 0) 0%, rgba(28, 21, 18, .75) 60%, var(--kv-bg) 100%); }
.intro__body {
  position: relative;
  margin-top: calc(var(--u) * 3);
  padding: 0 var(--gutter) calc(var(--u) * 10);
}
.intro__kicker {
  color: var(--kv-gold);
  font-size: calc(var(--u) * 3.5);
  font-weight: 700;
  letter-spacing: .1em;
}
.intro__title {
  margin-top: calc(var(--u) * 2);
  font-family: var(--font-mincho);
  font-size: calc(var(--u) * 11.5);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: .02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}
.intro__more {
  margin-top: calc(var(--u) * 2.5);
  color: rgba(255, 255, 255, .85);
  font-family: var(--font-mincho);
  font-size: calc(var(--u) * 4.6);
  font-weight: 700;
  letter-spacing: .04em;
}
.intro__more em {
  display: block;
  margin-top: 2px;
  color: #ff5a4f;
  font-style: normal;
  font-size: 1.9em;
  line-height: 1.3;
}
.intro__note { margin-top: calc(var(--u) * 4); text-align: right; }
.intro__offer {
  margin-top: calc(var(--u) * 7);
  padding: calc(var(--u) * 4) 0;
  border-color: rgba(217, 184, 120, .45);
}
.intro .movie__offer-price strong { color: #fff; }
.intro .movie__offer-price small,
.intro .movie__offer-details dt { color: rgba(255, 255, 255, .7); }
.intro .movie__offer-details dd { color: #fff; }

/* 店舗紹介 → 真空パックの写真 → こだわり の順。写真はこだわりの頭に端から端まで置く */
/* 下の「ご質問等」と同じ地色なので、下の余白は控えめにして間延びさせない */
.flip:has(.flip__photo--lead) { padding-top: 0; padding-bottom: calc(var(--u) * 4); }
.flip__photo--lead { margin: 0 calc(-1 * var(--gutter)) calc(var(--u) * 14); }

/* 食材 → より美味しく → こだわり の橋渡し見出し */
.craft-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-mincho);
  font-weight: 800;
  line-height: 1.55;
}
.craft-title span {
  display: block;
  color: var(--ink-soft);
  font-size: calc(var(--u) * 5.6);
  letter-spacing: .08em;
}
.craft-title span:nth-child(2) { color: var(--red); font-size: calc(var(--u) * 7.4); }
.craft-title strong {
  display: block;
  margin-top: calc(var(--u) * 3);
  font-size: calc(var(--u) * 6.4);
  letter-spacing: .04em;
}
.craft-title em {
  display: block;
  color: var(--red);
  font-style: normal;
  font-size: calc(var(--u) * 13);
  line-height: 1.2;
}

/* 締め：予約ボタンの下で、動画を枠なし・画面幅いっぱいで見せる */
.closing--movie { padding: 0; background: #0f0b0a; }
.closing--movie .closing__frame {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.closing--movie .movie__video { display: block; width: 100%; border-radius: 0; background: #0f0b0a; }
.closing--movie .movie__controls:not([hidden]) {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 12px 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .45));
}
.closing--movie .closing__cta {
  margin-top: 0;
  padding: calc(var(--u) * 20) var(--gutter) calc(var(--u) * 22);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(90% 70% at 50% 42%, rgba(255, 252, 244, .95) 0%, rgba(255, 252, 244, 0) 70%),
    linear-gradient(180deg, #f3ead8 0%, #ece0c8 100%);
  box-shadow: inset 0 1px 0 rgba(205, 178, 122, .9), inset 0 14px 22px -16px rgba(15, 11, 10, .45);
}
/* 梅と水引の飾りを右上と左下に添える（文字とボタンには掛けない） */
.closing--movie .closing__cta::before,
.closing--movie .closing__cta::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: calc(var(--u) * 46);
  height: calc(var(--u) * 69);
  background: url('../img/osechi-plum-mizuhiki.webp') center / contain no-repeat;
  pointer-events: none;
}
.closing--movie .closing__cta::before { inset: auto; top: calc(var(--u) * -2); right: calc(var(--u) * -4); }
.closing--movie .closing__cta::after { bottom: calc(var(--u) * -2); left: calc(var(--u) * -4); transform: rotate(180deg); }
.closing--movie .closing__copy { color: #2a1d17; }
/* 予約ボタンの下：残り数（小さめの赤文字） */
.closing__stock {
  margin-top: calc(var(--u) * 6);
  color: var(--red);
  font-size: max(12px, calc(var(--u) * 3.2));
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .06em;
}
.closing__stock b { margin: 0 .1em; font-size: 1.35em; }
/* グレーのまま、クリーム地で読みやすい濃さ（コントラスト比4.5以上） */
.closing__stock-msg { display: block; color: #655c52; }

/* 大きい予約ボタン：狭い画面（320px）の予約カード内でも「ご予約はこちら」を1行に収める */
.btn--xl { font-size: clamp(18px, 5.6vw, 22px); }
.btn--xl span { white-space: nowrap; }

/* 狭い画面でも価格の補足を予約ボタンの下へ潜り込ませない。 */
@media (max-width: 360px) {
  .sticky-cta__price small { display: block; margin-left: 0; margin-top: 2px; }
}

/* 常時表示の予約バーがフッターの最後の情報を覆わないようにする。
   JSなしでは余裕のある高さ、JSありでは実際のバーの高さを使う。 */
.page { --sticky-h: calc(88px + env(safe-area-inset-bottom)); }
.footer { padding-bottom: calc(12px + var(--sticky-h)); }

/* 店舗紹介の締め：早めの予約のおすすめ（暗い地） */
.makers__stock {
  margin: calc(var(--u) * 12) var(--gutter) 0;
  padding-top: calc(var(--u) * 9);
  border-top: 1px solid rgba(205, 178, 122, .35);
  text-align: center;
}
.makers__stock-text {
  color: #d5d1c8;
  font-size: max(12px, calc(var(--u) * 3.4));
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: .06em;
}
.makers__stock-text strong {
  display: inline-block;
  margin-top: calc(var(--u) * 2);
  color: var(--gold-soft);
  font-size: 1.15em;
  border-bottom: 2px solid currentColor;
}

/* 再生が終わったら：動画を暗くして背景にし、予約の欄をカードにして動画の中央へ浮かび上がらせる。
   予約の欄が抜けた分の高さは JS で1秒かけて縮め、余白を残さず、見ている位置も急に飛ばさない。 */
.closing--movie { container-type: inline-size; transition: height 1s cubic-bezier(.2, .7, .2, 1); }
.closing--movie .closing__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 11, 10, .35) 0%, rgba(15, 11, 10, .5) 70%, rgba(15, 11, 10, .75) 100%);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.closing__replay {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(234, 214, 166, .7);
  border-radius: 999px;
  background: rgba(15, 11, 10, .55);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
.closing__replay:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.closing--movie.is-finale .closing__frame::after { opacity: 1; }
.closing--movie.is-finale .movie__controls { visibility: hidden; }
.closing--movie.is-finale .closing__cta {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  /* 動画（720×1280）の高さの中央 */
  top: 50%;
  top: calc(100cqw * 1280 / 720 / 2);
  transform: translateY(-50%) scale(.9);
  box-shadow: 0 0 0 1px rgba(205, 178, 122, .7), 0 30px 60px -18px rgba(0, 0, 0, .85);
  animation: closing-rise 1.1s cubic-bezier(.2, .7, .2, 1) .25s both;
}
@keyframes closing-rise {
  from { opacity: 0; transform: translateY(calc(-50% + 56px)) scale(.86); }
  to { opacity: 1; transform: translateY(-50%) scale(.9); }
}
@media (prefers-reduced-motion: reduce) {
  .closing--movie.is-finale .closing__cta { animation: none; }
  .closing--movie,
  .closing--movie .closing__frame::after { transition: none; }
}

/* お品書き：カテゴリごとに背景写真が切り替わる（スクロール連動） */
.menu--scene { position: relative; isolation: isolate; background: var(--navy); clip-path: inset(0); }
/* 背景はお品書きの範囲（track）の中だけで画面に固定し、範囲の終わりで一緒に抜ける。 */
.menu-scene__track { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.menu-scene__bg {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.menu-scene__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .9s ease, transform 2.4s ease;
}
.menu-scene__photo.is-active { opacity: 1; transform: none; }
.menu-scene__photo[data-scene="special"] { object-position: 55% 40%; }
.menu-scene__photo[data-scene="tradition"] { object-position: 50% 55%; }
.menu-scene__photo[data-scene="creative"] { object-position: 30% 50%; }
.menu-scene__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 18, 36, .78) 0%, rgba(14, 18, 36, .12) 32%, rgba(14, 18, 36, .12) 62%, rgba(14, 18, 36, .7) 100%);
}
.menu-scene__bg .photo-note { position: absolute; z-index: 1; right: 10px; bottom: calc(var(--u) * 20); margin: 0; }
.menu--scene .menu__title {
  position: relative;
  top: auto;
  z-index: 1;
  padding-top: calc(var(--u) * 12);
}
.menu-scene__nav {
  position: sticky;
  top: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  width: max-content;
  margin: calc(var(--u) * 5) auto 0;
  padding: 4px;
  border: 1px solid rgba(205, 178, 122, .55);
  border-radius: 999px;
  background: rgba(14, 18, 36, .66);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.menu-scene__nav a {
  min-width: 64px;
  min-height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  font-family: var(--font-mincho);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .2em;
  text-decoration: none;
  transition: background-color .3s ease, color .3s ease;
}
.menu-scene__nav a[aria-current="true"] { background: var(--gold-soft); color: var(--navy); }
.menu-scene__nav a:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.menu--scene .menu__body { position: relative; z-index: 1; padding-top: 0; }
.menu--scene .menu-group {
  scroll-margin-top: 72px;
  margin-top: 46vh;
  margin-top: 46svh;
  background: rgba(14, 18, 36, .8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.menu--scene .menu-group:first-child { margin-top: 38vh; margin-top: 38svh; }
.menu--scene .menu-group--special { background: linear-gradient(160deg, rgba(42, 36, 30, .86), rgba(14, 18, 36, .84)); }
.menu--scene .menu__notice { position: relative; padding-top: calc(var(--u) * 2); }
@media (prefers-reduced-motion: reduce) {
  .menu-scene__photo { transition: none; transform: none; }
}
