/* パンと珈琲 暁 — 架空サイト
   骨格：ページは 04:40 から 14:00 へ下る。上が未明、下が朝。
   地色はセクションごとに始点と終点を持ち、隣と数珠つなぎになっている。
   文書の高さを当てにしないので、内容が増減しても夜明けは崩れない。 */

:root {
  --night:  #111822;
  --night2: #1A2130;
  --night3: #232C3C;
  --paper:  #F4EDE1;
  --paper2: #EFE4D2;
  --paper3: #F7F2E9;
  --ink:    #2A211A;
  --cream:  #F2E9DB;
  --bake:   #B96A2A;

  --disp-en: "Fraunces", "Times New Roman", serif;
  --disp-jp: "Zen Antique", "Hiragino Mincho ProN", serif;
  --body-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --label-en: "Inter", system-ui, sans-serif;

  /* 縦のリズムは一本だけ。全ての継ぎ目でこれを使う。 */
  --step: clamp(72px, 10vw, 140px);
  --gutter: clamp(24px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body-jp);
  font-size: clamp(15px, 14.2px + .25vw, 17px);
  line-height: 2;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  text-underline-offset: .25em;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* コンテナには padding-inline だけを与える。
   ショートハンドにすると section の padding-block を黙って消すため。 */
.wrap {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* 見出しは wrap の幅いっぱい、本文だけ読める長さに絞る */
.col > p { max-width: 36em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--bake); color: #fff; padding: .8em 1.4em; z-index: 99;
}
.skip:focus { left: 0; }

:where(a, button):focus-visible {
  outline: 2px solid var(--bake);
  outline-offset: 3px;
}

/* ── 帯ごとの文字色 ───────────────────────── */
.band--night { color: var(--cream); }
.band--day   { color: var(--ink); }

.band--night .label { color: rgba(242,233,219,.66); }
.band--day   .label { color: rgba(42,33,26,.58); }

/* ── 小さな欧文ラベル ─────────────────────── */
.label {
  font-family: var(--label-en);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  line-height: 1.6;
  margin: 0 0 1.4em;
  font-variant-numeric: tabular-nums;
}

/* ── 見出し ───────────────────────────────── */
.h2 {
  font-family: var(--disp-jp);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.9rem);
  line-height: 1.5;
  letter-spacing: .02em;
  margin: 0 0 1.2em;
}

p { margin: 0 0 1.6em; }
p:last-child { margin-bottom: 0; }

/* ── ヘッダ ───────────────────────────────── */
.head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--gutter);
}
.head__logo {
  display: flex; align-items: baseline; gap: .6rem;
  text-decoration: none;
}
.head__logo svg { align-self: center; opacity: .85; }
.head__name { font-family: var(--disp-jp); font-size: 1.15rem; letter-spacing: .12em; }
.head__latin {
  font-family: var(--label-en); font-size: .6rem; font-weight: 500;
  letter-spacing: .3em; opacity: .6;
}
.head__nav { display: flex; gap: clamp(.9rem, 2.4vw, 1.8rem); }
.head__nav a {
  font-size: .78rem; letter-spacing: .1em; text-decoration: none;
  opacity: .82; padding-block: .3em;
}
.head__nav a:hover { opacity: 1; text-decoration: underline; }

/* ── ファーストビュー ─────────────────────────
   Inspo の実測：ナビ・見出し・補足・CTA を最初の画面で完結させる。
   見出しは2行まで。文字は写真の下1/3に置く。 */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  padding-block: clamp(120px, 16vh, 200px) clamp(48px, 7vw, 88px);
  overflow: hidden;
  background: linear-gradient(to bottom, var(--night), var(--night2));
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .5;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(17,24,34,.35) 0%, rgba(17,24,34,.1) 35%, rgba(17,24,34,.82) 78%, var(--night2) 100%);
}
/* グリッド項目に auto マージンが付くと伸張が止まり、中身の幅まで縮む。
   幅を明示して wrap 本来の 1140px 中央寄せに戻す。 */
.hero__body { position: relative; z-index: 2; width: 100%; }

