/* =========================================================
   YOIN Coffee & Cake — style.css
   - 色・文字・余白はすべて :root の変数で管理
   - 演出用の「最初は隠す」指定は .js:not(.no-motion) の下にだけ書く
     （JS が無効・CDN が読めない・視差効果を減らす設定でも全文が見える）
   - backdrop-filter / mix-blend-mode / 画面全体の固定レイヤーは使わない
   ========================================================= */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* color */
  --c-ink: #120c08;
  --c-ink-2: #1a120d;
  --c-ink-3: #241811;
  --c-bean: #2a1c14;
  --c-cream: #f3ebe0;
  --c-milk: #faf6ef;
  --c-latte: #e4d5c3;
  --c-caramel: #c98b4f;
  --c-caramel-dk: #8a5426;
  --c-berry: #b94a5e;
  --c-open: #8fcf8a;
  --c-roast-track: #6b4a2f;

  --t-on-dark: #f3ebe0;
  --t-on-dark-2: rgb(243 235 224 / .7);
  --t-on-dark-3: rgb(243 235 224 / .45);
  --t-on-light: #2a1c14;
  --t-on-light-2: #6a5646;
  --line-dark: rgb(243 235 224 / .14);
  --line-light: rgb(42 28 20 / .14);

  /* type */
  --f-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  --f-serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --f-en: "Fraunces", "Shippori Mincho B1", "Times New Roman", serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* layout */
  --pad-x: clamp(20px, 5vw, 72px);
  --sec-y: clamp(96px, 13vw, 200px);
  --max: 1320px;
  --header-h: 76px;
  --r-lg: clamp(18px, 2.2vw, 28px);
  --r-md: 16px;

  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

@media (max-width: 1079px) {
  :root { --header-h: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  interpolate-size: allow-keywords;
  hanging-punctuation: allow-end;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--c-ink);
  color: var(--t-on-dark);
  font-family: var(--f-sans);
  font-size: clamp(15px, .2vw + 14.4px, 17px);
  line-height: 1.9;
  letter-spacing: .04em;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; word-break: auto-phrase; }
p { text-wrap: pretty; }
small { font-size: inherit; }

:focus-visible { outline: 2px solid var(--c-caramel); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-caramel); color: var(--c-ink); }

.pc { display: none; }
@media (min-width: 900px) { .pc { display: inline; } }

.skip-link {
  position: fixed; left: 16px; top: -120px; z-index: 600;
  padding: 10px 18px; border-radius: 10px;
  background: var(--c-cream); color: var(--c-ink); font-weight: 700;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

.wrap { width: min(100% - var(--pad-x) * 2, var(--max)); margin-inline: auto; }
.sec { position: relative; padding-block: var(--sec-y); }
.is-light { background: var(--c-cream); color: var(--t-on-light); }

/* ---------- Section heading ---------- */
.sec-head { margin-bottom: clamp(48px, 7vw, 96px); }
.sec-head--split { display: grid; gap: 24px 64px; align-items: end; }
@media (min-width: 900px) { .sec-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

.sec-label {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-caramel);
}
.is-light .sec-label { color: var(--c-caramel-dk); }
.sec-label__line { width: 48px; height: 1px; background: currentColor; opacity: .6; }

.sec-title {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 1.15rem + 3.4vw, 4rem);
  line-height: 1.4; letter-spacing: .06em;
  font-feature-settings: "palt";
}
.sec-lead { max-width: 34em; color: var(--t-on-dark-2); word-break: auto-phrase; }
.is-light .sec-lead { color: var(--t-on-light-2); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--c-cream); --fg: var(--c-ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .95rem; letter-spacing: .08em; white-space: nowrap;
  transition: color .45s var(--ease), box-shadow .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--c-caramel);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--c-cream); box-shadow: inset 0 0 0 1px rgb(243 235 224 / .45); }
.btn--ghost:hover { color: var(--c-ink); box-shadow: inset 0 0 0 1px transparent; }
.btn--ghost-dark { --bg: transparent; --fg: var(--t-on-light); box-shadow: inset 0 0 0 1px var(--line-light); }
.btn--ghost-dark:hover { color: var(--c-ink); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: .84rem; }
.btn--block { width: 100%; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js:not(.no-motion) .loader {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  background: var(--c-ink); color: var(--c-cream);
}
.loader__inner { display: grid; justify-items: center; gap: 16px; }
.loader__mark { width: 72px; height: 72px; fill: none; stroke: var(--c-caramel); stroke-width: 2.2; stroke-linecap: round; overflow: visible; }
.loader__dot { fill: var(--c-caramel); stroke: none; transform-box: fill-box; transform-origin: center; }
.loader__ring { stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader__brand { font: 400 30px/1 var(--f-en); letter-spacing: .42em; padding-left: .42em; font-variation-settings: "opsz" 72, "SOFT" 100; }
.loader__count { font: 400 12px/1 var(--f-mono); letter-spacing: .2em; color: var(--t-on-dark-2); font-variant-numeric: tabular-nums; }

/* ---------- Progress（CSS スクロール連動アニメーション） ---------- */
.progress { position: fixed; inset: 0 0 auto; z-index: 70; height: 2px; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--c-caramel); transform-origin: left; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress__bar { animation: grow-x linear both; animation-timeline: scroll(root block); }
}
@keyframes grow-x { to { transform: scaleX(1); } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--pad-x);
  color: var(--c-cream);
  transition: transform .6s var(--ease), background-color .4s, box-shadow .4s;
}
.header.is-scrolled { background: rgb(18 12 8 / .92); box-shadow: 0 1px 0 var(--line-dark); }
.header.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; overflow: visible; transition: transform .9s var(--ease); }
.brand__mark circle { fill: var(--c-caramel); stroke: none; }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__name { font: 500 22px/1 var(--f-en); letter-spacing: .16em; font-variation-settings: "opsz" 48, "SOFT" 50; }
.brand__sub { max-width: 6em; font: 400 10px/1.25 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }

.gnav { display: none; }
@media (min-width: 1080px) {
  .gnav { display: block; }
  .gnav ul { display: flex; gap: clamp(14px, 1.7vw, 30px); }
  .gnav a {
    position: relative; display: inline-flex; align-items: baseline; gap: 6px;
    padding-block: 8px; font: 400 14px/1 var(--f-en); letter-spacing: .04em;
  }
  .gnav a span { font: 400 10px/1 var(--f-mono); color: var(--c-caramel); }
  .gnav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
  }
  .gnav a:hover::after, .gnav a.is-current::after { transform: scaleX(1); transform-origin: left; }
}

