/* 作り込み1室（407号室）の案内ページの見た目
 *
 * ★注文画面（guest.css）と「同じホテルの画面」に見えることを最優先にした
 *   - 書体はゴシック（--f-ja）。明朝は韓国語・中国語を足したときに持たないため使わない
 *   - 角丸ゼロ・影ゼロ。面の区別は罫と地色だけ
 *   - 見出しは「罫が右へ貫く」組み方（.p-rule）と黒ベタの小さい札（.p-chip）
 *   - 上のバー・言語ボタンの形も注文画面と同じ（切り替えた瞬間に別サイトに見えないように）
 * ★こちらだけのもの
 *   - 部屋の濃紺（--room-navy）を「主に押すボタン」と章番号に使う。注文画面の黒より一段やわらかい
 *   - キャラクターの黄緑は面で使わない。細い線とキャラクターの周りだけ（打ち合わせ 2026-10-09）
 *   - 共用部・周辺の写真は元が1000〜1440pxなので、全幅には置かない（.p-grid の小さい枠だけ）
 * ★基準は iPad Pro 11インチ縦（CSS幅834）。横向き（1194）でも版面は834に止めて写真だけ広げる
 */

.p-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ja);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .05em;
  font-feature-settings: "palt" 1;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 120px;              /* 下の帯のぶん。JSで実測して合わせ直す */
}
.p-body * { box-sizing: border-box; }
.p-body img { display: block; max-width: 100%; height: auto; }  /* ★width/height属性は比率の予約だけに使う。高さは常にCSSで決める */
.p-body a { color: inherit; }
/* 段落の途中で語を割らない（日本語は文節、英語は単語で折る） */
.p-body p, .p-body h1, .p-body h2, .p-body h3, .p-body figcaption {
  word-break: keep-all; overflow-wrap: anywhere; line-break: strict;
}
/* ★和文用の字間（.05〜.08em）と palt は英文を間延びさせる。日本語以外では戻す
   （韓国語・中国語を足したときも同じ扱いでよい。字間は和文だけの作法） */
