/* ============================================
   CAFE ROASTER TEMPLATE
   スペシャルティコーヒーの焙煎所 — 白×コンクリートグレー×黒
   差し色は信号のようなオレンジ1色だけ。数字と罫線で組む
============================================ */

:root {
  /* Color */
  --white: #ffffff;
  --paper: #f2f2ef; /* 少しグレーがかった白 */
  --concrete-light: #e4e4e0;
  --concrete: #c8c8c3;
  --concrete-dark: #8d8d88;
  --ink: #141414; /* 文字・黒い面 */
  --ink-soft: #3d3d3b;
  --muted: #6a6a66;
  --signal: #ff5a1f; /* 差し色（面・太字・大きい文字だけに使う） */
  --signal-dark: #c9400b; /* 白地の小さい文字に使うときはこちら */
  --line: #141414;
  --line-soft: rgba(20, 20, 20, 0.16);

  /* 焙煎度スケールの豆の色（浅→深） */
  --roast-1: #c9a27a;
  --roast-2: #b8875c;
  --roast-3: #a06c43;
  --roast-4: #855433;
  --roast-5: #6a4027;
  --roast-6: #52301e;
  --roast-7: #3b2216;
  --roast-8: #24150e;

  /* Font */
  --font-jp: "IBM Plex Sans JP", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 64px;
  --section-space: clamp(72px, 10vw, 140px);

  /* 機械的にすっと止まるイージング */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  letter-spacing: 0.03em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea,
output {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

figure {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.pc-only {
  display: none;
}

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

/* ---------- 共通パーツ ---------- */
.section {
  padding: var(--section-space) 0;
}

/* 「01 BEANS」形式の等幅ラベル */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.label span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  background: var(--ink);
  color: var(--white);
}

.label--invert span {
  background: var(--signal);
  color: var(--ink);
}

.title {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  font-weight: 500;
  font-size: 15px;
  border: 1.5px solid var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}

.btn--line:hover {
  background: var(--ink);
  color: var(--white);
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1.5px solid var(--signal);
  padding-bottom: 2px;
}

/* ============================================
   Header
============================================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(242, 242, 239, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.header__inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.logo__mark svg {
  display: block;
}

.logo__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  line-height: 1.1;
}

.logo__main {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.logo__sub {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__list {
  display: flex;
  gap: 22px;
}

.nav__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}

.nav__list a:hover {
  border-bottom-color: var(--signal);
}

.nav__no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav__cta:hover {
  background: var(--signal);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 4px;
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.nav-toggle__icon {
  display: grid;
  gap: 6px;
  width: 22px;
}

.nav-toggle__icon i {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  /* 全面パネル（フェード＋少しだけ下りる） */
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 16px) var(--gutter) 32px;
    background: var(--paper);
    opacity: 0;
    transform: translateY(-16px);
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
    overflow-y: auto;
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .nav__list a {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    font-size: 20px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav__cta {
    margin-top: 24px;
    min-height: 54px;
    justify-content: center;
    font-size: 16px;
  }
}

/* ============================================
   Hero
============================================ */
.hero {
  padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) 0 0;
}

.hero__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--concrete-dark);
}

.hero__status.is-roasting .dot {
  background: var(--signal);
}