.header__actions { display: flex; align-items: center; gap: 14px; }
.status-chip { display: none; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .06em; color: var(--t-on-dark-2); white-space: nowrap; }
@media (min-width: 1280px) { .status-chip { display: inline-flex; } }
.status-chip__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--t-on-dark-3); }
[data-state="open"] .status-chip__dot { background: var(--c-open); animation: pulse 2.4s infinite; }
[data-state="soon"] .status-chip__dot { background: var(--c-caramel); }
.is-light [data-state="closed"] .status-chip__dot, .is-light[data-state="closed"] .status-chip__dot { background: #b3a393; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(143 207 138 / .55); }
  70% { box-shadow: 0 0 0 10px rgb(143 207 138 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(143 207 138 / 0); }
}
.header .btn--small { display: none; }
@media (min-width: 640px) { .header .btn--small { display: inline-flex; } }

.menu-btn { width: 48px; height: 48px; display: grid; place-content: center; gap: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-dark); }
.menu-btn__line { display: block; width: 20px; height: 1.5px; background: currentColor; }
@media (min-width: 1080px) { .menu-btn { display: none; } }

/* ---------- Mobile menu（Popover API + @starting-style） ---------- */
.mobile-menu {
  position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0 var(--pad-x) 48px; border: 0;
  background: var(--c-ink); color: var(--c-cream);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; clip-path: inset(0 0 100% 0);
  transition: opacity .45s var(--ease), clip-path .75s var(--ease), overlay .75s allow-discrete, display .75s allow-discrete;
}
.mobile-menu:popover-open { opacity: 1; clip-path: inset(0 0 0 0); }
@starting-style { .mobile-menu:popover-open { opacity: 0; clip-path: inset(0 0 100% 0); } }
.mobile-menu::backdrop { background: transparent; }
html:has(.mobile-menu:popover-open) { overflow: hidden; }
@supports not selector(:popover-open) {
  .mobile-menu { display: none; }
  .mobile-menu.is-open { display: block; opacity: 1; clip-path: none; z-index: 800; }
}
.mobile-menu__head { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__brand { font: 500 22px/1 var(--f-en); letter-spacing: .16em; }
.mobile-menu__close { position: relative; width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-dark); }
.mobile-menu__close span::before, .mobile-menu__close span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.mobile-menu__close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.mobile-menu__list { margin-top: 16px; border-top: 1px solid var(--line-dark); }
.mobile-menu__list a {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 8px;
  padding: 18px 0; border-bottom: 1px solid var(--line-dark);
  font: 400 clamp(1.6rem, 6.4vw, 2.3rem)/1.1 var(--f-en); letter-spacing: .01em;
}
.mobile-menu__list span { font: 400 11px/1 var(--f-mono); color: var(--c-caramel); }
.mobile-menu__list small { font: 400 12px/1 var(--f-sans); letter-spacing: .08em; color: var(--t-on-dark-2); }
.mobile-menu__list li { transition: opacity .5s var(--ease), translate .8s var(--ease); transition-delay: .12s; }
@starting-style { .mobile-menu:popover-open .mobile-menu__list li { opacity: 0; translate: 0 18px; } }
@supports (transition-delay: calc(sibling-index() * 1ms)) {
  .mobile-menu__list li { transition-delay: calc(sibling-index() * 45ms + 80ms); }
}
.mobile-menu__meta { margin-top: 28px; font-size: 13px; color: var(--t-on-dark-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 600px;
  background: var(--c-ink); color: var(--c-cream);
}
.hero__media, .hero__gl, .hero__shade { position: absolute; inset: 0; }
.hero__media { z-index: -3; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease-io); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide:nth-child(1) img { object-position: 66% 50%; }
.hero__slide:nth-child(2) img { object-position: 62% 52%; }
.hero__slide:nth-child(3) img { object-position: 70% 55%; }
@media (max-aspect-ratio: 9/10) {
  .hero__slide:nth-child(1) img { object-position: 50% 12%; }
  .hero__slide:nth-child(2) img { object-position: 50% 20%; }
  .hero__slide:nth-child(3) img { object-position: 50% 15%; }
}
.hero__gl { z-index: -2; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); touch-action: pan-y; }
.hero.has-gl .hero__gl { opacity: 1; }
.hero__shade {
  z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(18 12 8 / .86) 0%, rgb(18 12 8 / .62) 28%, rgb(18 12 8 / .12) 58%, rgb(18 12 8 / 0) 74%),
    linear-gradient(0deg, rgb(18 12 8 / .78) 0%, rgb(18 12 8 / 0) 30%),
    linear-gradient(180deg, rgb(18 12 8 / .55) 0%, rgb(18 12 8 / 0) 22%);
}
@media (max-aspect-ratio: 9/10) {
  .hero__shade {
    background:
      linear-gradient(0deg, rgb(18 12 8 / .97) 0%, rgb(18 12 8 / .86) 40%, rgb(18 12 8 / .35) 62%, rgb(18 12 8 / 0) 78%),
      linear-gradient(180deg, rgb(18 12 8 / .6) 0%, rgb(18 12 8 / 0) 20%);
  }
}

.hero__inner {
  position: relative; height: 100%;
  width: min(100% - var(--pad-x) * 2, var(--max)); margin-inline: auto;
  display: grid; align-content: center;
  padding-top: var(--header-h);
}
.hero__copy { max-width: 780px; }
.hero__kicker {
  display: flex; align-items: center; gap: 14px; margin-bottom: clamp(18px, 2.4vw, 30px);
  font: 500 12px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--c-caramel);
}
.hero__kicker span { width: 40px; height: 1px; background: currentColor; }
.hero__title {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(1.9rem, .9rem + 5.2vw, 5.6rem);
  line-height: 1.32; letter-spacing: .05em;
  font-feature-settings: "palt";
}
.hero__line { display: block; }
@media (min-width: 360px) { .hero__line { white-space: nowrap; } }
.hero__lead {
  max-width: 30em; margin-top: clamp(20px, 2.6vw, 34px);
  font-size: clamp(.95rem, .88rem + .3vw, 1.08rem); line-height: 2;
  color: var(--t-on-dark-2); word-break: auto-phrase;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 3.4vw, 44px); }
.hero__status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 26px; font-size: 13px; color: var(--t-on-dark-2); }
.hero__bake { color: var(--c-caramel); }
.hero__bake:empty, .info__bake:empty { display: none; }

