/* ==========================================================================
   東京日記 Tokyo Nikki — style.css
   Heartfelt Pink · Plum · Koubai rose（JAFCA 2026）
   ========================================================================== */

:root {
  /* 色彩參考：日本流行色協會 JAFCA 2026 年度代表色「Heartfelt Pink」#FFCCCC（1.2R 8.3/3.9） */
  /* 紙張（帶粉的暖白） */
  --paper: #FFF8F5;
  --paper-2: #FFEDEA;
  --paper-3: #F7DAD7;
  --card: #FFFCFB;
  /* 文字（深葡萄色墨） */
  --ink: #2E1B24;
  --ink-2: #5A4250;
  --ink-3: #7A6170;
  --line: rgba(46, 27, 36, .13);
  --line-2: rgba(46, 27, 36, .26);
  /* 主色：紅梅（按鈕、選取日期）／蘇芳（小標、連結文字） */
  --accent: #C24A6A;
  --accent-ink: #8E3B4F;
  --accent-soft: #F3C1C9;
  --accent-wash: #FFE1E1;
  --pink: #FFCCCC;         /* Heartfelt Pink */
  --blush: #D98A99;        /* 裝飾用中間粉 */
  --plum: #3B1E2A;         /* 深葡萄 */
  --sun: #C24A6A;          /* 日曆週日 */
  --sat: #4B5D8C;          /* 日曆週六 */
  /* 深色區塊（深葡萄） */
  --night: #2B1620;
  --night-2: #3A2230;
  --night-3: #4A2B3C;
  --night-line: rgba(255, 239, 236, .14);
  --night-tx: #FFEFEC;
  --night-mut: #CDB0B9;
  --hi: #FFCCCC;

  --f-serif: "Noto Serif TC", "Songti TC", "Source Han Serif TC", "PMingLiU", serif;
  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", sans-serif;
  --f-disp: "Instrument Serif", "Noto Serif TC", Georgia, serif;
  --f-ui: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gut: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --hdr: 84px;
  --ease: cubic-bezier(.2, .75, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
}
/* 日文：明朝體與日文黑體，漢字字形才會是日本寫法 */
html[data-lang="ja"] {
  --f-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif TC", serif;
  --f-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
}
/* 英文：內文用 Work Sans，標題用 Instrument Serif */
html[data-lang="en"] {
  --f-serif: "Instrument Serif", Georgia, "Noto Serif TC", serif;
  --f-sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
body {
  min-height: 100vh;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .1 0 0 0 0 .09 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-feature-settings: "palt" 0;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; line-height: 1.2; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; transition: top .2s; }
.skip:focus { top: 12px; }
.br-md { display: none; }
@media (min-width: 768px) { .br-md { display: inline; } }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.shu { color: var(--accent); font-style: normal; }
.u { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.u:hover { color: var(--accent-ink); }

.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .14em; color: var(--ink-2); }
.tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; padding: 3px 7px 2px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink); }
.eyebrow--light { color: rgba(255, 255, 255, .85); }
.eyebrow--light .tag { border-color: rgba(255, 255, 255, .5); color: #fff; }

/* ---------- buttons（膠囊按鈕） ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-size: 15px; font-weight: 500; letter-spacing: .06em; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn small { font-family: var(--f-ui); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; opacity: .72; }
.btn .ar { width: 22px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); flex: none; }
.btn:hover .ar { transform: translateX(4px); }
.btn-primary { --bg: var(--accent); --fg: #fff; }
.btn-primary:hover { --bg: #A83E5B; }
.btn-ink { --bg: var(--ink); --fg: var(--paper); }
.btn-ink:hover { --bg: var(--plum); }
.btn-line { --bd: var(--line-2); }
.btn-line:hover { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn-line-green:hover { --bg: #C24A6A; --bd: #C24A6A; --fg: #fff; }
.btn-line-solid { --bg: #C24A6A; --fg: #fff; }
.btn-line-solid:hover { --bg: #A83E5B; }
.btn-fb { --bg: #3B1E2A; --fg: #fff; }
.btn-fb:hover { --bg: #2B1620; }
.btn-hi { --bg: var(--hi); --fg: var(--night); }
.btn-hi:hover { --bg: #FFDCDC; }
.on-dark .btn-line { --bd: rgba(255, 239, 236, .38); --fg: var(--night-tx); }
.on-dark .btn-line:hover { --bg: var(--night-tx); --fg: var(--plum); --bd: var(--night-tx); }
.on-dark .btn-primary { --bg: var(--hi); --fg: var(--plum); }
.on-dark .btn-primary:hover { --bg: #FFDCDC; }
.ic { width: 20px; height: 20px; flex: none; fill: currentColor; }
.btn .ic { margin-left: -4px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .38; pointer-events: none; }

/* 小標（萊姆綠／古銅大寫） */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-ui); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
.on-dark .kicker { color: var(--pink); }

/* ==========================================================================
   Header：置中浮動膠囊，按 MENU 展開成面板
   ========================================================================== */
.hdr { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.pill {
  pointer-events: auto; position: relative; width: min(700px, 100%); border-radius: 29px;
  background: rgba(48, 22, 34, .86); color: var(--night-tx);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 18px 50px -24px rgba(40, 12, 24, .6), inset 0 0 0 1px rgba(255, 239, 236, .08);
}
.pill-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 58px; padding: 0 9px 0 16px; }
.pill-menu { justify-self: start; display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px 0 4px; font-family: var(--f-ui); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--night-tx); }
.pill-ic { position: relative; width: 28px; height: 9px; }
.pill-ic i { position: absolute; left: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease), width .5s var(--ease); }
.pill-ic i:first-child { top: 0; width: 28px; }
.pill-ic i:last-child { top: 8px; width: 18px; }
.pill-menu:hover .pill-ic i:last-child { width: 28px; }
.is-open .pill-ic i:first-child { top: 4px; transform: rotate(20deg); width: 24px; }
.is-open .pill-ic i:last-child { top: 4px; transform: rotate(-20deg); width: 24px; }
.pill-logo { display: grid; place-items: center; }
.pill-r { justify-self: end; display: flex; align-items: center; gap: 2px; }
.sns-a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--night-tx); opacity: .85; transition: background-color .3s, color .3s, opacity .3s; }
.sns-a:hover { opacity: 1; }
.sns-a[data-sns="line"]:hover { background: #C24A6A; color: #fff; }
.sns-a[data-sns="facebook"]:hover { background: #3B1E2A; color: #fff; }
.sns-a .ic { width: 19px; height: 19px; }
.pill-cta { display: inline-flex; flex: none; align-items: center; gap: 10px; height: 40px; margin-left: 6px; padding: 0 14px 0 18px; border: 1px solid rgba(255, 239, 236, .3); border-radius: 999px; font-size: 14px; letter-spacing: .08em; white-space: nowrap; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s; }
.pill-cta small { font-family: var(--f-ui); font-size: 11px; font-weight: 500; letter-spacing: .2em; opacity: .7; }
.pill-cta .ar { width: 22px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .45s var(--ease); }
.pill-cta:hover { background: var(--night-tx); color: var(--plum); border-color: var(--night-tx); }
.pill-cta:hover .ar { transform: translateX(3px); }
.cart-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pink); color: var(--plum); font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.cart-n[hidden] { display: none !important; }
/* 語言切換（i18n.js 插入） */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 999px; color: var(--night-tx); font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; opacity: .9; transition: background-color .3s, opacity .3s; }
.lang-btn svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(255, 239, 236, .12); opacity: 1; }
.lang-list { position: absolute; right: 0; top: calc(100% + 12px); z-index: 2; min-width: 168px; padding: 6px; border-radius: 18px; background: rgba(48, 22, 34, .96); box-shadow: 0 18px 40px -16px rgba(40, 12, 24, .7), inset 0 0 0 1px rgba(255, 239, 236, .1); }
.lang-list[hidden] { display: none; }
.lang-list a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; font-size: 14px; color: var(--night-tx); transition: background-color .2s; }
.lang-list a b { width: 22px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: var(--night-mut); }
.lang-list a:hover { background: rgba(255, 239, 236, .1); }
.lang-list a[aria-current="true"] { color: var(--pink); }
.lang-list a[aria-current="true"] b { color: var(--pink); }
/* 日文、英文：翻譯套用前先藏起內容（i18n.js 會移除） */
.i18n-wait body { visibility: hidden; }
/* 英文版：中文旁邊附的英文小字會和翻譯重複，收起來 */
html[data-lang="en"] .btn small,
html[data-lang="en"] .pill-cta small,
html[data-lang="en"] .pill-nav a i,
html[data-lang="en"] .next-t i,
html[data-lang="en"] .bd-dest small,
html[data-lang="en"] .lost .eki-nb small { display: none; }
/* 平板寬度頁首右側放不下英文小字，先收起來 */
@media (max-width: 760px) { .pill-cta small { display: none; } }
.seal {
  display: inline-flex; flex-direction: row-reverse; justify-content: center; align-items: center; gap: 1px;
  width: 36px; height: 36px; flex: none; border-radius: 4px; background: var(--accent); color: #fff;
  font-family: var(--f-serif); font-size: 11.5px; line-height: 1.05; box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 3px rgba(255, 252, 251, .55);
}
.seal span { writing-mode: vertical-rl; letter-spacing: 0; }

/* 展開面板 */
.pill-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.is-open .pill-panel { grid-template-rows: 1fr; }
.pill-panel-in { min-height: 0; overflow: hidden; }
.pill-panel-pad { padding: 14px 24px 26px; text-align: center; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .5s var(--ease); }
.is-open .pill-panel-pad { opacity: 1; transform: none; transition-delay: .12s; }
.pill-word { font-family: var(--f-disp); font-size: 26px; line-height: 1; color: var(--blush); }
.pill-word small { display: block; margin-top: 6px; font-family: var(--f-serif); font-size: 12px; letter-spacing: .5em; color: var(--night-mut); }
.pill-nav { display: grid; gap: 2px; margin: 18px 0 20px; }
.pill-nav a { display: inline-flex; justify-content: center; align-items: baseline; gap: 10px; padding: 6px 0; font-family: var(--f-serif); font-size: clamp(22px, 3.2vw, 28px); line-height: 1.3; color: var(--night-tx); transition: color .3s; }
.pill-nav a i { font-family: var(--f-disp); font-style: italic; font-size: .64em; color: var(--night-mut); }
.pill-nav a:hover, .pill-nav a[aria-current="page"] { color: var(--pink); }
.pill-sns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pill-sns .btn { height: 42px; }
.pill-sns .btn-line { --bd: rgba(255, 239, 236, .3); --fg: var(--night-tx); }
.pill-sns .btn-line:hover { --bg: var(--night-tx); --fg: var(--plum); }
.menu-veil { position: fixed; inset: 0; z-index: 40; background: rgba(40, 16, 28, .28); opacity: 0; pointer-events: none; transition: opacity .4s; }
.menu-open .menu-veil { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) {
  .hdr { top: 10px; }
  .pill-bar { height: 54px; padding: 0 7px 0 12px; }
  .pill-menu .pill-lbl, .pill-r .sns-a, .pill-cta small { display: none; }
  .pill-cta { padding: 0 12px 0 14px; margin-left: 0; }
  .lang-btn { padding: 0 8px; }
  .lang-btn svg { display: none; }
  /* 手機右側多了語言鈕，預約鈕的箭頭收起來讓出空間 */
  .pill-cta { gap: 8px; padding: 0 14px; }
  .pill-cta .ar { display: none; }
}
/* ==========================================================================
   Hero（深林綠＋超大字標）
   ========================================================================== */