.hero__title {
  font-size: clamp(40px, 7.4vw, 100px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero__title span {
  display: block;
  word-break: keep-all;
}

.hero__title span:last-child {
  color: var(--ink);
  background: linear-gradient(transparent 72%, var(--signal) 72% 90%, transparent 90%);
  display: inline;
}

.hero__lead {
  margin-top: 28px;
  max-width: 34em;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__visual {
  position: relative;
}

.hero__photo {
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  background: var(--concrete);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05);
}

.roast-log {
  margin-top: -1px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 16px 18px;
}

.roast-log > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.roast-log > div:last-child {
  border-bottom: none;
}

.roast-log dt {
  color: var(--concrete);
}

.roast-log dd {
  text-align: right;
}

.roast-log .roast-log__head {
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--signal);
}

.roast-log__head dt {
  color: var(--signal);
  font-weight: 500;
  white-space: nowrap;
}

.hero__figures {
  max-width: var(--container);
  margin: clamp(40px, 6vw, 80px) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.hero__figures li {
  padding: 18px 14px 18px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__figures strong {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.2;
}

.hero__figures span {
  font-size: 13px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .hero__figures {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__figures li + li {
    padding-left: 18px;
    border-left: 1px solid var(--line-soft);
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: 48px;
  }

  .hero__text {
    padding-bottom: 40px;
  }

  /* ログを写真の左下にはみ出させる */
  .roast-log {
    position: absolute;
    left: -64px;
    bottom: 32px;
    width: 300px;
    margin: 0;
  }
}

/* ============================================
   About
============================================ */
.about__grid {
  display: grid;
  gap: 40px;
}

.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.3);
}

.about__photo figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.about__body > p:not(.label):not(.about__sign) {
  margin-top: 20px;
  max-width: 32em;
}

.about__body .title {
  margin-bottom: 8px;
}

.about__sign {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
}

.about__specs {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.about__specs > div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.about__specs dt {
  font-family: var(--font-mono);
  color: var(--muted);
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }

  .about__photo {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

/* ============================================
   Beans（豆の仕様書）
============================================ */
.beans {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.beans__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 40px;
}

.beans__note {
  font-size: 14px;
  color: var(--muted);
}

/* 焙煎度スケール */
.scale {
  margin-top: 36px;
}

.scale__bar {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  height: 14px;
}

.scale__bar span:nth-child(1) { background: var(--roast-1); }
.scale__bar span:nth-child(2) { background: var(--roast-2); }
.scale__bar span:nth-child(3) { background: var(--roast-3); }
.scale__bar span:nth-child(4) { background: var(--roast-4); }
.scale__bar span:nth-child(5) { background: var(--roast-5); }
.scale__bar span:nth-child(6) { background: var(--roast-6); }
.scale__bar span:nth-child(7) { background: var(--roast-7); }
.scale__bar span:nth-child(8) { background: var(--roast-8); }

.scale__labels {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* スマホでは両端だけ表示 */
@media (max-width: 767px) {
  .scale__labels {
    display: flex;
    justify-content: space-between;
  }

  .scale__labels span:not(:first-child):not(:last-child) {
    display: none;
  }
}

/* 絞り込みボタン */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 8px;
}

.filter__btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.filter__btn span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
}

.filter__btn:hover {
  background: var(--concrete-light);
}

.filter__btn.is-active {
  background: var(--ink);
  color: var(--white);
}

.filter__btn.is-active span {
  color: var(--signal);
}

/* 豆の一覧（1件＝1行の仕様書） */
.bean-list {
  border-top: 2px solid var(--line);
}

.bean {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: opacity 0.25s;
}

.bean[hidden] {
  display: none;
}

.bean__code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--signal-dark);
}

.bean__name {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.5;
}

.bean__name small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.bean__notes {
  font-size: 14px;
  margin-top: 4px;
}

.bean__spec {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 4px 20px;
  font-size: 13px;
}

.bean__spec dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* 1〜8の目盛り。--level の位置までを塗る */
.bean__level {
  display: grid;
  gap: 4px;
  align-content: center;
}

.bean__meter {
  position: relative;
  display: block;
  height: 10px;
  max-width: 220px;
  background: repeating-linear-gradient(
    90deg,
    var(--concrete-light) 0 calc(12.5% - 2px),
    var(--white) calc(12.5% - 2px) 12.5%
  );
}

.bean__meter::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--level) * 12.5% - 2px);
  background: var(--ink);
}

.bean__meter::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -4px;
  bottom: -4px;
  left: calc(var(--level) * 12.5% - 6px);
  width: 4px;
  background: var(--signal);
}

.bean__level-text {
  font-family: var(--font-mono);
  font-size: 12px;
}

.bean__price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.bean__price small {
  font-family: var(--font-jp);
  font-size: 12px;
  margin-left: 1px;
}

@media (min-width: 768px) {
  .bean {
    grid-template-columns: 90px 1fr 1fr;
    gap: 14px 24px;
    align-items: center;
  }

  .bean__main {
    grid-column: 2 / 4;
  }

  .bean__spec {
    grid-column: 2;
  }

  .bean__level {
    grid-column: 3;
  }

  .bean__price {
    grid-column: 2 / 4;
  }

  .bean__code {
    grid-row: 1 / 4;
    align-self: start;
    padding-top: 4px;
  }
}

@media (min-width: 1100px) {
  .bean {
    grid-template-columns: 80px minmax(0, 1.5fr) minmax(0, 1.4fr) 150px 190px;
  }

  .bean__code,
  .bean__main,
  .bean__spec,
  .bean__level,
  .bean__price {
    grid-column: auto;
    grid-row: auto;
  }

  .bean__code {
    align-self: center;
    padding: 0;
  }

  .bean__price {
    text-align: right;
  }
}

/* 豆以外の素材 */
.source {
  display: grid;
  gap: 28px;
  margin-top: clamp(56px, 8vw, 96px);
}

