/* 栗丘 LIQIU：設計變數集中在 :root，各區塊只引用變數 */
:root {
  --rust: #803a1b;
  --rust-deep: #5c2210;
  --cream: #f6efe6;
  --paper: #fbf7f1;
  --ink: #3a2216;
  --muted: #6f5242;
  --apricot: #f0b98d;
  --on-rust: #f8e6d2;
  --on-rust-muted: #ecd2bb;
  --line: #dfcdb9;
  --open: #5f7a3a;

  --sans: "PingFang TC", "Noto Sans TC", "Source Han Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  /* 沒有宋體時退回黑體，避免標題掉成新細明體 */
  --serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", var(--sans);

  --t-display: clamp(64px, 8vw, 112px);
  --t-h2: clamp(30px, 3.4vw, 44px);
  --t-h3: 22px;
  --t-body: 16px;
  --t-small: 14px;

  --page: clamp(20px, 4vw, 56px);
  --content: 1440px;
  --section: clamp(72px, 9vw, 120px);
  --section-tight: clamp(48px, 5.4vw, 72px);
  --gap: clamp(16px, 2vw, 28px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* 進場與捲動顯示用的減速曲線 */
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  interpolate-size: allow-keywords;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 var(--t-body)/1.8 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--apricot); outline-offset: 4px; }
[hidden] { display: none !important; }

.skip { position: fixed; left: 16px; top: -100px; z-index: 50; background: var(--paper); padding: 12px 16px; }
.skip:focus { top: 12px; }

.section-title, .process h2, .gift h2, .everyday h2, .business h2, .stores h2, .notes h2 {
  font-family: var(--serif); font-size: var(--t-h2); font-weight: 700; line-height: 1.3;
}

/* ---------- 頁首 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h); padding: 0 var(--page);
  background: var(--rust); color: var(--on-rust);
  font-size: var(--t-small);
}
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.nav { display: flex; gap: 28px; }
.nav a, .cart { display: inline-flex; align-items: center; min-height: 44px; transition: color .2s var(--ease); }
.nav a:hover, .cart:hover { color: var(--apricot); }
.cart { font-size: var(--t-small); color: var(--on-rust); }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px;
  margin-left: 6px; padding: 0 6px; border-radius: 11px;
  background: var(--apricot); color: var(--rust-deep); font-size: 12px; font-weight: 700;
}
.cart-count.is-bump { animation: bump .4s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }
.logo { font-family: var(--serif); font-size: 26px; letter-spacing: .4em; padding-left: .4em; }
.menu-button { display: none; }
.mobile-menu { display: none; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: calc(100svh - var(--header-h));
  background: var(--rust); color: var(--on-rust); overflow: hidden;
}
/* 首圖左半邊是與品牌色相同的桌面，文字直接疊在上面 */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
/* 大螢幕時文字左緣對齊下方內容區 */
.hero-copy {
  position: relative; z-index: 1; max-width: min(860px, 46%);
  padding: 64px var(--page) 64px max(var(--page), calc((100vw - var(--content)) / 2 + var(--page)));
}
.hero-date { font-size: 15px; letter-spacing: .1em; color: var(--apricot); }
.hero h1 { font-family: var(--serif); font-size: var(--t-display); font-weight: 700; line-height: 1.1; margin: 20px 0 28px; letter-spacing: .02em; }
.hero-copy > p:not(.hero-date) { font-size: 17px; line-height: 1.9; color: var(--on-rust-muted); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px; margin-top: 40px;
  font-weight: 500; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.button:active { transform: scale(.98); }
.button-light { background: var(--paper); color: var(--rust); }
.button-light:hover { background: var(--apricot); color: var(--rust-deep); }
.button-dark { width: 100%; background: var(--rust); color: var(--paper); margin-top: 24px; }
.button-dark:hover { background: var(--rust-deep); }

/* ---------- 本季消息：像甜點櫃上的價目卡，宋體大字配一行說明，細線分欄 ---------- */
.season-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  list-style: none; margin: 0;
  padding: 40px max(var(--page), calc((100vw - var(--content)) / 2 + var(--page)));
  background: var(--rust-deep); color: var(--on-rust);
}
.season-facts li { position: relative; display: grid; gap: 6px; padding: 0 32px; }
.season-facts li:first-child { padding-left: 0; }
.season-facts li + li::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 1px; background: rgba(248, 230, 210, .22); transform-origin: top;
}
.season-facts strong { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.3; color: var(--paper); }
.season-facts span { font-size: var(--t-small); color: var(--on-rust-muted); }

