/* =========================================================
   tomarigi coffee（デモサイト）
   テーマ：焙煎所の温度感 × 遊び心のある動き
   ========================================================= */

/* ===== 写真（images/ フォルダ。Unsplashライセンス） ===== */
.img {
  background-color: #3a2c22;
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) contrast(1.02);
}
.img-hero        { background-image: url("images/hero.jpg"); }
.img-about-beans { background-image: url("images/about-beans.jpg"); }
.img-about-shop  { background-image: url("images/about-shop.jpg"); }
.img-coffee      { background-image: url("images/menu-coffee.jpg"); }
.img-drink       { background-image: url("images/menu-drink.jpg"); }
.img-sweets      { background-image: url("images/menu-sweets.jpg"); }
.img-g1          { background-image: url("images/gallery-1.jpg"); }
.img-g2          { background-image: url("images/gallery-2.jpg"); }
.img-g3          { background-image: url("images/gallery-3.jpg"); }
.img-g4          { background-image: url("images/gallery-4.jpg"); }

/* ===== 基本設定 ===== */
:root {
  --ink: #1c1612;
  --espresso: #1e1611;
  --espresso-2: #2a1f18;
  --paper: #f6f0e6;
  --cream: #efe6d8;
  --terracotta: #b65a36;
  --terracotta-light: #e3a27f;
  --muted: #86776a;
  --line: rgba(28, 22, 18, 0.14);
  --line-light: rgba(239, 230, 216, 0.16);
  --serif-en: "Fraunces", serif;
  --serif-ja: "Shippori Mincho", serif;
  --sans: "Noto Sans JP", sans-serif;
  --gutter: clamp(20px, 4.5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--terracotta); color: var(--paper); }
:focus-visible { outline: 1px solid var(--terracotta); outline-offset: 4px; }

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  transform: translateY(-200%);
  transition: transform 0.3s;
}
.skip:focus { transform: none; }

/* パララックス：枠の中で写真が少しだけ動く */
.frame { position: relative; overflow: hidden; }
.parallax { position: absolute; inset: -10% 0; will-change: transform; }
.parallax .img { position: absolute; inset: 0; }

.section { position: relative; padding: clamp(104px, 13vw, 190px) var(--gutter); }
.container { max-width: 1240px; margin: 0 auto; }

/* 小見出し：01 ── About */
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.label .num {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--terracotta);
}
.label .num::after {
  content: "";
  display: inline-block;
  width: 48px;
  height: 1px;
  margin-left: 14px;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.6;
}
.label-light { color: rgba(239, 230, 216, 0.6); }
.label-light .num { color: var(--terracotta-light); }

.display {
  margin-top: 20px;
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: clamp(52px, 8vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.display em { color: var(--terracotta); }
.note { margin-top: 32px; font-size: 11px; opacity: 0.6; }

/* ===== オープニング ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  background: var(--espresso);
  color: var(--cream);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-out) 0.15s, visibility 0s 1.3s;
}
.loader-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(56vw, 340px);
  transform: translate(-50%, -50%) rotate(-90deg);
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 0.6;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  animation: ring 1.5s var(--ease-out) 0.1s forwards;
}
@keyframes ring { to { stroke-dashoffset: 0; } }
.loader-word {
  position: relative;
  display: flex;
  overflow: hidden;
  padding-bottom: 0.24em;
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.loader-word span {
  transform: translateY(110%);
  animation: rise 0.9s var(--ease-out) forwards;
}
.loader-word span:nth-child(1) { animation-delay: 0.20s; }
.loader-word span:nth-child(2) { animation-delay: 0.25s; }
.loader-word span:nth-child(3) { animation-delay: 0.30s; }
.loader-word span:nth-child(4) { animation-delay: 0.35s; }
.loader-word span:nth-child(5) { animation-delay: 0.40s; }
.loader-word span:nth-child(6) { animation-delay: 0.45s; }
.loader-word span:nth-child(7) { animation-delay: 0.50s; }
.loader-word span:nth-child(8) { animation-delay: 0.55s; }
@keyframes rise { to { transform: none; } }
.loader-word span { transform: translateY(140%); }
.loader-sub {
  position: relative;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 14px;
  color: var(--terracotta-light);
  opacity: 0;
  animation: fade-in 0.8s 0.8s var(--ease) forwards;
}
@keyframes fade-in { to { opacity: 1; } }
.is-loaded .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
html:not(.js) .loader,
.no-loader .loader { display: none; }

/* 紙のようなざらつき */
.grain {
  position: fixed;
  inset: 0;
  z-index: 46;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== カーソル（マウス操作の端末のみ） ===== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--terracotta);
  pointer-events: none;
  opacity: 0;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), margin 0.45s var(--ease-out), opacity 0.3s, background-color 0.3s;
}
.cursor-label {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 15px;
  color: var(--paper);
  opacity: 0;
  transition: opacity 0.3s;
}
.has-cursor .cursor { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(182, 90, 54, 0.25); }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--terracotta); }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-hidden { opacity: 0 !important; }