.hero__h {
  font-family: var(--disp-jp);
  font-weight: 400;
  font-size: clamp(2rem, 1.05rem + 4.1vw, 4.1rem);
  line-height: 1.42;
  letter-spacing: .01em;
  margin: 0 0 1em;
  max-width: 16em;
}
.hero__sub {
  font-size: clamp(.86rem, .82rem + .2vw, 1rem);
  line-height: 2.1;
  opacity: .84;
  margin: 0 0 2.2em;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }

.btn {
  display: inline-block;
  font-family: var(--body-jp);
  font-size: .82rem; letter-spacing: .08em;
  text-decoration: none;
  padding: .95em 1.9em;
  background: var(--bake); color: #fff;
  border: 1px solid var(--bake);
  transition: background .25s ease, color .25s ease;
}
.btn:hover { background: #A15A22; border-color: #A15A22; }
.btn--ghost {
  background: transparent; color: inherit;
  border-color: rgba(242,233,219,.45);
}
.btn--ghost:hover { background: rgba(242,233,219,.1); border-color: var(--cream); }

/* ── 節 ───────────────────────────────────── */
.sect { padding-block: var(--step); }

.sect.band--night { background: linear-gradient(to bottom, var(--night2), var(--night3)); }

/* 夜が明ける。ここだけが地色の切り替わりを見せる区間。 */
.dawnbreak {
  height: clamp(320px, 52vh, 520px);
  background: linear-gradient(to bottom,
    var(--night3) 0%,
    #3E4252 24%,
    #7A6A62 48%,
    #C79A6C 66%,
    #E7D3B4 82%,
    var(--paper2) 100%);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.1rem;
  padding-inline: var(--gutter);
}
.dawnbreak__label {
  margin: 0;
  font-family: var(--label-en); font-size: .68rem; font-weight: 500;
  letter-spacing: .3em; color: rgba(242,233,219,.7);
  font-variant-numeric: tabular-nums;
}
.dawnbreak__horizon {
  width: min(100%, 760px); height: 1px;
  background: linear-gradient(to right, transparent, rgba(233,214,180,.85), transparent);
}
.dawnbreak__jp {
  margin: 0;
  font-family: var(--disp-jp); font-size: .95rem;
  letter-spacing: .5em; text-indent: .5em;
  color: rgba(60,44,32,.62);
}

/* 夜明けの終点（paper2）を受けて、最初の一節でだけ紙が温まりきる。 */
.sect.band--day { background: var(--paper3); }
#bread { background: linear-gradient(to bottom, var(--paper2), var(--paper3)); }

.lead { font-size: 1.02em; }

/* ── 品書き ───────────────────────────────── */
.menu {
  list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0;
  max-width: 46em;
  border-top: 1px solid rgba(42,33,26,.16);
}
.menu__row {
  display: grid;
  grid-template-columns: 5.2em 1fr auto;
  align-items: baseline;
  gap: 0 1.2rem;
  padding: 1.15em 0;
  border-bottom: 1px solid rgba(42,33,26,.16);
}
.menu__time {
  font-family: var(--disp-en);
  font-size: 1.05rem; font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: rgba(42,33,26,.55);
}
.menu__name { font-size: 1.02rem; letter-spacing: .05em; }
.menu__note {
  display: block;
  font-size: .76rem; line-height: 1.9; letter-spacing: .04em;
  color: rgba(42,33,26,.58);
}
.menu__price {
  font-family: var(--disp-en); font-weight: 300;
  font-size: .98rem; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.menu__foot {
  margin: 1.6em 0 0; max-width: 46em;
  font-size: .78rem; color: rgba(42,33,26,.6);
}

/* いま焼けているもの。JS が現在時刻を見て印を付ける。 */
.menu__row.is-out .menu__time { color: var(--bake); }
.menu__row.is-out .menu__label::after {
  content: "焼きたて";
  display: inline-block;
  margin-inline-start: .8em;
  font-size: .64rem; letter-spacing: .14em; text-indent: .14em;
  padding: .35em .8em;
  color: #fff; background: var(--bake);
  vertical-align: .18em;
}

/* ── 珈琲（写真と本文の二段組） ───────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split__text { max-width: 34em; }
.split__img img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

.spec { margin: 2.4em 0 0; }
.spec > div {
  display: grid; grid-template-columns: 7em 1fr;
  gap: .8rem; padding: .95em 0;
  border-top: 1px solid rgba(42,33,26,.16);
}
.spec > div:last-child { border-bottom: 1px solid rgba(42,33,26,.16); }
.spec dt { font-family: var(--disp-jp); letter-spacing: .08em; }
.spec dd { margin: 0; font-size: .92rem; color: rgba(42,33,26,.78); }
.spec b {
  font-family: var(--disp-en); font-weight: 400;
  margin-inline-start: .7em; color: var(--ink);
}

/* ── 引き ─────────────────────────────────── */
.pull {
  font-family: var(--disp-jp);
  font-size: clamp(1.15rem, .95rem + .9vw, 1.6rem);
  line-height: 1.85;
  margin-block: 2em;
  padding-inline-start: 1.1em;
  border-inline-start: 2px solid var(--bake);
}

/* ── お知らせ（表で書き換える帯） ─────────────── */
.notice {
  display: inline-flex; align-items: baseline; gap: .8em;
  max-width: 34em; margin: 0 0 1.6rem;
  padding: .7em 1em; background: var(--bake); color: var(--paper3);
  font-size: .86rem; line-height: 1.8;
}
.notice[hidden] { display: none; }
.notice__tag {
  flex: none; font-size: .68rem; letter-spacing: .14em;
  border: 1px solid rgba(247,242,233,.55); padding: 0 .5em;
}
.notice__text { white-space: pre-line; }
[data-sheet] { white-space: pre-line; }
.is-updated { animation: sheet-flash 1.4s ease; }
@keyframes sheet-flash { from { background: rgba(185,106,42,.35); } to { background: transparent; } }
.notice.is-updated { animation: none; }
@media (prefers-reduced-motion: reduce) { .is-updated { animation: none; } }

/* ── 営業案内 ─────────────────────────────── */
.info { margin: clamp(28px, 4vw, 44px) 0 0; max-width: 46em; }
.info > div {
  display: grid; grid-template-columns: 8em 1fr;
  gap: .8rem 1.2rem;
  padding: 1.25em 0;
  border-top: 1px solid rgba(42,33,26,.16);
}
.info > div:last-child { border-bottom: 1px solid rgba(42,33,26,.16); }
.info dt { font-family: var(--disp-jp); letter-spacing: .1em; }
.info dd { margin: 0; }
.info__note { font-size: .78rem; color: rgba(42,33,26,.6); line-height: 1.9; }

/* ── 足 ───────────────────────────────────── */
.foot { background: var(--paper3); padding-block: var(--step) clamp(40px, 6vw, 72px); }
.foot__in { border-top: 1px solid rgba(42,33,26,.16); padding-top: clamp(28px, 4vw, 48px); }
.foot__mark { display: flex; align-items: baseline; gap: .8rem; margin: 0 0 1.2em; }
.foot__name { font-family: var(--disp-jp); font-size: 1.25rem; letter-spacing: .14em; }
.foot__latin {
  font-family: var(--label-en); font-size: .6rem; font-weight: 500;
  letter-spacing: .28em; color: rgba(42,33,26,.55);
}
.foot__note { font-size: .76rem; color: rgba(42,33,26,.62); margin: 0; max-width: 46em; }

/* ── 立ち上がり ───────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal.is-in { transition: none; }
  .btn { transition: none; }
}

/* ── 狭い画面 ─────────────────────────────── */
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split__img { order: -1; }
  .split__img img { aspect-ratio: 3 / 2; }
  .menu, .info, .menu__foot { max-width: none; }
  .menu__row { grid-template-columns: 4.4em 1fr; }
  .menu__price { grid-column: 2; text-align: left; font-size: .88rem; opacity: .8; }
  .info > div, .spec > div { grid-template-columns: 1fr; gap: .2rem; }
  .head__nav a { font-size: .72rem; }
  .hero { min-height: 100svh; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { text-align: center; max-width: 320px; }
}

@media (max-width: 400px) {
  .head { gap: .5rem; }
  .head__latin { display: none; }
}