/* ---------- 季節品項 ---------- */
.season { padding: var(--section) var(--page); max-width: var(--content); margin: 0 auto; }
/* 主打款跨兩列，標題放在右側兩款上方；三欄底部對齊，價格列落在同一條線 */
.season-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 1fr auto; gap: 40px var(--gap); align-items: end; }
.season-intro { grid-column: 2 / 4; grid-row: 1; align-self: start; }
.season-intro p { margin-top: 12px; max-width: 30em; color: var(--muted); }
.item-feature { grid-column: 1; grid-row: 1 / 3; }
.item:not(.item-feature) { grid-row: 2; }
.item-photo { overflow: hidden; }
.item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease-out); }
.item:hover .item-photo img { transform: scale(1.04); }
.item-feature img { aspect-ratio: 5 / 6; }
.item-body { padding-top: 20px; }
.item h3 { font-size: var(--t-h3); font-weight: 500; }
.item-body > p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.item-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 59px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-weight: 500; }
.tag { font-size: 13px; color: var(--rust); }
.add {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--rust); color: var(--rust); font-size: var(--t-small);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.add:hover, .add.is-added { background: var(--rust); color: var(--paper); }
.add:active { transform: scale(.97); }

/* ---------- 糖漬製程 ---------- */
.process {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px);
  align-items: start; max-width: var(--content); margin: 0 auto; padding: 0 var(--page) var(--section);
}
.process-media { position: sticky; top: calc(var(--header-h) + 32px); }
.process-photo { overflow: hidden; }
.process-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.process-lead { margin-top: 16px; color: var(--muted); }
.process-steps { list-style: none; margin: 40px 0 0; padding: 0; }
.process-steps li { padding: 28px 0; border-top: 1px solid var(--line); transition: opacity .4s var(--ease); }
.process-day { font-size: var(--t-small); letter-spacing: .1em; color: var(--rust); }
.process-steps h3 { font-family: var(--serif); font-size: 26px; font-weight: 700; margin: 6px 0 8px; }
.process-steps p { color: var(--muted); }
.process-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding-top: 28px; border-top: 1px solid var(--ink); }
.process-facts dt { font-size: var(--t-small); color: var(--muted); }
.process-facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--rust); }