/* メニューにマウスを乗せると出る写真 */
.menu-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 240px;
  aspect-ratio: 3 / 4;
  margin: -160px 0 0 -120px;
  background-color: var(--espresso-2);
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease), background-image 0.2s;
}
.menu-preview.is-active { opacity: 1; }

/* ===== デモ表記 ===== */
.demo-badge {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(28, 22, 18, 0.88);
  color: var(--cream);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.6;
  backdrop-filter: blur(6px);
}
.demo-badge span {
  padding: 2px 10px;
  background: var(--terracotta);
  border-radius: 999px;
  font-family: var(--serif-en);
  font-style: italic;
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
  color: var(--cream);
  transition: padding 0.5s var(--ease), background-color 0.5s var(--ease), color 0.5s var(--ease), transform 0.6s var(--ease-out);
}
.header.is-scrolled {
  padding-block: 16px;
  background: rgba(246, 240, 230, 0.86);
  color: var(--ink);
  backdrop-filter: blur(12px);
}
.header.is-dark { background: rgba(30, 22, 17, 0.86); color: var(--cream); }
.header.is-hidden { transform: translateY(-100%); }
.logo {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.nav a i {
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--terracotta-light);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header.is-scrolled:not(.is-dark) .nav a i { color: var(--terracotta); }

.menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ===== 文字が1字ずつ現れる演出 ===== */
[data-split] .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(4deg);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms);
}
[data-split].is-in .ch { opacity: 1; transform: none; }
.hero-title .ch { opacity: 1; transform: translateY(140%); transition-duration: 1.3s; transition-delay: calc(var(--i) * 60ms + 0.1s); }

/* ===== ファーストビュー ===== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--espresso);
  color: var(--cream);
}
.hero-media { position: absolute; inset: 0; }
.hero-media .parallax { inset: -12% 0 -4%; }
.hero-media .img { transform: scale(1.1); transition: transform 2.6s var(--ease-out) 0.2s; }
.is-loaded .hero-media .img { transform: scale(1); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 10, 0.55) 0%, rgba(20, 14, 10, 0.08) 32%, rgba(20, 14, 10, 0.18) 58%, rgba(20, 14, 10, 0.86) 100%);
  pointer-events: none;
}
/* 湯気 */
.steam {
  position: absolute;
  left: 50%;
  top: 14%;
  z-index: 1;
  width: clamp(120px, 14vw, 200px);
  transform: translateX(-30%);
  fill: none;
  stroke: rgba(255, 244, 230, 0.5);
  stroke-width: 6;
  stroke-linecap: round;
  filter: blur(6px);
  opacity: 0.55;
  pointer-events: none;
}
.steam path {
  stroke-dasharray: 60 260;
  animation: steam 5.5s linear infinite;
}
.steam path:nth-child(2) { animation-delay: -1.8s; animation-duration: 6.4s; }
.steam path:nth-child(3) { animation-delay: -3.6s; animation-duration: 5s; }
@keyframes steam {
  0%   { stroke-dashoffset: 0; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 0.6; }
  100% { stroke-dashoffset: -320; opacity: 0; }
}
.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 128px var(--gutter) 28px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.hero-copy {
  font-family: var(--serif-ja);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.8;
  letter-spacing: 0.16em;
}
.hero-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--serif-en);
  line-height: 1.2;
  opacity: 0;
  transition: opacity 1.2s var(--ease) 1.2s;
}
.is-loaded .hero-clock { opacity: 1; }
.clock-label {
  font-style: italic;
  font-size: 13px;
  color: var(--terracotta-light);
}
.clock-time {
  font-weight: 300;
  font-size: clamp(28px, 2.6vw, 40px);
  font-variant-numeric: tabular-nums;
}
.hero-eyebrow {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--terracotta-light);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s var(--ease-out) 0.9s, transform 1.2s var(--ease-out) 0.9s;
}
.is-loaded .hero-eyebrow { opacity: 1; transform: none; }
.hero-title {
  display: flex;
  overflow: hidden;
  margin: 0 0 -0.08em -0.05em;
  padding: 0.04em 0 0.26em;
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: clamp(96px, 20vw, 320px);
  line-height: 0.82;
  letter-spacing: -0.05em;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin-top: clamp(16px, 2vw, 28px);
  padding-top: 18px;
  border-top: 1px solid rgba(239, 230, 216, 0.3);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1.4s var(--ease) 1.4s;
}
.is-loaded .hero-meta { opacity: 1; }
.status { display: flex; align-items: center; gap: 10px; }
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9bd49b;
  box-shadow: 0 0 0 4px rgba(155, 212, 155, 0.18);
  animation: blink 2.4s var(--ease) infinite;
}
.dot.is-closed { background: #d9a07c; box-shadow: 0 0 0 4px rgba(217, 160, 124, 0.18); animation: none; }
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(155, 212, 155, 0.05); } }
.scroll { margin-left: auto; margin-right: 200px; display: flex; align-items: center; gap: 12px; }
.scroll::after {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
  animation: scroll-line 2.4s var(--ease) infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ===== 流れる帯 ===== */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  background: var(--terracotta);
  color: var(--paper);
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1;
  will-change: transform;
}
.marquee-track b { font-weight: 300; font-style: normal; font-size: 0.6em; opacity: 0.8; }