.on-dark { background: var(--plum); color: var(--night-tx); }
.on-dark ::selection { background: var(--pink); color: var(--plum); }
/* 林間光束：靜態漸層，不做動畫 */
.rays { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rays::before { content: ""; position: absolute; inset: -20% -10%; background:
  linear-gradient(112deg, transparent 18%, rgba(255, 239, 236, .045) 24%, transparent 31%, transparent 44%, rgba(255, 239, 236, .035) 50%, transparent 58%, transparent 66%, rgba(255, 239, 236, .05) 71%, transparent 79%),
  radial-gradient(60% 50% at 85% 0%, rgba(255, 204, 204, .09), transparent 70%),
  radial-gradient(50% 60% at 0% 100%, rgba(40, 12, 24, .35), transparent 70%); }

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--hdr) + clamp(16px, 4vh, 48px)); overflow: hidden; }
.hero-top { position: relative; z-index: 2; text-align: center; }
/* 店名 LOGO：圖檔只當遮罩，線條顏色跟著 color 走 */
.hero-brand { position: relative; z-index: 2; margin-top: clamp(12px, 2.4vh, 26px); color: var(--plum); }
.hero-logo-row { position: relative; display: block; }
.hero-logo {
  display: block; width: 100%; max-width: var(--max); margin-inline: auto; aspect-ratio: 2640 / 446;
  background: currentColor;
  -webkit-mask: url(../assets/brand/logo-banner.webp) center / contain no-repeat;
  mask: url(../assets/brand/logo-banner.webp) center / contain no-repeat;
}
/* 超過 --max 的寬螢幕：把天際線的地平線延伸到螢幕兩端 */
.hero-logo-row::before, .hero-logo-row::after { content: ""; position: absolute; top: 94.2%; height: max(1px, 1.35%); width: max(0px, 50% - var(--max) / 2 + 1px); background: currentColor; }
.hero-logo-row::before { left: 0; }
.hero-logo-row::after { right: 0; }
.hero-name { display: flex; align-items: center; justify-content: center; gap: 1.1em; margin-top: clamp(10px, 1.8vh, 18px); font-family: var(--f-serif); font-size: clamp(17px, 1.6vw, 22px); letter-spacing: .7em; text-indent: .7em; color: var(--accent-ink); }
.hero-name::before, .hero-name::after { content: ""; width: 2.2em; height: 1px; background: currentColor; opacity: .55; }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px 24px; align-items: end; margin-top: clamp(28px, 5vh, 56px); }
.hero-tag, .hero-side { grid-column: 1 / -1; }
.hero-tag {
  font-family: var(--f-serif); font-weight: 400; letter-spacing: -.01em;
  font-size: clamp(2.3rem, min(4.4vw, 7vh), 4rem); line-height: 1.12;
}
/* 雙語標音（ルビ） */
ruby { ruby-position: over; }
.hero-tag ruby, .cta-title ruby { ruby-align: center; }
.hero-tag rt, .cta-title rt { font-family: var(--f-disp); font-style: italic; font-weight: 400; font-size: max(.17em, 14px); line-height: 1.1; letter-spacing: .02em; color: var(--pink); text-align: center; padding-bottom: .22em; }
.hero-tag rt > span, .cta-title rt > span { display: inline-block; white-space: nowrap; }
.hero-tag rt > span::before, .cta-title rt > span::before { content: ""; display: inline-block; width: 1.6em; height: 1px; margin-right: .45em; vertical-align: .32em; background: currentColor; opacity: .7; }
@keyframes rubyIn { from { opacity: 0; transform: translateY(.6em); clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero-tag .ln { display: block; overflow: hidden; padding: .05em 0 .08em; margin: -.05em 0 -.08em; }
.hero-tag .ln > span { display: inline-block; }
.hero-tag .ln:nth-child(2) { padding-left: .9em; }
.hero-lede { max-width: 30em; font-size: clamp(15px, 1.2vw, 17px); color: rgba(255, 239, 236, .78); }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(14px, 2.4vh, 24px); }
.pp figcaption { margin-top: 10px; font-size: 12px; color: var(--ink-2); }

/* 今日の日記：未來兩週空房條（融入 Hero 底部） */
.diary { position: relative; z-index: 2; margin-top: auto; padding-top: clamp(18px, 3vh, 32px); padding-bottom: 14px; }
.diary-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 14px 0 12px; border-top: 1px solid rgba(46, 27, 36, .3); }
.diary-t { display: flex; align-items: baseline; gap: 12px; font-size: 13px; letter-spacing: .16em; color: var(--accent-ink); }
.diary-t b { font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; letter-spacing: .08em; color: var(--ink); }
.diary-lg { display: flex; gap: 16px; margin-left: auto; font-size: 12px; color: var(--ink-2); }
.diary-lg li { display: inline-flex; align-items: center; gap: 6px; }
.diary i { display: block; width: 9px; height: 9px; border-radius: 50%; }
.diary i.ok { background: var(--plum); }
.diary i.no { border: 1.3px solid rgba(46, 27, 36, .45); }
.diary i.wait { background: rgba(46, 27, 36, .14); }
.diary-link { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid rgba(46, 27, 36, .3); border-radius: 999px; font-size: 13px; transition: background-color .3s, color .3s, border-color .3s; }
.diary-link:hover { background: var(--plum); color: var(--pink); border-color: var(--plum); }
.diary-link .ar { width: 18px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.diary-grid { display: grid; grid-template-columns: 62px minmax(0, 1fr); }
.diary-rows, .dd { display: grid; grid-template-rows: 50px repeat(3, 22px); align-items: center; }
.diary-rows { font-size: 12px; color: var(--ink-2); }
.diary-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(46px, 1fr); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 4px; }
.diary-days::-webkit-scrollbar { display: none; }
.dd { justify-items: center; padding-bottom: 6px; border-left: 1px solid rgba(46, 27, 36, .12); border-radius: 14px; scroll-snap-align: start; transition: background-color .3s; }
.dd:hover { background: rgba(255, 255, 255, .4); }
.dd-d { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.dd-d em { display: block; margin-bottom: -1px; font-style: normal; font-size: 9.5px; letter-spacing: .04em; color: var(--accent-ink); white-space: nowrap; }
.dd-d small { font-size: 11px; color: var(--ink-3); }
.dd-d b { font-family: var(--f-disp); font-weight: 400; font-size: 24px; }
.dd.sun .dd-d small { color: var(--sun); }
.dd.sat .dd-d small { color: var(--sat); }
.dd.is-today { background: var(--plum); color: var(--pink); border-left-color: transparent; }
.dd.is-today + .dd { border-left-color: transparent; }
.dd.is-today .dd-d small, .dd.is-today .dd-d em { color: var(--pink); }
.dd.is-today i.ok { background: var(--pink); }
.dd.is-today i.no { border-color: rgba(255, 204, 204, .6); }
.diary-upd { margin-top: 4px; text-align: right; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); }


/* route（首頁接送區塊上方） */
.route { position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto; align-items: center; gap: 0 14px; padding-top: 18px; padding-bottom: 20px; border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); }
.route-stop { display: grid; grid-template-columns: auto; line-height: 1.3; }
.route-stop--r { text-align: right; }
.route-code { font-family: var(--f-ui); font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--night-mut); }
.route-nm { font-family: var(--f-serif); font-size: clamp(15px, 1.6vw, 20px); letter-spacing: .06em; }
.route-pr { font-size: 12px; color: var(--night-mut); }
.route-pr b { font-family: var(--f-mono); font-weight: 500; color: var(--night-tx); }
.route-home { position: relative; text-align: center; padding: 0 4px; }
.route-home .route-code { color: var(--pink); }
.route-dot { position: absolute; left: 50%; top: -25px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px var(--night); }
.route-track { position: relative; height: 12px; overflow: hidden; }
.route-rail { position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(255, 239, 236, .35); }
.route-car { position: absolute; inset: 0; animation: drive 7s var(--ease-io) infinite; }
.route-car::before { content: ""; position: absolute; right: 0; top: 2px; width: 30px; height: 8px; border-radius: 4px; background: var(--night-tx); box-shadow: inset -7px 0 0 var(--pink); }
.route-track--r .route-car { animation-name: driveR; animation-delay: -3.5s; }
.route-track--r .route-car::before { right: auto; left: 0; box-shadow: inset 7px 0 0 var(--pink); }
@keyframes drive { 0% { transform: translateX(-102%); } 55%, 100% { transform: translateX(0); } }
@keyframes driveR { 0% { transform: translateX(102%); } 55%, 100% { transform: translateX(0); } }
.is-paused .route-car { animation-play-state: paused; }

