/* 宵澪（架空の旅館）の見本。夕暮れから朝までを、章ごとに一晩の時間でたどる */

:root {
  --ink: #0B0E13;
  --night: #050608;
  --paper: #EFEBE3;
  --on-dark: #EDE8DE;
  --on-dark-mute: #AEB3BB;
  --on-paper: #1D1F22;
  --on-paper-mute: #57544F;
  --lamp: #E0A65E;
  --lamp-deep: #85561F;
  --line-dark: rgba(237, 232, 222, .22);
  --line-paper: rgba(29, 31, 34, .2);
  --mincho: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --latin: "Hoefler Text", "Baskerville", "Georgia", serif;
  --stage: calc(100svh - 3rem);
  --gutter: clamp(1.25rem, .6rem + 3vw, 4.5rem);
  --tab: 0rem;
}

body {
  color: var(--on-dark);
  background: var(--ink);
  font: 400 1rem/2.05 var(--mincho);
  letter-spacing: .07em;
}

/* 写真の粒子。全体にごく薄く重ね、暗部のなめらかすぎる面をならす */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}

img { width: 100%; }

/* 縦書きの共通。列（.col）を右から左へ並べ、二列目を下げて散らす */
.v {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.v .col { display: block; }
.v .col--down { padding-inline-start: 1.6em; }

/* 章の札。漢数字、細い線、時刻、英語 */
.chap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .75rem;
  color: var(--on-dark-mute);
  font-size: .8125rem;
  line-height: 1.4;
}
.chap__no { color: var(--lamp); font-size: 1.375rem; letter-spacing: 0; }
.chap__line { width: 2.5rem; height: 1px; background: currentColor; opacity: .6; }
.chap__time { font-family: var(--latin); font-style: italic; font-size: .9375rem; letter-spacing: .04em; }
.chap__en { font-family: var(--latin); font-size: .6875rem; letter-spacing: .28em; text-transform: uppercase; }
.chap--light { color: #D6D9DE; }

/* 宿の名前。左上に縦書きで */
.mark {
  position: absolute;
  top: calc(3rem + 1.5rem);
  left: var(--gutter);
  z-index: 60;
}
.mark__link {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: .375rem;
  min-width: 44px;
  color: var(--on-dark);
  text-decoration: none;
  writing-mode: vertical-rl;
}
.mark__name { font-size: 1.5rem; letter-spacing: .4em; line-height: 1; }
.mark__kana { color: #C9CDD3; font-size: .625rem; letter-spacing: .5em; line-height: 1; }
.mark__link::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: .25rem;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 10px 2px rgba(224, 166, 94, .55);
}

/* 予約の入口。右に縦長の札、スマホでは右下に小さく */
.reserve-tab {
  position: fixed;
  right: max(.75rem, env(safe-area-inset-right));
  bottom: max(.75rem, env(safe-area-inset-bottom));
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 3rem;
  padding: .5rem 1.25rem;
  color: var(--on-dark);
  background: rgba(11, 14, 19, .78);
  border: 1px solid rgba(237, 232, 222, .4);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: .875rem;
  letter-spacing: .2em;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity .5s ease, visibility .5s, background-color .3s ease;
}
.reserve-tab:hover { background: rgba(32, 26, 18, .9); }
.reserve-tab.is-hidden, .clock.is-hidden { opacity: 0; visibility: hidden; }
.reserve-tab__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 12px 3px rgba(224, 166, 94, .6); }
.reserve-tab__en { display: none; font-family: var(--latin); font-style: italic; font-size: .75rem; letter-spacing: .08em; }