/* ---------- 禮盒 ---------- */
.gift { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--paper); }
/* 三張盒型照片疊在同一格，切換時淡入淡出 */
.gift-photo { display: grid; overflow: hidden; min-height: 560px; }
.gift-photo img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.gift-photo img.is-active { opacity: 1; }
.gift-panel { padding: var(--section) var(--page); align-self: center; }
.gift h2 { margin-bottom: 32px; }
.gift-options { border: 0; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gift-options legend { font-size: var(--t-small); color: var(--muted); margin-bottom: 10px; padding: 0; }
.gift-options input { position: absolute; opacity: 0; pointer-events: none; }
.gift-options span {
  display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 8px 14px;
  border: 1px solid var(--line); cursor: pointer; line-height: 1.5;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.gift-options b { font-weight: 500; }
.gift-options small { font-size: 13px; color: var(--muted); transition: color .2s var(--ease); }
.gift-options span:hover { border-color: var(--rust); }
.gift-options input:checked + span { background: var(--rust); border-color: var(--rust); color: var(--paper); }
.gift-options input:checked + span small { color: var(--on-rust-muted); }
.gift-options input:focus-visible + span { outline: 2px solid var(--apricot); outline-offset: 3px; }
.gift-detail { margin: 0; border-top: 1px solid var(--line); }
.gift-detail div { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.gift-detail dt { color: var(--muted); font-size: var(--t-small); }
.gift-detail dd { margin: 0; }
.qty { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.qty > span { color: var(--muted); font-size: var(--t-small); }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); }
.qty-control button { width: 48px; height: 48px; font-size: 20px; transition: background-color .2s var(--ease); }
.qty-control button:hover { background: var(--cream); }
.qty-control output { min-width: 40px; text-align: center; font-weight: 500; }
.gift-note { margin-top: 16px; font-size: var(--t-small); color: var(--muted); }

/* ---------- 常態甜點 ---------- */
/* 上排：左文字、右拼貼；下排：左門市照、右品項。左右等高，圖片跟著旁邊內容伸縮 */
.everyday { max-width: var(--content); margin: 0 auto; padding: var(--section) var(--page); }
.everyday-head, .everyday-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(var(--gap) * 2); align-items: stretch; }
.everyday-lead { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.everyday-intro { margin-top: 12px; color: var(--muted); }
.everyday-time { padding-top: 24px; border-top: 1px solid var(--ink); color: var(--muted); }
.everyday-time span {
  display: block; margin-bottom: 12px; font-family: var(--serif); font-size: clamp(56px, 6vw, 88px); font-weight: 700;
  line-height: 1; color: var(--rust); font-variant-numeric: tabular-nums;
}
.everyday-collage { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); height: clamp(300px, 26vw, 440px); }
.collage-main, .collage-side { overflow: hidden; }
.collage-side { margin-top: 56px; }
.everyday-collage img { width: 100%; height: 100%; object-fit: cover; }
.everyday-body { margin-top: var(--section-tight); }
.everyday-photo { position: relative; overflow: hidden; min-height: 360px; }
.everyday-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.menu-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 5.5em; gap: 24px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.menu-name { font-size: 19px; font-weight: 500; transition: color .2s var(--ease); }
.menu-list li:hover .menu-name { color: var(--rust); }
.menu-desc { color: var(--muted); font-size: 15px; }
.menu-price { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 企業禮贈 ---------- */
.business { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); background: var(--rust); color: var(--on-rust); }
/* 照片撐滿左半，高度跟右側文字一致 */
.business-media { position: relative; min-height: 560px; }
.business-photo { position: absolute; inset: 0; overflow: hidden; }
.business-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-sample {
  position: absolute; left: clamp(16px, 3vw, 48px); bottom: clamp(16px, 3vw, 48px); width: min(300px, 62%);
  margin: 0; padding: 22px 24px 20px; background: var(--paper); color: var(--ink);
  box-shadow: 0 18px 40px rgba(40, 16, 6, .35); transform: rotate(-3deg);
  transition: transform .3s var(--ease), opacity .8s var(--ease-out);
}
.card-sample:hover { transform: rotate(0); }
.card-sample figcaption { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 12px; letter-spacing: .1em; color: var(--rust); }
.card-message { font-family: var(--serif); font-size: 19px; line-height: 1.7; }
.card-sign { margin-top: 16px; text-align: right; font-size: 13px; color: var(--muted); }
.business-copy { align-self: center; max-width: 620px; padding: var(--section) var(--page); }
.business-lead { margin-top: 12px; color: var(--on-rust-muted); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding-bottom: 28px; }
.steps li:last-child { padding-bottom: 0; }
/* 圓圈之間的連接線 */
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 24px; top: 56px; bottom: 8px; width: 1px; background: rgba(248, 230, 210, .35); transform-origin: top; }
.step-no {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid var(--apricot); border-radius: 50%; font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--apricot);
}
.steps h3 { font-size: 19px; font-weight: 500; margin: 10px 0 4px; }
.steps p { color: var(--on-rust-muted); font-size: 15px; }