.source__photo img {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

.source__list > div {
  display: grid;
  grid-template-columns: 4em 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}

.source__list > div:first-child {
  border-top: 2px solid var(--line);
}

.source__list dt {
  font-weight: 700;
}

@media (min-width: 900px) {
  .source {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
    align-items: center;
  }
}

/* ============================================
   Recipe（黒い面）
============================================ */
.recipe {
  background: var(--ink);
  color: var(--white);
}

.recipe__grid {
  display: grid;
  gap: 48px;
}

.recipe__intro > p:not(.label) {
  margin-top: 18px;
  color: var(--concrete);
  max-width: 30em;
}

.cups {
  display: inline-flex;
  margin-top: 28px;
  border: 1.5px solid var(--white);
}

.cups__btn {
  min-width: 72px;
  min-height: 48px;
  font-weight: 500;
  color: var(--white);
  transition: background 0.2s, color 0.2s;
}

.cups__btn + .cups__btn {
  border-left: 1.5px solid var(--white);
}

.cups__btn.is-active {
  background: var(--signal);
  color: var(--ink);
}

.recipe__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.recipe__specs > div {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.recipe__specs dt {
  font-size: 12px;
  color: var(--concrete);
}

.recipe__specs dd {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.3;
}

.recipe__specs dd:not(:has(output)) {
  font-family: var(--font-jp);
}

.timer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--signal);
}

.timer__time {
  font-family: var(--font-mono);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.timer__btns {
  display: flex;
  gap: 8px;
}

.timer__btn {
  min-height: 48px;
  padding: 0 20px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
}

.timer__btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 0 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.step__time {
  font-family: var(--font-mono);
  color: var(--concrete);
  padding-top: 2px;
}

.step__title {
  font-weight: 700;
}

.step__text {
  font-size: 14px;
  color: var(--concrete);
}

.step__text output {
  font-family: var(--font-mono);
  color: var(--white);
}

.step.is-current {
  border-left-color: var(--signal);
  background: rgba(255, 255, 255, 0.05);
}

.step.is-current .step__time {
  color: var(--signal);
}

.step.is-done {
  opacity: 0.45;
}

@media (min-width: 900px) {
  .recipe__grid {
    grid-template-columns: 5fr 6fr;
    gap: 80px;
  }
}

/* ============================================
   Hours（一日のタイムライン）
============================================ */
.hours__head {
  display: grid;
  gap: 4px;
  margin-bottom: 36px;
}

.hours__now {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

.hours__now.is-open {
  color: var(--ink);
}

.hours__now.is-open::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--signal);
  vertical-align: 1px;
}

.timeline__axis {
  display: none;
}

.timeline__track {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--line);
}

.slot {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 2px 16px;
}

.slot__time {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  grid-row: 1 / 3;
}

.slot__name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.slot__text {
  font-size: 14px;
  color: var(--ink-soft);
}

.timeline__now {
  display: none;
}

/* 768px以上は横一本の時間軸に並べる（8時〜18時＝10時間） */
@media (min-width: 768px) {
  .timeline__axis {
    position: relative;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
  }

  .timeline__axis span {
    border-left: 1px solid var(--concrete);
    padding-left: 6px;
    height: 22px;
  }

  /* 右端の「18」 */
  .timeline__axis::after {
    content: "18";
    position: absolute;
    right: 0;
    top: 0;
    height: 22px;
    padding-right: 6px;
    border-right: 1px solid var(--concrete);
  }

  .timeline__track {
    position: relative;
    display: block;
    height: 180px;
    border-top: none;
    background: repeating-linear-gradient(
      90deg,
      var(--concrete-light) 0 1px,
      transparent 1px 10%
    );
  }

  .slot {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--from) * 10%);
    width: calc((var(--to) - var(--from)) * 10% - 4px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 14px;
    border: none;
    border-top: 6px solid var(--ink);
    background: var(--white);
  }

  .slot--lunch {
    border-top-color: var(--concrete-dark);
  }

  .slot--stand {
    border-top-color: var(--signal);
  }

  .slot__name {
    font-size: 16px;
  }

  .timeline__now {
    position: absolute;
    z-index: 2;
    top: -8px;
    bottom: -8px;
    left: calc(var(--now) * 10%);
    width: 2px;
    background: var(--signal);
    display: block;
  }

  .timeline__now[hidden] {
    display: none;
  }

  .timeline__now i {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    color: var(--signal-dark);
  }
}

/* ============================================
   Menu（3列の価格表）
============================================ */
.menu {
  background: var(--concrete-light);
}