html:not(:lang(ja)) .p-body { letter-spacing: .005em; font-feature-settings: normal; }
html:not(:lang(ja)) .p-body p { word-break: normal; }
html:not(:lang(ja)) .p-hero h1, html:not(:lang(ja)) .p-head h2, html:not(:lang(ja)) .p-lead,
html:not(:lang(ja)) .p-hero .sub, html:not(:lang(ja)) .p-grid h3, html:not(:lang(ja)) .p-index .t,
html:not(:lang(ja)) .p-steps h3, html:not(:lang(ja)) .p-call h3, html:not(:lang(ja)) .p-dock .txt b,
html:not(:lang(ja)) .p-pair .tag b, html:not(:lang(ja)) .p-btn { letter-spacing: 0; }
html:not(:lang(ja)) .p-lead { line-height: 1.75; }
html:not(:lang(ja)) .p-text { line-height: 1.75; }
/* 英語では和文の名前と英字の小見出しが同じ語になる（The room / THE ROOM）ので英字を隠す */
html:not(:lang(ja)) .p-index .e, html:not(:lang(ja)) .p-grid .en { display: none; }
html:not(:lang(ja)) .p-grid h3 { margin-top: 12px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* 版面 */
.p-wrap { max-width: 834px; margin: 0 auto; padding: 0 40px; }
/* .p-wide は部品と組み合わせて使うので、ファイルの最後（幅が狭いときの前）で定義する */

/* 読み上げ専用 */
.p-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ============================================================
   上のバー（注文画面の .g-bar と同じ寸法）
   ============================================================ */
.p-bar {
  position: sticky; top: 0; z-index: 30; height: 60px;
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.p-bar .in {
  height: 100%; max-width: 834px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 14px;
}
.p-bar .logo { height: 34px; width: auto; }
.p-bar .room { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--ink-mute); white-space: nowrap; }
.p-langs { margin-left: auto; display: flex; gap: 8px; }
.p-langs button {
  min-height: var(--tap-min); padding: 0 18px; margin: 0;
  border: 1px solid var(--ink); border-radius: 0; background: var(--bg); color: var(--ink);
  font: 600 15px/1 var(--f-ja); letter-spacing: .04em; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.p-langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ============================================================
   ヒーロー
   ============================================================ */
.p-hero { position: relative; height: min(66vh, 800px); min-height: 480px; overflow: hidden; background: var(--room-navy); }
.p-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }  /* 窓と長椅子を中央に */
/* 写真は重ねて置く。★1枚目（is-on）だけが最初から見えている。2枚目以降は premium-motion.js が順に出す */
.p-hero .slides { position: absolute; inset: 0; }
.p-hero .s { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.p-hero .s.is-on { opacity: 1; }
.p-hero .s:nth-child(2) img { object-position: 30% 50%; }   /* 長椅子と窓の光 */
.p-hero .s:nth-child(3) img { object-position: 30% 40%; }   /* ペンダントを左上の暗がりに */
.p-hero .veil {
  position: absolute; inset: auto 0 0 0; height: 58%;
  background: linear-gradient(0deg, rgba(12,16,26,.86) 0%, rgba(12,16,26,.42) 52%, rgba(12,16,26,0) 100%);
}
.p-hero .copy { position: absolute; inset: auto 0 0 0; color: #fff; z-index: 1; }
.p-hero .copy .p-wrap { padding-bottom: 44px; }
.p-hero .no {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
  font: 700 13px/1 var(--f-num); letter-spacing: .32em;
}
/* 黄緑はこの細い線だけ（面に敷かない） */
.p-hero .no::before { content: ""; width: 36px; height: 2px; background: var(--brand-lime); }
.p-hero h1 { margin: 0; font-size: 38px; font-weight: 700; line-height: 1.45; letter-spacing: .08em; }
.p-hero .sub { margin: 14px 0 0; font-size: 16px; font-weight: 500; letter-spacing: .08em; opacity: .92; }

/* ============================================================
   見出し
   ============================================================ */
.p-rule { position: relative; z-index: 0; display: flex; align-items: center; margin: 0; }
.p-rule::after { content: ""; position: absolute; z-index: -1; top: 50%; left: 0; width: 100%; height: 1px; background: var(--rule); }
.p-rule > * { background: var(--bg); box-shadow: 20px 0 0 var(--bg); }

.p-chip {
  display: inline-block; background: var(--ink); color: #fff;
  font: 800 13px/1 var(--f-num); letter-spacing: .16em; padding: 8px 12px; white-space: nowrap;
}

/* 章の頭：番号＋札＋罫、その下に和文の見出し */
.p-head { margin: 0 0 28px; }
.p-head .p-rule > span { display: inline-flex; align-items: center; gap: 12px; }
.p-head .num { font: 600 15px/1 var(--f-num); letter-spacing: .1em; color: var(--room-navy); }
.p-head h2 { margin: 18px 0 0; font-size: 30px; font-weight: 700; line-height: 1.45; letter-spacing: .08em; }

.p-sec { padding-top: 88px; scroll-margin-top: 60px; }  /* ★横の余白は .p-wrap に任せる（上書きしない） */
.p-text { margin: 0 0 20px; }
.p-lead { font-size: 20px; line-height: 2.05; letter-spacing: .07em; margin: 0 0 24px; }
.p-note { font-size: 14px; color: var(--ink-mute); line-height: 1.85; margin: 12px 0 0; }

/* ============================================================
   写真の置き方
   ============================================================ */
.p-photo { margin-top: 0; margin-bottom: 0; }  /* ★左右は触らない（.p-wrap の中央寄せを消さない） */
.p-photo img { width: 100%; height: auto; }
.p-photo figcaption, .p-cap {
  margin: 12px 0 0; font-size: 14px; color: var(--ink-mute); line-height: 1.8; letter-spacing: .05em;
}
/* 全幅（横向きでは高さを止めて切る） */
.p-full { margin: 36px 0 0; }
.p-full img { width: 100%; height: auto; }
.p-full figcaption { max-width: 834px; margin: 12px auto 0; padding: 0 40px; }
/* 元が1400pxの写真。本文の幅（754px）まで＝約1.08倍にとどまるので、全幅には出さずこの枠に置く */
.p-native { margin-top: 32px; }
.p-native img { width: 100%; }

/* 2枚ならべ（昼と夜） */
.p-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0 0; }
.p-pair figure { margin: 0; position: relative; }
.p-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.p-pair .tag {
  position: absolute; left: 0; bottom: 0; background: var(--bg); color: var(--ink);
  font: 700 12px/1 var(--f-num); letter-spacing: .2em; padding: 9px 12px 8px;
}
.p-pair .tag b { font: 600 13px/1 var(--f-ja); letter-spacing: .08em; margin-left: 8px; white-space: nowrap; }

/* 小さい枠を並べる（共用部・周辺・設備）。★全幅に引き伸ばさない */
.p-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px 20px; }
.p-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.p-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.p-grid li { margin: 0; }
.p-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--plate); }
.p-grid h3 { margin: 12px 0 0; font-size: 17px; font-weight: 700; line-height: 1.5; letter-spacing: .06em; }
.p-grid p { margin: 4px 0 0; font-size: 14px; line-height: 1.75; color: var(--ink-mute); }
.p-grid .en { display: block; margin-top: 12px; font: 700 11px/1 var(--f-num); letter-spacing: .2em; color: var(--ink-mute); }
.p-grid .en + h3 { margin-top: 6px; }