/* ---------- 門市 ---------- */
.stores {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: stretch;
  padding: var(--section) var(--page) var(--section-tight); max-width: var(--content); margin: 0 auto;
}
/* 門面照高度跟右側兩張店卡一致 */
.stores-photo { position: relative; overflow: hidden; min-height: 480px; }
.stores-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stores h2 { margin-bottom: 12px; }
.stores-lead { margin-bottom: 32px; max-width: 32em; color: var(--muted); }
.store-list { display: grid; gap: var(--gap); }
.store { padding: clamp(20px, 2.4vw, 32px); background: var(--paper); }
.store-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.store h3 { font-family: var(--serif); font-size: 26px; font-weight: 700; }
.store-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; margin: 0; }
.store-info div { display: grid; gap: 2px; }
.store-info dt { font-size: 13px; color: var(--muted); }
.store-info dd { margin: 0; font-size: 15px; }
.store-bake { display: flex; align-items: baseline; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--muted); }
.store-bake b { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--rust); font-variant-numeric: tabular-nums; }
.store-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.store-status:empty { display: none; }
.store-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.store-status.is-open { color: var(--open); }
.store-status.is-open::before { background: var(--open); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 122, 58, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(95, 122, 58, 0); } }

/* ---------- 訂購須知 ---------- */
.notes {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 calc(var(--gap) * 2);
  max-width: var(--content); margin: 0 auto; padding: var(--section-tight) var(--page) var(--section);
}
.notes h2 { grid-row: 1 / span 4; }
.notes details { grid-column: 2; border-bottom: 1px solid var(--line); }
.notes details:first-of-type { border-top: 1px solid var(--line); }
/* 支援的瀏覽器展開時高度平順過渡，不支援的照常直接展開 */
.notes details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
.notes details[open]::details-content { block-size: auto; }
.notes summary {
  display: flex; justify-content: space-between; align-items: center; min-height: 64px;
  cursor: pointer; list-style: none; font-size: 18px; font-weight: 500;
}
.notes summary::-webkit-details-marker { display: none; }
.notes summary::after { content: "＋"; color: var(--rust); transition: transform .2s var(--ease); }
.notes details[open] summary::after { transform: rotate(45deg); }
.notes details p { padding-bottom: 20px; color: var(--muted); max-width: 44em; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--rust-deep); color: var(--on-rust); padding: 56px var(--page) 40px; }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; max-width: var(--content); margin: 0 auto; }
.footer-logo { font-family: var(--serif); font-size: 28px; letter-spacing: .4em; }
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: var(--t-small); }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer nav a:hover { color: var(--apricot); }
.footer-note { max-width: var(--content); margin: 32px auto 0; padding-top: 24px; border-top: 1px solid rgba(248, 230, 210, .2); font-size: 13px; color: var(--on-rust-muted); }

/* ---------- 對話框（企業詢問、購物車） ---------- */
.sheet { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 32px; border: 0; background: var(--paper); color: var(--ink); }
.sheet::backdrop { background: rgba(58, 34, 22, .55); }
.sheet[open] { animation: sheet-in .24s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.sheet h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; }
.sheet-close { min-height: 44px; padding: 0 4px; color: var(--muted); font-size: var(--t-small); }
.sheet-form { display: grid; gap: 16px; }
.sheet-form label { display: grid; gap: 6px; font-size: var(--t-small); color: var(--muted); }
.sheet-form input { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 16px; border-radius: 0; }
.sheet-form input:focus-visible { outline-offset: 0; border-color: var(--rust); }
.sheet-form .button-dark, .sheet-done .button-dark { margin-top: 8px; }
.sheet-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.sheet-done p { margin-top: 12px; color: var(--muted); }
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-list li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-empty { color: var(--muted); }