/* ===== 01 ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}
.about-text { grid-column: 1 / 6; }
.about-heading {
  margin-top: 40px;
  font-family: var(--serif-ja);
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.75;
  letter-spacing: 0.14em;
}
.about-body { margin-top: 40px; color: #4b4038; }
.about-body p + p { margin-top: 1.4em; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.stats li { padding-top: 20px; }
.stats li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.stat-num {
  display: block;
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 10px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}
/* 写真は重ねず、上下にずらして並べる */
.about-visual {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.about-fig-1 .frame { aspect-ratio: 3 / 4; }
.about-fig-2 { margin-top: 120px; }
.about-fig-2 .frame { aspect-ratio: 3 / 4; }
.about-fig figcaption {
  margin-top: 14px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}

/* ===== 02 MENU ===== */
.menu { background: var(--espresso); color: var(--cream); }
.menu-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0 40px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.menu-head .label { grid-column: 1 / -1; }
.menu-hint {
  padding-bottom: 12px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 15px;
  color: rgba(239, 230, 216, 0.5);
}
.menu-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
}
.menu-cat h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(239, 230, 216, 0.4);
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 3vw, 44px);
  color: var(--terracotta-light);
}
.menu-cat h3 span {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(239, 230, 216, 0.5);
}
.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
  cursor: default;
  transition: color 0.4s var(--ease), padding 0.5s var(--ease-out);
}
.menu-list li:hover { color: var(--terracotta-light); padding-left: 8px; }
.menu-list .name { display: flex; flex-direction: column; line-height: 1.6; }
.menu-list small { font-size: 11px; color: rgba(239, 230, 216, 0.5); }
.menu-list .lead {
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted rgba(239, 230, 216, 0.3);
}
.menu-list .price { font-family: var(--serif-en); font-size: 18px; }
.menu-thumbs { display: none; }

/* ===== 03 BEANS（焙煎度で背景が変わる） ===== */
.beans {
  background: var(--roast-bg, #d9bf9f);
  color: var(--ink);
  transition: background-color 0.9s var(--ease), color 0.6s var(--ease);
}
.beans .label { color: rgba(28, 22, 18, 0.62); }
.beans .label .num,
.beans .display em { color: #7e3418; }
.beans.is-dark { color: var(--cream); }
.beans.is-dark .label { color: rgba(239, 230, 216, 0.65); }
.beans.is-dark .label .num,
.beans.is-dark .display em { color: var(--terracotta-light); }
.beans-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.beans-lead { max-width: 28em; opacity: 0.85; }
.roast-picker {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.roast-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.roast-title output {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 28px;
  letter-spacing: 0;
  text-transform: none;
}
#roast {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
#roast::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #e7c9a0, #b07a4c 50%, #2b1a10);
}
#roast::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #e7c9a0, #b07a4c 50%, #2b1a10);
}
#roast::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--ease-out);
}
#roast::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--terracotta);
}
#roast:active::-webkit-slider-thumb { transform: scale(1.15); }
.roast-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  opacity: 0.7;
}
.roast-rec { font-size: 14px; }
.roast-rec strong { font-family: var(--serif-en); font-weight: 400; font-size: 18px; }

