/* 約書旅 Rest Book（restbook.emoji.tw）— Taste Skill v2「uneven-photographs」
   紙色底、墨褐字、單一動作色；方角、無細線、無陰影、無漸層；照片像掛在牆上的版畫，大小與位置錯落但都落在 12 欄格線上。 */
.bs--rest-book {
  --rb-paper: #eeece8;
  --rb-tone: #e2dfd9;
  --rb-ink: #2a2118;
  --rb-soft: #5a4632;
  --rb-act: #5a4632;
  --rb-m: max(20px, 6vw);
  --rb-serif: "EB Garamond", "Noto Serif TC", serif;
  --s-display: clamp(3.4rem, 8.3vw, 7.5rem);
  --s-head: clamp(2.4rem, 4.5vw, 4.25rem);
  --s-lead: clamp(1.25rem, 1.6vw, 1.45rem);
  --s-body: 1.125rem;
  --s-small: 1rem;
  background: var(--rb-paper);
  color: var(--rb-ink);
}
.bs--rest-book .bs-head { background: var(--rb-paper); border: 0; }
.bs--rest-book .bs-foot { background: var(--rb-ink); color: var(--rb-paper); border: 0; }
.bs--rest-book .bs-foot a, .bs--rest-book .bs-foot h4, .bs--rest-book .bs-foot__legal { color: var(--rb-paper); }
.bs--rest-book .bs-foot__brand img { filter: brightness(0) invert(.94); }
.bs--rest-book .bs-foot__bottom { border: 0; }
.bs--rest-book .bs-dock { background: var(--rb-paper); border: 0; box-shadow: none; } /* taste-skill-ignore: 移除共用底欄陰影 */
.bs--rest-book .bs-btn { border-radius: 0; }
.bs--rest-book .wrap { max-width: none; padding-left: var(--rb-m); padding-right: var(--rb-m); }
.rb, .rb button { font-family: var(--rb-serif); }

.rb { overflow: hidden; }
.rb h1, .rb h2, .rb p, .rb figure { margin: 0; }
.rb h1, .rb h2 { font-family: var(--rb-serif); font-weight: 500; letter-spacing: -.02em; color: var(--rb-ink); text-wrap: balance; line-break: strict; }
.rb h2 { line-height: 1.08 !important; }
.rb h1, .rb h2, .rb-faq summary, .rb-price__rules li { word-break: keep-all; overflow-wrap: anywhere; }
.rb p, .rb li, .rb dd, .rb td { text-wrap: pretty; line-break: strict; }
.rb p { font-size: max(1rem, var(--s-body)); line-height: 1.6; max-width: 60ch; }
.bs--rest-book ::selection { background: var(--rb-soft); color: var(--rb-paper); }
.bs--rest-book { accent-color: var(--rb-act); caret-color: var(--rb-act); scrollbar-color: var(--rb-soft) var(--rb-tone); }
.rb a { text-decoration-thickness: 1px; }
.rb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.rb section { padding: 0 var(--rb-m); }

/* 階梯標題＋兩張照片 */
.rb-hero { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; min-height: calc(100svh - 72px); padding-top: 4svh !important; padding-bottom: 6svh !important; align-content: start; }
.rb-hero__small { grid-column: 10 / 13; grid-row: 1; aspect-ratio: 16 / 10; }
.rb-title { grid-column: 2 / 13; grid-row: 2; margin-top: 4svh !important; font-size: max(1rem, var(--s-display)); line-height: 1.02; }
.rb-line { display: block; overflow: hidden; padding-bottom: .06em; }
.rb-line > span { display: inline-block; }
.rb-line--step { padding-left: calc((100% / 11) * 4); }
.rb-hero__tall { grid-column: 2 / 6; grid-row: 3; aspect-ratio: 4 / 5; max-height: 62svh; margin-top: 24px !important; }
.rb-hero__say { grid-column: 6 / 11; grid-row: 3; align-self: start; padding-top: 40px; max-width: 36ch; }
.rb-hero__say p { font-size: max(1rem, var(--s-lead)); }
.rb-btn { display: inline-flex; align-items: center; min-height: 52px; margin-top: 32px; padding: 0 26px; background: var(--rb-act); color: var(--rb-paper); font-size: max(1rem, var(--s-body)); font-weight: 500; transition: transform .2s ease, background .2s ease; }
.rb-btn:hover { background: var(--rb-ink); }
.rb-btn:active { transform: translateY(1px); }
.rb a:focus-visible, .rb button:focus-visible, .rb summary:focus-visible { outline: 3px solid var(--rb-act); outline-offset: 3px; }

