/* 木漏れ日珈琲：葉ごしの光の淡い緑がかった紙色から、夕方は暮れの藍へ */
:root {
  --leaf-paper: #eef0e6;
  --ink: #232a1f;
  --sage: #6f7d5c;
  --brass: #a07a3e;
  --dusk: #263049;
  --dusk-ink: #ece6d6;
  --bg: var(--leaf-paper);
  --fg: var(--ink);
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--gothic); font-size: 16px; line-height: 2; letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  transition: background-color 1.2s ease, color 1.2s ease;
}
/* 夕方の場面が見えている間だけ、ページ全体が暮れの色になる */
body.dusk { --bg: var(--dusk); --fg: var(--dusk-ink); }
h1, h2, h3 { font-family: var(--mincho); font-weight: 600; margin: 0; letter-spacing: .06em; }
p, dl, dd, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink); color: var(--leaf-paper); padding: 8px 14px; }

/* 上の帯 */
.bar { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; justify-content: space-between; align-items: baseline;
  padding: 26px var(--gutter); }
.mark { font-family: var(--mincho); font-size: 24px; text-decoration: none; letter-spacing: .02em; }
.mark span { font-size: 12px; letter-spacing: .3em; margin-left: 14px; opacity: .75; }
.bar nav { display: flex; gap: 32px; font-size: 13px; }
.bar nav a { font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .3s; }
.bar nav a:hover { border-color: currentColor; }

/* 最初の画面：写真いっぱいに、左の麻の上へ縦書きの見出し */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  animation: settle 2.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes settle { from { opacity: 0; scale: 1.04; } }
/* 文字の下だけ麻の色を少し足して読みやすく（左と上） */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(240, 236, 224, .62), rgba(240, 236, 224, 0) 46%),
    linear-gradient(180deg, rgba(240, 236, 224, .7), rgba(240, 236, 224, 0) 120px); }
.hero-text { z-index: 1; }
.hero-text { position: absolute; top: 0; bottom: 0; left: var(--gutter); display: flex; flex-direction: row-reverse; align-items: center; gap: 40px;
  padding-top: 60px; }
.hero h1 { writing-mode: vertical-rl; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.7; letter-spacing: .18em; font-weight: 400; }
.lead { writing-mode: vertical-rl; font-size: 15px; line-height: 2.4; letter-spacing: .2em; height: 21em; }

/* 一日の光 */
.day { padding: 22vh var(--gutter) 10vh; }
.day-title { font-size: clamp(22px, 2.4vw, 32px); font-weight: 400; margin-bottom: 14vh; max-width: 20em; }
.time { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 36px); align-items: center; margin-bottom: 22vh; }
.time-text { max-width: 26em; }
.time h3 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.7; margin-bottom: 22px; font-weight: 400; }
.time p:not(.clock) { opacity: .88; }
/* 時刻が、この店でいちばん大きな文字 */
.clock { font-family: var(--mincho); color: var(--sage); font-size: 15px; letter-spacing: .3em; margin-bottom: 18px;
  display: flex; align-items: baseline; gap: 18px; white-space: nowrap; }
.clock time { font-size: clamp(72px, 10vw, 160px); line-height: .9; letter-spacing: -.02em; color: var(--fg); opacity: .9; }

.morning img { grid-column: 1 / 7; }
.morning .time-text { grid-column: 8 / 13; }
.afternoon .time-text { grid-column: 1 / 6; grid-row: 1 / 3; }
.afternoon .a { grid-column: 7 / 11; grid-row: 1; }
.afternoon .b { grid-column: 9 / 13; grid-row: 2; margin-top: -30%; box-shadow: 0 0 0 clamp(8px, 1vw, 14px) var(--bg); transition: box-shadow 1.2s; }
.evening img { grid-column: 1 / 13; width: 100%; }
.evening .time-text { grid-column: 7 / 13; margin-top: 56px; }
.evening .clock { color: #b7a77f; }

/* メニュー */
.menu { padding: 16vh var(--gutter); border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.menu > h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 400; margin-bottom: 8vh; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 7vw, 120px); }
.menu h3 { font-size: 16px; letter-spacing: .2em; color: var(--sage); margin-bottom: 10px; }
.menu dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0;
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.menu dt { font-family: var(--mincho); font-size: clamp(17px, 1.5vw, 20px); }
.menu dt span { display: block; font-family: var(--gothic); font-size: 12px; opacity: .6; letter-spacing: .06em; }
.menu dd { font-family: var(--mincho); font-size: 19px; font-variant-numeric: tabular-nums; }
.menu-cols > div + div { margin-top: 0; }
.note { margin-top: 32px; font-size: 13px; opacity: .7; }

/* 豆 */
.beans { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 36px); align-items: end;
  padding: 6vh var(--gutter) 16vh; }
.beans img { grid-column: 1 / 6; }
.beans-text { grid-column: 7 / 12; max-width: 26em; }
.beans h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 400; margin-bottom: 26px; }
.beans p + p { margin-top: 1em; }
.price { font-family: var(--mincho); font-size: 18px; color: var(--brass); }

/* 店内 */
.space { padding: 0 0 14vh; }
.space img { width: 100%; max-height: 92vh; object-fit: cover; }
.space figcaption { padding: 20px var(--gutter) 0; font-size: 14px; opacity: .8; }

/* 場所と時間 */
.access { padding: 8vh var(--gutter) 16vh; display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.access h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; }
.access dl > div { display: grid; grid-template-columns: 6em 1fr; padding: 18px 0;
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.access dt { color: var(--sage); }

.foot { padding: 40px var(--gutter) 56px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; opacity: .7; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }

@media (max-width: 768px) {
  body { font-size: 15px; }
  .bar { padding: 18px var(--gutter); }
  .bar nav { display: none; }
  /* スマホ：写真を上に、縦書きの見出しはその下の紙の上へ */
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .hero-img { position: relative; height: 62svh; object-position: 74% 50%; }
  .hero-text { position: relative; left: 0; padding: 40px var(--gutter) 24px; justify-content: flex-end; gap: 28px; }
  .hero h1 { font-size: 32px; }
  .lead { height: 17em; font-size: 13px; }
  .day { padding-top: 12vh; }
  .day-title { margin-bottom: 8vh; }
  .time { display: block; margin-bottom: 14vh; }
  .time img { margin-bottom: 28px; }
  .afternoon { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .afternoon .time-text { grid-column: 1 / 3; grid-row: 1; margin-bottom: 20px; }
  .afternoon .a { grid-column: 1; grid-row: 2; }
  .afternoon .b { grid-column: 2; grid-row: 2; margin-top: 30%; box-shadow: none; }
  .evening img { margin-left: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); max-width: none; }
  .evening .time-text { margin-top: 0; }
  .menu-cols, .access { grid-template-columns: 1fr; }
  .menu-cols > div + div { margin-top: 48px; }
  .beans { display: block; }
  .beans img { margin-bottom: 32px; width: 80%; }
}
@media (prefers-reduced-motion: reduce) {
  body, .afternoon .b { transition: none; }
  .hero-img { animation: none; }
}
