/* YORU デジタルメニュー（スマホ優先）。色とフォントは tokens.css */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ink); }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--ink); color: var(--ivory); font: 400 16px/1.75 var(--f-body); -webkit-font-smoothing: antialiased; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[hidden] { display: none !important; }

/* ── 幕（ヒーロー写真の準備ができたら上がる） */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--ink); color: var(--amber); transition: opacity .6s var(--ease), visibility .6s; }
#loader svg { animation: breathe 1.4s ease-in-out infinite; }
.loaded #loader { opacity: 0; visibility: hidden; }
@keyframes breathe { 50% { opacity: .35; transform: scale(.92); } }

/* ── 上部バー */
.bar { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--bar); display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 20px; transition: background .4s; }
.scrolled .bar { background: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--amber); }
.brand span:first-of-type { font: 600 20px/1 var(--f-latin); letter-spacing: .32em; color: var(--ivory); }
.demo-pill { display: inline-block; font: 500 11.5px/1 var(--f-body); letter-spacing: .14em; color: var(--ember); border: 1px solid currentColor; border-radius: 3px; padding: 4px 6px 3px; margin-left: 4px; vertical-align: middle; }
.bar-btn { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; font-size: 14px; letter-spacing: .06em; }

/* ── ヒーロー */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--bar) + 6vh) var(--pad) calc(104px + env(safe-area-inset-bottom)); overflow: hidden; isolation: isolate; }
.hero-ph { position: absolute; inset: 0; z-index: -1; background: var(--char); }
.hero-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; animation: drift 24s ease-in-out infinite alternate; }
.hero-ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 9, .72) 0%, rgba(11, 10, 9, .28) 34%, rgba(11, 10, 9, .12) 52%, rgba(11, 10, 9, .9) 88%); }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12) translateY(-1.5%); } }
.eyebrow { font-size: 13px; letter-spacing: .28em; color: var(--amber); }
.logo { font: 500 clamp(84px, 27vw, 190px)/.95 var(--f-latin); letter-spacing: .12em; margin: 10px 0 0 -.04em; display: flex; }
.logo span { display: block; }
.tagline { font: 500 clamp(21px, 6vw, 30px)/1.6 var(--f-display); letter-spacing: .14em; margin-top: 18px; padding-top: 18px; position: relative; }
.tagline::before { content: ''; position: absolute; top: 0; left: 0; width: 44px; height: 1px; background: var(--amber); }
:root:not([lang='ja']):not([lang^='zh']) .tagline { letter-spacing: .02em; }
.intro { font-size: 15px; line-height: 1.9; color: rgba(243, 236, 223, .9); margin-bottom: 20px; }
.hero-meta { margin-top: 16px; font-size: 13px; letter-spacing: .08em; color: rgba(243, 236, 223, .78); text-align: center; }
.hero-meta i { display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 10px; opacity: .6; }
/* 登場：下から順に、短く */
.hero-in > *, .hero-foot > *, .logo span { opacity: 0; }
.loaded .hero-in > *, .loaded .hero-foot > * { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
.loaded .logo { animation: none; opacity: 1; }
.loaded .logo span { animation: letter 1.1s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 200ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes letter { from { opacity: 0; transform: translateY(.18em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ── ボタン */
.btn { white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 24px; border-radius: 999px; background: var(--amber); color: #15110b; font-weight: 500; font-size: 16px; letter-spacing: .08em; transition: transform .2s var(--ease), background .2s; }
.btn:active { transform: scale(.97); background: #e6b561; }
.btn[disabled] { background: var(--char-2); color: var(--mute); cursor: default; }
.btn-ghost { background: none; color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:active { background: var(--char-2); }
.hero .btn svg { animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* ── カテゴリーの帯（上に貼りつく） */
.rail { position: sticky; top: var(--bar); z-index: 20; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 14px; background: var(--ink); border-bottom: 1px solid var(--line); }
.rail::-webkit-scrollbar { display: none; }
.rail a { position: relative; flex: none; padding: 14px 10px 15px; font-size: 14.5px; color: var(--mute); white-space: nowrap; transition: color .3s; }
.rail a::after { content: ''; position: absolute; inset: auto 10px 0; height: 2px; background: var(--amber); transform: scaleX(0); transition: transform .4s var(--ease); }
.rail a[aria-current] { color: var(--ivory); }
.rail a[aria-current]::after { transform: scaleX(1); }

/* ── セクション（tone で明暗のリズムを作る） */
.sec { --bg: var(--ink); --fg: var(--ivory); --fg2: var(--mute); --ln: var(--line); --ac: var(--amber); position: relative; background: var(--bg); color: var(--fg); padding: 76px var(--pad) 60px; scroll-margin-top: calc(var(--bar) + 48px); overflow: hidden; }
.tone-char { --bg: var(--char); }
.tone-paper { --bg: var(--paper); --fg: #1c1915; --fg2: #5f574c; --ln: rgba(28, 25, 21, .18); --ac: #8f5f12; }
.sec-head { position: relative; margin-bottom: 30px; }
.sec-no { position: absolute; right: -4px; top: -66px; font: 500 96px/1 var(--f-latin); color: transparent; -webkit-text-stroke: 1px var(--ln); pointer-events: none; }
.sec-en { font: italic 500 19px/1.2 var(--f-latin); color: var(--ac); letter-spacing: .03em; }
.sec-head h2 { font: 500 34px/1.35 var(--f-display); letter-spacing: .1em; margin-top: 4px; }
.sec-head::after { content: ''; display: block; width: 44px; height: 1px; background: var(--ac); margin-top: 20px; }
:root[lang='en'] .sec-head h2 { font-size: 44px; letter-spacing: .01em; font-style: italic; }

/* スクロールで現れる */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ── 写真の枠（写真が無い・読みこめないときは月のモチーフ） */
.ph { display: block; overflow: hidden; background: var(--char-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2.8s var(--ease); }
.in .ph img, .in.ph img, .sheet .ph img { transform: none; }
.ph-empty { background: radial-gradient(circle at 72% 38%, var(--amber) 0 34px, transparent 35px), radial-gradient(circle at 72% 38%, rgba(216, 162, 74, .16) 0 90px, transparent 91px), var(--char-2); }
.is-out .ph img, .ph.is-out img { filter: grayscale(1) brightness(.6); }

/* ── 商品 */
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--ln); }
.item:last-child { border-bottom: 0; }
.item-open { display: block; text-align: left; min-width: 0; }
.item-txt { display: block; }
.nm { display: block; font: 500 19px/1.5 var(--f-display); letter-spacing: .03em; }
:root[lang='en'] .nm { font-size: 23px; line-height: 1.25; letter-spacing: 0; }
.sub { display: block; font: italic 500 15px/1.4 var(--f-latin); color: var(--ac, var(--amber)); margin-top: 2px; }
.sub-ja { font: 500 13px/1.6 'Shippori Mincho', serif; letter-spacing: .06em; }
.ds { display: block; font-size: 14.5px; line-height: 1.75; color: var(--fg2); margin-top: 8px; }
.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.price { font: 600 23px/1.3 var(--f-latin); letter-spacing: .01em; font-variant-numeric: lining-nums; white-space: nowrap; }
.add { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ac, var(--amber)); color: var(--ac, var(--amber)); transition: transform .25s var(--ease), background .25s, color .25s; }
.add:active { transform: scale(.86); background: var(--ac, var(--amber)); color: var(--bg, var(--ink)); }
.tag { display: inline-block; font-size: 12px; line-height: 1; letter-spacing: .14em; color: var(--ac, var(--amber)); border: 1px solid currentColor; border-radius: 2px; padding: 4px 7px; margin-bottom: 8px; }
.tag-out { color: var(--fg2, var(--mute)); }
.is-out .nm, .is-out .price { color: var(--fg2, var(--mute)); }

/* 大きな写真の1品 */
.item-feature { grid-template-columns: 1fr auto; padding-top: 0; }
.item-feature .item-open { grid-column: 1 / -1; }
.item-feature .ph { aspect-ratio: 4 / 3; margin: 0 calc(var(--pad) * -1) 20px; }
.item-feature .nm { font-size: 24px; }
:root[lang='en'] .item-feature .nm { font-size: 30px; }
.item-feature .item-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
.item-feature .price { font-size: 28px; }
/* 小さな写真つき */
.item-split .item-open { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; }
.item-split .ph { aspect-ratio: 1; border-radius: 3px; margin-top: 4px; }
/* 狭い画面では説明を2行までにして縦長になるのを防ぐ（全文は詳細で読める） */
@media (max-width: 599px) {
  .item-split .item-open { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .item-split .ds { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
/* 「おすすめ」見出しの下では、同じ文言のタグをくり返さない */
.results-h + .items .tag:not(.tag-out) { display: none; }

/* ── おすすめ（横に流れる大きなカード） */
.cards { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 6px; scroll-padding: 0 var(--pad); }
.cards::-webkit-scrollbar { display: none; }
.card { position: relative; flex: 0 0 78%; max-width: 340px; aspect-ratio: 3 / 4.3; scroll-snap-align: start; border-radius: 4px; overflow: hidden; }
.card-open { position: absolute; inset: 0; width: 100%; text-align: left; }
.card .ph { position: absolute; inset: 0; }
.card .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 9, .1) 30%, rgba(11, 10, 9, .92) 92%); }
.card-txt { position: absolute; inset: auto 0 0; padding: 20px 20px 22px; }
.card-no { display: block; font: italic 500 17px/1 var(--f-latin); color: var(--amber); margin-bottom: 10px; }
.card .nm { font-size: 22px; }
.card .price { display: block; margin-top: 10px; font-size: 26px; }
.card .add { position: absolute; top: 14px; right: 14px; background: rgba(11, 10, 9, .55); box-shadow: inset 0 0 0 1px rgba(243, 236, 223, .5); color: var(--ivory); }

/* ── 店舗情報 */
.info-ph { aspect-ratio: 16 / 10; margin: 0 calc(var(--pad) * -1) 28px; }
.about { font: 500 16.5px/2.1 var(--f-display); letter-spacing: .04em; }
.facts { margin-top: 28px; border-top: 1px solid var(--ln); }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--ln); }
.facts dt { font-size: 13.5px; letter-spacing: .1em; color: var(--fg2); padding-top: 2px; }
.sns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sns button { min-height: 44px; padding: 0 20px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ln); font: 500 17px/1 var(--f-latin); letter-spacing: .06em; }
.foot { padding: 44px var(--pad) 28px; font-size: 13px; line-height: 1.9; color: var(--mute); }
.foot .demo-pill { margin: 0 0 12px; }
.foot p + p { margin-top: 10px; }
.credit { font: italic 500 14px var(--f-latin); }

/* ── 下のドック（親指の届く位置に、カテゴリー・検索・カート） */
.dock { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto auto 1fr; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(30, 27, 24, .97); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--line); }
.dock button { white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; font-size: 14px; letter-spacing: .04em; transition: background .25s, transform .2s var(--ease); }
.dock button:active { transform: scale(.96); background: rgba(243, 236, 223, .08); }
.dock-cart { background: rgba(243, 236, 223, .07); }
.dock-cart.has { background: var(--amber); color: #15110b; font-weight: 500; }
.dock-cart-txt { display: flex; align-items: center; gap: 10px; font: 600 19px/1 var(--f-latin); }
.dock-cart:not(.has) .dock-cart-txt { font: 400 14px/1 var(--f-body); }
.dock-cart b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: #15110b; color: var(--amber); font: 500 13px/1 var(--f-body); }
.dock-cart.bump { animation: bump .5s var(--ease); }
@keyframes bump { 35% { transform: scale(1.07); } }
/* 狭い画面でカートに商品が入ったら、ほかの2つはアイコンだけにして金額の場所を空ける */
@media (max-width: 479px) { .dock:has(.dock-cart.has) button:not(.dock-cart) span { display: none; } }
@media (max-width: 359px) { .dock button:not(.dock-cart) span { display: none; } }

.to-top { position: fixed; z-index: 35; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(30, 27, 24, .95); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease), visibility .4s; }
.up .to-top { opacity: 1; visibility: visible; transform: none; }

#toast { position: fixed; z-index: 2147483647; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 10px); max-width: calc(100vw - 48px); padding: 11px 20px; border-radius: 999px; background: var(--ivory); color: #15110b; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── シート（下からせり上がる） */
.sheet { --fg2: var(--mute); --pad: 24px; scrollbar-width: thin; scrollbar-color: #4a443d transparent; position: fixed; inset: auto 0 0; width: 100%; max-width: 560px; max-height: 92dvh; margin: 0 auto; padding: 0; border: 0; border-radius: 18px 18px 0 0; background: var(--char); color: var(--ivory); overflow-y: auto; overscroll-behavior: contain; }
.sheet[open] { animation: sheet-in .42s var(--ease); }
.sheet.closing { animation: sheet-out .2s ease-in forwards; }
.sheet::backdrop { background: rgba(0, 0, 0, .62); animation: fade .3s; }
.sheet.closing::backdrop { opacity: 0; transition: opacity .2s; }
.sheet-full { height: 92dvh; display: flex; flex-direction: column; }
@keyframes sheet-in { from { transform: translateY(40%); opacity: 0; } }
@keyframes sheet-out { to { transform: translateY(30%); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 12px var(--pad); background: var(--char); border-bottom: 1px solid var(--line); }
.sheet-head h2 { font: 500 19px/1.4 var(--f-display); letter-spacing: .08em; }
.x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.x-float { position: absolute; z-index: 3; top: 12px; right: 12px; background: rgba(11, 10, 9, .6); }
.x:active { background: rgba(243, 236, 223, .1); }

.d-ph { aspect-ratio: 4 / 3; max-height: 44dvh; width: 100%; }
.d-ph.ph-empty { aspect-ratio: 16 / 7; }
.d-body { padding: 24px var(--pad) 28px; }
.d-cat { font-size: 13px; letter-spacing: .16em; color: var(--mute); margin-bottom: 10px; }
.d-name { font: 500 27px/1.45 var(--f-display); letter-spacing: .04em; }
:root[lang='en'] .d-name { font-size: 34px; line-height: 1.15; }
.d-price { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }
.d-price .price { font-size: 34px; }
.d-price small, .total small { font-size: 12.5px; color: var(--mute); margin-left: 6px; }
.d-desc { margin-top: 16px; font-size: 16px; line-height: 1.95; }
.d-body h3 { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font: 500 14px/1 var(--f-body); letter-spacing: .14em; color: var(--amber); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--char-2); font-size: 15px; }
.al-none { margin-top: 12px; font-size: 15px; }
.note { margin-top: 12px; font-size: 13px; line-height: 1.8; color: var(--mute); }
.d-foot { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 12px; margin-top: auto; padding: 12px var(--pad) calc(14px + env(safe-area-inset-bottom)); background: var(--char); border-top: 1px solid var(--line); }
.d-sum { font: 600 20px/1 var(--f-latin); }
.d-foot .btn { flex: 1; min-width: 0; padding: 0 14px; font-size: 15px; letter-spacing: .03em; }
.d-foot .btn-ghost { flex: none; width: auto; padding: 0 22px; }
.stepper { flex: none; display: flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.stepper button { display: grid; place-items: center; width: 44px; height: 48px; border-radius: 50%; }
.stepper button:active { background: rgba(243, 236, 223, .1); }
.stepper output { min-width: 26px; text-align: center; font: 600 21px/1 var(--f-latin); }
.d-foot .stepper { height: 56px; padding: 0 4px; }

.opts { padding: 8px 0 calc(16px + env(safe-area-inset-bottom)); }
.opts button, .opts a { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 58px; padding: 0 var(--pad); font: 500 18px/1.4 var(--f-display); letter-spacing: .06em; text-align: left; }
.opts button:active, .opts a:active { background: rgba(243, 236, 223, .06); }
.opts [aria-current] { color: var(--amber); }
.opts [aria-current]::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-left: auto; }
.opts i { width: 26px; font: italic 500 16px/1 var(--f-latin); color: var(--amber); }
.opts small { margin-left: auto; font: 500 16px/1 var(--f-latin); color: var(--mute); }

.search { flex: 1; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px; background: var(--char-2); color: var(--mute); margin-left: -8px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ivory); font: inherit; font-size: 16px; outline: 0; }
.search:focus-within { box-shadow: inset 0 0 0 1px var(--amber); }
.search input::-webkit-search-cancel-button { display: none; }
.results { padding: 6px var(--pad) 24px; }
.results-h { padding-top: 18px; font-size: 13px; letter-spacing: .16em; color: var(--amber); }
.empty { padding: 56px var(--pad); text-align: center; color: var(--mute); }

.lines { padding: 4px var(--pad) 0; }
.lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.lines .nm { font-size: 17px; }
.lines .qty { color: var(--mute); font: 500 18px/1 var(--f-latin); }
.lines-edit li { grid-template-columns: minmax(0, 1fr) auto; }
.lines-edit .stepper { justify-self: start; }
.del { min-height: 44px; padding: 0 6px; font-size: 14px; color: var(--mute); text-decoration: underline; text-underline-offset: 4px; }
.total { display: flex; align-items: baseline; justify-content: space-between; padding: 22px var(--pad) 0; font-size: 15px; }
.total .price { font-size: 34px; }
.sheet-full > .note { padding: 0 var(--pad) 20px; }
.demo-box { display: flex; gap: 14px; align-items: flex-start; margin: 18px var(--pad) 4px; padding: 14px 16px; border: 1px solid var(--ember); border-radius: 6px; font-size: 14px; line-height: 1.75; }
.demo-box b { flex: none; font: 600 15px/1.7 var(--f-body); letter-spacing: .16em; color: var(--ember); }
.done { padding: 52px var(--pad) 36px; text-align: center; }
.done-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--amber); color: var(--amber); animation: rise .8s var(--ease) both; }
.done h3 { font: 500 24px/1.5 var(--f-display); letter-spacing: .06em; margin: 16px 0 12px; }
.done p { color: var(--mute); font-size: 15px; }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ── PC・タブレット */
@media (min-width: 900px) {
  :root { --pad: max(48px, calc((100vw - 1080px) / 2)); }
  body { padding-bottom: 0; }
  .hero { padding-bottom: 72px; }
  .hero-foot { max-width: 420px; }
  .hero-meta { text-align: left; }
  .rail { justify-content: center; }
  .sec { padding-top: 110px; padding-bottom: 96px; }
  .sec-head h2 { font-size: 42px; }
  .sec-no { font-size: 200px; right: 0; top: -60px; }
  .sec .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .item:last-child { border-bottom: 1px solid var(--ln); }
  .item-feature { grid-column: 1 / -1; grid-template-columns: 1fr; padding-bottom: 40px; position: relative; }
  .item-feature .item-open { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
  .item-feature .ph { margin: 0; }
  .item-feature .item-side { position: absolute; right: 0; bottom: 40px; width: calc((100% - 48px) / 2.15); }
  .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; overflow: visible; }
  .card { max-width: none; }
  .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .info-ph { margin: 0; aspect-ratio: 4 / 3; }
  .dock { left: 50%; right: auto; width: 440px; transform: translateX(-50%); bottom: 20px; }
  .to-top { right: 28px; bottom: 28px; }
  .foot { padding-bottom: 110px; }
  .sheet { inset: 0; margin: auto; height: fit-content; max-height: 88dvh; border-radius: 14px; }
  .sheet-full { height: min(760px, 88dvh); }
  @keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
}
@media (hover: hover) {
  .item-open:hover .nm, .card-open:hover .nm { color: var(--ac, var(--amber)); }
  .item-open:hover .ph img, .card-open:hover .ph img { transform: scale(1.05); transition-duration: 1.2s; }
  .rail a:hover, .opts a:hover, .opts button:hover { color: var(--ivory); }
  .add:hover { background: var(--ac, var(--amber)); color: var(--bg, var(--ink)); }
}

/* 動きを減らす設定の人には、動かさずにそのまま見せる */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}