/* 文と写真の段組（横向きのとき並べる） */
.p-split { display: grid; gap: 28px; margin-top: 36px; }
.p-split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ============================================================
   目次（ヒーローの直下。押すとその章へ）
   ============================================================ */
.p-index { padding-top: 48px; }
.p-index ol { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.p-index li { background: var(--bg); }
.p-index a {
  display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 104px; text-decoration: none; padding: 16px 0;
  -webkit-tap-highlight-color: transparent;
}
.p-index a:active { background: var(--paper); }
.p-index .n { margin: 0 18px; font: 600 12px/1 var(--f-num); letter-spacing: .14em; color: var(--room-navy); }
.p-index .t { margin: 8px 18px 0; font-size: 16px; font-weight: 700; line-height: 1.45; letter-spacing: .06em; }
.p-index .e { margin: 6px 18px 0; font: 700 10px/1 var(--f-num); letter-spacing: .2em; color: var(--ink-mute); }

/* ============================================================
   中身の一覧（BBQのセット内容など）
   ============================================================ */
.p-spec { margin: 28px 0 0; border-top: 2px solid var(--ink); }
.p-spec > div { display: grid; grid-template-columns: 230px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.p-spec dt { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.p-spec dd { margin: 0; font-size: 15px; line-height: 1.85; }

/* 注意書きの札（館内の案内） */
.p-box { margin: 28px 0 0; background: var(--paper); border-left: 3px solid var(--room-navy); padding: 18px 22px; }
.p-box p { margin: 0; font-size: 15px; line-height: 1.85; }

/* ============================================================
   ボタン
   ============================================================ */
.p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: var(--tap-min); padding: 0 30px; border: 0; border-radius: 0;
  background: var(--room-navy); color: #fff !important; text-decoration: none;
  font: 700 18px/1 var(--f-ja); letter-spacing: .1em; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.p-btn:active { background: #0f1a30; }
.p-btn .arw { width: 18px; height: 10px; flex: 0 0 auto; }
.p-btn.line { background: var(--bg); color: var(--room-navy) !important; border: 1px solid var(--room-navy); }
.p-btn.line:active { background: var(--paper); }
.p-btn.big { min-height: 72px; font-size: 21px; padding: 0 40px; }

/* ============================================================
   ご注文の章
   ============================================================ */
.p-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.p-steps li { padding: 20px 18px 22px 0; border-bottom: 1px solid var(--rule); }
.p-steps li + li { padding-left: 18px; border-left: 1px solid var(--rule); }
.p-steps .n { font: 600 30px/1 var(--f-num); color: var(--room-navy); letter-spacing: 0; }
.p-steps h3 { margin: 12px 0 0; font-size: 17px; font-weight: 700; letter-spacing: .06em; line-height: 1.5; }
.p-steps p { margin: 6px 0 0; font-size: 14px; line-height: 1.75; color: var(--ink-mute); }

.p-pay { margin: 16px 0 0; font: 600 14px/1.8 var(--f-num); letter-spacing: .02em; color: var(--ink); }
.p-pay span { font-family: var(--f-ja); font-weight: 700; font-size: 13px; color: var(--ink-mute); letter-spacing: .06em; }

/* キャラクターが案内する締めの札。★黄緑は面にせず、上の細い線だけ */
.p-call {
  margin: 48px 0 0; display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center;
  padding: 32px 32px 32px 24px; background: var(--paper); border-top: 3px solid var(--brand-lime);
}
.p-call img { width: 150px; height: auto; }
.p-call h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.5; letter-spacing: .06em; }
.p-call p { margin: 6px 0 18px; font-size: 15px; color: var(--ink-mute); line-height: 1.8; }

/* ============================================================
   おわり
   ============================================================ */
.p-foot { margin-top: 96px; padding: 40px 0 36px; border-top: 1px solid var(--rule); text-align: center; }
.p-foot img { height: 54px; width: auto; margin: 0 auto; }
.p-foot .nm { margin: 12px 0 0; font: 700 12px/1 var(--f-num); letter-spacing: .28em; color: var(--ink-mute); }
.p-foot p { margin: 18px 0 0; font-size: 14px; color: var(--ink-mute); }

/* ============================================================
   下に固定する注文の帯
   ============================================================ */
.p-dock {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform .25s ease;
}
.p-dock .in { max-width: 834px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; }
.p-dock .mascot { height: 60px; width: auto; flex: 0 0 auto; }
.p-dock .txt { flex: 1 1 auto; min-width: 0; line-height: 1.5; }
.p-dock .txt b { display: block; font-size: 16px; letter-spacing: .06em; }
.p-dock .txt span { display: block; font-size: 13px; color: var(--ink-mute); letter-spacing: .04em; }
/* ご注文の章が見えているあいだは引っ込める（同じボタンが2つ並ばないように） */
.p-dock.away { transform: translateY(110%); }

/* 広めの版面。部品（.p-grid / .p-pair など）の margin・padding を上書きするため、部品より後ろに置く */
.p-wide { max-width: 834px; margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px; }

/* ============================================================
   横向き（CSS幅 1194）
   ============================================================ */
@media (orientation: landscape) and (min-width: 900px) {
  .p-hero { height: min(78vh, 760px); }
  .p-pair img { aspect-ratio: 4 / 3; }
}

/* ============================================================
   幅が狭いとき（iPad mini 縦・分割表示・スマホで開いたとき）
   ============================================================ */
@media (max-width: 700px) {
  .p-wrap { padding: 0 24px; }
  .p-wide { padding-left: 24px; padding-right: 24px; }
  .p-native img { max-width: 100%; }
  .p-hero { min-height: 460px; }
  .p-hero h1 { font-size: 30px; }
  .p-head h2 { font-size: 25px; }
  .p-lead { font-size: 18px; }
  .p-index ol { grid-template-columns: repeat(2, 1fr); }
  .p-grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .p-spec > div { grid-template-columns: 1fr; gap: 4px; }
  .p-steps { grid-template-columns: 1fr; }
  .p-steps li + li { padding-left: 0; border-left: 0; }
  .p-call { grid-template-columns: 1fr; text-align: center; }
  .p-call img { margin: 0 auto; width: 120px; }
  .p-full figcaption { padding: 0 24px; }
}
@media (max-width: 520px) {
  .p-bar .room { display: none; }
  .p-dock .txt { display: none; }  .p-dock .p-btn { margin-left: auto; }  /* スマホ幅では文が3行に折れて帯が厚くなる。キャラクターとボタンだけにする */
  .p-dock .mascot { height: 46px; }
  .p-btn { padding: 0 20px; font-size: 16px; }
  .p-grid.c2, .p-grid.c3 { grid-template-columns: 1fr; }
}

/* ************************************************************
   動き（2026-10-14 作り直し）。中身は premium-motion.js
   ★html.mo があるときだけ「入ってくる前」の隠れた状態を作る。
     JSが動かない・「視差効果を減らす」の端末では、ここより上の静的な見た目のまま全部見えている
   ★動かすのは transform と opacity だけ。夜の場面の文字色だけは場面が切り替わる1回だけ変わる
   ************************************************************ */
:root { --ez: cubic-bezier(.2,.7,.1,1); --ez-io: cubic-bezier(.7,0,.2,1); }

/* ---------- 押したときの手ごたえ ---------- */
.p-btn { transition: transform .25s var(--ez), background-color .2s ease; }
.p-btn:active { transform: scale(.97); }
.p-btn .arw { transition: transform .35s var(--ez); }
.p-btn:active .arw { transform: translateX(5px); }
@media (hover: hover) { .p-btn:hover .arw { transform: translateX(4px); } }
.p-index a { transition: background-color .25s ease; }
.p-langs button { transition: color .35s ease, transform .2s var(--ez); }
.p-langs button:active { transform: scale(.96); }

/* 言語ボタン：黒い面がすべって移る（JSが面を作ったときだけ、ボタン自身の黒地を消す） */
.p-langs.has-ind { position: relative; isolation: isolate; }
.p-langs.has-ind button, .p-langs.has-ind button[aria-pressed="true"] { background: transparent; }
.p-langs.has-ind button[aria-pressed="true"] { color: #fff; }
.p-langs .ind {
  position: absolute; left: 0; top: 0; z-index: -1; width: 100px; height: 100%;
  background: var(--ink); transform-origin: 0 0; pointer-events: none;
}
.p-langs.ready .ind { transition: transform .5s var(--ez); }

/* ---------- 横にスワイプするギャラリー（JSがあれば作る。動きを減らす設定でも作る） ---------- */
.p-gal { --gx: max(40px, calc((100vw - 834px) / 2 + 40px)); margin-top: 32px; }
.p-gal > ul.p-grid {
  display: flex; gap: 20px; margin: 0; max-width: none; padding: 0 0 0 var(--gx);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--gx);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.p-gal > ul.p-grid::-webkit-scrollbar { display: none; }
.p-gal > ul.p-grid::after { content: ""; flex: 0 0 calc(var(--gx) - 20px); }   /* 最後の札の右にも余白 */
.p-gal > ul.p-grid > li { flex: 0 0 min(72%, 600px); scroll-snap-align: start; }
.p-gal.g3 > ul.p-grid > li { flex-basis: min(46%, 400px); }
.p-gal > ul.drag { scroll-snap-type: none; cursor: grabbing; }
.p-gal > ul.drag * { pointer-events: none; }
.p-gal .ctl { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.p-gal .cnt { font: 700 13px/1 var(--f-num); letter-spacing: .18em; color: var(--ink-mute); white-space: nowrap; }
.p-gal .cnt b { display: inline-block; color: var(--ink); font-weight: 700; }
.p-gal .dots { display: flex; }
.p-gal .dots button {
  width: 44px; height: var(--tap-min); padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent;
}
.p-gal .dots i { display: block; width: 22px; height: 2px; background: var(--rule); transform: scaleX(.45); transition: transform .5s var(--ez), background-color .3s ease; }
.p-gal .dots button.on i { background: var(--ink); transform: none; }
.p-gal .arws { margin-left: auto; display: flex; gap: 8px; }
.p-gal .arws button {
  width: var(--tap-min); height: var(--tap-min); padding: 0; margin: 0; border: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ez), opacity .3s ease; -webkit-tap-highlight-color: transparent;
}
.p-gal .arws button:active { transform: scale(.93); }
.p-gal .arws button:disabled { opacity: .25; cursor: default; }
.p-gal .arws svg { width: 18px; height: 10px; }
.p-gal .arws .prev svg { transform: scaleX(-1); }

/* ---------- 窓辺の2枚：動きが無いときは2枚ならべ（上の .p-pair のまま） ---------- */
.p-dusk .dial { display: none; }

/* ============================================================
   ここから下は html.mo のときだけ
   ============================================================ */
html.mo { background: var(--bg); }
.mo .p-body { background: transparent; }
.mo main { color: var(--ink); transition: color 1s ease; }

/* ---------- 入ってくる（rv は自分が動く。rw は中の部品が動く） ---------- */
.mo .rv {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 1s var(--ez) var(--d, 0s), transform 1.2s var(--ez) var(--d, 0s), color 1s ease 0s, background-color 1s ease 0s;
}
.mo .rv.in { opacity: 1; transform: none; }
.mo .p-gal.rv { transform: translate3d(64px, 0, 0); }
.mo .p-gal.rv.in { transform: none; }

/* 写真の幕が開く（幕は紙の色。夜の場面では夜の色） */
.mk { display: block; position: relative; overflow: hidden; }
.mo .mk::after {
  content: ""; position: absolute; inset: 0; background: var(--paper); pointer-events: none;
  transform-origin: 100% 50%; transition: transform 1.25s var(--ez-io) calc(var(--d, 0s) + .05s), background-color 1s ease;
}
.mo .in .mk::after { transform: scaleX(0); }
.mo .mk img { transform: scale(1.14); transition: transform 1.9s var(--ez) var(--d, 0s); }
.mo .in .mk img { transform: none; }
/* 全幅の写真は視差で動かす（JSが毎フレーム transform を書くので transition は付けない） */
.mo .p-full .mk img { transform: scale(1.16); transition: none; }

/* 見出しの罫が右へ伸び、札がすべり込む */
.mo .p-rule::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ez) .1s, background-color 1s ease; }
.mo .in > .p-rule::after, .mo .p-rule.in::after { transform: none; }
.mo .p-rule .p-chip { opacity: 0; transform: translate3d(-14px, 0, 0); transition: opacity .8s var(--ez) .2s, transform 1s var(--ez) .2s, background-color 1s ease, color 1s ease; }
.mo .in > .p-rule .p-chip, .mo .p-rule.in .p-chip { opacity: 1; transform: none; }
.mo .p-rule > * { transition: background-color 1s ease, box-shadow 1s ease; }

/* 行ごとに下から出る（data-split="lines"） */
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.mo [data-split] .ln > span { display: block; transform: translate3d(0, 108%, 0); transition: transform 1.15s var(--ez); transition-delay: calc(var(--i, 0) * .13s + var(--d0, .25s)); }
.mo .in [data-split] .ln > span { transform: none; }
/* 一文字ずつ濃くなる（data-split="chars"）。★inline のまま opacity だけ（禁則を崩さない） */
.mo [data-split="chars"] .ch { opacity: .08; transition: opacity .9s ease; transition-delay: calc(var(--c) * 16ms + .15s); }
.mo .in[data-split="chars"] .ch, .mo .in [data-split="chars"] .ch { opacity: 1; }

/* 数字が1桁ずつ下から出る（data-odo）。★回さない（別の数字を見せない） */
.od { display: inline-block; height: 1em; line-height: 1; overflow: hidden; vertical-align: top; }
.od .st { display: block; height: 1em; }
.mo .od .st { transform: translate3d(0, 110%, 0); transition: transform 1s var(--ez) calc(var(--dl, 0ms) + .3s); }
.mo .in .od .st { transform: none; }

/* ---------- ヒーロー ---------- */
.mo .p-hero .slides { will-change: transform; }
.mo .p-hero .s.run img { animation: p-kb 9.5s linear both; }
.mo .p-hero .s:nth-child(2).run img { animation-name: p-kb-out; }
.mo .p-hero .s:nth-child(3).run img { animation-name: p-kb-up; }
@keyframes p-kb     { from { transform: scale(1.04) translate3d(1.4%, 0, 0); }  to { transform: scale(1.15) translate3d(-1.4%, 0, 0); } }
@keyframes p-kb-out { from { transform: scale(1.16) translate3d(-1%, 0, 0); }   to { transform: scale(1.04) translate3d(1%, 0, 0); } }
@keyframes p-kb-up  { from { transform: scale(1.06) translate3d(0, 1.6%, 0); }  to { transform: scale(1.16) translate3d(.8%, -1%, 0); } }
.mo .p-hero .copy { will-change: transform, opacity; }
.mo .p-hero .no { opacity: 0; transition: opacity .9s ease .25s; }
.mo .p-hero.in .no { opacity: 1; }
.mo .p-hero .no::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.3s var(--ez) .2s; }
.mo .p-hero.in .no::before { transform: none; }
.mo .p-hero h1 { --d0: .55s; }
.mo .p-hero .sub { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 1.2s var(--ez) 1.15s, transform 1.4s var(--ez) 1.15s; }
.mo .p-hero.in .sub { opacity: .92; transform: none; }
.p-hero .sub { max-width: calc(100% - 150px); }
/* 切り替わりの印（右下）。いまの1枚の線が時間とともに満ちていく */
.p-hero-ind { position: absolute; right: 40px; bottom: 46px; z-index: 2; color: #fff; text-align: right; opacity: 0; transition: opacity 1s ease 1.6s; }
.p-hero.in .p-hero-ind { opacity: 1; }
.p-hero-ind .lbl { display: block; margin-bottom: 12px; font: 700 11px/1 var(--f-num); letter-spacing: .28em; white-space: nowrap; }
.p-hero-ind .lbl b { display: inline-block; font-weight: 700; }
.p-hero-ind ol { display: flex; gap: 8px; justify-content: flex-end; list-style: none; margin: 0; padding: 0; }
.p-hero-ind li { width: 34px; height: 2px; background: rgba(255,255,255,.32); overflow: hidden; }
.p-hero-ind i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.p-hero-ind li.on i { animation: p-fill 7s linear forwards; }
@keyframes p-fill { to { transform: none; } }

/* ---------- 付いてくる目次 ---------- */
.p-chap {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 29; height: var(--tap-min);
  background: #fff; border-bottom: 1px solid var(--rule);
  transform: translate3d(0, -101%, 0); transition: transform .6s var(--ez);
  pointer-events: none;
}
.p-chap.on { transform: none; pointer-events: auto; }
.p-chap .in { height: 100%; max-width: 834px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 16px; }
.p-chap .cur { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; height: 100%; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.p-chap .cur .n { font: 700 12px/1 var(--f-num); letter-spacing: .2em; color: var(--room-navy); }
.p-chap .cur .t { font-size: 15px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-chap ol { position: relative; isolation: isolate; display: flex; list-style: none; margin: 0; padding: 0; }
.p-chap li { width: 68px; }
.p-chap ol a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: var(--tap-min); text-decoration: none;
  color: var(--ink-mute); transition: color .4s ease; -webkit-tap-highlight-color: transparent;
}
.p-chap ol a b { font: 700 13px/1 var(--f-num); letter-spacing: .08em; }
.p-chap ol a small { font: 700 10px/1 var(--f-num); letter-spacing: .02em; white-space: nowrap; }
.p-chap ol a.on { color: #fff; }
.p-chap .ind { position: absolute; left: 0; top: 6px; z-index: -1; height: calc(100% - 12px); background: var(--room-navy); opacity: 0; transition: transform .55s var(--ez), opacity .3s ease; }
.p-chap.has .ind { opacity: 1; }
.p-chap .pg { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand-lime); transform: scaleX(0); transform-origin: 0 50%; }
.js .p-sec { scroll-margin-top: calc(60px + var(--tap-min)); }

/* ---------- 昼の窓辺 → 照明を落とした窓辺：スクロールに合わせて右から差し込む ---------- */
.mo .p-dusk { --sh: max(440px, min(calc(100vh - 250px), 940px)); position: relative; height: calc(var(--sh) + 36px + 90vh); }
/* ★画面いっぱいに近い高さで止めて、その中で日を暮れさせる（上は付いてくる目次の下・下は注文の帯の上） */
.mo .p-dusk .stage {
  position: sticky; top: calc(60px + var(--tap-min) + 12px);
  display: block; height: var(--sh); max-width: none; margin: 36px 0 0; padding: 0; overflow: hidden;
}
.mo .p-dusk figure { position: absolute; inset: 0; margin: 0; }
.mo .p-dusk img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 38% 50%; transform: scale(1.1); }
.mo .p-dusk figure { overflow: hidden; }
.mo .p-dusk .eve { transform: translate3d(100%, 0, 0); }
.mo .p-dusk .eve img { transform: translate3d(-100%, 0, 0) scale(1.1); }
/* 差し込む2枚目の縁に、細い光の線と淡い影 */
.mo .p-dusk .eve::before {
  content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 2px;
  background: rgba(255,255,255,.85); box-shadow: 0 0 24px 6px rgba(0,0,0,.28);
}
.mo .p-dusk .tag { left: 40px; }
.mo .p-dusk .dial {
  display: flex; align-items: center; gap: 12px; position: absolute; right: 40px; top: 22px; z-index: 2;
  color: #fff; font: 700 11px/1 var(--f-num); letter-spacing: .22em; text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.mo .p-dusk .dial i { position: relative; display: block; width: 120px; height: 1px; background: rgba(255,255,255,.6); }
.mo .p-dusk .dial b { position: absolute; left: 0; top: 0; width: 100%; height: 0; }
.mo .p-dusk .dial b::before { content: ""; position: absolute; left: -5px; top: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--brand-lime); }

/* ---------- 目次の格子：ol ごと出し、6つの枠が順に浮かぶ（★li を個別に隠すと罫の灰色の地が帯に見える） ---------- */
.mo .p-index ol { opacity: 0; transition: opacity .8s ease; }
.mo .p-index ol.in { opacity: 1; }
.mo .p-index li > a { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .8s var(--ez), transform 1s var(--ez); }
.mo .p-index ol.in li > a { opacity: 1; transform: none; }
.mo .p-index li:nth-child(2) > a { transition-delay: .07s; }
.mo .p-index li:nth-child(3) > a { transition-delay: .14s; }
.mo .p-index li:nth-child(4) > a { transition-delay: .21s; }
.mo .p-index li:nth-child(5) > a { transition-delay: .28s; }
.mo .p-index li:nth-child(6) > a { transition-delay: .35s; }

/* ---------- ご注文の手順：上の罫が引かれ、1・2・3 が順に ---------- */
.mo .p-steps { position: relative; border-top-color: transparent; }
.mo .p-steps::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ez); }
.mo .p-steps.in::before { transform: none; }
.mo .p-steps li { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .9s var(--ez), transform 1.1s var(--ez); }
.mo .p-steps li:nth-child(2) { transition-delay: .18s; }
.mo .p-steps li:nth-child(3) { transition-delay: .36s; }
.mo .p-steps.in li { opacity: 1; transform: none; }
.mo .p-steps li:nth-child(2) .st { transition-delay: .45s; }
.mo .p-steps li:nth-child(3) .st { transition-delay: .65s; }