/* 今どの時刻の章にいるか。左下に小さく */
.clock {
  position: fixed;
  left: var(--gutter);
  bottom: 1.5rem;
  z-index: 900;
  display: none;
  align-items: baseline;
  gap: .75rem;
  color: #FFFFFF;
  mix-blend-mode: difference;
  font-size: .8125rem;
  line-height: 1;
  pointer-events: none;
  transition: opacity .5s ease, visibility .5s;
}
.clock__chap { font-size: 1.125rem; }
.clock__time { font-family: var(--latin); font-style: italic; font-size: 1rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* 導入の幕。黒い画面に名前がにじみ出て、消える */
.veil {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  place-items: center;
  background: #030405;
  pointer-events: none;
}
.veil__name {
  color: var(--on-dark);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  letter-spacing: .5em;
  writing-mode: vertical-rl;
}

/* ── 最初の画面 ───────────────────── */
.hero {
  position: relative;
  height: var(--stage);
  min-height: 34rem;
  overflow: hidden;
  background: #050505;
}
.hero__media { position: absolute; inset: -6% 0; }
.hero__off, .hero__lit { position: absolute; inset: 0; }
.hero__off img, .hero__lit img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(5, 6, 8, .55), rgba(5, 6, 8, 0) 45%),
    linear-gradient(to top, rgba(5, 6, 8, .7), rgba(5, 6, 8, 0) 30%);
  pointer-events: none;
}
.hero__copy {
  position: absolute;
  top: clamp(4.5rem, 12vh, 8rem);
  right: calc(var(--gutter) + var(--tab));
  z-index: 2;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 1.5rem;
}
.hero__title {
  color: #F6F2EA;
  font-size: clamp(1.625rem, 1rem + 2.6vw, 3.125rem);
  font-weight: 400;
  letter-spacing: .3em;
  line-height: 1.8;
  text-shadow: 0 0 2rem rgba(0, 0, 0, .55);
}
.hero__en {
  margin-top: auto;
  color: #D4D7DC;
  font-family: var(--latin);
  font-style: italic;
  font-size: .875rem;
  letter-spacing: .04em;
  line-height: 1.6;
  writing-mode: vertical-rl;
}
.hero__place {
  position: absolute;
  left: var(--gutter);
  bottom: 1.75rem;
  z-index: 2;
  display: grid;
  gap: .25rem;
  color: #D9DCE0;
  font-size: .8125rem;
  letter-spacing: .2em;
  line-height: 1.6;
}
.hero__place span:last-child { color: #B9BEC6; font-family: var(--latin); font-style: italic; font-size: .8125rem; letter-spacing: .04em; }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: .75rem;
  color: #C9CDD3;
  font-family: var(--latin);
  font-style: italic;
  font-size: .75rem;
  letter-spacing: .12em;
  transform: translateX(-50%);
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, rgba(237, 232, 222, .9) 50%, rgba(237, 232, 222, .15) 50%);
  background-size: 1px 200%;
}

/* ── 序 ───────────────────── */
.prologue {
  display: grid;
  justify-items: center;
  gap: 4rem;
  padding: clamp(6rem, 18vh, 11rem) var(--gutter);
  background: var(--ink);
}
.prologue__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
.prologue__title {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem);
  font-weight: 400;
  letter-spacing: .32em;
  line-height: 1.8;
}
.prologue__text {
  color: #D3D6DA;
  font-size: .9375rem;
  letter-spacing: .18em;
  line-height: 2.5;
}
.prologue__text p + p { margin-block-start: 1.25em; }

/* ── 一 戸を引く ───────────────────── */
.door {
  --o: clamp(0, (var(--p, 1) - .12) / .5, 1);
  --shown: clamp(0, (var(--p, 1) - .58) * 4, 1);
  position: relative;
  background: var(--ink);
}
.door__stage, .bath__stage, .rooms__stage, .night__stage {
  position: sticky;
  top: 3rem;
  height: var(--stage);
  min-height: 32rem;
  overflow: hidden;
}
.door__view { position: absolute; inset: 0; }
.door__view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  transform: scale(calc(1.14 - .14 * var(--o)));
}
.door__view::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(6, 9, 13, .62), rgba(6, 9, 13, 0) 55%),
    linear-gradient(to top, rgba(6, 9, 13, .55), rgba(6, 9, 13, 0) 40%);
  opacity: var(--shown);
}
.door__leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  box-shadow: 0 0 3rem rgba(0, 0, 0, .7);
}
.door__leaf--l { left: 0; transform: translateX(calc(-102% * var(--o))); }
.door__leaf--r { right: 0; transform: translateX(calc(102% * var(--o))); }
.door__leaf span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 200%;
  background: #1A2230 url("img/shoji.webp") 50% 50% / cover no-repeat;
}
.door__leaf--r span { left: -100%; }
.door__closed {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: calc(1 - var(--p, 1) * 7);
  pointer-events: none;
}
.door__pull {
  color: #F2EEE6;
  font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem);
  letter-spacing: .6em;
  text-shadow: 0 0 1.5rem rgba(0, 0, 0, .6);
}
.door__open {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(2rem, 8vh, 5rem);
  display: grid;
  justify-items: start;
  gap: 1.5rem;
  opacity: var(--shown);
  transform: translateY(calc((1 - var(--shown)) * 2rem));
}
.door__title, .bath__title, .night__title, .rooms__title, .supper__title, .dawn__title, .dawn__whisper {
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.625rem);
  font-weight: 400;
  letter-spacing: .3em;
  line-height: 1.8;
}
.door__title { text-shadow: 0 0 1.5rem rgba(0, 0, 0, .5); }
.door__text, .bath__text {
  max-width: 21em;
  color: #E2E4E7;
  font-size: .9375rem;
  line-height: 2.1;
  text-shadow: 0 0 1rem rgba(0, 0, 0, .7);
}