/* 標題替全景照片下標 */
.rb-intro { padding-top: clamp(120px, 14vw, 220px) !important; padding-left: 0 !important; padding-right: 0 !important; }
.rb-intro__head { padding: 0 var(--rb-m); }
.rb-intro h2 { font-size: max(1rem, var(--s-head)); line-height: 1.02; max-width: 14em; }
.rb-intro__notes { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 28px; }
.rb-intro__notes p { width: min(100%, 22rem); font-size: max(1rem, var(--s-small)); color: var(--rb-soft); }
.rb-intro__wide { margin-top: 40px !important; aspect-ratio: 21 / 9; }
.rb-intro__wide img { object-position: center 60%; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.rb-intro.is-in .rb-intro__wide img { transform: scale(1.04); }

/* 互動：空檔時刻表 */
.rb-gap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; row-gap: 40px; padding-top: clamp(120px, 14vw, 220px) !important; }
.rb-gap__head { grid-column: 1 / 6; }
.rb-gap__head h2 { font-size: max(1rem, var(--s-head)); line-height: 1.05; }
.rb-gap__head p { margin-top: 20px; max-width: 30ch; }
.rb-gap__body { grid-column: 7 / 13; }
.rb-gap__picks { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-gap__pick { min-height: 48px; padding: 0 20px; border: 0; border-radius: 0; background: var(--rb-tone); color: var(--rb-ink); font: inherit; font-size: max(1rem, var(--s-body)); cursor: pointer; transition: background .2s ease, color .2s ease, transform .15s ease; }
.rb-gap__pick:hover { background: #d5d0c7; }
.rb-gap__pick:active { transform: translateY(1px); }
.rb-gap__pick[aria-pressed="true"], .rb-gap__pick[aria-pressed="true"]:hover { background: var(--rb-ink); color: var(--rb-paper); }
.rb-gap__plans { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 24px; }
.rb-gap__plans li { display: grid; gap: 8px; }
.rb-gap__plans b { font-weight: 500; font-size: max(1rem, var(--s-lead)); }
.rb-gap__plans span { font-size: max(1rem, var(--s-body)); line-height: 1.6; }
.rb-js .rb-gap__plans li b { display: none; }
.rb-js .rb-gap__plans li span { font-size: max(1rem, var(--s-lead)); line-height: 1.5; }
.rb-gap__plans li[hidden] { display: none; }
.rb-gap__photo { grid-column: 2 / 7; aspect-ratio: 3 / 2; margin-top: 40px !important; }

/* 一排畫框，中間一張抬高 */
.rb-run { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; padding-top: clamp(120px, 14vw, 220px) !important; }
.rb-run__side { grid-column: 1 / 4; }
.rb-run__side h2 { font-size: max(1rem, var(--s-lead)); line-height: 1.3; }
.rb-run__side a { display: inline-block; margin-top: 16px; padding: 10px 0; color: var(--rb-ink); text-decoration: underline; text-underline-offset: 5px; }
.rb-run__frames { grid-column: 4 / 13; display: flex; align-items: flex-end; gap: 16px; }
.rb-run__frames figure { flex: 1 1 0; min-width: 0; }
.rb-run__frames figure img { height: 30vh; min-height: 180px; }
.rb-run__lift { flex-grow: 1.6 !important; }
.rb-run__lift img { height: min(52vh, 520px) !important; }
.rb-run figcaption { display: grid; gap: 2px; margin-top: 12px; font-size: max(1rem, var(--s-small)); line-height: 1.4; color: var(--rb-ink); }
.rb-run figcaption span + span { color: var(--rb-soft); }

/* 句子＋表格推到右側 */
.rb-here { padding-top: clamp(120px, 14vw, 220px) !important; }
.rb-here h2 { font-size: max(1rem, var(--s-head)); line-height: 1.02; max-width: 16em; }
.rb-here__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; margin-top: 96px; align-items: end; }
.rb-here__grid figure { grid-column: 1 / 5; aspect-ratio: 4 / 5; }
.rb-table { grid-column: 7 / 13; border-collapse: collapse; width: 100%; font-size: max(1rem, var(--s-body)); }
.rb-table caption { text-align: left; padding-bottom: 20px; font-size: 1rem; color: var(--rb-soft); caption-side: top; font-size: max(1rem, var(--s-small)); }
.rb-table th, .rb-table td { padding: 13px 12px 13px 0; text-align: left; vertical-align: top; border: 0; font-weight: 400; }
.rb-table th { color: var(--rb-ink); font-weight: 500 !important; width: 26%; }
.rb-table td { font-variant-numeric: tabular-nums; }
.rb-table td:last-child { color: var(--rb-soft); }
.rb-table td:last-child { text-align: right; }
.rb-table tr:nth-child(odd) { background: var(--rb-tone); }
.rb-table tr:nth-child(odd) th { padding-left: 12px; }

/* 價目：白天淺色塊、夜間墨色塊並排；無線無陰影 */
.rb-price { padding-top: clamp(120px, 14vw, 220px) !important; }
.rb-price h2 { font-size: max(1rem, var(--s-head)); line-height: 1.02; }
.rb-price__lede { margin-top: 24px; color: var(--rb-soft); }
.rb-price__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; margin-top: 56px; align-items: stretch; }
.rb-price__block { grid-column: 1 / 7; padding: clamp(24px, 3vw, 40px); background: var(--rb-tone); }
.rb-price__block--night { grid-column: 7 / 13; background: var(--rb-ink); color: var(--rb-paper); }
.rb-price__block--night h3 { color: var(--rb-paper); }
.rb-price__block h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--rb-serif); font-weight: 500; font-size: max(1rem, var(--s-lead)); }
.rb-price__block h3 span { font-size: max(1rem, var(--s-body)); font-variant-numeric: tabular-nums; color: var(--rb-soft); }
.rb-price__block--night h3 span { color: #cfc6b8; }
.rb-price__block dl { margin: 24px 0 0; display: grid; gap: 0; }
.rb-price__block dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; }
.rb-price__block dt { font-size: max(1rem, var(--s-body)); }
.rb-price__block dd { margin: 0; font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 500; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.rb-price__rules { margin: 40px 0 0; padding-left: 1.2em; display: grid; gap: 8px; max-width: 60ch; font-size: max(1rem, var(--s-body)); line-height: 1.6; color: var(--rb-soft); }
@media (max-width: 760px) {
  .rb-price__grid { grid-template-columns: 1fr; row-gap: 16px; margin-top: 32px; }
  .rb-price__block, .rb-price__block--night { grid-column: 1; margin-top: 0; }
}

/* 寬標題，問題縮排 */

.rb-faq h2 { font-size: max(1rem, var(--s-head)); line-height: 1.02; }
.rb-faq__list { margin: 80px 0 0 calc((100% / 12) * 4); display: grid; gap: 12px; }
.rb-faq details { padding: 14px 24px; margin: 0 -24px; transition: background .2s ease; }
.rb-faq details[open] { background: var(--rb-tone); }
.rb-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 44px; cursor: pointer; list-style: none; font-size: max(1rem, var(--s-lead)); }
.rb-faq summary::-webkit-details-marker { display: none; }
.rb-faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.rb-faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.rb-faq details p { margin-top: 12px; max-width: 48ch; font-size: max(1rem, var(--s-body)); }