.menu__head {
  display: grid;
  gap: 4px;
  margin-bottom: 40px;
}

.menu__tax {
  font-size: 14px;
  color: var(--muted);
}

.menu__cols {
  display: grid;
  gap: 48px;
}

.menu__cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.menu__cat span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--signal);
  font-size: 12px;
}

.price-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.price-list__name {
  font-size: 15px;
  font-weight: 500;
}

.price-list__name small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.price-list__price {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 15px;
  white-space: nowrap;
}

.price-list__price::after {
  content: "円";
  font-family: var(--font-jp);
  font-size: 12px;
  margin-left: 1px;
}

.menu__photo {
  margin-top: 20px;
}

.menu__photo img {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

.menu__memo {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1.5px dashed var(--ink);
  font-size: 14px;
}

.menu__memo span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--signal-dark);
}

@media (min-width: 768px) {
  .menu__cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 40px;
  }
}

@media (min-width: 1100px) {
  .menu__cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .menu__col {
    padding: 0 28px;
    border-left: 1px solid var(--line-soft);
  }

  .menu__col:first-child {
    padding-left: 0;
    border-left: none;
  }

  .menu__col:last-child {
    padding-right: 0;
  }
}

/* ============================================
   Space（席と設備）
============================================ */
.space {
  padding-top: 0;
}

.space__photo {
  height: clamp(240px, 42vw, 520px);
  overflow: hidden;
  margin-bottom: clamp(48px, 7vw, 88px);
}

.space__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.05);
}

.space__grid {
  display: grid;
  gap: 48px;
}

.space__total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 20px 0 12px;
  font-family: var(--font-mono);
}

.space__total strong {
  font-size: clamp(72px, 10vw, 128px);
  font-weight: 500;
  line-height: 1;
  color: var(--signal);
}

.space__total span {
  font-size: 14px;
  letter-spacing: 0.2em;
}

.seat-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.seat-list li span:last-child {
  font-family: var(--font-mono);
}

/* 設備は罫線で区切った表のように */
.facility {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  align-self: start;
}

.facility li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.facility svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: square;
}

.facility__name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.facility__val {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .space__grid {
    grid-template-columns: 4fr 7fr;
    gap: 72px;
  }

  .facility {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Gallery（図版）
============================================ */
.gallery {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.gallery__head {
  margin-bottom: 36px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.fig img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1;
}

.fig figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.fig figcaption span {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--signal-dark);
}

.fig--a,
.fig--b,
.fig--e {
  grid-column: 1 / -1;
}

.fig--a img {
  aspect-ratio: 4 / 5;
}

.fig--b img,
.fig--e img {
  aspect-ratio: 3 / 2;
}

@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
  }

  .fig {
    display: flex;
    flex-direction: column;
  }

  .fig img {
    flex: 1;
    min-height: 0;
  }

  .fig--a {
    grid-column: 1 / 6;
    grid-row: 1 / 3;
  }

  .fig--a img {
    aspect-ratio: auto;
  }

  .fig--b {
    grid-column: 6 / 13;
  }

  .fig--c {
    grid-column: 6 / 9;
  }

  .fig--d {
    grid-column: 9 / 13;
  }

  .fig--d img {
    aspect-ratio: 4 / 3;
  }

  .fig--c img {
    aspect-ratio: 1;
  }

  .fig--e {
    grid-column: 3 / 13;
  }

  .fig--e img {
    aspect-ratio: 3 / 1;
  }
}

/* ============================================
   Log（お知らせ）
============================================ */
.log__grid {
  display: grid;
  gap: 32px;
}

.log-list {
  border-top: 2px solid var(--line);
}

.log-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.log-list time {
  font-family: var(--font-mono);
  font-size: 14px;
}

.log-list__tag {
  justify-self: start;
  align-self: center;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--ink);
}

.log-list__tag--alert {
  background: var(--signal);
  border-color: var(--signal);
}

.log-list p {
  grid-column: 1 / -1;
  font-size: 15px;
}

@media (min-width: 900px) {
  .log__grid {
    grid-template-columns: 4fr 8fr;
    gap: 64px;
  }

  .log-list li {
    grid-template-columns: 110px 80px 1fr;
    gap: 20px;
    align-items: baseline;
  }

  .log-list__tag {
    align-self: baseline;
  }

  .log-list p {
    grid-column: auto;
  }
}

/* ============================================
   Instagram
============================================ */
.insta {
  padding-bottom: var(--section-space);
}

.insta__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 20px;
  padding: 16px 0;
  border-top: 2px solid var(--line);
  margin-bottom: 12px;
}