/* ---------- キャラクター ---------- */
/* ★繰り返しの跳ね・揺れ・光は付けない（読んでいる間ずっと目の端で動くと品位が落ちる・2026-10-14） */
.mo .p-call img { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s ease .2s, transform 1.2s var(--ez) .2s; }
.mo .p-call.in img { opacity: 1; transform: none; }
.mo .p-dock { transition: transform .9s var(--ez); }
.mo .p-dock.pre { transform: translateY(110%); }
/* 大きなボタン・帯のボタンに、一度だけ光が走る */
.mo .p-btn.big, .mo .p-dock .p-btn { position: relative; overflow: hidden; }
.mo .p-btn.big::after, .mo .p-dock .p-btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.26) 50%, transparent 65%);
  transform: translate3d(-110%, 0, 0);
}
.mo .p-btn.big.in::after { animation: p-sheen 1.6s var(--ez) .7s both; }
.mo .p-dock.enter .p-btn::after { animation: p-sheen 1.6s var(--ez) 1.2s both; }   /* 帯が入ってきたときの1回だけ */
@keyframes p-sheen { to { transform: translate3d(110%, 0, 0); } }

/* ---------- ギャラリー：いまの札を明るく。最初に一度だけ「横に動く」と教える ---------- */
.mo .p-gal li { transition: opacity .6s ease, transform .8s var(--ez); }
.mo .p-gal li:not(.on) { opacity: .5; transform: scale(.965); }
.mo .p-gal.hint li { animation: p-nudge 1.5s var(--ez) both; }
.mo .p-gal.hint li:nth-child(2) { animation-delay: .06s; }
.mo .p-gal.hint li:nth-child(3) { animation-delay: .12s; }
@keyframes p-nudge { 0%, 100% { translate: 0 0; } 38% { translate: -44px 0; } }