/* 結尾一句＋照片＋兩個連結 */
.rb-contact { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; align-items: start; padding-top: 160px !important; padding-bottom: 120px !important; }
.rb-contact__say { grid-column: 1 / 6; font-size: max(1rem, var(--s-lead)) !important; line-height: 1.5 !important; }
.rb-contact figure { grid-column: 8 / 10; aspect-ratio: 1; max-width: 170px; }
.rb-contact__links { grid-column: 10 / 13; display: grid; gap: 10px; }
.rb-contact__links b { font-weight: 500; font-size: max(1rem, var(--s-body)); }
.rb-contact__links a { font-size: max(1rem, var(--s-body)); color: var(--rb-ink); text-decoration: underline; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }
.rb-contact__links span { font-size: max(1rem, var(--s-small)); color: var(--rb-soft); }
.rb-credit { margin: 0 var(--rb-m) !important; padding-bottom: 48px; font-size: max(1rem, var(--s-small)) !important; color: var(--rb-soft); max-width: 60ch !important; }

/* 動態：只有一個時刻——標題逐行從基線升起；其餘區塊靜止，只留全景照片進場時的緩慢推近 */
.rb-anim .rb-line > span { transform: translateY(105%); animation: rb-rise .9s cubic-bezier(.16, 1, .3, 1) forwards; }
.rb-anim .rb-line--step > span { animation-delay: .11s; }
.rb-anim .rb-hero__say, .rb-anim .rb-hero__small, .rb-anim .rb-hero__tall { opacity: 0; animation: rb-fade .8s ease .5s forwards; }
.rb-anim .rb-hero__small { animation-delay: .25s; }
.rb-run__frames figure img, .rb-here__grid figure img { transition: transform .5s ease; }
.rb-run__frames figure:hover img { transform: scale(1.02); }
@keyframes rb-rise { to { transform: none; } }
@keyframes rb-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .rb *, .rb *::after { animation: none !important; transition: none !important; }
}