.hero__slides { position: absolute; right: 0; bottom: clamp(28px, 6vh, 64px); display: grid; justify-items: end; gap: 14px; }
.hero__caption { font-size: 12px; letter-spacing: .1em; color: var(--t-on-dark-2); transition: opacity .5s var(--ease); }
.hero__caption.is-changing { opacity: 0; }
.hero__dots { display: flex; gap: 14px; }
.hero__dot {
  display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 10px; align-items: baseline;
  min-width: 92px; padding: 8px 0; text-align: left;
  color: rgb(243 235 224 / .62); transition: color .4s;
}
.hero__dot.is-active, .hero__dot:hover { color: var(--c-cream); }
.hero__dot-num { font: 400 11px/1 var(--f-mono); }
.hero__dot-label { font: italic 400 15px/1 var(--f-en); }
.hero__dot-bar { grid-column: 1 / -1; display: block; height: 1px; background: rgb(243 235 224 / .2); overflow: hidden; }
.hero__dot-bar i { display: block; height: 100%; background: var(--c-caramel); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active .hero__dot-bar i { animation: grow-x var(--slide-dur, 7s) linear forwards; }
.hero.is-paused .hero__dot.is-active .hero__dot-bar i { animation-play-state: paused; }
.no-motion .hero__dot.is-active .hero__dot-bar i { animation: none; transform: scaleX(1); }

.hero__hint {
  position: absolute; left: var(--pad-x); bottom: clamp(28px, 6vh, 64px);
  display: none; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .08em; color: var(--t-on-dark-2);
  transition: opacity .8s var(--ease);
}
.hero.has-gl .hero__hint { display: flex; }
.hero__hint.is-done { opacity: 0; }
.hero__hint svg { width: 24px; height: 24px; fill: none; stroke: var(--c-caramel); stroke-width: 1.2; overflow: visible; }
.hero__hint circle { transform-box: fill-box; transform-origin: center; animation: hint-ripple 2.4s var(--ease) infinite; }
.hero__hint circle:nth-child(2) { animation-delay: .25s; }
.hero__hint circle:nth-child(3) { animation-delay: .5s; }
@keyframes hint-ripple { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0;
  display: none; flex-direction: column; align-items: center; gap: 10px;
  font: 400 10px/1 var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--t-on-dark-2);
}
@media (min-width: 1080px) and (min-height: 720px) { .hero__scroll { display: flex; } }
.hero__scroll i { position: relative; width: 1px; height: 48px; overflow: hidden; background: rgb(243 235 224 / .25); }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--c-cream); animation: scroll-cue 2.2s var(--ease-io) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* mobile hero layout */
@media (max-width: 899px), (max-aspect-ratio: 9/10) {
  .hero__inner { align-content: end; padding-bottom: clamp(36px, 7vh, 64px); }
  .hero__slides { position: static; justify-items: start; margin-top: 22px; }
  .hero__caption { display: none; }
  .hero__dots { gap: 10px; }
  .hero__dot { min-width: 0; }
  .hero__dot-label { display: none; }
  .hero__dot-bar { width: 34px; }
  .hero__hint { top: calc(var(--header-h) + 22px); bottom: auto; max-width: 44%; }
  .hero__hint-text { line-height: 1.5; }
  .hero__cta .btn { min-height: 52px; padding: 0 24px; }
  .hero__kicker, .hero__title { text-shadow: 0 1px 14px rgb(18 12 8 / .75); }
}
@media (max-width: 380px) {
  .hero__cta .btn--ghost { display: none; }
}

/* hero intro（ローダーのあとで .is-intro を付ける） */
.js:not(.no-motion) .hero__kicker,
.js:not(.no-motion) .hero__lead,
.js:not(.no-motion) .hero__cta,
.js:not(.no-motion) .hero__status,
.js:not(.no-motion) .hero__slides,
.js:not(.no-motion) .hero__hint,
.js:not(.no-motion) .hero__scroll {
  opacity: 0; translate: 0 24px;
  transition: opacity 1.1s var(--ease), translate 1.3s var(--ease);
}
.js:not(.no-motion) .hero__scroll { translate: -50% 24px; }
.js:not(.no-motion) .hero.is-intro .hero__kicker { opacity: 1; translate: 0 0; transition-delay: .05s; }
.js:not(.no-motion) .hero.is-intro .hero__lead { opacity: 1; translate: 0 0; transition-delay: .75s; }
.js:not(.no-motion) .hero.is-intro .hero__cta { opacity: 1; translate: 0 0; transition-delay: .9s; }
.js:not(.no-motion) .hero.is-intro .hero__status { opacity: 1; translate: 0 0; transition-delay: 1.05s; }
.js:not(.no-motion) .hero.is-intro .hero__slides { opacity: 1; translate: 0 0; transition-delay: 1.15s; }
.js:not(.no-motion) .hero.is-intro .hero__hint { opacity: 1; translate: 0 0; transition-delay: 1.6s; }
.js:not(.no-motion) .hero.is-intro .hero__hint.is-done { opacity: 0; transition-delay: 0s; }
.js:not(.no-motion) .hero.is-intro .hero__scroll { opacity: 1; translate: -50% 0; transition-delay: 1.3s; }

/* ---------- Text split（文字単位の演出） ---------- */
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }
.js:not(.no-motion) [data-split] .w,
.js:not(.no-motion) [data-hero-title] .w { overflow: clip; overflow-clip-margin: .14em; vertical-align: top; }
.js:not(.no-motion) [data-split] .ch,
.js:not(.no-motion) [data-hero-title] .ch {
  opacity: 0; transform: translateY(105%) rotate(7deg); transform-origin: 0 100%;
  transition: transform 1.1s var(--ease), opacity .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 18ms);
}
.js:not(.no-motion) [data-hero-title] .ch { transition-delay: calc(var(--i, 0) * 34ms + .1s); transition-duration: 1.3s, 1s; }
.js:not(.no-motion) [data-split].is-in .ch,
.js:not(.no-motion) .hero.is-intro [data-hero-title] .ch { opacity: 1; transform: none; }