/* ---------- 動態：系統沒有要求減少動態時才啟用 ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* 首屏進場：照片由近拉遠，標題由左往右揭開，其餘文字依序浮上 */
  .hero-photo { animation: hero-photo 1.8s var(--ease-out) both; }
  .hero-copy > * { animation: rise .8s var(--ease-out) both; }
  .hero-copy > :nth-child(1) { animation-delay: .1s; }
  .hero h1 { animation: wipe 1.1s var(--ease-out) .2s both; }
  .hero-copy > :nth-child(3) { animation-delay: .45s; }
  .hero-copy > :nth-child(4) { animation-delay: .6s; }
  @keyframes hero-photo { from { transform: scale(1.08); } }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
  @keyframes wipe { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -10% -20% 0); } }


  /* 常態甜點拼貼：兩張圖隨捲動以不同速度平移 */
  @supports (animation-timeline: view()) {
    .collage-main img { animation: drift-down linear both; animation-timeline: view(); }
    .collage-side img { animation: drift-up linear both; animation-timeline: view(); }
    @keyframes drift-down { from { transform: translateY(-4%) scale(1.1); } to { transform: translateY(4%) scale(1.1); } }
    @keyframes drift-up { from { transform: translateY(8%) scale(1.18); } to { transform: translateY(-8%) scale(1.18); } }
  }
}
/* 捲動到才顯示：需要 script.js 加上 is-in，沒有執行程式時照常顯示 */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  [data-reveal] img { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-out), transform 1.4s var(--ease-out), opacity .5s var(--ease); }
  [data-reveal]:not(.is-in) img { transform: scale(1.12); }
  [data-reveal].is-in img { clip-path: inset(0); }
  .steps[data-reveal] li::before { transform: scaleY(0); transition: transform .8s var(--ease-out); }
  .steps[data-reveal] li:nth-child(2)::before { transition-delay: .4s; }
  .steps[data-reveal].is-in li::before { transform: none; }
  /* 卡片樣稿等照片揭開後再滑進來 */
  .business-photo:not(.is-in) + .card-sample { opacity: 0; transform: translateY(32px) rotate(-3deg); }
  .business-photo + .card-sample { transition-delay: .5s; }
  .business-photo + .card-sample:hover { transition-delay: 0s; }
  /* 本季消息：分隔線由上往下畫出，文字依序浮上 */
  [data-facts] li { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  [data-facts] li::before { transition: transform .6s var(--ease-out); }
  [data-facts]:not(.is-in) li { opacity: 0; transform: translateY(12px); }
  [data-facts]:not(.is-in) li::before { transform: scaleY(0); }
  [data-facts] li:nth-child(2), [data-facts] li:nth-child(2)::before { transition-delay: .1s; }
  [data-facts] li:nth-child(3), [data-facts] li:nth-child(3)::before { transition-delay: .2s; }
  [data-facts] li:nth-child(4), [data-facts] li:nth-child(4)::before { transition-delay: .3s; }
}
/* 寬螢幕製程照片固定在左側，捲到哪一天就亮哪一段 */
@media (min-width: 901px) and (scripting: enabled) {
  .process-steps.has-current li:not(.is-current) { opacity: .4; }
}