/* 手機：保留錯落（100%、72% 靠左、60% 靠右），不全部滿版堆疊 */
@media (max-width: 760px) {
  .rb-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 20px !important; }
  .rb-hero__small { grid-column: 1; grid-row: 1; width: 60%; justify-self: end; }
  .rb-title { grid-column: 1; grid-row: 2; font-size: clamp(2.6rem, 13vw, 4rem); margin-top: 16px !important; }
  .rb-line--step { padding-left: 22vw; }
  .rb-hero__say { grid-column: 1; grid-row: 3; padding-top: 16px; }
  .rb-hero__say p { font-size: max(1rem, var(--s-body)); }
  .rb-btn { margin-top: 20px; }
  .rb-hero__tall { grid-column: 1; grid-row: 4; width: 72%; max-height: none; margin-top: 40px !important; }
  .rb-intro h2 { font-size: clamp(2rem, 9.5vw, 3rem); }
  .rb-intro__wide { aspect-ratio: 4 / 5; }
  .rb-gap, .rb-run, .rb-contact { grid-template-columns: 1fr; }
  .rb-gap__head, .rb-gap__body, .rb-run__side, .rb-run__frames, .rb-contact__say, .rb-contact__links { grid-column: 1; }
  .rb-gap__photo { grid-column: 1; width: 60%; justify-self: end; }
  .rb-gap__pick { flex: 1 1 calc(50% - 8px); }
  .rb-run__frames { margin-top: 24px; flex-wrap: wrap; gap: 24px 12px; }
  .rb-run__frames figure { flex: 0 0 calc(50% - 6px); }
  .rb-run__lift { order: -1; flex: 0 0 100% !important; }
  .rb-run__frames figure img { height: 46vw; min-height: 0; }
  .rb-run__lift img { height: 64vw !important; }
  .rb-here h2 { padding-left: 0; font-size: clamp(2rem, 9.5vw, 3rem); }
  .rb-here__grid { grid-template-columns: 1fr; margin-top: 40px; row-gap: 32px; }
  .rb-here__grid figure { grid-column: 1; width: 60%; justify-self: end; order: 2; }
  .rb-table { grid-column: 1; font-size: 1rem; }
  .rb-table td:last-child { text-align: left; }
  .rb-table tr { display: grid; grid-template-columns: 1fr; padding: 10px 12px; }
  .rb-table th, .rb-table td { padding: 2px 0 !important; width: auto; }
  .rb-table th { padding-bottom: 4px !important; }
  .rb-table td:last-child { color: var(--rb-soft); }
  .rb-faq h2 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .rb-faq__list { margin: 40px 0 0; }
  .rb-faq details { margin: 0 calc(var(--rb-m) * -1); padding: 14px var(--rb-m); }
  .rb-contact { padding-top: 120px !important; row-gap: 28px; }
  .rb-contact figure { grid-column: 1; width: 96px; }
}

/* 色塊：FAQ 用淺色階、結尾用墨色（inspector：每頁空畫面最多一次） */
.rb-faq { margin-top: clamp(120px, 14vw, 220px); padding-top: clamp(80px, 9vw, 140px) !important; padding-bottom: clamp(80px, 9vw, 140px) !important; background: var(--rb-tone); }
.rb-faq details[open] { background: var(--rb-paper); }
.rb-faq__list { margin-top: 56px; }
.rb-contact { margin-top: 0; padding-top: clamp(96px, 10vw, 160px) !important; background: var(--rb-ink); color: var(--rb-paper); }
.rb-contact__say, .rb-contact__links b, .rb-contact__links a { color: var(--rb-paper) !important; }
.rb-contact__links span { color: #cfc6b8; }
.rb-credit { padding-top: 32px; }