/* ---------- Reveal ---------- */
.js:not(.no-motion) [data-reveal] {
  opacity: 0; transform: translateY(44px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js:not(.no-motion) [data-reveal].is-in { opacity: 1; transform: none; }
[data-delay="1"] { --d: 1; }
[data-delay="2"] { --d: 2; }
[data-delay="3"] { --d: 3; }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding-block: clamp(14px, 2vw, 26px); background: var(--c-caramel); color: var(--c-ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee__track.is-js { animation: none; }
.no-motion .marquee__track { animation: none; }
.marquee__group { flex: none; display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding-right: clamp(20px, 3vw, 48px); }
.marquee span {
  font: italic 300 clamp(2.1rem, 1.1rem + 4vw, 5rem)/1.15 var(--f-en); white-space: nowrap; letter-spacing: -.01em;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.marquee .is-outline { color: transparent; -webkit-text-stroke: 1px var(--c-ink); }
.marquee i { font-style: normal; font-size: clamp(1rem, .6rem + 1.2vw, 1.6rem); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 01 Concept ---------- */
.concept__grid { display: grid; gap: clamp(48px, 7vw, 120px); align-items: start; view-timeline: --concept block; }
@media (min-width: 960px) {
  .concept__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .concept__visual { position: sticky; top: calc(var(--header-h) + 36px); }
}
.concept__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); background: var(--c-latte); }
.concept__frame img { width: 100%; height: 100%; object-fit: cover; }
@supports (animation-timeline: view()) {
  .js:not(.no-motion) .concept__frame { animation: frame-open linear both; animation-timeline: --concept; animation-range: entry 0% entry 90%; }
}
@keyframes frame-open {
  from { clip-path: inset(9% 11% 9% 11% round 220px); }
  to { clip-path: inset(0 0 0 0 round var(--r-lg)); }
}
.concept__caption { margin-top: 14px; font-size: 13px; color: var(--t-on-light-2); }
.concept__text { max-width: 36em; margin-top: clamp(4px, 1vw, 12px); color: var(--t-on-light-2); }
.concept__statement {
  margin-top: clamp(40px, 6vw, 80px);
  font-family: var(--f-serif); font-size: clamp(1.3rem, .98rem + 1.3vw, 2.05rem);
  line-height: 1.9; letter-spacing: .06em; font-feature-settings: "palt";
  color: var(--t-on-light);
}

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 88px); padding-top: 28px; border-top: 1px solid var(--line-light); }
.stat__value { font-family: var(--f-sans); font-weight: 500; font-size: clamp(2.1rem, 1.3rem + 3vw, 4rem); line-height: 1; letter-spacing: .01em; color: var(--t-on-light); white-space: nowrap; }
.stat__unit { margin-left: .18em; font-size: .38em; letter-spacing: .1em; }
.stat__label { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--t-on-light-2); }

/* ---------- 02 Coffee ---------- */
.coffee { background: var(--c-ink); }
.brew { display: grid; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 900px) {
  .brew { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .brew__item:nth-child(2) { margin-top: 64px; }
  .brew__item:nth-child(3) { margin-top: 128px; }
}
@media (max-width: 899px) {
  .brew {
    grid-auto-flow: column; grid-auto-columns: min(78%, 360px);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); scroll-padding-inline: var(--pad-x);
    padding-bottom: 8px; scrollbar-width: none;
  }
  .brew::-webkit-scrollbar { display: none; }
  .brew__item { scroll-snap-align: start; }
  /* CSS だけのカルーセル用ドット（対応ブラウザのみ） */
  @supports (scroll-marker-group: after) {
    .brew { scroll-marker-group: after; }
    .brew::scroll-marker-group { display: flex; justify-content: center; gap: 10px; padding-top: 18px; }
    .brew__item::scroll-marker { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-dark); }
    .brew__item::scroll-marker:target-current { background: var(--c-caramel); }
  }
}
.brew-card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--c-ink-2);
  transition: transform .7s var(--ease);
}
.brew-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(201 139 79 / .18), transparent 60%);
  opacity: 0; transition: opacity .45s;
}
.brew-card:hover::after { opacity: 1; }
.brew-card__media { aspect-ratio: 4 / 5; overflow: hidden; }
.brew-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.brew-card:hover .brew-card__media img { transform: scale(1.05); }
.brew-card__body { display: grid; gap: 6px; padding: 24px 24px 28px; }
.brew-card__en { font: italic 400 1.6rem/1.1 var(--f-en); color: var(--c-caramel); font-variation-settings: "opsz" 72, "SOFT" 100; }
.brew-card__title { font-family: var(--f-serif); font-size: 1.12rem; letter-spacing: .1em; }
.brew-card__text { font-size: .9rem; line-height: 1.85; color: var(--t-on-dark-2); }
.brew-card__price { margin-top: 8px; font: 500 1.15rem/1 var(--f-sans); }
.brew-card__price span { margin-left: 2px; font-size: .8em; color: var(--t-on-dark-2); }

.beans { margin-top: clamp(80px, 10vw, 140px); }
.beans__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; padding-bottom: 20px; border-bottom: 1px solid var(--line-dark); }
.beans__title { display: grid; gap: 8px; font-family: var(--f-serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: .08em; }
.beans__en { font: 500 11px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--c-caramel); }
.beans__note { font-size: 13px; color: var(--t-on-dark-2); }
.bean { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .bean { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; gap: 24px; } }
.bean__origin { font: 400 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1.1 var(--f-en); font-variation-settings: "opsz" 96, "SOFT" 50; }
.bean--blend .bean__origin { color: var(--c-caramel); font-style: italic; }
.bean__region { font: 400 12px/1.5 var(--f-mono); letter-spacing: .06em; color: var(--t-on-dark-2); }
.bean__roast { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.bean__notes { font-size: 14px; color: var(--t-on-dark-2); }

/* 焙煎度メーター（同じ色相の濃淡：塗り＝キャラメル、残り＝暗いブラウン。必ず文字ラベルを添える） */
.roast { display: inline-flex; gap: 3px; }
.roast i { width: 16px; height: 6px; border-radius: 2px; background: var(--c-roast-track); transition: background-color .5s var(--ease); }
.roast[data-level="1"] i:nth-child(-n + 1),
.roast[data-level="2"] i:nth-child(-n + 2),
.roast[data-level="3"] i:nth-child(-n + 3),
.roast[data-level="4"] i:nth-child(-n + 4),
.roast[data-level="5"] i { background: var(--c-caramel); }
@media (forced-colors: active) {
  .roast i { border: 1px solid CanvasText; background: Canvas; }
  .roast[data-level="1"] i:nth-child(-n + 1), .roast[data-level="2"] i:nth-child(-n + 2), .roast[data-level="3"] i:nth-child(-n + 3), .roast[data-level="4"] i:nth-child(-n + 4), .roast[data-level="5"] i { background: CanvasText; }
}

/* ---------- Roast band ---------- */
.roast-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(120px, 16vw, 240px); color: var(--c-cream); background: var(--c-ink); }
.roast-band__bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.roast-band__bg img, .order__bg img { position: relative; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 100% 50%; }
.roast-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgb(18 12 8 / .9) 0%, rgb(18 12 8 / .6) 55%, rgb(18 12 8 / .4) 100%); }
.roast-band__outline {
  position: absolute; left: 0; top: 50%; z-index: -1; translate: 0 -50%;
  font: italic 300 clamp(5rem, 15vw, 16rem)/1 var(--f-en); white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgb(243 235 224 / .2);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  pointer-events: none; user-select: none;
}
@supports (animation-timeline: view()) {
  .js:not(.no-motion) .roast-band__outline { animation: drift linear both; animation-timeline: view(); }
}
@keyframes drift { from { transform: translateX(8%); } to { transform: translateX(-34%); } }
.roast-band__title { font-family: var(--f-serif); font-size: clamp(2rem, 1.15rem + 3.4vw, 4rem); line-height: 1.4; letter-spacing: .06em; font-feature-settings: "palt"; }
.roast-band__text { max-width: 30em; margin-top: 24px; color: var(--t-on-dark-2); word-break: auto-phrase; }
.roast-band__tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.roast-band__tags li { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(243 235 224 / .3); background: rgb(18 12 8 / .35); font-size: 14px; }
.roast-band__tags span { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--c-caramel); }