/* hero intro（首次進站時等載入畫面收起後才播放：--intro 由 .intro 設定） */
:root { --intro: 0s; }
.intro { --intro: 1.05s; }
/* LOGO 從中央往兩側畫開，像地平線展開 */
.js .hero-logo { animation: logoIn 1.5s var(--ease-io) both var(--intro); }
.js .hero-logo-row::before, .js .hero-logo-row::after { animation: fadeOnly .8s ease both calc(var(--intro) + 1.2s); }
@keyframes logoIn { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
.js .hero-tag .ln > span { animation: rise 1.1s var(--ease) both calc(var(--intro) + .55s); }
.js .hero-tag .ln:nth-child(2) > span { animation-delay: calc(var(--intro) + .65s); }
.js .hero-tag rt > span { animation: rubyIn .9s var(--ease) both calc(var(--intro) + 1.1s); }
.js .hero-tag .ln:nth-child(2) rt > span { animation-delay: calc(var(--intro) + 1.25s); }
.js .hero-top .kicker, .js .hero-name, .js .hero-lede, .js .hero-act, .js .diary { animation: fade 1s var(--ease) both var(--intro); }
.js .hero-name { animation-delay: calc(var(--intro) + .45s); }
.js .hero-lede { animation-delay: calc(var(--intro) + .7s); }
.js .hero-act { animation-delay: calc(var(--intro) + .8s); }
.js .diary { animation-delay: calc(var(--intro) + .9s); }
@keyframes wordIn { from { transform: translateY(105%); } }
@keyframes rise { from { transform: translateY(108%); } }
@keyframes fade { from { opacity: 0; transform: translateY(18px); } }
@keyframes fadeOnly { from { opacity: 0; } }
/* 萬一 JS 沒執行，載入畫面 2.4 秒後自動收起 */
.intro .loader { animation: loaderAuto .9s var(--ease-io) 2.4s forwards; }
.intro .loader.is-done { animation: none; }
@keyframes loaderAuto { to { transform: translateY(-100%); visibility: hidden; } }

@media (min-width: 900px) {
  .hero-tag { grid-column: 1 / span 6; }
  .hero-tag .ln { display: inline-block; }
  .hero-tag .ln:nth-child(2) { padding-left: 0; }
  .hero-side { grid-column: 8 / -1; }
}
/* 手機：改用方形 LOGO（標誌＋店名），天際線橫幅太細 */
@media (max-width: 639.98px) {
  .hero-logo { width: min(68vw, 280px); aspect-ratio: 1235 / 928; -webkit-mask-image: url(../assets/brand/logo-square.webp); mask-image: url(../assets/brand/logo-square.webp); }
  .hero-logo-row::before, .hero-logo-row::after { display: none; }
}
@media (max-width: 899px) {
  .hero { min-height: 0; padding-top: calc(var(--hdr) + 28px); }
  .hero-act .btn { flex: 1 1 auto; padding: 0 16px; }
  .route { grid-template-columns: auto minmax(16px, 1fr) auto minmax(16px, 1fr) auto; gap: 0 8px; }
  .route-pr { display: none; }
}

/* ==========================================================================
   Intro（首頁首次進站：印章＋進度線，約 1 秒）
   ========================================================================== */
.loader { display: none; }
.intro .loader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--paper); transition: transform .9s var(--ease-io), visibility 0s .9s; }
.intro .loader.is-done { transform: translateY(-100%); visibility: hidden; }
.loader-in { display: grid; justify-items: center; gap: 22px; }
.loader .seal { width: 52px; height: 52px; font-size: 16px; }
.loader-line { position: relative; width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.loader-line i { position: absolute; inset: 0; background: var(--blush); transform: scaleX(0); transform-origin: left; }
.loader-n { font-family: var(--f-disp); font-size: 22px; color: var(--blush); min-width: 3em; text-align: center; }
/* ==========================================================================
   Station board（駅名標）— 取代跑馬燈
   ========================================================================== */
.eki { --yama: #E8798F; position: relative; background: #FFFCFB; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.eki-board { position: relative; padding-top: clamp(28px, 4vw, 44px); padding-bottom: 18px; }
.eki-top { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px clamp(16px, 3vw, 40px); }
.eki-num { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; border: 4px solid var(--yama); border-radius: 8px; background: #fff; font-family: var(--f-mono); line-height: 1; color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.eki-num span { font-size: 11px; letter-spacing: .1em; }
.eki-num b { font-size: 22px; font-weight: 500; margin-top: 2px; }
.eki-name { text-align: center; line-height: 1.1; }
.eki-kana { font-size: clamp(12px, 1.3vw, 15px); letter-spacing: .5em; color: var(--ink-2); }
.eki-kanji { margin: 4px 0 6px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(44px, 8vw, 104px); letter-spacing: .14em; text-indent: .14em; line-height: 1; }
.eki-roma { font-family: var(--f-disp); font-size: clamp(18px, 2.2vw, 28px); letter-spacing: .04em; color: var(--ink-2); }
.eki-ward { justify-self: end; font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.eki-line { position: relative; height: 14px; margin-top: clamp(18px, 2.4vw, 28px); overflow: hidden; }
.eki-bar { position: absolute; inset: 3px 0; background: var(--yama); transform-origin: center; }
.eki-train { position: absolute; top: 0; left: 50%; width: 68px; height: 14px; margin-left: -34px; border-radius: 7px 7px 3px 3px; background: #fff; box-shadow: 0 0 0 1.5px var(--ink), inset 0 -4px 0 var(--yama); }
.eki-train::before { content: ""; position: absolute; left: 8px; right: 8px; top: 3px; height: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 9px, transparent 9px 13px); opacity: .85; }
.eki-nb { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; margin-top: 12px; }
.eki-prev, .eki-next { display: flex; align-items: center; gap: 10px; }
.eki-next { justify-content: flex-end; text-align: right; }
.eki-prev b, .eki-next b { display: block; font-family: var(--f-serif); font-weight: 400; font-size: clamp(16px, 1.8vw, 22px); line-height: 1.2; }
.eki-prev small, .eki-next small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--ink-3); }
.eki-arr { font-size: 20px; line-height: 1; color: var(--ink-2); }
.eki-mid { text-align: center; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.eki-mid span { color: var(--ink-3); font-size: 11.5px; }
/* 進站動畫：綠色線條展開，列車從左側滑入並停在站名下方 */
.js .eki .eki-bar { transform: scaleX(0); }
.js .eki .eki-train { transform: translateX(-60vw); opacity: 0; }
.js .eki .eki-kanji, .js .eki .eki-kana, .js .eki .eki-roma { opacity: 0; transform: translateY(10px); }
.js .eki.is-arrive .eki-bar { transform: scaleX(1); transition: transform 1.1s var(--ease-io); }
.js .eki.is-arrive .eki-train { transform: none; opacity: 1; transition: transform 1.8s cubic-bezier(.15, .7, .2, 1) .35s, opacity .3s .35s; }
.js .eki.is-arrive .eki-kanji, .js .eki.is-arrive .eki-kana, .js .eki.is-arrive .eki-roma { opacity: 1; transform: none; transition: opacity .8s var(--ease) 1.2s, transform .9s var(--ease) 1.2s; }
.js .eki.is-arrive .eki-kanji { transition-delay: 1.3s; }
.js .eki.is-arrive .eki-roma { transition-delay: 1.4s; }
@media (max-width: 719px) {
  .eki-top { grid-template-columns: auto 1fr; }
  .eki-ward { display: none; }
  .eki-name { text-align: left; }
  .eki-kanji { letter-spacing: .06em; text-indent: 0; }
  .eki-kana { letter-spacing: .3em; }
  .eki-nb { grid-template-columns: 1fr 1fr; }
  .eki-mid { grid-column: 1 / -1; grid-row: 2; text-align: left; padding-top: 10px; border-top: 1px solid var(--line); }
}

/* 404 */
.lost { min-height: 72vh; display: flex; align-items: center; padding: calc(var(--hdr) + 6vh) 0 10vh; }
.lost .eki { width: 100%; }
.lost .eki-num b { font-size: 17px; }
.lost a.eki-prev:hover b, .lost a.eki-next:hover b { color: var(--accent-ink); }

/* 傍點（ぼうてん）：朱色芝麻點強調，取代底線 */
.bt { position: relative; display: inline-block; }
.bt::before { content: ""; position: absolute; left: 50%; top: .09em; width: .12em; height: .12em; margin-left: -.06em; border-radius: 0 50% 50% 50%; background: var(--blush); transform: rotate(45deg); }
.js [data-reveal] .bt::before { transform: rotate(45deg) scale(0); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) .5s; }
.js [data-reveal] .bt + .bt::before { transition-delay: .62s; }
.js [data-reveal].is-in .bt::before { transform: rotate(45deg) scale(1); }

/* ==========================================================================
   從西日暮里出發：大字地點清單＋立體路線圖
   ========================================================================== */
.near { position: relative; padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.near-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: start; }
.near-l, .near-r { grid-column: 1 / -1; }
.near-h { margin-top: 18px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.4; }
.near-list { margin-top: 28px; border-top: 1px solid var(--line); }
.near-i { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; width: 100%; padding: 8px 0 10px; text-align: left; border-bottom: 1px solid var(--line); font-family: var(--f-serif); font-weight: 400; font-size: clamp(28px, 3.8vw, 52px); line-height: 1.2; color: var(--accent-ink); transition: color .35s var(--ease), padding .5s var(--ease); }
.near-i small { font-family: var(--f-sans); font-size: 13px; letter-spacing: .04em; color: var(--ink-3); white-space: nowrap; }
.near-i:hover, .near-i.is-on, .near-i:focus-visible { color: var(--plum); padding-left: 14px; }
.near-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.near-map { position: relative; }
.near-map svg { width: 100%; height: auto; overflow: visible; }
.mp-grid { stroke: rgba(46, 27, 36, .09); stroke-width: 1; fill: none; }
.mp-land { fill: rgba(255, 252, 251, .7); stroke: rgba(46, 27, 36, .12); }
.mp-loop { fill: none; stroke: #E8798F; stroke-width: 4; stroke-linejoin: round; }
.mp-loop-sh { fill: none; stroke: rgba(46, 27, 36, .12); stroke-width: 4; }
.mp-chiyoda { fill: none; stroke: #8E3B4F; stroke-width: 2.5; stroke-dasharray: 7 5; }
.mp-sky { fill: none; stroke: var(--blush); stroke-width: 2; stroke-dasharray: 3 5; }
.mp-st { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.mp-pin { cursor: default; transition: opacity .35s; }
.mp-pin line { stroke: var(--blush); stroke-width: 1.2; }
.mp-pin circle { fill: var(--blush); transition: r .35s var(--ease), fill .35s; }
.mp-pin text.r { text-anchor: start; }
.mp-pin text.l { text-anchor: end; }
.mp-pin text { font-family: var(--f-sans); font-size: 13px; fill: var(--accent-ink); text-anchor: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.mp-pin.is-on circle { fill: var(--plum); r: 8; }
.mp-pin.is-on text { fill: var(--plum); font-weight: 600; }
.near-map.has-on .mp-pin:not(.is-on):not(.mp-home) { opacity: .35; }
.mp-home rect { fill: var(--plum); }
.mp-home text { text-anchor: middle; font-family: var(--f-sans); }
.mp-home circle { fill: var(--plum); }
.mp-home text.h1 { fill: var(--pink); font-family: var(--f-ui); font-size: 10px; letter-spacing: .14em; font-weight: 500; }
.mp-home text.h2 { fill: var(--night-tx); font-size: 13px; font-weight: 500; }
.mp-home line { stroke: var(--plum); stroke-width: 1.5; }
.mp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.mp-legend i { display: inline-block; width: 18px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 3px solid #E8798F; }
.mp-legend i.c { border-top: 2px dashed #8E3B4F; }
.mp-legend i.s { border-top: 2px dotted var(--blush); }
@media (min-width: 960px) {
  .near-l { grid-column: 1 / span 5; }
  .near-r { grid-column: 6 / span 7; position: sticky; top: calc(var(--hdr) + 24px); }
}

/* ==========================================================================
   Section head
   ========================================================================== */
.sec { position: relative; padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); }
.sh { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px 24px; align-items: end; padding-bottom: clamp(28px, 4vw, 52px); margin-bottom: clamp(36px, 5vw, 72px); border-bottom: 1px solid var(--ink); }
.sh-no { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--ink-3); }
.sh-no::before { content: "No."; }
.sh-title { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .28em; line-height: .95; }
.sh-k { font-family: var(--f-serif); font-weight: 400; font-size: clamp(4.2rem, 13vw, 10rem); letter-spacing: -.03em; }
.sh-en { font-family: var(--f-disp); font-style: italic; font-size: clamp(2rem, 5vw, 4.4rem); color: var(--ink-3); }
.sh-lede { grid-column: 1 / -1; max-width: 34em; color: var(--ink-2); }
.sh-jp { position: absolute; right: 0; top: 4px; writing-mode: vertical-rl; font-family: var(--f-serif); font-size: 13px; letter-spacing: .5em; color: var(--ink-3); }
@media (min-width: 960px) {
  .sh-title { grid-column: 1 / span 7; }
  .sh-lede { grid-column: 8 / span 5; padding-bottom: 10px; padding-right: 32px; }
}
.sh--dark { border-bottom-color: rgba(255, 239, 236, .5); }
.sh--dark .sh-no, .sh--dark .sh-en, .sh--dark .sh-jp { color: var(--night-mut); }
.sh--dark .sh-lede { color: rgba(255, 239, 236, .82); }

/* ==========================================================================
   Stays
   ========================================================================== */
.stay-list { display: grid; gap: clamp(56px, 8vw, 120px); }
.stay { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; align-items: start; }
.stay-vis { grid-column: 1 / -1; position: relative; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; padding: 48px 0 44px; min-height: 280px; }
.stay-vis::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; opacity: .55; }
.stay-code { position: absolute; left: 16px; top: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-3); }
.stay-cap { position: absolute; right: 16px; bottom: 12px; font-size: 11px; letter-spacing: .1em; color: var(--ink-3); }
.stay-vis .iso { position: relative; width: min(74%, 360px); }
.stay-vis .iso svg { width: 100%; height: auto; overflow: visible; }
.stay-vis .photos { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.stay-vis .photos img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }

.stay-info { grid-column: 1 / -1; }
.stay-no { display: flex; gap: 14px; align-items: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: var(--ink-3); }
.stay-no span:first-child { color: var(--accent-ink); }
.stay-name { margin-top: 10px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.01em; }
.stay-name em { font-family: var(--f-disp); font-style: italic; font-weight: 400; margin-left: .12em; }
.stay-specs { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 16px; font-size: 14px; }
.stay-specs span { padding: 0 14px; border-left: 1px solid var(--line-2); }
.stay-specs span:first-child { padding-left: 0; border: 0; }
.stay-lede { margin-top: 16px; max-width: 30em; color: var(--ink-2); }
.stay-price { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 24px; margin-top: 26px; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.pr-main { display: flex; align-items: baseline; gap: 4px; line-height: 1; }
.pr-main .cur { font-family: var(--f-disp); font-size: 28px; }
.pr-main b { font-family: var(--f-disp); font-weight: 400; font-size: clamp(52px, 6vw, 72px); letter-spacing: -.02em; }
.pr-main .unit { font-size: 14px; color: var(--ink-3); margin-left: 4px; }
.pr-sub { display: grid; gap: 2px; padding-bottom: 6px; font-size: 13px; color: var(--ink-2); }
.pr-sub b { font-family: var(--f-mono); font-weight: 500; color: var(--ink); }

.floors { margin-top: 22px; border-top: 1px solid var(--line); }
.floors li { display: grid; grid-template-columns: 56px 1fr; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: default; transition: background-color .3s; }
.floors li b { font-family: var(--f-disp); font-weight: 400; font-size: 28px; line-height: 1; }
.floors li span { font-size: 14px; color: var(--ink-2); }
.floors li.is-hl b { color: var(--accent); }

.amen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.amen li { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 2px; font-size: 12.5px; color: var(--ink-2); background: rgba(255, 250, 248, .5); }

.notice { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; background: var(--card); border-left: 2px solid var(--accent); font-size: 13.5px; color: var(--ink-2); }
.notice svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.strip { margin-top: 26px; }
.strip-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--ink-3); letter-spacing: .06em; }
.strip-h b { color: var(--ink); font-weight: 600; }
.strip-bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; height: 28px; margin-top: 8px; }
.strip-bars i { display: block; background: var(--ink); border-radius: 1px; transform-origin: bottom; }
.strip-bars i.b { background: repeating-linear-gradient(135deg, var(--line-2) 0 1.5px, transparent 1.5px 4px); height: 100%; }
.strip-bars i.w { opacity: .8; }
.js .stay:not(.is-in) .strip-bars i { transform: scaleY(.15); }
.strip-bars i { transition: transform .6s var(--ease); transition-delay: calc(var(--i) * 14ms + .25s); }
.strip-ax { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); letter-spacing: .06em; }

.stay-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ext { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }

@media (min-width: 900px) {
  .stay-vis { grid-column: 1 / span 6; position: sticky; top: calc(var(--hdr) + 24px); min-height: min(calc(100vh - var(--hdr) - 48px), 720px); padding: 56px 0 48px; }
  .stay-vis .iso { width: min(74%, 420px); }
  .stay-vis .iso svg { max-height: min(calc(100vh - var(--hdr) - 160px), 620px); }
  .stay-info { grid-column: 8 / span 5; padding-top: 8px; }
  .stay:nth-child(even) .stay-vis { grid-column: 7 / span 6; grid-row: 1; }
  .stay:nth-child(even) .stay-info { grid-column: 1 / span 5; grid-row: 1; }
}

/* iso drawing */
.iso polygon, .iso path, .iso line { vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.iso .fl { transition: transform 1.2s var(--ease); transform: translateY(0); }
.iso.is-open .fl { transform: translateY(var(--o)); }
.iso .slab.t { fill: #F6E9E6; stroke: var(--ink); stroke-width: 1; }
.iso .slab.l { fill: #DCC5C2; stroke: var(--ink); stroke-width: 1; }
.iso .slab.r { fill: #E8D6D3; stroke: var(--ink); stroke-width: 1; }
.iso .on .slab.t { fill: #FFE6E6; }
.iso .on .slab.l { fill: var(--accent); stroke: var(--accent-ink); }
.iso .on .slab.r { fill: #A83E5B; stroke: var(--accent-ink); }
.iso .wall { fill: rgba(255, 250, 248, .72); stroke: var(--ink); stroke-width: .9; }
.iso .ghost.t { fill: rgba(255, 239, 236, .78); stroke: var(--ink); stroke-width: .9; }
.iso .ghost.l { fill: rgba(236, 214, 210, .82); stroke: var(--ink); stroke-width: .9; }
.iso .ghost.r { fill: rgba(255, 228, 226, .82); stroke: var(--ink); stroke-width: .9; }
.iso .win { fill: none; stroke: var(--ink); stroke-width: .8; opacity: .55; }
.iso .pt.t { fill: #FFFCFB; stroke: var(--ink); stroke-width: .8; }
.iso .pt.l, .iso .pt.r { fill: #DCC5C2; stroke: var(--ink); stroke-width: .8; }
.iso .bed.t { fill: #fff; stroke: var(--ink); stroke-width: .8; }
.iso .bed.l { fill: #E5D2CF; stroke: var(--ink); stroke-width: .8; }
.iso .bed.r { fill: #EFE0DD; stroke: var(--ink); stroke-width: .8; }
.iso .pil.t { fill: #fff; stroke: var(--ink); stroke-width: .7; }
.iso .pil.l, .iso .pil.r { fill: #EFE0DD; stroke: var(--ink); stroke-width: .7; }
.iso .blk.t { fill: #FFF9F8; stroke: var(--ink); stroke-width: .8; }
.iso .blk.l { fill: #D6BEBB; stroke: var(--ink); stroke-width: .8; }
.iso .blk.r { fill: #E5D2CF; stroke: var(--ink); stroke-width: .8; }
.iso .wet.t { fill: #DCE6EC; stroke: var(--ink); stroke-width: .8; }
.iso .wet.l { fill: #B9C8D1; stroke: var(--ink); stroke-width: .8; }
.iso .wet.r { fill: #C9D5DC; stroke: var(--ink); stroke-width: .8; }
.iso .rail { fill: none; stroke: var(--ink); stroke-width: .8; }
.iso .lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; fill: var(--ink-3); }
.iso .on .lbl { fill: var(--accent-ink); font-weight: 500; }
.iso .hl .slab.t { fill: #FFD0D8; }

/* ==========================================================================
   Access
   ========================================================================== */
.access { display: grid; gap: 14px 40px; margin-top: clamp(64px, 9vw, 120px); padding: 28px; background: var(--card); border: 1px solid var(--line); }
.access-h { display: flex; align-items: center; gap: 12px; font-family: var(--f-serif); font-weight: 400; font-size: 20px; }
.access-badge { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 2px; background: var(--ink); color: var(--paper); font-family: var(--f-sans); font-size: 14px; letter-spacing: .1em; }
.access-lines { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; color: var(--ink-2); }
.ln-dot { width: 10px; height: 10px; border-radius: 50%; margin-left: 6px; }
.ln-dot:first-child { margin-left: 0; }
.ln-jy { background: #E8798F; }
.ln-c { background: #8E3B4F; }
.ln-nt { background: #B07AA1; }
.access-go { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); }
.access-go li { position: relative; display: flex; flex-direction: column; padding: 14px 14px 4px 0; }
.access-go b { font-family: var(--f-serif); font-weight: 400; font-size: 18px; }
.access-go span { font-size: 12.5px; color: var(--ink-3); }
@media (min-width: 960px) {
  .access { grid-template-columns: 260px 1fr; align-items: center; padding: 32px 36px; }
  .access-lines { grid-column: 2; grid-row: 1; }
  .access-go { grid-column: 1 / -1; grid-template-columns: repeat(5, 1fr); }
  .access-go li + li { padding-left: 18px; border-left: 1px solid var(--line); }
}

/* ==========================================================================
   Planner
   ========================================================================== */
.planner { background: linear-gradient(to bottom, transparent, rgba(255, 228, 226, .55) 18%, rgba(255, 228, 226, .55) 82%, transparent); }
.pl { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1060px) {
  .pl { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; }
  .pl-side { position: sticky; top: calc(var(--hdr) + 20px); }
}
.step + .step { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }
.step-h { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); }
.step-h small { font-family: var(--f-sans); font-weight: 400; font-size: 13px; color: var(--ink-3); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ink); font-family: var(--f-disp); font-size: 20px; font-weight: 400; line-height: 1; }

/* tabs */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.tab { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 14px 12px; text-align: left; border: 1px solid var(--line-2); border-radius: 2px; background: var(--card); transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s; }
.tab:hover { border-color: var(--ink); }
.tab-n { font-family: var(--f-serif); font-weight: 400; font-size: 17px; line-height: 1.3; }
.tab-p { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.tab-f { font-size: 11.5px; color: var(--ink-3); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tab[aria-selected="true"] .tab-p, .tab[aria-selected="true"] .tab-f { color: rgba(255, 239, 236, .7); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; right: 12px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* calendar */
.cal { background: var(--card); border: 1px solid var(--line); padding: 18px clamp(12px, 2vw, 24px) 16px; }
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal-nav { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: background-color .3s, color .3s, border-color .3s; }
.cal-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cal-nav:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-hint { font-size: 14px; color: var(--ink-2); text-align: center; }
.cal-hint b { color: var(--accent-ink); font-weight: 600; }
.cal-months { display: grid; gap: 28px 40px; margin-top: 10px; }
@media (min-width: 760px) { .cal-months { grid-template-columns: 1fr 1fr; } }
.cal-month.slide-l { animation: calL .45s var(--ease); }
.cal-month.slide-r { animation: calR .45s var(--ease); }
@keyframes calL { from { opacity: 0; transform: translateX(24px); } }
@keyframes calR { from { opacity: 0; transform: translateX(-24px); } }
.cm-head { display: flex; align-items: baseline; gap: 10px; padding: 8px 2px 12px; border-bottom: 1px solid var(--line); }
.cm-num { font-family: var(--f-disp); font-size: 44px; line-height: .9; }
.cm-name { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; color: var(--ink-3); }
.cm-name b { color: var(--ink); font-weight: 500; }
.cm-free { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.cm-free b { font-family: var(--f-mono); color: var(--ink); font-weight: 500; }
.cm-dow, .cm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cm-dow { padding: 10px 0 4px; font-size: 12px; text-align: center; color: var(--ink-3); }
.cm-dow span:first-child { color: var(--sun); }
.cm-dow span:last-child { color: var(--sat); }
.cm-grid { row-gap: 4px; }

.day { position: relative; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-variant-numeric: tabular-nums; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.day::before { content: ""; position: absolute; inset: 0 0; z-index: -2; }
.day::after { content: ""; position: absolute; inset: 3px; z-index: -1; border-radius: 2px; transition: background-color .2s, box-shadow .2s; }
.day-n { font-family: var(--f-mono); font-size: 15px; line-height: 1.1; }
.day-s { font-size: 9.5px; line-height: 1; letter-spacing: .06em; height: 10px; color: var(--ink-3); }
.day.sun .day-n { color: var(--sun); }
.day.sat .day-n { color: var(--sat); }
.day.is-free:hover::after { box-shadow: inset 0 0 0 1px var(--ink); }
.day.is-today .day-s::before { content: "今天"; color: var(--ink); }
.day.is-booked { cursor: not-allowed; }
.day.is-booked::after { background: repeating-linear-gradient(135deg, rgba(46, 27, 36, .16) 0 1px, transparent 1px 5px); }
.day.is-booked .day-n { color: var(--ink-3) !important; text-decoration: line-through; text-decoration-thickness: 1px; }
.day.is-booked .day-s::before { content: "滿"; }
.day.is-past { opacity: .28; cursor: default; }
.day.is-past .day-n { color: var(--ink-3) !important; }
.day.is-out-ok { cursor: pointer; }
.day.is-out-ok:hover::after { box-shadow: inset 0 0 0 1.5px var(--accent); }
.day.is-unreach:not(.is-booked) { opacity: .35; }
.day.is-blank { pointer-events: none; }
.day.is-between::before { background: var(--accent-wash); }
.day.is-in::before { background: linear-gradient(90deg, transparent 50%, var(--accent-wash) 50%); }
.day.is-out::before { background: linear-gradient(90deg, var(--accent-wash) 50%, transparent 50%); }
.day.is-in.is-solo::before { background: none; }
.day.is-in::after, .day.is-out::after { background: var(--accent); box-shadow: none; }
.day.is-in .day-n, .day.is-out .day-n { color: #fff !important; text-decoration: none; }
.day.is-in .day-s, .day.is-out .day-s { color: rgba(255, 255, 255, .85); }
.day.is-in .day-s::before { content: "入住"; }
.day.is-out .day-s::before { content: "退房"; }
.day.is-preview.is-between::before { background: repeating-linear-gradient(90deg, var(--accent-wash) 0 4px, transparent 4px 6px); }
.day.is-preview.is-out::after { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.day.is-preview.is-out::before { background: linear-gradient(90deg, rgba(255, 225, 225, .6) 50%, transparent 50%); }
.day.is-preview.is-out .day-n { color: var(--accent-ink) !important; }
.day.is-preview.is-out .day-s { color: var(--accent-ink); }
.day.is-in.stamp-in::after { animation: stampIn .5s var(--ease); }
@keyframes stampIn { 0% { transform: scale(1.5) rotate(-8deg); opacity: 0; } 60% { transform: scale(.94); opacity: 1; } }

.cal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 16px; height: 16px; border-radius: 2px; border: 1px solid var(--line-2); background: var(--card); }
.lg-booked { background: repeating-linear-gradient(135deg, rgba(46, 27, 36, .3) 0 1px, transparent 1px 4px); }
.lg-sel { background: var(--accent); border-color: var(--accent); }
.cal-upd { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em; }

.sel { margin-top: 18px; }
.sel-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 16px 18px; border: 1px solid var(--ink); border-radius: 2px; background: var(--card); }
.sel-d { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.sel-d small { display: block; font-size: 11px; letter-spacing: .14em; color: var(--ink-3); }
.sel-d b { font-family: var(--f-serif); font-weight: 400; font-size: 19px; }
.sel-d .arr { color: var(--ink-3); }
.sel-n { font-family: var(--f-mono); font-size: 13px; padding: 4px 10px; background: var(--ink); color: var(--paper); border-radius: 2px; }
.sel-p { margin-left: auto; font-family: var(--f-mono); font-size: 15px; }
.sel-x { font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.sel-x:hover { color: var(--ink); }
.sel-msg { padding: 14px 16px; border-left: 2px solid var(--ink-3); background: rgba(255, 250, 248, .6); font-size: 14px; color: var(--ink-2); }
.sel-msg--warn { border-left-color: var(--accent); color: var(--ink); }

.alt { margin-top: 12px; }
.alt-h { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.alt-l { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; background: var(--card); transition: border-color .3s, background-color .3s, color .3s; }
.chip b { font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; }
.chip:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip.is-no { opacity: .5; pointer-events: none; text-decoration: line-through; }

/* options */
.opts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.opt-tx { display: flex; flex-direction: column; line-height: 1.45; }
.opt-tx b { font-weight: 600; font-size: 15px; }
.opt-tx small { font-size: 12.5px; color: var(--ink-3); }
.opt--sub { margin-top: 14px; border-top: 1px solid var(--line); }
.opt--seats { margin-top: 12px; border-top: 1px solid var(--line); }
.stepper { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--line-2); border-radius: 2px; background: var(--card); }
.stepper button { width: 42px; height: 42px; font-size: 18px; line-height: 1; transition: background-color .2s; }
.stepper button:hover:not(:disabled) { background: var(--paper-2); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 32px; text-align: center; font-family: var(--f-mono); font-size: 15px; }

.addons { display: grid; gap: 12px; margin-top: 24px; }
.addon { border: 1px solid var(--line-2); border-radius: 2px; background: var(--card); transition: border-color .3s, box-shadow .3s; }
.addon.is-on { border-color: var(--ink); box-shadow: 0 18px 40px -30px rgba(46, 27, 36, .5); }
.addon-h { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; }
.addon-h--static { cursor: default; }
.addon-t { display: flex; flex-direction: column; line-height: 1.4; }
.addon-t b { font-family: var(--f-serif); font-weight: 400; font-size: 18px; }
.addon-t small { font-size: 12.5px; color: var(--ink-3); }
.addon-pr { margin-left: auto; font-family: var(--f-mono); font-size: 14px; white-space: nowrap; }
.addon-b { padding: 0 18px 18px; }
.addon[data-transfer]:not(.is-on) .addon-b { display: none; }
.addon.is-on .addon-b { animation: fade .45s var(--ease); }

.sw { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--paper-3); cursor: pointer; transition: background-color .3s var(--ease); }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .35s var(--ease); }
.sw:checked { background: var(--accent); }
.sw:checked::after { transform: translateX(18px); }

.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--paper); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 1px; cursor: pointer; transition: background-color .3s, color .3s; white-space: nowrap; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.fields { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fields--2 { grid-template-columns: 1fr 2fr; } }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-3); letter-spacing: .06em; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 2px; background: #FFFDFC; color: var(--ink); font-size: 15px; letter-spacing: 0; transition: border-color .2s; }
.fld textarea { resize: vertical; min-height: 44px; line-height: 1.6; }
.fld select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%231C1B18' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: var(--ink-3); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(194, 74, 106, .18); }
.fld input::placeholder, .fld textarea::placeholder { color: #B49FA8; }
.chk { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.warn { display: flex; gap: 8px; margin-top: 12px; padding: 10px 12px; background: var(--accent-wash); border-radius: 2px; font-size: 13px; color: var(--accent-ink); }
.warn::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; margin-top: 1px; }

.ch-list { display: grid; gap: 10px; }
.ch-item { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 2px; background: #FFFDFC; animation: fade .4s var(--ease); }
@media (min-width: 640px) { .ch-item { grid-template-columns: 160px 1fr auto; align-items: end; } }
.ch-item .fld { margin: 0; }
.ch-rm { height: 44px; padding: 0 12px; font-size: 13px; color: var(--ink-3); border: 1px solid transparent; border-radius: 2px; }
.ch-rm:hover { color: var(--accent-ink); border-color: var(--accent-soft); }
.ch-item .warn { grid-column: 1 / -1; margin: 0; }
.ch-add { margin-top: 12px; }
.ch-empty { font-size: 13.5px; color: var(--ink-3); padding: 4px 0 0; }
.fine { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }
.fine b { color: var(--ink-2); }

/* receipt */
.rc { position: relative; padding: 28px 24px 22px; background: #FFFCFB; box-shadow: 0 1px 0 rgba(46, 27, 36, .06), 0 40px 70px -40px rgba(46, 27, 36, .45); font-family: var(--f-mono); font-size: 13px; }
.rc::before, .rc::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: radial-gradient(circle at 7px 0, var(--paper-2) 5px, transparent 5.5px) 0 0 / 14px 10px repeat-x; }
.rc::before { top: 0; }
.rc::after { bottom: 0; transform: rotate(180deg); }
.rc-head { text-align: center; padding-bottom: 16px; border-bottom: 1px dashed var(--line-2); }
.rc-brand { display: block; font-family: var(--f-serif); font-weight: 400; font-size: 15px; letter-spacing: .14em; }
.rc-brand i { display: block; font-family: var(--f-mono); font-style: normal; font-weight: 400; font-size: 10px; letter-spacing: .3em; color: var(--ink-3); }
.rc-title { margin-top: 10px; font-family: var(--f-sans); font-weight: 600; font-size: 13px; letter-spacing: .3em; }
.rc-meta { display: block; margin-top: 4px; font-size: 10.5px; color: var(--ink-3); letter-spacing: .06em; }
.rc-body { padding: 8px 0; min-height: 120px; }
.rc-empty { padding: 26px 0 18px; text-align: center; font-family: var(--f-sans); color: var(--ink-3); font-size: 13.5px; line-height: 1.7; }
.rc-empty svg { width: 48px; height: 48px; margin: 0 auto 10px; fill: none; stroke: var(--ink-3); stroke-width: 1.2; }
.rc-g { padding: 12px 0; border-bottom: 1px dashed var(--line-2); animation: fade .35s var(--ease); }
.rc-gh { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .2em; color: var(--ink-3); }
.rc-it { margin-top: 6px; }
.rc-t { font-family: var(--f-sans); font-weight: 600; font-size: 14px; }
.rc-s { font-size: 11.5px; color: var(--ink-3); }
.rc-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 2px; }
.rc-row span { color: var(--ink-2); font-family: var(--f-sans); font-size: 12.5px; }
.rc-row b { font-weight: 500; white-space: nowrap; }
.rc-w { margin-top: 4px; font-family: var(--f-sans); font-size: 11.5px; color: var(--accent-ink); }
.rc-total { padding: 14px 0 16px; }
.rc-row--big { align-items: baseline; }
.rc-row--big span { color: var(--ink); font-weight: 600; }
.rc-row--big b { font-size: 24px; font-weight: 500; }
.rc-note { margin-top: 12px; font-family: var(--f-sans); font-size: 11.5px; color: var(--ink-3); text-align: center; }
.rc-code { height: 34px; margin: 16px 18px 6px; opacity: .85; background:
  repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px, var(--ink) 3px 5px, transparent 5px 6px, var(--ink) 6px 7px, transparent 7px 10px),
  repeating-linear-gradient(90deg, transparent 0 13px, #FFFCFB 13px 15px); }

/* ==========================================================================
   Ride (dark)
   ========================================================================== */
.ride { background: var(--night); color: var(--night-tx); }
.ride ::selection { background: var(--hi); color: var(--night); }
.pax { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 24px; }
.pax-l { font-size: 13px; letter-spacing: .14em; color: var(--night-mut); }
.pax label, .seg--dark label { position: relative; }
.pax input, .seg--dark input { position: absolute; opacity: 0; pointer-events: none; }
.pax span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 1px solid var(--night-line); border-radius: 999px; font-size: 14px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.pax input:checked + span { background: var(--hi); border-color: var(--hi); color: var(--night); font-weight: 600; }
.pax input:focus-visible + span, .seg--dark input:focus-visible + span { outline: 2px solid var(--hi); outline-offset: 2px; }
.seg--dark { background: var(--night); border-color: var(--night-line); }
.seg--dark span { color: var(--night-mut); }
.seg--dark input:checked + span { background: var(--night-tx); color: var(--night); }

.boards-hint { margin: -8px 0 16px; font-size: 12.5px; color: var(--night-mut); letter-spacing: .06em; }
.boards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; }
.boards-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; grid-template-rows: auto 1fr; }
@media (min-width: 1060px) { .boards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.board { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 3px; padding: 22px clamp(16px, 2vw, 26px) 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.board--combo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; background: linear-gradient(135deg, #43263A, var(--night-2) 60%); }
.board--combo > div:first-child { flex: 1 1 260px; }
.combo-p { margin-top: 10px; max-width: 26em; font-size: 13.5px; color: rgba(255, 239, 236, .78); }
.combo-r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.combo-v { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 22px; color: var(--hi); }
.combo-v .flap { font-size: 22px; }
.combo-u { font-size: 12px; color: var(--night-mut); }
.board-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; padding-bottom: 16px; }
.board-k { font-family: var(--f-serif); font-size: 13px; letter-spacing: .2em; color: var(--hi); }
.board-k span { margin-left: 10px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; color: var(--night-mut); }
.board-t { margin-top: 4px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); }
.board-t small { margin-left: 10px; font-family: var(--f-sans); font-weight: 400; font-size: 13px; color: var(--night-mut); }
.board-cols { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--night-mut); }
.board-cols span:not(:first-child) { text-align: right; padding-right: 40px; }
.board-cols--tf { grid-template-columns: minmax(0, 1fr) 168px 168px; }
.board-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; padding: 10px 0; border-bottom: 1px solid var(--night-line); }
.board-rows li.bd-row--tf { grid-template-columns: minmax(0, 1fr) 168px 168px; }
.bd-dest { display: flex; flex-direction: column; min-width: 0; }
.bd-dest b { font-weight: 600; font-size: 16px; letter-spacing: .04em; }
.bd-dest small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--night-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-p { position: relative; display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 3px; color: var(--night-tx); transition: background-color .3s; }
.bd-p:hover { background: rgba(255, 204, 204, .08); }
.bd-p:focus-visible { outline-color: var(--hi); }
.bd-ap { display: none; margin-right: auto; font-size: 11px; color: var(--night-mut); letter-spacing: .1em; }
.bd-plus { position: relative; flex: none; width: 24px; height: 24px; border: 1px solid var(--night-line); border-radius: 50%; transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.bd-plus::before, .bd-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: currentColor; }
.bd-plus::after { transform: rotate(90deg); }
.bd-p:hover .bd-plus { background: var(--hi); border-color: var(--hi); color: var(--night); transform: rotate(90deg); }
@media (max-width: 599px) {
  .board-cols--tf { display: none; }
  .board-rows li.bd-row--tf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 14px 0 12px; }
  .bd-row--tf .bd-dest { grid-column: 1 / -1; margin-bottom: 2px; }
  .bd-row--tf .bd-p { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 10px 10px 12px; background: rgba(255, 255, 255, .035); }
  .bd-row--tf .bd-plus { position: absolute; right: 8px; top: 8px; width: 20px; height: 20px; }
  .bd-row--tf .bd-plus::before, .bd-row--tf .bd-plus::after { width: 8px; margin-left: -4px; }
  .bd-ap { display: block; margin: 0; }
  .flap { font-size: 15px !important; }
}
.flap { display: inline-flex; gap: 2px; font-family: var(--f-mono); font-weight: 500; font-size: 18px; }
.flap span { position: relative; display: inline-grid; place-items: center; width: .95em; height: 1.55em; background: #1E0E16; border-radius: 2px; color: var(--hi); box-shadow: inset 0 -1px 0 rgba(255,255,255,.05); }
.flap span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .75); }
.flap span.sep { width: .45em; background: transparent; box-shadow: none; }
.flap span.sep::after { display: none; }
/* ¥ 比逗號寬，給它自己的寬度，和第一格數字留點距離 */
.flap span.cur { width: auto; margin-right: .22em; }
.flap span.fl-go { animation: flip .5s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes flip { 0% { transform: perspective(120px) rotateX(-90deg); opacity: .2; } 100% { transform: perspective(120px) rotateX(0); } }
.board-f { margin-top: 14px; font-size: 12.5px; color: var(--night-mut); }

/* 車輛介紹 */
.fleet-sec { padding-bottom: 0; }
.fleet-h { margin-bottom: 22px; }
.fleet { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 720px) { .fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); } .car--plan { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .fleet { grid-template-columns: repeat(3, minmax(0, 1fr)); } .car--plan { grid-column: auto; } }
.car { display: flex; flex-direction: column; padding: 10px; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 22px; transition: border-color .4s; }
.car-img { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; background: var(--night-3); }
.car-img img { width: 100%; height: 100%; object-fit: cover; }
.car--plan .car-img { background: #EDEDED; }
.car--plan .car-img img { object-fit: contain; }
@media (min-width: 720px) and (max-width: 1099px) { .car--plan { flex-direction: row; align-items: center; gap: 10px; } .car--plan .car-img { flex: 0 0 58%; } .car--plan .car-b { flex: 1; } }
.car-b { padding: 16px 10px 8px; }
.car-pax { display: flex; align-items: baseline; gap: 6px; font-size: 13px; letter-spacing: .1em; color: var(--night-mut); }
.car-pax b { font-family: var(--f-disp); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: 0; color: var(--pink); }
.car-t { margin-top: 8px; font-family: var(--f-ui); font-weight: 500; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
.car-p { margin-top: 6px; font-size: 13.5px; color: rgba(255, 239, 236, .78); }
.car-dim { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; border-top: 1px solid var(--night-line); }
.car-dim div { padding: 10px 0 0; }
.car-dim div + div { padding-left: 14px; border-left: 1px solid var(--night-line); }
.car-dim dt { font-size: 12px; color: var(--night-mut); }
.car-dim dd { margin: 2px 0 0; font-family: var(--f-disp); font-size: 28px; line-height: 1.1; color: var(--pink); }
.car-u { margin-top: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; color: var(--night-mut); }
/* 選了乘車人數，對應車型的框亮起 */
.ride:has(.pax input[value="0"]:checked) .car[data-pax="0"],
.ride:has(.pax input[value="1"]:checked) .car[data-pax="1"] { border-color: rgba(255, 204, 204, .5); }
.fleet-note { margin-top: 14px; font-size: 12px; color: var(--night-mut); }

.terms { display: grid; gap: 1px; margin-top: 40px; background: var(--night-line); border: 1px solid var(--night-line); }
@media (min-width: 720px) { .terms { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .terms { grid-template-columns: repeat(4, 1fr); } }
.term { padding: 22px 22px 24px; background: var(--night); }
.term h3 { display: flex; align-items: center; gap: 12px; font-family: var(--f-serif); font-weight: 400; font-size: 17px; }
.term-i { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--night-line); border-radius: 50%; font-size: 12px; color: var(--hi); }
.term ul { margin-top: 12px; display: grid; gap: 6px; }
.term li { position: relative; padding-left: 14px; font-size: 13.5px; color: rgba(255, 239, 236, .78); }
.term li::before { content: ""; position: absolute; left: 0; top: .8em; width: 5px; height: 1px; background: var(--night-mut); }

/* ==========================================================================
   Notes
   ========================================================================== */
.acc { border-top: 1px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; gap: 18px; padding: 22px 0; list-style: none; cursor: pointer; font-family: var(--f-serif); font-weight: 400; font-size: clamp(18px, 2vw, 22px); transition: color .3s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent-ink); }
.acc-n { font-family: var(--f-mono); font-weight: 400; font-size: 12px; color: var(--ink-3); letter-spacing: .1em; width: 24px; }
.acc-x { position: relative; margin-left: auto; width: 16px; height: 16px; flex: none; }
.acc-x::before, .acc-x::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.acc-x::after { transform: rotate(90deg); }
.acc details[open] .acc-x::after { transform: rotate(0); }
.acc-b { padding: 0 40px 24px 42px; color: var(--ink-2); max-width: 46em; }
.acc-b b { color: var(--ink); font-weight: 600; }
@supports (interpolate-size: allow-keywords) {
  .acc { interpolate-size: allow-keywords; }
  .acc details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
  .acc details[open]::details-content { height: auto; }
}
@media (min-width: 960px) {
  .notes-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .notes-in .sh { grid-column: 1 / span 4; display: block; align-self: start; position: sticky; top: calc(var(--hdr) + 32px); border-bottom: 0; margin: 0; }
  .notes-in .sh > * + * { margin-top: 16px; }
  .notes-in .sh .sh-title { display: flex; }
  .notes-in .sh-jp { display: none; }
  .notes-in .sh-lede { padding: 0; }
  .notes-in .acc { grid-column: 6 / span 7; }
}

/* ==========================================================================
   CTA + Footer
   ========================================================================== */
.cta { position: relative; overflow: hidden; background: var(--paper-2); color: var(--ink); padding: clamp(80px, 12vw, 160px) 0 clamp(140px, 18vw, 260px); }
.cta-in { position: relative; z-index: 1; }
.cta-title { margin-top: 26px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(3rem, 9vw, 7.6rem); line-height: 1.12; letter-spacing: -.02em; }
.cta-title rt { color: var(--accent-ink); }
.cta-p { margin-top: 24px; max-width: 30em; font-size: 16px; color: var(--ink-2); }
.cta-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.cta-act > span { display: contents; }

.ft { background: var(--night); color: var(--night-tx); padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); }
.ft-in { display: grid; gap: 32px 24px; }
.ft-brand { display: flex; align-items: center; gap: 20px; }
.ft-logo { flex: none; width: 128px; aspect-ratio: 1235 / 928; background: var(--pink); -webkit-mask: url(../assets/brand/logo-square.webp) center / contain no-repeat; mask: url(../assets/brand/logo-square.webp) center / contain no-repeat; }
.ft-brand p { font-size: 13px; color: rgba(255, 239, 236, .65); line-height: 1.6; }
.ft-brand b { font-family: var(--f-serif); font-weight: 400; font-size: 18px; color: var(--paper); letter-spacing: .1em; }
.ft-h { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: rgba(255, 239, 236, .5); margin-bottom: 10px; }
.ft-col ul { display: grid; gap: 6px; }
.ft-col a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; transition: color .3s; }
.ft-col a:hover { color: var(--accent-soft); }
.ft-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 239, 236, .14); font-size: 12px; color: rgba(255, 239, 236, .5); }
@media (min-width: 760px) { .ft-in { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; } }

/* ==========================================================================
   Mobile bar, dialog, toast
   ========================================================================== */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 239, 236, .97); box-shadow: 0 -1px 0 var(--line), 0 -20px 40px -30px rgba(46, 27, 36, .3); transform: translateY(110%); transition: transform .5s var(--ease); }
.mbar.is-show { transform: none; }
.mbar-tx { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.mbar-tx b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar-tx b.num { font-family: var(--f-mono); font-size: 18px; font-weight: 500; }
.mbar-tx small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1060px) { .mbar { display: none; } }
@media (max-width: 1059px) { .ft { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

.dlg { width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); margin: auto; padding: 0; border: 0; border-radius: 3px; background: var(--card); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); }
.dlg::backdrop { background: rgba(46, 27, 36, .55); }
html:has(.dlg[open]) { overflow: hidden; }
.dlg[open] { animation: dlgIn .45s var(--ease); }
.dlg[open]::backdrop { animation: fadeOnly .3s ease; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.dlg-in { display: flex; flex-direction: column; padding: 22px 22px 18px; }
.dlg-h { display: flex; justify-content: space-between; align-items: center; }
.dlg-h h3 { font-family: var(--f-serif); font-weight: 400; font-size: 22px; }
.dlg-x { width: 40px; height: 40px; display: grid; place-items: center; margin-right: -10px; border-radius: 50%; }
.dlg-x:hover { background: var(--paper-2); }
.dlg-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dlg-p { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.dlg-msg { margin-top: 14px; width: 100%; padding: 14px; border: 1px solid var(--line-2); border-radius: 2px; background: #FFFDFC; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.7; resize: vertical; min-height: 220px; }
.dlg-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dlg-act .btn { flex: 1 1 140px; }
.dlg-fine { margin-top: 12px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 640px) {
  .dlg { width: 100%; max-width: none; max-height: 92%; margin: auto 0 0; border-radius: 10px 10px 0 0; }
  .dlg[open] { animation: sheetIn .45s var(--ease); }
  .dlg-in { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
}

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 2px; background: var(--ink); color: var(--paper); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1059px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px; background: var(--ink); color: var(--paper); text-align: center; font-size: 14px; z-index: 99; }

/* ==========================================================================
   Page hero（子頁面標題）
   ========================================================================== */
.ph { position: relative; padding-top: calc(var(--hdr) + clamp(40px, 7vw, 96px)); }
.ph-in { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; align-items: end; padding-bottom: clamp(28px, 4vw, 52px); border-bottom: 1px solid var(--ink); }
.crumb { grid-column: 1 / -1; display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-3); letter-spacing: .08em; }
.crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ph-no { grid-column: 1 / -1; margin-top: clamp(12px, 3vw, 36px); font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--accent-ink); }
.ph-title { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .28em; line-height: .95; }
.ph-title .sh-k { font-size: clamp(4.6rem, 15vw, 12rem); }
.ph-lede { grid-column: 1 / -1; max-width: 34em; color: var(--ink-2); }
.ph-jp { position: absolute; right: var(--gut); top: 0; writing-mode: vertical-rl; font-family: var(--f-serif); font-size: 13px; letter-spacing: .5em; color: var(--ink-3); }
.ph-jump, .ph-steps { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.ph-jump a { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; transition: background-color .3s, color .3s, border-color .3s; }
.ph-jump a span { font-family: var(--f-mono); font-size: 11px; color: var(--accent-ink); }
.ph-jump a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ph-jump a:hover span { color: var(--accent-soft); }
.ph-steps li { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 6px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; background: var(--card); }
.ph-steps li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--f-disp); font-size: 16px; }
@media (min-width: 960px) {
  .ph-title { grid-column: 1 / span 7; }
  .ph-lede { grid-column: 8 / span 5; padding-bottom: 10px; padding-right: 32px; }
  .ph-jump, .ph-steps { grid-column: 8 / span 5; }
}
.ph--compact { padding-top: calc(var(--hdr) + clamp(20px, 3vw, 40px)); }
.ph--compact .ph-no { margin-top: 10px; }
.ph--compact .ph-title .sh-k { font-size: clamp(3.4rem, 7vw, 6rem); }
.ph--compact .sh-en { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.ph--compact .ph-in { padding-bottom: clamp(20px, 3vw, 32px); }
@media (max-width: 719px) {
  .ph--compact .ph-lede, .ph--compact .ph-jp { display: none; }
  .ph--compact .ph-steps { gap: 6px; }
  .ph--compact .ph-steps li { height: 32px; padding: 0 10px 0 4px; gap: 6px; font-size: 12.5px; }
  .ph--compact .ph-steps li span { width: 24px; height: 24px; font-size: 14px; }
  .ph-jump a { height: 36px; padding: 0 12px; font-size: 13px; }
}
.ph--dark .ph-in { border-bottom-color: rgba(255, 239, 236, .45); }
.ph--dark .crumb, .ph--dark .ph-jp { color: var(--night-mut); }
.ph--dark .ph-no { color: var(--hi); }
.ph--dark .sh-en { color: var(--night-mut); }
.ph--dark .ph-lede { color: rgba(255, 239, 236, .82); }
.js .ph-title .sh-k, .js .ph-title .sh-en { display: inline-block; animation: fade 1s var(--ease) both; }
.js .ph-title .sh-en { animation-delay: .1s; }
.js .ph-lede, .js .ph-jump, .js .ph-steps, .js .crumb, .js .ph-no { animation: fade .9s var(--ease) both .25s; }
.sec--tight { padding-top: clamp(40px, 6vw, 80px); }

/* 下一頁 */
.next { border-top: 1px solid var(--line); }
.next-a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.next-l { grid-column: 1; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--ink-3); }
.next-t { grid-column: 1; font-family: var(--f-serif); font-weight: 400; font-size: clamp(2rem, 6vw, 4.8rem); line-height: 1.1; letter-spacing: -.01em; transition: color .4s var(--ease); }
.next-t i { margin-left: .3em; font-family: var(--f-disp); font-weight: 400; font-size: .6em; color: var(--ink-3); }
.next-ar { grid-column: 2; grid-row: 1 / span 2; width: clamp(40px, 6vw, 72px); height: clamp(40px, 6vw, 72px); fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .5s var(--ease); }
.next-a:hover .next-t { color: var(--accent-ink); }
.next-a:hover .next-ar { transform: translateX(10px); }
.next--dark { border-top-color: var(--night-line); color: var(--night-tx); }
.next--dark .next-l, .next--dark .next-t i { color: var(--night-mut); }
.next--dark .next-a:hover .next-t { color: var(--hi); }

/* section head（橫排＋連結） */
.sh-more { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 40px; font-size: 14px; font-weight: 600; letter-spacing: .06em; border-bottom: 1px solid currentColor; }
.sh-more .ar { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .4s var(--ease); }
.sh-more:hover .ar { transform: translateX(4px); }
@media (min-width: 960px) {
  .sh--row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sh--row .sh-title { grid-column: 1 / span 5; }
  .sh--row .sh-lede { grid-column: 6 / span 5; }
  .sh--row .sh-more { grid-column: 11 / span 2; justify-self: end; margin-bottom: 14px; }
}

/* 首頁：房型卡 */
.hs-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .hs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.hs-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); transition: border-color .4s, box-shadow .5s var(--ease), transform .5s var(--ease); }
.js .hs-card[data-reveal] { transition-delay: calc(var(--d, 0) * 90ms); }
.hs-card:hover { border-color: var(--ink); box-shadow: 0 30px 60px -40px rgba(46, 27, 36, .5); }
.hs-vis { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3.4; background: var(--paper-2); overflow: hidden; }
.hs-vis::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; opacity: .5; }
.hs-vis .iso { position: relative; width: 62%; }
.hs-vis .iso svg { width: 100%; height: auto; max-height: 240px; overflow: visible; transition: transform .8s var(--ease); }
.hs-card:hover .hs-vis .iso svg { transform: translateY(-6px) scale(1.03); }
.hs-code { position: absolute; left: 14px; top: 12px; z-index: 1; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-3); }
.hs-tx { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.hs-no { display: flex; gap: 12px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; color: var(--ink-3); }
.hs-no span:first-child { color: var(--accent-ink); }
.hs-name { margin-top: 6px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.1; }
.hs-name em { font-family: var(--f-disp); font-style: italic; font-weight: 400; margin-left: .1em; }
.hs-spec { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.hs-pr { display: flex; align-items: baseline; gap: 2px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); line-height: 1; }
.hs-pr .cur { font-family: var(--f-disp); font-size: 22px; }
.hs-pr b { font-family: var(--f-disp); font-weight: 400; font-size: 46px; letter-spacing: -.02em; }
.hs-pr small { margin-left: 4px; font-size: 13px; color: var(--ink-3); }
.hs-st { min-height: 22px; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.hs-st b { font-family: var(--f-mono); font-weight: 500; color: var(--ink); }
.hs-st .dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; border: 1.5px solid var(--ink-3); vertical-align: 1px; }
.hs-st .dot.ok { background: var(--ink); border-color: var(--ink); }
.hs-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.hs-go .ar { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .4s var(--ease); }
.hs-card:hover .hs-go .ar { transform: translateX(5px); }

/* 首頁：接送・包車 */
.home-ride { background: var(--night); color: var(--night-tx); }
.hr-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .hr-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.hr-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: clamp(22px, 3vw, 36px); background: var(--night-2); border: 1px solid var(--night-line); border-radius: 3px; transition: border-color .4s, background-color .4s; }
.js .hr-card[data-reveal] { transition-delay: calc(var(--d, 0) * 90ms); }
.hr-card:hover { border-color: rgba(255, 204, 204, .45); background: #43263A; }
.hr-t { font-family: var(--f-serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; }
.hr-d { font-size: 13.5px; color: rgba(255, 239, 236, .72); }
.hr-p { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.hr-p .flap { font-size: 24px; }
.hr-p small { font-size: 13px; color: var(--night-mut); }
.hr-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--hi); }
.hr-go .ar { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .4s var(--ease); }
.hr-card:hover .hr-go .ar { transform: translateX(5px); }

/* 接送・包車頁（整頁深色） */
body.is-dark-page { background-color: var(--night); background-image: none; }
main.ride { background: var(--night); color: var(--night-tx); }
.pax-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 24px; }
.pax-row .pax { margin: 0; }
.pax-row .boards-hint { margin: 0; }

/* 須知頁 */
.guide { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .guide { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } .ask { position: sticky; top: calc(var(--hdr) + 24px); } }
.ask { padding: 26px 24px; background: var(--card); border: 1px solid var(--line); }
.ask-t { font-family: var(--f-serif); font-weight: 400; font-size: 26px; }
.ask p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.ask-act { display: grid; gap: 10px; margin-top: 18px; }

/* 空房讀取中 */
.cal.is-loading .cal-months { position: relative; pointer-events: none; }
.cal.is-loading .day-n { opacity: .35; }
.cal.is-loading .cal-months::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.cal-err { margin-top: 10px; padding: 10px 14px; border-left: 2px solid var(--accent); background: var(--accent-wash); font-size: 13px; color: var(--ink); }
.strip.is-loading .strip-bars i { background: var(--paper-3); }
.rc-reset { display: block; margin: 10px auto 0; font-family: var(--f-sans); font-size: 12.5px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.rc-reset:hover { color: var(--accent-ink); }
.dlg-p b { color: var(--ink); }
.dlg-copy { align-self: center; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.dlg-copy:hover { color: var(--ink); }
.toast.has-link { pointer-events: auto; }
.toast a { margin-left: 8px; color: var(--hi); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ft-col a .ic { width: 18px; height: 18px; }

/* ==========================================================================
   Refinements（參考 Belgrade Arbor：柔和圓角、膠囊控制項、古銅小標）
   ========================================================================== */
.on-dark .bt::before { background: var(--pink); }
.tag { border-radius: 999px; padding: 3px 9px 2px; }
.eyebrow { font-family: var(--f-ui); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow .tag { font-family: var(--f-mono); text-transform: none; letter-spacing: .08em; color: var(--ink-2); }
.sh-no, .ph-no { font-family: var(--f-ui); font-weight: 500; letter-spacing: .24em; color: var(--accent-ink); }
.sh--dark .sh-no, .ph--dark .ph-no { color: var(--pink); }
.sh-k { font-weight: 400; }
.sh-en { color: var(--blush); }
.sh--dark .sh-en, .ph--dark .sh-en { color: var(--night-mut); }
.sh-more { font-family: var(--f-ui); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; border-bottom-width: 1px; gap: 10px; transition: background-color .35s, color .35s, border-color .35s; }
.sh-more:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sh--dark .sh-more { border-color: rgba(255, 239, 236, .35); }
.sh--dark .sh-more:hover { background: var(--night-tx); color: var(--plum); }

/* 卡片與控制項圓角 */
.tab { border-radius: 14px; }
.cal { border-radius: 20px; }
.day::after { border-radius: 10px; }
.day.is-between::before, .day.is-in::before, .day.is-out::before { border-radius: 0; }
.sel-box, .sel-msg { border-radius: 14px; }
.chip { border-radius: 999px; }
.addon { border-radius: 16px; }
.seg { border-radius: 999px; }
.seg span { border-radius: 999px; }
.stepper { border-radius: 999px; overflow: hidden; }
.fld input, .fld select, .fld textarea { border-radius: 12px; }
.ch-item { border-radius: 14px; }
.warn, .cal-err { border-radius: 10px; }
.board { border-radius: 22px; }
.flap span { border-radius: 4px; }
.term:first-child { border-radius: 18px 0 0 18px; }
.terms { border-radius: 18px; overflow: hidden; }
.access { border-radius: 20px; }
.notice { border-radius: 0 12px 12px 0; }
.amen li { border-radius: 999px; }
.hs-card { border-radius: 22px; overflow: hidden; }
.hr-card { border-radius: 22px; }
.ask { border-radius: 20px; }
.ph-jump a, .ph-steps li { border-radius: 999px; }
.dlg { border-radius: 22px; }
.toast { border-radius: 999px; padding: 12px 22px; }
.mbar { border-radius: 20px 20px 0 0; }
.cal-nav { border-radius: 999px; }
.access-badge { border-radius: 999px; background: var(--plum); }
.sel-n { border-radius: 999px; background: var(--plum); }
.step-n { border-color: var(--blush); color: var(--accent-ink); }
.rc { border-radius: 4px; }

/* 日曆選取改用深林綠 */
.day.is-in::after, .day.is-out::after { background: var(--accent); }
.day.is-preview.is-out::after { box-shadow: inset 0 0 0 1.5px var(--accent); }
.day.is-preview.is-out .day-n, .day.is-preview.is-out .day-s { color: var(--accent-ink) !important; }
.day.is-out-ok:hover::after { box-shadow: inset 0 0 0 1.5px var(--accent); }
.lg-sel { background: var(--accent); border-color: var(--accent); }
.tab[aria-selected="true"] { background: var(--plum); border-color: var(--plum); }
.tab[aria-selected="true"]::after { background: var(--pink); }
.sw:checked { background: var(--accent); }
.chk input { accent-color: var(--accent); }
.warn { background: #FFE8E8; color: #8E3B4F; }
.warn::before { background: var(--blush); }

/* 住宿示意圖改為有機形狀 */
.stay-vis { background: var(--paper-2); }
.stay-vis::before { opacity: .4; }
.hs-vis { margin: 10px 10px 0; background: var(--paper-2); }
.hs-card { background: var(--card); }

/* 接送頁、首頁接送區（深林綠） */
.ride, main.ride, .home-ride { background: var(--night); }
body.is-dark-page { background-color: var(--night); }
.board { background: var(--night-2); }
.board-k { color: var(--pink); }
.flap span { background: #1E0E16; color: var(--pink); }
.pax input:checked + span { color: var(--plum); }
.term { background: var(--night); }
.term-i { color: var(--pink); }

/* 頁尾 */
.ft-h { font-family: var(--f-ui); font-weight: 500; color: var(--night-mut); }
.ft-col a:hover { color: var(--pink); }
.ft-brand p { color: var(--night-mut); }
.ft-copy { color: var(--night-mut); border-top-color: var(--night-line); }

/* 車站牌 */
.eki { background: var(--card); border-color: var(--line-2); }

/* 子頁頁首 */
.ph-in { border-bottom-color: var(--line-2); }
.sh { border-bottom-color: var(--line-2); }
/* ==========================================================================
   Heartfelt Pink 區塊（首頁 Hero、預約詢問）
   ========================================================================== */
.on-pink { background: var(--pink); color: var(--ink); }
.on-pink ::selection { background: var(--plum); color: var(--pink); }
.on-pink .kicker { color: var(--accent-ink); }
.on-pink .rays::before { background:
  linear-gradient(112deg, transparent 18%, rgba(255, 255, 255, .3) 24%, transparent 31%, transparent 44%, rgba(255, 255, 255, .22) 50%, transparent 58%, transparent 66%, rgba(255, 255, 255, .32) 71%, transparent 79%),
  radial-gradient(60% 50% at 85% 0%, rgba(255, 255, 255, .5), transparent 70%),
  radial-gradient(55% 60% at 0% 100%, rgba(194, 74, 106, .16), transparent 70%); }
.on-pink .hero-tag rt { color: var(--accent-ink); }
.on-pink .hero-lede { color: var(--ink-2); }
.on-pink .btn-primary { --bg: var(--plum); --fg: var(--pink); }
.on-pink .btn-primary:hover { --bg: var(--night); }
.on-pink .btn-line { --bd: rgba(46, 27, 36, .32); --fg: var(--ink); }
.on-pink .btn-line:hover { --bg: var(--plum); --fg: var(--pink); --bd: var(--plum); }
.on-pink .bt::before { background: var(--accent); }
.cta.on-pink .cta-p { color: var(--ink-2); }
.cta.on-pink .cta-p { color: var(--ink-2); }
.on-dark .bt::before { background: var(--pink); }
.bt::before { background: var(--accent); }

/* ==========================================================================
   我們的承諾（簡化版：文字＋三點＋照片）
   ========================================================================== */
.promise { position: relative; background: var(--paper-2); padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(48px, 6vw, 80px); }
.promise-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; align-items: center; }
.promise-txt, .promise-photos { grid-column: 1 / -1; }
.promise-t { margin-top: 20px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.32; letter-spacing: -.01em; }
.promise-p { margin-top: 20px; max-width: 28em; color: var(--ink-2); }
.promise-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 34px; border-top: 1px solid var(--line-2); }
.promise-list li { display: flex; flex-direction: column; gap: 6px; padding: 16px 12px 0 0; }
.promise-list li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.promise-list b { font-family: var(--f-disp); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1; color: var(--accent-ink); }
.promise-list b i { font-style: normal; font-size: .5em; margin-right: .06em; }
.promise-list span { font-size: 13px; color: var(--ink-2); }
.promise-photos { display: grid; grid-template-columns: 1fr 1.2fr; grid-template-rows: auto auto; gap: 14px; }
.pp { display: flex; flex-direction: column; margin: 0; min-width: 0; }
.pp img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 22px; background: var(--paper-3); }
.pp-a { grid-row: 1 / span 2; }
.pp-a img { flex: 1; min-height: 0; height: 100%; }
.pp-b img, .pp-c img { aspect-ratio: 10 / 7; }
.promise-note { margin-top: 26px; font-size: 12px; color: var(--ink-3); }
@media (min-width: 900px) {
  .promise-txt { grid-column: 1 / span 5; }
  .promise-photos { grid-column: 7 / span 6; }
}
@media (max-width: 599px) {
  .promise-list { grid-template-columns: 1fr; }
  .promise-list li { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 12px 0; }
  .promise-list li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  }

/* 預約詢問：印章（落款） */
.cta-seal {
  position: absolute; right: clamp(24px, 9vw, 160px); bottom: clamp(48px, 10vw, 140px);
  display: inline-flex; flex-direction: row-reverse; justify-content: center; align-items: center; gap: .08em;
  width: clamp(120px, 13vw, 190px); aspect-ratio: 1; border-radius: 14px;
  background: var(--accent); color: #fff; font-family: var(--f-serif); font-size: clamp(30px, 3.4vw, 50px); line-height: 1.06;
  box-shadow: inset 0 0 0 7px var(--accent), inset 0 0 0 9px rgba(255, 252, 251, .55);
  transform: rotate(-6deg); opacity: .94; pointer-events: none;
}
.cta-seal span { writing-mode: vertical-rl; }
.js .cta-seal[data-reveal] { opacity: 0; transform: rotate(-6deg) scale(1.3); transition: opacity .5s ease .2s, transform .7s cubic-bezier(.3, 1.4, .5, 1) .2s; }
.js .cta-seal[data-reveal].is-in { opacity: .94; transform: rotate(-6deg) scale(1); }
@media (max-width: 719px) {
  .cta { padding-bottom: 72px; }
  .cta-seal { position: relative; right: auto; bottom: auto; display: flex; margin: 44px var(--gut) 0 auto; width: 118px; font-size: 30px; }
}

/* ==========================================================================
   Reveal
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .stay[data-reveal] .stay-info > * { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .stay[data-reveal].is-in .stay-info > * { opacity: 1; transform: none; }
.js .stay[data-reveal].is-in .stay-info > *:nth-child(2) { transition-delay: .05s; }
.js .stay[data-reveal].is-in .stay-info > *:nth-child(3) { transition-delay: .1s; }
.js .stay[data-reveal].is-in .stay-info > *:nth-child(4) { transition-delay: .15s; }
.js .stay[data-reveal].is-in .stay-info > *:nth-child(n+5) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .stay[data-reveal] .stay-info > * { opacity: 1; transform: none; }
  .route-car { animation: none !important; }
  .marquee-tr { animation: none !important; }
}