/* ── 二 湯 ───────────────────── */
.bath {
  --g: clamp(0, (var(--p, 1) - .04) / .56, 1);
  --shown: clamp(0, (var(--p, 1) - .62) * 4, 1);
  --cut-y: 30%;
  --cut-x: 14%;
  background: #07090C;
}
.bath__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(calc((1 - var(--g)) * var(--cut-y)) calc((1 - var(--g)) * var(--cut-x)));
}
.bath__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  transform: scale(calc(1.22 - .22 * var(--g)));
}
.bath__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 8, .65), rgba(5, 6, 8, 0) 45%);
  opacity: var(--shown);
}
.bath__steam {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(38% 22% at 30% 70%, rgba(220, 225, 232, .16), transparent 70%),
    radial-gradient(30% 18% at 62% 62%, rgba(220, 225, 232, .12), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.bath__head {
  position: absolute;
  top: clamp(1.5rem, 7vh, 4rem);
  right: var(--gutter);
  display: grid;
  justify-items: end;
  gap: 1.5rem;
  text-shadow: 0 0 1.5rem rgba(0, 0, 0, .6);
}
.bath__text {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(2rem, 8vh, 5rem);
  opacity: var(--shown);
  transform: translateY(calc((1 - var(--shown)) * 2rem));
}

/* ── 三 夕食 ───────────────────── */
.supper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  padding: clamp(5rem, 14vh, 9rem) 0;
  background: #0C0D10;
}
.supper__photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.supper__shift { position: absolute; inset: -8% 0; }
.supper__shift img { height: 100%; object-fit: cover; object-position: 60% 50%; }
.supper__body {
  display: grid;
  grid-template-columns: auto;
  justify-items: start;
  gap: 2rem;
  padding: 0 var(--gutter);
}
.supper__text { max-width: 22em; color: #D3D6DA; font-size: .9375rem; }
.menu {
  display: grid;
  gap: 1rem;
  max-width: 100%;
  padding: 1.5rem 1.125rem;
  border: 1px solid var(--line-dark);
}
.menu__title { color: var(--on-dark); font-size: .875rem; font-weight: 400; letter-spacing: .3em; }
.menu__title span { color: var(--on-dark-mute); letter-spacing: .1em; }
.menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  letter-spacing: .14em;
  line-height: 1.5;
}
.menu__list li { padding-block: 0 .5em; }
.menu__list li + li { padding-block-start: .5em; border-block-start: 1px solid var(--line-dark); }
.menu__k { margin-inline-end: 1em; color: var(--lamp); }

/* ── 四 部屋 ───────────────────── */
.rooms {
  --room-w: min(70vw, calc((var(--stage) - 15rem) * .75), 24rem);
  background: var(--ink);
}
.rooms__stage {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.rooms__track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 1rem + 5vw, 7rem);
  width: max-content;
  padding: 0 var(--gutter);
}
.rooms__head {
  display: grid;
  justify-items: start;
  gap: 1.75rem;
  width: min(72vw, 20rem);
  scroll-snap-align: start;
}
.rooms__lead { max-width: 15em; color: #C9CDD3; font-size: .875rem; }
.rooms__list { display: flex; align-items: center; gap: inherit; margin: 0; }
.room {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "photo photo" "name lead" "name spec";
  column-gap: 1.25rem;
  width: var(--room-w);
  scroll-snap-align: center;
}
.room:nth-child(odd) { transform: translateY(-1.5rem); }
.room:nth-child(even) { transform: translateY(1.5rem); }
.room__photo { grid-area: photo; overflow: hidden; aspect-ratio: 3 / 4; }
.room__photo img { height: 100%; object-fit: cover; }
.room__name {
  grid-area: name;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-top: -1.75rem;
  font-weight: 400;
  writing-mode: vertical-rl;
}
.room__kanji { font-size: clamp(2.5rem, 2rem + 1.4vw, 3.5rem); line-height: 1; text-shadow: 0 0 1.25rem rgba(0, 0, 0, .7); }
.room__en { padding-top: .25rem; color: #C9CDD3; font-family: var(--latin); font-style: italic; font-size: .8125rem; letter-spacing: .14em; }
.room__lead { grid-area: lead; padding-top: 1rem; font-size: .875rem; line-height: 1.8; }
.room__spec { grid-area: spec; display: flex; gap: 1.25rem; margin: .5rem 0 0; color: var(--on-dark-mute); font-size: .75rem; line-height: 1.6; }
.room__spec div { display: flex; gap: .5rem; }
.room__spec dd { margin: 0; color: var(--on-dark); }

/* ── 五 夜 ───────────────────── */
.night { background: var(--night); }
.night__photo { position: absolute; inset: 0; }
.night__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 50%;
  filter: brightness(calc(1 - .55 * var(--p, 1)));
}
.night__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 4, 5, .85), rgba(3, 4, 5, 0) 60%);
}
.night__body {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(2rem, 8vh, 5rem);
  display: grid;
  justify-items: start;
  gap: 1.5rem;
}
.night__rules { display: grid; gap: .25rem; margin: 0; color: #D3D6DA; font-size: .875rem; line-height: 1.9; }
.night__rules li { padding-left: 1.25em; text-indent: -1.25em; }
.night__rules li::before { content: "—"; display: inline-block; width: 1.25em; text-indent: 0; color: var(--lamp); }

/* ── 六 夜明け ───────────────────── */
.dawn { background: var(--paper); }
.dawn__sky {
  display: grid;
  justify-items: center;
  align-content: start;
  height: 110svh;
  padding-top: 18vh;
  background: linear-gradient(to bottom, var(--night) 0%, #141820 22%, #3B3E48 44%, #9A96A0 68%, #E2DCE2 88%, #E7E1E7 100%);
}
.dawn__whisper { color: #E9E6EE; }
.dawn__mist { position: relative; background: #E5DFE5; }
.dawn__mist img { aspect-ratio: 16 / 9; object-fit: cover; min-height: 22rem; object-position: 72% 50%; }
.dawn__head {
  position: absolute;
  top: clamp(1.5rem, 6vw, 5rem);
  right: calc(var(--gutter) + var(--tab));
  display: grid;
  justify-items: end;
  gap: 1.5rem;
  color: var(--on-paper);
}
.dawn__head .chap { color: var(--on-paper-mute); }
.dawn__head .chap__no { color: var(--lamp-deep); }
.breakfast {
  display: grid;
  gap: 2.5rem;
  padding: clamp(4.5rem, 12vh, 8rem) var(--gutter);
  color: var(--on-paper);
}
.breakfast__text { max-width: 22em; font-size: 1rem; }
.breakfast__photo { overflow: hidden; }
.breakfast__title { margin-bottom: .75rem; font-size: 1.125rem; font-weight: 400; letter-spacing: .14em; line-height: 1.7; }
.breakfast__note p { max-width: 22em; color: var(--on-paper-mute); font-size: .875rem; }

/* ── 結 泊まる ───────────────────── */
.stay {
  display: grid;
  gap: 3.5rem;
  padding: clamp(5rem, 12vh, 8rem) var(--gutter) clamp(6rem, 14vh, 9rem);
  color: var(--on-paper);
  background: var(--paper);
  border-top: 1px solid var(--line-paper);
}
.stay .chap { color: var(--on-paper-mute); }
.stay .chap__no { color: var(--lamp-deep); }
.stay__head { display: grid; justify-items: start; gap: 1.75rem; }
.stay__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 400; letter-spacing: .45em; line-height: 1; }
.stay__lead { max-width: 21em; color: var(--on-paper-mute); font-size: .9375rem; }
.book { display: grid; gap: 1.25rem; align-content: start; }
.book__title { font-size: 1.125rem; font-weight: 400; letter-spacing: .2em; }
.book__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.book__field { display: grid; gap: .375rem; }
.book__field:first-child { grid-column: 1 / -1; }
.book__field label { color: var(--on-paper-mute); font-size: .8125rem; letter-spacing: .14em; line-height: 1.4; }
.book__field input, .book__field select {
  width: 100%;
  min-height: 3rem;
  padding: .5rem .75rem;
  color: var(--on-paper);
  background: #F8F6F1;
  border: 1px solid #8C877E;
  border-radius: 0;
  font: 400 1rem/1.4 var(--mincho);
  letter-spacing: .06em;
}
.book__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%;
  min-height: 3.5rem;
  padding: .5rem 2rem;
  color: var(--paper);
  background: var(--on-paper);
  border: 0;
  border-radius: 0;
  font: 400 1rem/1.4 var(--mincho);
  letter-spacing: .3em;
  cursor: pointer;
  transition: background-color .3s ease;
}
.book__btn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 10px 2px rgba(224, 166, 94, .6); }
.book__btn:hover { background: #33291D; }
.book__result:empty { display: none; }
.book__result { padding: .875rem 1rem; background: #E2DCD0; border-left: 2px solid var(--lamp-deep); font-size: .875rem; line-height: 1.8; }
.book__note { color: var(--on-paper-mute); font-size: .8125rem; line-height: 1.7; }
.stay__info { display: grid; gap: 2.5rem; align-content: start; }
.rates__title, .access__title { margin-bottom: .75rem; font-size: 1rem; font-weight: 400; letter-spacing: .2em; line-height: 1.7; }
.rates__title span { display: block; color: var(--on-paper-mute); font-size: .75rem; letter-spacing: .06em; }
.rates__list, .access__list { margin: 0; border-top: 1px solid var(--line-paper); }
.rates__list div, .access__list div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--line-paper);
  font-size: .875rem;
  line-height: 1.8;
}
.rates__list dt, .access__list dt { color: var(--on-paper-mute); }
.rates__list dd, .access__list dd { margin: 0; }
.rates__list dd { font-family: var(--latin); font-size: 1.125rem; letter-spacing: .04em; }

/* ── スクロールで動かす時だけ、章を長くして画面に留める ───────────────────── */
.is-motion .door { height: 300vh; }
.is-motion .bath { height: 260vh; }
.is-motion .night { height: 220vh; }
.is-motion .rooms { height: calc(100vh + var(--room-w) * 4 + 30rem); }
.is-motion .rooms__stage { overflow: hidden; scroll-snap-type: none; }
.is-motion .rooms__track { transform: translateX(calc((100vw - 100%) * var(--p, 0))); }

/* ── 導入と、続く動き（動きを減らす設定では止める） ───────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* JavaScript が動く時だけ幕を出す。無効の時は最初から本文が見える */
  .js .veil { display: grid; animation: veil-out 3.6s ease-in-out both; }
  .veil__name { animation: name-breathe 3.2s ease-in-out .2s both; }
  .hero__off, .hero__lit { animation: settle 10s cubic-bezier(.2, .6, .2, 1) both; }
  .hero__lit img { animation: lamp-on 2.8s ease-in-out 3.1s both, flicker 7s ease-in-out 6.5s infinite; }
  .hero__title .col { animation: rise 1.8s cubic-bezier(.2, .7, .2, 1) 4.1s both; }
  .hero__title .col--down { animation-delay: 4.6s; }
  .hero__en { animation: rise 1.6s ease 5.2s both; }
  .hero__place { animation: rise 1.6s ease 5.4s both; }
  .hero__scroll { animation: fade 1.6s ease 5.8s both; }
  .hero__scroll::after { animation: drip 2.4s cubic-bezier(.6, 0, .4, 1) 6s infinite; }
  .mark { animation: fade 1.6s ease 4.6s both; }
  .reserve-tab, .clock { animation: fade 1.2s ease 6s backwards; }
  .bath__steam { animation: steam 16s ease-in-out infinite alternate; }
}
@keyframes veil-out {
  0%, 62% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes name-breathe {
  0% { opacity: 0; filter: blur(14px); letter-spacing: .9em; }
  45%, 72% { opacity: 1; filter: blur(0); letter-spacing: .5em; }
  100% { opacity: 0; filter: blur(8px); letter-spacing: .5em; }
}
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes lamp-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes flicker {
  0%, 100% { opacity: 1; }
  18% { opacity: .9; }
  22% { opacity: .97; }
  57% { opacity: .92; }
  63% { opacity: 1; }
}
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drip { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
@keyframes steam {
  from { transform: translate3d(-3%, 4%, 0); opacity: .7; }
  to { transform: translate3d(3%, -6%, 0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .reserve-tab, .book__btn { transition: none; }
}

/* ── スマホ ───────────────────── */
@media (max-width: 47.99rem) {
  .hero__off img { filter: brightness(.32) saturate(.55); }
  .hero__off img, .hero__lit img { object-position: 50% 50%; }
  .hero::after {
    background:
      linear-gradient(to left, rgba(5, 6, 8, .5), rgba(5, 6, 8, 0) 60%),
      linear-gradient(to top, rgba(5, 6, 8, .75), rgba(5, 6, 8, 0) 30%);
  }
  .hero__copy { top: 5.5rem; right: 1.25rem; gap: .75rem; }
  .hero__place { bottom: 5rem; }
  .hero__scroll { display: none; }
  .door__open { gap: 1.25rem; }
}

/* ── 広い画面 ───────────────────── */
@media (min-width: 48rem) {
  :root { --tab: 3.5rem; }
  .reserve-tab {
    top: 50%;
    right: 0;
    bottom: auto;
    flex-direction: column;
    gap: .875rem;
    padding: 1.5rem .75rem;
    border-right: 0;
    border-radius: 0;
    writing-mode: vertical-rl;
    transform: translateY(-50%);
  }
  .reserve-tab__en { display: inline; }
  .reserve-tab__dot { margin-bottom: .25rem; }

  .prologue__body { flex-direction: row-reverse; align-items: flex-start; gap: clamp(4rem, 8vw, 8rem); }

  .door__open {
    top: 50%;
    right: auto;
    bottom: auto;
    grid-template-columns: auto auto;
    align-items: end;
    column-gap: 3rem;
    transform: translateY(calc(-50% + (1 - var(--shown)) * 2rem));
  }
  .door__open .chap { grid-column: 1 / -1; }
  .door__title { grid-row: 2; grid-column: 2; }
  .door__text { grid-row: 2; grid-column: 1; }

  .bath { --cut-y: 26%; --cut-x: 34%; }
  .bath__head { top: 50%; right: calc(var(--gutter) + var(--tab)); transform: translateY(-50%); }
  .bath__text { right: auto; }

  .supper { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 0; }
  .supper__photo { aspect-ratio: auto; height: min(88vh, 52rem); }
  .supper__body {
    grid-template-columns: auto auto;
    grid-template-areas: "chap chap" "text title" "menu menu";
    justify-content: center;
    align-items: start;
    gap: 2.5rem 3rem;
  }
  .supper__body .chap { grid-area: chap; }
  .supper__title { grid-area: title; }
  .supper__text { grid-area: text; max-width: 15em; padding-top: 4rem; }
  .menu { grid-area: menu; justify-self: start; }

  .night__photo::after { background: linear-gradient(to left, rgba(3, 4, 5, .8), rgba(3, 4, 5, 0) 55%); }
  .night__body {
    top: 50%;
    right: calc(var(--gutter) + var(--tab));
    left: auto;
    bottom: auto;
    grid-template-columns: auto auto;
    align-items: end;
    column-gap: 3rem;
    transform: translateY(-50%);
  }
  .night__body .chap { grid-column: 1 / -1; justify-self: end; }
  .night__title { grid-row: 2; grid-column: 2; }
  .night__rules { grid-row: 2; grid-column: 1; }

  .breakfast {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr) minmax(0, .9fr);
    align-items: end;
    gap: clamp(2rem, 4vw, 4rem);
  }
  .breakfast__text { align-self: start; writing-mode: vertical-rl; justify-self: center; max-width: none; max-height: 24em; letter-spacing: .16em; line-height: 2.4; }

  .stay { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2.5rem, 5vw, 6rem); align-items: start; }
  .book__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .stay { grid-template-columns: auto minmax(0, 1fr); }
  .stay__info { grid-column: 2; }
}

@media (min-width: 64rem) {
  .clock:not([hidden]) { display: flex; }
  .hero__place { bottom: 4.5rem; }
  .rooms { --room-w: min(22vw, calc((var(--stage) - 15rem) * .75), 24rem); }
}