.bean-list { border-bottom: 1px solid currentColor; border-color: rgba(28, 22, 18, 0.2); }
.beans.is-dark .bean-list,
.beans.is-dark .bean { border-color: rgba(239, 230, 216, 0.2); }
.bean {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.3fr) minmax(0, 1fr) 160px;
  align-items: center;
  gap: 24px;
  padding: 36px 16px;
  border-top: 1px solid rgba(28, 22, 18, 0.2);
  transition: background-color 0.6s var(--ease);
}
.bean > * { transition: opacity 0.6s var(--ease); }
.bean:not(.is-match) > * { opacity: 0.4; }
.bean.is-match { background: rgba(255, 255, 255, 0.14); }
.beans.is-dark .bean.is-match { background: rgba(255, 255, 255, 0.06); }
.bean-num {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 15px;
}
.bean-name {
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  transition: transform 0.6s var(--ease-out);
}
.bean.is-match .bean-name { transform: translateX(12px); }
.bean-origin { margin-top: 6px; font-size: 12px; opacity: 0.7; }
.bean-notes { font-size: 13px; }
.roast-dots { display: flex; gap: 8px; }
.roast-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.roast-dots[data-v="2"] i:nth-child(-n+2),
.roast-dots[data-v="4"] i:nth-child(-n+4),
.roast-dots[data-v="5"] i:nth-child(-n+5) { background: currentColor; }
.beans-foot {
  margin-top: 40px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 15px;
  opacity: 0.75;
}

/* ===== GALLERY（重ねずに配置） ===== */
.gallery { padding: clamp(104px, 13vw, 190px) var(--gutter); }
.gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  align-items: start;
}
.g1 { grid-column: 1 / 6; }
.g1 .frame { aspect-ratio: 4 / 5; }
.g2 { grid-column: 7 / 10; margin-top: 140px; }
.g2 .frame { aspect-ratio: 3 / 4; }
.gallery-quote {
  grid-column: 10 / 13;
  align-self: end;
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.gallery-quote em { color: var(--terracotta); }
.g3 { grid-column: 2 / 5; margin-top: 40px; }
.g3 .frame { aspect-ratio: 1 / 1; }
.g4 { grid-column: 6 / 13; margin-top: 40px; }
.g4 .frame { aspect-ratio: 16 / 10; }

/* ===== 04 NEWS ===== */
.news { background: var(--cream); }
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 6vw, 96px);
}
.news-list { border-bottom: 1px solid var(--line); }
.news-list li {
  position: relative;
  display: grid;
  grid-template-columns: 110px 80px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  transition: color 0.4s var(--ease);
}
.news-list li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.news-list li:hover { color: var(--terracotta); }
.news-list li:hover::before { transform: scaleX(1); }
.news-list time { font-family: var(--serif-en); font-size: 15px; }
.tag {
  justify-self: start;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  color: var(--terracotta);
}
.arrow { transition: transform 0.4s var(--ease); }
.news-list li:hover .arrow { transform: translateX(6px); }

/* ===== 05 ACCESS ===== */
.access-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}
.access-info { grid-column: 1 / 6; }
.hours {
  margin-top: 32px;
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: clamp(56px, 7vw, 108px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hours span { margin: 0 0.15em; color: var(--terracotta); }
.hours-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.info { margin-top: 48px; border-bottom: 1px solid var(--line); }
.info > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.info dt { font-family: var(--serif-en); font-style: italic; color: var(--muted); }

.map {
  grid-column: 7 / 13;
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--cream);
  border-radius: 4px;
}
.map::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(var(--paper) 0 0) 0 55% / 100% 16px no-repeat,
    linear-gradient(90deg, var(--paper) 0 0) 38% 0 / 16px 100% no-repeat,
    linear-gradient(var(--paper) 0 0) 0 25% / 100% 6px no-repeat,
    linear-gradient(var(--paper) 0 0) 0 82% / 100% 6px no-repeat,
    linear-gradient(90deg, var(--paper) 0 0) 14% 0 / 6px 100% no-repeat,
    linear-gradient(90deg, var(--paper) 0 0) 70% 0 / 6px 100% no-repeat;
  transform: rotate(12deg);
}
.map-pin {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 46%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 10px rgba(182, 90, 54, 0.18), 0 0 0 22px rgba(182, 90, 54, 0.08);
  animation: pulse 2.8s var(--ease) infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 14px rgba(182, 90, 54, 0.1), 0 0 0 30px rgba(182, 90, 54, 0.03); }
}
.map-label {
  position: absolute;
  z-index: 1;
  left: calc(50% + 34px);
  top: calc(46% - 4px);
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
}