/* ---------- 手機 ---------- */
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .header-right { gap: 20px; }
  .logo { font-size: 22px; padding-left: 0; }
  /* 三條線：中線收起、上下兩條轉成叉號 */
  .menu-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; color: var(--on-rust); }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .25s var(--ease-out), background-color .15s var(--ease); }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { transform: translateY(-7px); }
  .menu-icon::after { transform: translateY(7px); }
  .menu-button[aria-expanded="true"] .menu-icon { background-color: transparent; }
  .menu-button[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
  /* 全螢幕選單：像價目卡一樣從頁首往下展開，底部留給語言切換鈕 */
  .menu-open { overflow: hidden; }
  .mobile-menu {
    position: fixed; inset: var(--header-h) 0 0; z-index: 19;
    display: flex; flex-direction: column; gap: 32px;
    padding: 8px var(--page) calc(76px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--paper); color: var(--ink);
    visibility: hidden; clip-path: inset(0 0 100% 0);
    transition: clip-path .3s var(--ease-out), visibility 0s linear .3s;
  }
  .mobile-menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path .3s var(--ease-out); }
  .mobile-menu-list { list-style: none; margin: 0; padding: 0; }
  .mobile-menu-list li { border-bottom: 1px solid var(--line); }
  .mobile-menu-list a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 16px; padding: 16px 0; }
  .mobile-menu-name { font-family: var(--serif); font-size: clamp(28px, 8vw, 36px); font-weight: 700; line-height: 1.3; color: var(--rust); transition: color .2s var(--ease); }
  .mobile-menu-list a:active .mobile-menu-name { color: var(--rust-deep); }
  .mobile-menu-meta { font-size: 13px; color: var(--rust); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .mobile-menu-desc { grid-column: 1 / -1; font-size: var(--t-small); line-height: 1.6; color: var(--muted); }
  .mobile-menu-foot { display: grid; gap: 20px; margin-top: auto; }
  .mobile-menu-foot .button { margin-top: 0; }
  .mobile-menu-stores { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; font-size: 13px; line-height: 1.6; }
  .mobile-menu-stores dt { font-weight: 700; }
  .mobile-menu-stores dd { margin: 0; color: var(--muted); }
  /* 選單打開後項目依序浮上；關閉時一起淡出，不再排隊 */
  .mobile-menu-list li, .mobile-menu-foot { opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }
  .mobile-menu.is-open .mobile-menu-list li, .mobile-menu.is-open .mobile-menu-foot { opacity: 1; transform: none; }
  .mobile-menu.is-open .mobile-menu-list li:nth-child(1) { transition-delay: .08s; }
  .mobile-menu.is-open .mobile-menu-list li:nth-child(2) { transition-delay: .12s; }
  .mobile-menu.is-open .mobile-menu-list li:nth-child(3) { transition-delay: .16s; }
  .mobile-menu.is-open .mobile-menu-list li:nth-child(4) { transition-delay: .2s; }
  .mobile-menu.is-open .mobile-menu-list li:nth-child(5) { transition-delay: .24s; }
  .mobile-menu.is-open .mobile-menu-foot { transition-delay: .28s; }

  /* 手機照片照樣滿版，文字壓在底部的漸層上 */
  .hero { align-items: flex-end; min-height: calc(100svh - var(--header-h)); }
  .hero-photo { object-position: 74% center; }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(92, 34, 16, .94) 0%, rgba(92, 34, 16, .8) 38%, rgba(92, 34, 16, 0) 72%); }
  .hero-copy { max-width: none; padding: 32px var(--page) 48px; }
  .hero h1 { margin: 12px 0 20px; }
  .button { width: 100%; margin-top: 32px; }
  .season-facts { grid-template-columns: 1fr 1fr; row-gap: 28px; padding-block: 32px; }
  .season-facts li { padding: 0 0 0 20px; }
  .season-facts li:nth-child(odd) { padding-left: 0; }
  .season-facts li:nth-child(3)::before { display: none; }

  .season-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: var(--gap); align-items: start; }
  .season-intro { grid-column: 1 / -1; grid-row: auto; margin-bottom: 16px; }
  .item-feature, .item:not(.item-feature) { grid-row: auto; }
  .item-feature { grid-column: 1 / -1; }
  .item-feature img { aspect-ratio: 4 / 3; }

  .process { grid-template-columns: 1fr; gap: 32px; }
  .process-media { position: static; }

  .gift { grid-template-columns: 1fr; }
  .gift-photo { min-height: 0; aspect-ratio: 4 / 3; }

  .everyday-head, .everyday-body, .notes { grid-template-columns: 1fr; }
  .everyday-head { gap: 32px; }
  .everyday-collage { height: clamp(240px, 56vw, 420px); }
  .collage-side { margin-top: 32px; }
  .everyday-body { gap: 24px; }
  .everyday-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .notes h2 { grid-row: auto; margin-bottom: 16px; }
  .notes details { grid-column: 1; }

  .business { grid-template-columns: 1fr; }
  .business-media { min-height: 0; aspect-ratio: 4 / 3; }
  .card-sample { width: min(240px, 64%); padding: 16px 18px 14px; }
  .card-message { font-size: 16px; }
  .card-sign { margin-top: 10px; font-size: 12px; }
  .business-copy { max-width: none; padding: 48px var(--page) 64px; }

  .stores { grid-template-columns: 1fr; gap: 40px; }
  .stores-photo { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .season-grid { grid-template-columns: 1fr; }
  .item img, .item-feature img { aspect-ratio: 4 / 3; }
  .gift-options { gap: 8px; }
  .gift-options span { padding: 8px 10px; }
  .menu-list li { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; }
  .menu-desc { grid-column: 1; grid-row: 2; font-size: 14px; }
  .menu-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .store-info { grid-template-columns: 1fr; }
  .sheet { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