/* ---------- 夜の場面（寝室の章） ---------- */
.p-scene { position: fixed; inset: 0; z-index: -1; background: #0f1626; opacity: 0; pointer-events: none; transition: opacity 1.1s ease; }
html.is-night .p-scene { opacity: 1; }
html.is-night main { --bg: #0f1626; --ink: #ece6da; --ink-mute: #a2a8b2; --rule: rgba(236,230,218,.2); --paper: #1a2338; --plate: #1a2338; }
html.is-night main .p-chip { color: #0f1626; }
html.is-night main .num, html.is-night main .p-steps .n { color: var(--room-amber); }
.mo main :is(.p-grid p, .p-grid .en, figcaption, .p-head .num) { transition: color 1s ease, background-color 1s ease; }

/* ---------- 動きを減らす設定（mo が付かないので基本は何も動かない。念のため） ---------- */
@media (prefers-reduced-motion: reduce) {
  .p-hero .s { transition: none; }
  .p-langs.ready .ind, .p-gal .dots i { transition: none; }
}

/* 幅が狭いとき */
@media (max-width: 700px) {
  .p-gal { --gx: 24px; }
  .p-gal > ul.p-grid > li, .p-gal.g3 > ul.p-grid > li { flex-basis: 80%; }
  .p-hero-ind { right: 24px; }
  .p-chap .cur .t { display: none; }
  .mo .p-dusk .tag { left: 24px; }
  .mo .p-dusk .dial { right: 24px; }
  .p-hero .sub { max-width: none; }
}
@media (max-width: 520px) {
  .p-chap li { width: 44px; }
  .p-chap ol a small { display: none; }
  .p-gal .dots { display: none; }
}