/* ===== フッター ===== */
.footer {
  position: relative;
  padding: 0 var(--gutter) 96px;
  background: var(--espresso);
  color: var(--cream);
}
.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(88px, 10vw, 150px) 0;
  border-bottom: 1px solid var(--line-light);
}
.footer-cta-text {
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.footer-cta-text em { color: var(--terracotta-light); }
.circle-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(132px, 13vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--paper);
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 22px;
  transition: background-color 0.5s var(--ease);
}
.circle-btn:hover { background: var(--terracotta-light); color: var(--ink); }
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 0 40px;
}
.footer-logo {
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer-logo span {
  margin-left: 10px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta-light);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer-nav a,
.to-top {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.footer-nav a:hover,
.to-top:hover { opacity: 1; }
.footer-bottom {
  display: grid;
  gap: 4px;
  max-width: 1240px;
  margin: 0 auto;
  font-size: 11px;
  line-height: 1.8;
  color: rgba(239, 230, 216, 0.55);
}
.credit a { text-decoration: underline; }

/* ===== スクロールで表示する演出 ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.js .img-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .img-reveal.is-in { clip-path: inset(0 0 0 0); }
.menu-cat.reveal:nth-child(2) { transition-delay: 0.1s; }
.menu-cat.reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loader, .cursor, .menu-preview, .steam { display: none !important; }
  .js .reveal, .hero-eyebrow, .hero-meta, .hero-clock { opacity: 1 !important; transform: none !important; }
  .js .img-reveal { clip-path: none; }
  [data-split] .ch, .hero-title .ch { opacity: 1; transform: none; }
}

/* ===== タブレット ===== */
@media (max-width: 960px) {
  .about-text,
  .about-visual,
  .access-info,
  .map { grid-column: 1 / -1; }
  .about-visual { margin-top: 56px; }

  .menu-cats,
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .menu-head { grid-template-columns: minmax(0, 1fr); }
  .menu-hint { display: none; }
  .menu-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 56px;
  }
  .menu-thumbs .img { aspect-ratio: 3 / 4; }
  .menu-thumbs figcaption {
    margin-top: 10px;
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 14px;
    color: rgba(239, 230, 216, 0.6);
  }

  .bean { grid-template-columns: 70px minmax(0, 1fr); row-gap: 12px; }
  .bean-notes,
  .roast-dots { grid-column: 2; }
  .beans-head { flex-direction: column; align-items: flex-start; }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g1, .g2, .g3, .g4, .gallery-quote { grid-column: auto; margin-top: 0; }
  .g1, .g4 { grid-column: 1 / -1; }
  .g1 .frame { aspect-ratio: 4 / 3; }
  .g2 .frame, .g3 .frame { aspect-ratio: 3 / 4; }
  .g3 { margin-top: 48px; }
  .gallery-quote { grid-column: 1 / -1; order: 5; margin-top: 16px; }
}

/* ===== スマートフォン ===== */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .section, .gallery { padding-block: 88px; }
  .header { padding: 18px var(--gutter); }
  .header.is-scrolled { padding-block: 12px; }
  .menu-btn { display: block; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 0 var(--gutter);
    background: var(--espresso);
    color: var(--cream);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a {
    gap: 14px;
    font-family: var(--serif-en);
    font-weight: 300;
    font-size: 44px;
    letter-spacing: -0.01em;
    text-transform: none;
    line-height: 1.15;
  }
  .nav a i { font-size: 14px; }
  .nav a::after { display: none; }
  .header.menu-open { color: var(--cream); background: transparent; backdrop-filter: none; }

  .hero-inner { padding-top: 96px; }
  .hero-meta { gap: 6px 20px; }
  .scroll { display: none; }
  .steam { top: 22%; }

  .about-heading { letter-spacing: 0.1em; }
  .about-fig-2 { margin-top: 64px; }

  .news-list li { grid-template-columns: auto auto minmax(0, 1fr); gap: 4px 16px; padding: 24px 0; }
  .news-list p { grid-column: 1 / -1; }
  .arrow { display: none; }

  .footer-cta { flex-direction: column; align-items: flex-start; }

  .demo-badge { right: 12px; bottom: 12px; font-size: 10px; }
}