.insta__id {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500;
}

.insta__more {
  font-size: 14px;
}

.insta__head:hover .insta__id {
  color: var(--signal-dark);
}

.insta__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.insta__grid a {
  display: block;
  overflow: hidden;
  background: var(--concrete);
}

.insta__grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.3s var(--ease);
}

.insta__grid a:hover img {
  filter: none;
}

@media (min-width: 768px) {
  .insta__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ============================================
   Shop（豆の購入）
============================================ */
.shop {
  background: var(--ink);
  color: var(--white);
}

.shop__grid {
  display: grid;
  gap: 40px;
}

.shop__text > p:not(.label) {
  margin-top: 18px;
  color: var(--concrete);
  max-width: 32em;
}

.shop__text .shop__small {
  font-size: 14px;
}

.shop__btns {
  display: grid;
  gap: 12px;
  align-content: center;
}

.shop-btn {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 76px;
  padding: 14px 56px 14px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.shop-btn__en {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--concrete);
}

.shop-btn__ja {
  font-size: 16px;
  font-weight: 700;
}

.shop-btn__arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
}

.shop-btn:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.shop-btn--primary {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}

.shop-btn--primary .shop-btn__en {
  color: var(--ink);
}

.shop-btn--primary:hover {
  background: var(--white);
  border-color: var(--white);
}

@media (min-width: 900px) {
  .shop__grid {
    grid-template-columns: 6fr 5fr;
    gap: 72px;
  }
}

/* ============================================
   Access（カレンダー・店舗情報・地図）
============================================ */
.access__head {
  margin-bottom: 36px;
}

.access__grid {
  display: grid;
  gap: 40px;
}

.cal {
  background: var(--white);
  border: 1.5px solid var(--line);
  padding: 16px clamp(12px, 2vw, 20px) 18px;
}

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal__title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
}

.cal__nav {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 18px;
  transition: background 0.2s, color 0.2s;
}

.cal__nav:hover {
  background: var(--ink);
  color: var(--white);
}

.cal__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.cal__table th {
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.cal__table td {
  position: relative;
  height: 46px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 15px;
  border-bottom: 1px solid var(--line-soft);
}

.cal__table td.is-empty {
  color: transparent;
}

.cal__table td.is-closed {
  background: var(--concrete-light);
  color: var(--muted);
  text-decoration: line-through;
}

.cal__table td.is-short span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--signal);
}

.cal__table td.is-roast::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--signal);
}

.cal__table td.is-today span {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  font-size: 13px;
}

.cal__legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal__key {
  display: inline-block;
  width: 14px;
  height: 14px;
}

.cal__key--closed {
  background: var(--concrete-light);
  border: 1px solid var(--concrete);
}

.cal__key--short {
  border: 2px solid var(--signal);
}

.cal__key--roast {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
}

.info__list {
  border-top: 2px solid var(--line);
}

.info__list > div {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.info__list dt {
  font-weight: 700;
  font-size: 14px;
}

.info__list dd {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.info__list a {
  font-family: var(--font-mono);
  border-bottom: 1.5px solid var(--signal);
}

.map {
  margin-top: 40px;
  border: 1.5px solid var(--line);
  height: clamp(280px, 40vw, 420px);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

@media (min-width: 900px) {
  .access__grid {
    grid-template-columns: 5fr 6fr;
    gap: 56px;
    align-items: start;
  }
}

/* ============================================
   Footer
============================================ */
.footer {
  padding: 40px 0 32px;
  border-top: 2px solid var(--line);
}

.footer__inner {
  display: grid;
  gap: 20px;
}

.footer__logo {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.footer__logo span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 14px;
}

.footer__links a {
  display: inline-block;
  padding: 8px 0;
}

.footer__links a:hover {
  color: var(--signal-dark);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
  }

  .footer__links {
    justify-content: center;
  }
}

/* ============================================
   スクロールリビール
   JS が html に .js-roaster を付けたときだけ隠す
   写真は少しだけ下からフェードで出す
============================================ */
.js-roaster [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.js-roaster [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ヒーローの文字は読み込み直後に順にそっと出す（CSSだけで完結） */
.hero__text > * {
  animation: heroIn 0.8s var(--ease-out) both;
}

.hero__text > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero__text > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero__text > :nth-child(n + 4) {
  animation-delay: 0.24s;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.js-roaster .bean {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.js-roaster .bean.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   Reduced motion
============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-roaster [data-reveal],
  .js-roaster .bean {
    opacity: 1 !important;
    transform: none !important;
  }
}