/* ---------- 03 Cake ---------- */
.cake { padding-bottom: clamp(72px, 9vw, 140px); }
.cake .sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.cake__hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; color: var(--c-caramel-dk); }
.cake__hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.8s var(--ease-io) infinite; }
.cake__hint-pc { display: none; }
@media (min-width: 1024px) and (min-height: 640px) { .cake__hint-pc { display: inline; } .cake__hint-sp { display: none; } }
@keyframes nudge { 50% { transform: translateX(5px); } }

.cake__viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cake__viewport::-webkit-scrollbar { display: none; }
.cake__viewport.is-pinned { overflow: clip; scroll-snap-type: none; }
.cake__viewport.is-pinned .cake-card { width: clamp(240px, min(25vw, calc((100svh - 360px) * .8)), 380px); }
.cake__viewport.is-pinned .cake-card:nth-child(even) { margin-top: 32px; }
.cake__track {
  display: flex; gap: clamp(16px, 2vw, 32px); width: max-content;
  padding-inline: max(var(--pad-x), calc((100% - var(--max)) / 2));
}
.cake__viewport:not(.is-pinned) .cake__track { padding-inline: var(--pad-x); }
.cake-card { position: relative; flex: none; width: clamp(250px, 72vw, 340px); scroll-snap-align: center; }
@media (min-width: 1024px) { .cake-card { width: clamp(280px, 25vw, 380px); } }
.cake-card:nth-child(even) { margin-top: clamp(0px, 4vw, 56px); }
.cake-card__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: var(--c-latte); }
.cake-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cake-card:hover .cake-card__media img { transform: scale(1.05); }
.cake-card__body { display: grid; gap: 4px; padding-top: 18px; }
.cake-card__en { font: italic 400 1.25rem/1.2 var(--f-en); color: var(--c-caramel-dk); font-variation-settings: "opsz" 72, "SOFT" 100; }
.cake-card__title { font-family: var(--f-serif); font-size: 1.12rem; line-height: 1.5; letter-spacing: .08em; }
.cake-card__price { margin-top: 2px; font: 500 1.02rem/1.4 var(--f-sans); }
.cake-card__more { position: absolute; inset: 0; z-index: 1; border-radius: var(--r-md); font-size: 0; color: transparent; }
.cake-card__more:focus-visible { outline-offset: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags li { padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-light); font-size: 11px; letter-spacing: .08em; color: var(--t-on-light-2); }
.tags .is-accent { background: var(--c-berry); color: #fff; box-shadow: none; }
.cake-end { flex: none; width: clamp(200px, 20vw, 300px); display: grid; place-items: center; }
.cake-end__text { font-family: var(--f-serif); font-size: 1.25rem; line-height: 1.8; text-align: center; color: var(--t-on-light-2); }
.cake__progress { display: flex; align-items: center; gap: 20px; margin-top: clamp(32px, 4vw, 48px); }
.cake__progress-bar { flex: 1; height: 1px; overflow: hidden; background: var(--line-light); }
.cake__progress-bar i { display: block; height: 100%; background: var(--c-caramel-dk); transform: scaleX(0); transform-origin: left; }
.cake__progress-count { font: 400 12px/1 var(--f-mono); letter-spacing: .12em; color: var(--t-on-light-2); font-variant-numeric: tabular-nums; }
.cake__progress-count b { font-weight: 500; color: var(--t-on-light); }

/* ---------- 04 Pairing ---------- */
.pairing { background: var(--c-ink-2); }
.pairing__grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 960px) { .pairing__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } }
.pairing__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 960px) { .pairing__choices { grid-template-columns: 1fr; position: sticky; top: calc(var(--header-h) + 24px); } }
.choice {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 8px 12px 8px 8px; border-radius: 16px; text-align: left;
  box-shadow: inset 0 0 0 1px var(--line-dark);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.choice img { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
@media (max-width: 959px) {
  .pairing__choices {
    display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(var(--pad-x) * -1); padding: 2px var(--pad-x); scroll-padding-inline: var(--pad-x);
  }
  .pairing__choices::-webkit-scrollbar { display: none; }
  .choice { flex: none; grid-template-columns: 44px auto; scroll-snap-align: start; padding-right: 18px; }
  .choice img { width: 44px; height: 44px; }
  .choice__name, .choice__en { white-space: nowrap; }
}
.choice__name { align-self: end; font-size: .88rem; font-weight: 500; line-height: 1.4; }
.choice__en { align-self: start; font: italic 400 .82rem/1.3 var(--f-en); color: var(--t-on-dark-2); }
.choice:hover { background: rgb(243 235 224 / .05); }
.choice.is-active { background: var(--c-cream); color: var(--c-ink); box-shadow: none; }
.choice.is-active .choice__en { color: var(--c-caramel-dk); }
@media (min-width: 960px) { .choice { grid-template-columns: 56px minmax(0, 1fr); padding: 10px 16px 10px 10px; } .choice img { width: 56px; height: 56px; } .choice__name { font-size: .95rem; } }

.pair { display: grid; gap: clamp(28px, 3.4vw, 48px); }
@media (min-width: 720px) { .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; } }
.pair__visual { position: relative; }
.pair__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: var(--c-ink-3); }
.pair__times { position: absolute; right: -14px; bottom: 28px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--c-caramel); color: var(--c-ink); font: 300 28px/1 var(--f-en); }
.pair__body { display: grid; gap: 14px; }
.pair__cake { font-size: 13px; letter-spacing: .1em; color: var(--t-on-dark-2); }
.pair__cake::after { content: "に合わせるなら"; margin-left: .3em; }
.pair__coffee { display: grid; gap: 6px; font-family: var(--f-serif); font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.5rem); line-height: 1.3; letter-spacing: .06em; }
.pair__coffee-en { font: italic 400 1rem/1 var(--f-en); letter-spacing: .02em; color: var(--c-caramel); }
.pair__roast { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.pair__notes { display: flex; flex-wrap: wrap; gap: 8px; }
.pair__notes li { padding: 6px 14px; border-radius: 999px; background: rgb(243 235 224 / .08); font-size: 13px; }
.pair__why { line-height: 2; color: var(--t-on-dark-2); }
.pair__price { padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.pair__price strong { margin-inline: 8px; font-size: 1.5rem; font-weight: 500; }
.pair__price small { color: var(--t-on-dark-2); }

/* ---------- View Transitions（必要な時だけ名前を付ける） ---------- */
.vt-pairing .pair__photo { view-transition-name: pair-photo; }
.vt-pairing .pair__body { view-transition-name: pair-body; }
.vt-menu .tabs__panels { view-transition-name: menu-panel; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: var(--ease); }
::view-transition-old(pair-photo) { animation: vt-out .5s var(--ease) both; }
::view-transition-new(pair-photo) { animation: vt-wipe .95s var(--ease) both; }
::view-transition-old(pair-body), ::view-transition-old(menu-panel) { animation: vt-up-out .3s var(--ease) both; }
::view-transition-new(pair-body), ::view-transition-new(menu-panel) { animation: vt-up-in .6s .08s var(--ease) both; }
::view-transition-group(cake-photo) { animation-duration: .75s; }
@keyframes vt-out { to { opacity: 0; transform: scale(.95); } }
@keyframes vt-wipe { from { clip-path: inset(100% 0 0 0); transform: scale(1.08); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes vt-up-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-up-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- 05 Menu ---------- */
.tabs__list { display: flex; gap: 4px; width: fit-content; max-width: 100%; padding: 6px; overflow-x: auto; scrollbar-width: none; border-radius: 999px; background: rgb(42 28 20 / .07); }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
  flex: none; display: inline-flex; align-items: baseline; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font: italic 400 1.05rem/1 var(--f-en); color: var(--t-on-light-2);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.tabs__tab span { font: normal 400 12px/1 var(--f-sans); letter-spacing: .08em; }
.tabs__tab:hover { color: var(--t-on-light); }
.tabs__tab[aria-selected="true"] { background: var(--c-ink); color: var(--c-cream); }
@media (max-width: 599px) { .tabs__tab { padding: 11px 14px; } .tabs__tab span { display: none; } }
.tabs__panels { margin-top: clamp(28px, 4vw, 48px); container-type: inline-size; }
.tabs__panel:focus-visible { outline-offset: 8px; }
.menu-list { display: grid; column-gap: clamp(32px, 5vw, 72px); }
@container (min-width: 760px) { .menu-list { grid-template-columns: 1fr 1fr; } }
.menu-item { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.menu-item__name { flex: 1; display: grid; gap: 4px; font-weight: 500; line-height: 1.5; }
.menu-item__name small { font: 400 12px/1.45 var(--f-mono); letter-spacing: .02em; color: var(--t-on-light-2); }
.menu-item__price { font: 500 1.05rem/1 var(--f-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-item--option .menu-item__name { font-weight: 400; color: var(--t-on-light-2); }
.menu-item--feature { margin-bottom: 8px; padding-inline: 18px; border: 0; border-radius: 14px; background: rgb(201 139 79 / .16); }

/* ---------- 06 Space ---------- */
.space { background: var(--c-ink); }
.gallery { display: grid; gap: clamp(28px, 3vw, 40px); }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); align-items: start; }
  .gallery__item--a { grid-column: 1 / span 7; }
  .gallery__item--b { grid-column: 9 / span 4; margin-top: 120px; }
  .gallery__item--c { grid-column: 2 / span 5; margin-top: -24px; }
  .gallery__item--d { grid-column: 7 / span 6; margin-top: 72px; }
}
.gallery__frame { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 3 / 2; background: var(--c-ink-3); }
.gallery__item--b .gallery__frame { aspect-ratio: 4 / 5; }
.gallery__frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { margin-top: 12px; font-size: 13px; color: var(--t-on-dark-2); }
.facilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(64px, 8vw, 120px); }
@media (min-width: 900px) { .facilities { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.facilities li { display: grid; justify-items: start; gap: 12px; padding: 20px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line-dark); font-size: 14px; line-height: 1.5; }
.facilities svg { width: 26px; height: 26px; fill: none; stroke: var(--c-caramel); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.facilities circle { fill: none; }

/* ---------- 07 Order ---------- */
.order { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--sec-y); color: var(--c-cream); background: var(--c-ink); }
.order__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.order::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(18 12 8 / .93) 0%, rgb(18 12 8 / .8) 50%, rgb(18 12 8 / .62) 100%); }
@media (max-width: 959px) {
  .order__bg { bottom: auto; height: min(100svh, 820px); }
  .order__bg img { object-position: 100% 0%; }
  .order::before { background: linear-gradient(180deg, rgb(18 12 8 / .6) 0%, rgb(18 12 8 / .82) min(60svh, 480px), var(--c-ink) min(100svh, 820px)); }
}
.order__grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 960px) { .order__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.order__text { max-width: 32em; margin-top: 24px; color: var(--t-on-dark-2); }
.sizes { max-width: 440px; margin-top: 32px; border-top: 1px solid var(--line-dark); }
.sizes li { display: grid; grid-template-columns: 4em 1fr auto; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.sizes__size { font-family: var(--f-serif); font-size: 1.2rem; }
.sizes__people { font-size: 13px; color: var(--t-on-dark-2); }
.sizes__price { font-weight: 500; font-variant-numeric: tabular-nums; }
.order__tel { margin-top: 24px; font-size: 14px; color: var(--t-on-dark-2); }
.order__tel a { color: var(--c-cream); font-weight: 500; border-bottom: 1px solid rgb(243 235 224 / .5); }

/* 枠の上を光が回り続ける（@property で角度を補間） */
.order__card {
  position: relative; padding: 1px; border-radius: calc(var(--r-lg) + 1px);
  background: conic-gradient(from var(--angle), rgb(201 139 79 / .12) 0deg, var(--c-caramel) 60deg, rgb(243 235 224 / .9) 90deg, rgb(201 139 79 / .12) 140deg, rgb(201 139 79 / .12) 360deg);
  animation: spin 7s linear infinite;
}
.no-motion .order__card { animation: none; }
@keyframes spin { to { --angle: 360deg; } }

.form { display: grid; gap: 18px; padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-lg); background: rgb(18 12 8 / .95); }
.form__title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; font-family: var(--f-serif); font-size: 1.3rem; letter-spacing: .06em; }
.form__title small { font-family: var(--f-sans); font-size: 12px; letter-spacing: .04em; color: var(--t-on-dark-2); }
.form__row { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form__cols { display: grid; gap: 18px; }
@media (min-width: 560px) { .form__cols { grid-template-columns: 1fr 1fr; } }
.form__label { padding: 0; font-size: 13px; letter-spacing: .06em; color: var(--t-on-dark-2); }
.form__input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line-dark); background: rgb(243 235 224 / .04); color: var(--c-cream);
  font: inherit; font-size: 16px; letter-spacing: .04em;
  color-scheme: dark; accent-color: var(--c-caramel);
  transition: border-color .3s, background-color .3s;
}
.form__input::placeholder { color: rgb(243 235 224 / .38); }
.form__input:focus { outline: none; border-color: var(--c-caramel); background: rgb(243 235 224 / .07); }
.form__input:user-invalid { border-color: #e48a8a; }
.form__textarea { min-height: 88px; max-height: 240px; field-sizing: content; resize: vertical; }
select.form__input {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c98b4f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
}
/* カスタマイズ可能な select（対応ブラウザのみ） */
@supports (appearance: base-select) {
  select.form__input, select.form__input::picker(select) { appearance: base-select; }
  select.form__input { background-image: none; }
  select.form__input::picker-icon { color: var(--c-caramel); transition: rotate .3s var(--ease); }
  select.form__input:open::picker-icon { rotate: 180deg; }
  select.form__input::picker(select) { margin-top: 6px; padding: 6px; border: 1px solid var(--line-dark); border-radius: 14px; background: var(--c-ink-2); color: var(--c-cream); }
  select.form__input option { padding: 10px 14px; border-radius: 10px; }
  select.form__input option:hover, select.form__input option:focus-visible { background: rgb(243 235 224 / .08); }
  select.form__input option:checked { background: var(--c-caramel); color: var(--c-ink); }
  select.form__input option::checkmark { display: none; }
}
.form__sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.form__sizes legend { width: 100%; margin-bottom: 8px; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pill span { display: inline-flex; min-width: 72px; justify-content: center; padding: 10px 20px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-dark); transition: background-color .3s, color .3s; }
.pill input:checked + span { background: var(--c-cream); color: var(--c-ink); box-shadow: none; }
.pill input:focus-visible + span { outline: 2px solid var(--c-caramel); outline-offset: 2px; }
.form__note { font-size: 12px; text-align: center; color: var(--t-on-dark-2); }

/* ---------- 08 Info ---------- */
.info__live {
  justify-self: start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 12px 20px; border-radius: 999px; background: var(--c-milk); box-shadow: inset 0 0 0 1px var(--line-light); font-size: 14px;
}
@media (min-width: 900px) { .info__live { justify-self: end; } }
.info__live[data-state="closed"] .status-chip__dot { background: #b3a393; }
.info__bake { color: var(--c-caramel-dk); }
.info__grid { display: grid; gap: clamp(40px, 6vw, 88px); }
@media (min-width: 960px) { .info__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.info__dl > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.info__dl dt { font-size: 13px; color: var(--t-on-light-2); }
.info__dl dd { font-weight: 500; }
.info__dl a { border-bottom: 1px solid var(--line-light); }
.hours { width: 100%; margin-top: 40px; border-collapse: separate; border-spacing: 0; }
.hours caption { padding-bottom: 12px; text-align: left; font-family: var(--f-serif); font-size: 1.3rem; letter-spacing: .06em; }
.hours caption small { margin-left: 12px; font-family: var(--f-sans); font-size: 12px; color: var(--t-on-light-2); }
.hours th, .hours td { padding: 12px 16px; border-bottom: 1px solid var(--line-light); text-align: left; font-weight: 400; font-variant-numeric: tabular-nums; }
.hours th { width: 3.6em; font-family: var(--f-serif); }
.hours .is-closed td { color: var(--t-on-light-2); }
.hours .is-today th, .hours .is-today td { background: var(--c-ink); color: var(--c-cream); border-color: transparent; }
.hours .is-today th { border-radius: 12px 0 0 12px; }
.hours .is-today td { border-radius: 0 12px 12px 0; }
.hours .is-today td::after { content: "今日"; margin-left: 12px; padding: 2px 10px; border-radius: 999px; background: var(--c-caramel); color: var(--c-ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.info__bakes { margin-top: 20px; font-size: 13px; color: var(--t-on-light-2); }
.info__bakes span { display: inline-block; margin-left: 8px; padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-light); color: var(--t-on-light); font-variant-numeric: tabular-nums; }
.info__bakes span.is-next { background: var(--c-caramel); color: var(--c-ink); box-shadow: none; }

.map { view-timeline: --map block; }
.map__svg { width: 100%; height: auto; border-radius: var(--r-lg); background: #efe4d4; }
.map__ground { fill: #efe4d4; }
.map__river { fill: #cfdedd; }
.map__park { fill: #d5e0c3; }
.map__blocks rect { fill: #e4d4bf; }
.map__roads path { fill: none; stroke: #fbf7f1; stroke-width: 18; stroke-linecap: round; }
.map__rail { fill: none; stroke: #8a7a6a; stroke-width: 7; }
.map__rail-ties { fill: none; stroke: #efe4d4; stroke-width: 3; stroke-dasharray: 10 14; }
.map__route { fill: none; stroke: var(--c-caramel-dk); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
@supports (animation-timeline: view()) {
  .js:not(.no-motion) .map__route { animation: draw linear both; animation-timeline: --map; animation-range: entry 30% cover 55%; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.map__station rect { fill: var(--c-ink); }
.map__station text { fill: var(--c-cream); font: 700 15px var(--f-sans); text-anchor: middle; letter-spacing: .08em; }
.map__label { fill: #5e6f4d; font: 700 14px var(--f-sans); text-anchor: middle; }
.map__walk { fill: var(--c-caramel-dk); font: 700 14px var(--f-sans); }
.map__pin-dot { fill: var(--c-caramel); stroke: #fff; stroke-width: 4; }
.map__pulse { fill: var(--c-caramel); transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.4s var(--ease) infinite; }
.no-motion .map__pulse { animation: none; opacity: .25; }
@keyframes pin-pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(2.4); opacity: 0; } }
.map__pin-label { fill: var(--c-ink); font: 600 18px var(--f-en); text-anchor: middle; letter-spacing: .14em; }
.map figcaption { margin-top: 10px; font-size: 12px; text-align: right; color: var(--t-on-light-2); }

.faq { max-width: 920px; margin-top: clamp(80px, 10vw, 140px); }
.faq__title { display: grid; gap: 8px; margin-bottom: 24px; font-family: var(--f-serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: .06em; }
.faq__title span { font: 500 11px/1 var(--f-mono); letter-spacing: .22em; color: var(--c-caramel-dk); }
.faq__item { border-bottom: 1px solid var(--line-light); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 1.02rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .45s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer p { max-width: 44em; padding-bottom: 24px; color: var(--t-on-light-2); }
@supports selector(::details-content) {
  .faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .55s var(--ease), content-visibility .55s allow-discrete; }
  .faq__item[open]::details-content { block-size: auto; }
}

/* ---------- Footer ---------- */
.footer { overflow: hidden; padding: clamp(80px, 10vw, 140px) 0 40px; background: var(--c-ink); }
.footer__word {
  margin-bottom: clamp(48px, 6vw, 80px);
  font: 300 clamp(6rem, 27vw, 27rem)/.8 var(--f-en); letter-spacing: -.02em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgb(243 235 224 / .28);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  user-select: none;
}
@supports (animation-timeline: view()) {
  .js:not(.no-motion) .footer__word { animation: soften linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
}
@keyframes soften {
  from { font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0; letter-spacing: .08em; }
  to { font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; letter-spacing: -.02em; }
}
.footer__grid { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }
.footer__brand { font: 400 1.6rem/1.2 var(--f-en); letter-spacing: .06em; }
.footer__tagline { margin-top: 8px; font-family: var(--f-serif); color: var(--t-on-dark-2); }
.share-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 20px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-dark); font-size: 14px; transition: background-color .3s; }
.share-btn:hover { background: rgb(243 235 224 / .07); }
.share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.footer__nav a { font: italic 400 1.1rem/1.4 var(--f-en); color: var(--t-on-dark-2); transition: color .3s; }
.footer__nav a:hover { color: var(--c-caramel); }
.footer__info p { font-size: 14px; line-height: 1.9; color: var(--t-on-dark-2); }
.footer__info a { color: var(--c-cream); }
.footer__note { max-width: 62em; margin-top: 32px; font-size: 12px; line-height: 1.8; color: var(--t-on-dark-2); }
.footer__copy { margin-top: 16px; font: 400 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--t-on-dark-2); }

/* ---------- Cake dialog ---------- */
.cake-dialog {
  width: min(1040px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--r-lg); overflow: auto; overscroll-behavior: contain;
  background: var(--c-cream); color: var(--t-on-light);
  opacity: 1; translate: 0 0;
  transition: opacity .4s var(--ease), translate .6s var(--ease), overlay .6s allow-discrete, display .6s allow-discrete;
}
.cake-dialog:not([open]) { opacity: 0; translate: 0 24px; }
@starting-style { .cake-dialog[open] { opacity: 0; translate: 0 24px; } }
.vt-cake .cake-dialog { transition: none; }
.cake-dialog::backdrop { background: rgb(18 12 8 / .74); opacity: 1; transition: opacity .45s, overlay .45s allow-discrete, display .45s allow-discrete; }
.cake-dialog:not([open])::backdrop { opacity: 0; }
@starting-style { .cake-dialog[open]::backdrop { opacity: 0; } }
html:has(.cake-dialog[open]) { overflow: hidden; }
.cake-dialog__inner { position: relative; display: grid; }
@media (min-width: 760px) { .cake-dialog__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cake-dialog__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-latte); }
.cake-dialog__img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) {
  .cake-dialog__media { aspect-ratio: auto; min-height: 560px; }
  .cake-dialog__img { position: absolute; inset: 0; }
}
.cake-dialog__body { display: grid; align-content: center; gap: 10px; padding: clamp(28px, 4vw, 56px); }
.cake-dialog__num { font: 500 12px/1 var(--f-mono); letter-spacing: .2em; color: var(--c-caramel-dk); }
.cake-dialog__en { font: italic 400 1.6rem/1.1 var(--f-en); color: var(--c-caramel-dk); font-variation-settings: "opsz" 72, "SOFT" 100; }
.cake-dialog__title { font-family: var(--f-serif); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.35; letter-spacing: .06em; }
.cake-dialog__price { font: 500 1.3rem/1.2 var(--f-sans); }
.cake-dialog__text { margin-top: 6px; color: var(--t-on-light-2); }
.cake-dialog__dl { margin-top: 6px; }
.cake-dialog__dl > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-light); font-size: 14px; }
.cake-dialog__dl dt { color: var(--t-on-light-2); }
.cake-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cake-dialog__actions .btn:not(.btn--ghost-dark) { --bg: var(--c-ink); --fg: var(--c-cream); }
.cake-dialog__x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--c-cream); box-shadow: 0 4px 16px rgb(18 12 8 / .2); }
.cake-dialog__x span::before, .cake-dialog__x span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: var(--c-ink); transform: translate(-50%, -50%) rotate(45deg); }
.cake-dialog__x span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Cursor（マウス操作の端末のみ） ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 700; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--c-caramel); }
  .cursor__ring {
    display: grid; place-items: center; width: 36px; height: 36px; margin: -18px 0 0 -18px;
    box-shadow: inset 0 0 0 1px rgb(201 139 79 / .75);
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease), opacity .3s;
  }
  .cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--c-caramel); box-shadow: none; }
  .cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }
  .cursor__label { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--c-ink); opacity: 0; transition: opacity .3s; }
  .cursor.is-label .cursor__label { opacity: 1; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 950;
  max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 14px;
  background: var(--c-cream); color: var(--c-ink); font-size: 14px; line-height: 1.7;
  box-shadow: 0 12px 40px rgb(0 0 0 / .32);
  translate: -50% calc(100% + 40px);
  transition: translate .55s var(--ease);
}
.toast.is-show { translate: -50% 0; }
.toast:empty { visibility: hidden; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
