/* よるカフェ あかり（見本10本目）＝トークンは DESIGN.md の 2〜5章 */
:root {
  --night: #171b30;
  --night-2: #20253f;
  --paper: #f3ece0;
  --ink: #2b2620;
  --lamp: #f2b266;
  --lamp-hi: #f6c48a;
  --mist: #a9adc4;
  --clay: #6b6258;
  --lamp-deep: #8a5a1f;
  --rule-night: #3a4060;
  --rule-paper: #c9bfae;

  --font-hand: "Klee One", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --gutter: 48px;
  --r-s: 8px; --r-m: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: break-word;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
p + p { margin-top: var(--s2); }
figure { margin: 0; }
a { color: inherit; }
.nw { display: inline-block; }

:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--s2); top: -100px; z-index: 50;
  background: var(--lamp); color: var(--night); padding: var(--s1) var(--s2); border-radius: var(--r-s);
}
.skip:focus { top: var(--s2); }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow > * { max-width: 720px; }

.h2 {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 0 0 var(--s5);
  text-wrap: balance;
}
.h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0 0 var(--s2);
}

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 var(--s4);
  border-radius: var(--r-s);
  font: 700 17px/1.2 var(--font-body);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background-color .15s ease;
}
.btn--primary { background: var(--lamp); color: var(--night); }
.btn--primary:hover { background: var(--lamp-hi); }
.btn--ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--mist); }
.btn--ghost:hover { background: rgba(169, 173, 196, 0.14); }
.btn--small { min-height: 48px; padding: 0 var(--s3); font-size: 16px; }

/* ヘッダー */
.site-head {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
}
.site-head__in {
  max-width: 1200px; margin-inline: auto; padding: var(--s3) var(--gutter);
  display: flex; align-items: center; gap: var(--s4);
}
.logo {
  font-family: var(--font-hand); font-weight: 600; font-size: 24px; line-height: 1.4;
  text-decoration: none; letter-spacing: 0.04em;
}
.site-nav { display: flex; gap: var(--s4); margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 16px; font-weight: 500; padding: var(--s1) 0; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* 最初の画面 */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: end;
  isolation: isolate;
}
.hero__photo, .hero__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero__photo img { object-fit: cover; object-position: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(to top, rgba(23, 27, 48, 0.94) 8%, rgba(23, 27, 48, 0) 62%),
    linear-gradient(to right, rgba(23, 27, 48, 0.78) 0%, rgba(23, 27, 48, 0) 58%),
    linear-gradient(to bottom, rgba(23, 27, 48, 0.55) 0%, rgba(23, 27, 48, 0) 18%);
}
.hero__body {
  position: relative; z-index: 1;
  width: 100%; max-width: 1200px; margin-inline: auto;
  padding: var(--s8) var(--gutter) var(--s7);
}
.hero__title {
  font-family: var(--font-hand); font-weight: 600;
  font-size: 64px; line-height: 1.4; letter-spacing: 0;
  margin: 0 0 var(--s3);
  max-width: 12em;
}
.hero__lead { font-size: 20px; font-weight: 500; line-height: 1.75; max-width: 30em; }
.status {
  display: inline-flex; align-items: center; gap: var(--s1);
  margin-top: var(--s3);
  font-size: 17px; font-weight: 700; font-feature-settings: "tnum";
}
.status__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--mist);
}
.status.is-open .status__dot { background: var(--lamp); box-shadow: 0 0 0 4px rgba(242, 178, 102, 0.25); }
.status.is-open { color: var(--lamp); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.hero__price { margin-top: var(--s2); font-size: 16px; color: var(--mist); }

/* ひとりで来る夜に */
.solo { padding: var(--s8) 0 var(--s7); }
.pair {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s6); align-items: end;
}
.pair + .pair { margin-top: var(--s7); }
.pair__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-m); }
.pair__text { max-width: 26em; padding-bottom: var(--s2); }
.pair__fact { font-size: 20px; font-weight: 700; color: var(--lamp); font-feature-settings: "tnum"; margin-bottom: var(--s1); }
.pair__title { font-family: var(--font-hand); font-weight: 600; font-size: 32px; line-height: 1.4; margin: 0 0 var(--s3); text-wrap: balance; }
.pair--flip { grid-template-columns: 400px minmax(0, 1fr); }
.pair--flip .pair__photo { order: 2; }

/* 時間で選ぶメニュー（強く出す1か所） */
.menu { padding: var(--s7) 0 var(--s8); background: var(--night); border-top: 1px solid var(--rule-night); }
.menu__head { display: grid; grid-template-columns: auto 1fr; gap: var(--s5); align-items: end; margin-bottom: var(--s5); }
.menu__head .h2 { margin: 0; }
.menu__lead { color: var(--mist); max-width: 30em; justify-self: end; }
.menu__now { color: var(--lamp); font-weight: 700; margin-top: var(--s1); }

.timeline { --rail-y: 52px; position: relative; }
.timeline__rail { position: absolute; inset: 0 0 auto 0; height: 0; pointer-events: none; z-index: 1; }
.timeline__line {
  position: absolute; left: 0; top: var(--rail-y); width: var(--close-x, 88%); height: 3px; margin-top: -1.5px;
  background: linear-gradient(to right, var(--mist) 0, var(--mist) var(--lamp-x, 0px), #646b8f var(--lamp-x, 0px));
  border-radius: 2px;
}
.timeline__close {
  position: absolute; top: 0; left: var(--close-x, 88%); transform: translateX(-50%);
  font-size: 14px; font-weight: 700; color: var(--mist); white-space: nowrap; line-height: 32px; font-feature-settings: "tnum";
}
.timeline__close::after { content: ""; position: absolute; left: 50%; top: calc(var(--rail-y) - 10px); width: 2px; height: 20px; margin-left: -1px; background: var(--mist); }
.timeline__lamp {
  position: absolute; top: var(--rail-y); left: var(--lamp-x, 0px);
  width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 0 7px rgba(242, 178, 102, 0.22), 0 0 36px 12px rgba(242, 178, 102, 0.4);
  transition: left 1.4s cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-reduced-motion: reduce) { .timeline__lamp, .timeline__line { transition: none; } }

.stops {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4);
}
@media (min-width: 1024px) {
  .stops:has(> .stop:nth-child(1).is-now) { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .stops:has(> .stop:nth-child(2).is-now) { grid-template-columns: 1fr 1.5fr 1fr 1fr; }
  .stops:has(> .stop:nth-child(3).is-now) { grid-template-columns: 1fr 1fr 1.5fr 1fr; }
  .stops:has(> .stop:nth-child(4).is-now) { grid-template-columns: 1fr 1fr 1fr 1.5fr; }
}
.stop { position: relative; }
.stop::before { /* 止まりの印 */
  content: ""; position: absolute; left: 0; top: var(--rail-y); width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 2px var(--mist); z-index: 2;
}
.stop.is-now::before { opacity: 0; }
.stop__time { font-size: 20px; font-weight: 700; font-feature-settings: "tnum"; color: var(--mist); line-height: 32px; margin: 0 0 56px; }
.stop.is-now .stop__time { color: var(--lamp); }
.stop__photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-s); margin-bottom: var(--s3);
  filter: brightness(.8) saturate(.9); transition: filter .3s ease;
}
@media (min-width: 1024px) { /* 今の列は幅だけ広げる＝写真の高さは全列そろえて見出しの高さを揃える（見本10 別目2 丙1） */
  .stop__photo { aspect-ratio: auto; height: clamp(140px, 11.7vw, 168px); }
}
.stop.is-now .stop__photo, .stop:hover .stop__photo { filter: none; }
.stop.is-now .stop__photo { outline: 2px solid var(--lamp); outline-offset: 0; } /* 枠は線で引く（影の光彩にせん） */
.stop__title { font-family: var(--font-hand); font-weight: 600; font-size: 24px; line-height: 1.5; margin: 0 0 var(--s1); }
.stop.is-now .stop__title { font-size: 30px; }
.stop__item { font-size: 16px; line-height: 1.7; }
.stop__price { margin-top: var(--s1); font-size: 20px; font-weight: 700; color: var(--lamp); font-feature-settings: "tnum"; }
.menu__note { margin-top: var(--s5); font-size: 15px; color: var(--mist); }

/* 席と過ごし方（生成りの段） */
.seats { background: var(--paper); color: var(--ink); }
.seats__photo { width: 100%; height: clamp(320px, 52vw, 640px); object-fit: cover; }
.seats__body { padding-top: var(--s7); padding-bottom: var(--s8); }
.seat-list { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.seat { border-top: 2px solid var(--ink); padding-top: var(--s3); }
.seat dt { font-size: 24px; font-weight: 700; line-height: 1.5; display: flex; align-items: baseline; gap: var(--s2); margin-bottom: var(--s1); }
.seat__n { font-size: 17px; font-weight: 700; color: var(--lamp-deep); font-feature-settings: "tnum"; }
.seat dd { margin: 0; }
.seats__rule { margin-top: var(--s6); max-width: 40em; color: var(--clay); font-size: 16px; padding-left: var(--s3); border-left: 2px solid var(--rule-paper); }

/* 予約とアクセス */
.access { background: var(--night-2); padding: var(--s8) 0; }
.access__in { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: center; scroll-margin-top: 80px; }
.access__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-m); }
.access__lead { max-width: 30em; }
.info { margin: var(--s4) 0 0; }
.info > div { display: grid; grid-template-columns: 7em 1fr; gap: var(--s2); padding: var(--s2) 0; border-top: 1px solid var(--rule-night); }
.info > div:last-child { border-bottom: 1px solid var(--rule-night); }
.info dt { color: var(--mist); font-size: 16px; }
.info dd { margin: 0; font-feature-settings: "tnum"; }
.access__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }

/* よくある質問 */
.faq { padding: var(--s8) 0; }
.faq details { border-top: 1px solid var(--rule-night); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule-night); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: var(--s3) var(--s5) var(--s3) 0; position: relative;
  font-size: 18px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: var(--s1); top: 50%;
  width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--lamp); border-bottom: 2px solid var(--lamp);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 var(--s5) var(--s3) 0; color: var(--paper); max-width: 40em; }

/* 足元 */
.site-foot { border-top: 1px solid var(--rule-night); padding: var(--s6) 0 var(--s7); }
.logo--foot { margin-bottom: var(--s2); }
.site-foot__note { font-size: 14px; color: var(--mist); max-width: 46em; line-height: 1.7; }

/* スマホの下の予約帯 */
.dock { display: none; }

/* 予約・地図の見本の知らせ */
.sample-dialog {
  max-width: min(92vw, 440px); padding: var(--s4);
  border: 0; border-radius: var(--r-m);
  background: var(--night-2); color: var(--paper);
}
.sample-dialog::backdrop { background: rgba(10, 12, 24, 0.7); }
.sample-dialog p { margin-bottom: var(--s3); color: var(--paper); }

/* タブレット */
@media (max-width: 1023px) {
  :root { --gutter: 32px; }
  .pair, .pair--flip, .access__in { grid-template-columns: 1fr; gap: var(--s4); }
  .pair--flip .pair__photo { order: 0; }
  .pair--flip .pair__text { justify-self: start; }
  .pair, .pair--flip { grid-template-columns: 1fr; }
  .timeline__rail { display: none; }
  .stops { grid-template-columns: 1fr; row-gap: var(--s5); padding-left: 40px; position: relative; }
  .stops::before { content: ""; position: absolute; left: 7px; top: 16px; bottom: 16px; width: 3px; margin-left: -1.5px; background: #646b8f; border-radius: 2px; }
  .stop { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: var(--s3); align-items: start; }
  .stop::before { left: -40px; top: 16px; }
  .stop.is-now::before { opacity: 1; width: 18px; height: 18px; margin: -9px 0 0 -2px; background: var(--lamp); box-shadow: 0 0 0 6px rgba(242, 178, 102, 0.22), 0 0 24px 6px rgba(242, 178, 102, 0.4); }
  .stop__time { grid-column: 1 / -1; margin: 0 0 var(--s1); }
  .stop__photo { grid-row: 2 / span 3; margin: 0; }
  .stop.is-now .stop__title { font-size: 26px; }
  .stops > .stop:last-child::after { content: "25:00 閉店"; grid-column: 1 / -1; margin-top: var(--s3); font-size: 14px; font-weight: 700; color: var(--mist); }
  .menu__head { grid-template-columns: 1fr; gap: var(--s2); }
  .menu__lead { justify-self: start; }
  .seat-list { grid-template-columns: 1fr; gap: var(--s4); }
  .access__photo img { aspect-ratio: 16 / 10; }
}

/* スマホ */
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; padding-bottom: 80px; }
  .h2 { font-size: 30px; margin-bottom: var(--s4); }
  .h3 { font-size: 20px; }
  .site-nav { display: none; }
  .site-head__in { padding: var(--s2) var(--gutter); justify-content: space-between; }
  .logo { font-size: 20px; }
  .hero { min-height: 0; display: block; }
  .hero__photo { position: relative; display: block; height: 50svh; min-height: 340px; }
  .hero__photo img { position: absolute; object-position: 50% 62%; }
  .hero::after {
    inset: 0 0 auto 0; height: calc(max(50svh, 340px) + 2px);
    background:
      linear-gradient(to top, rgba(23, 27, 48, 1) 0%, rgba(23, 27, 48, 0) 38%),
      linear-gradient(to bottom, rgba(23, 27, 48, 0.6) 0%, rgba(23, 27, 48, 0) 18%);
  }
  .hero__body { margin-top: -72px; padding: 0 var(--gutter) var(--s5); }
  .hero__title { font-size: 40px; }
  .hero__lead { font-size: 17px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .solo, .menu, .faq, .access { padding-top: var(--s7); padding-bottom: var(--s7); }
  .pair + .pair { margin-top: var(--s6); }
  .stops { padding-left: 32px; }
  .stop { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s2); }
  .stop::before { left: -32px; }
  .stop__title { font-size: 20px; }
  .stop.is-now .stop__title { font-size: 22px; }
  .pair__title { font-size: 26px; }
  .site-head .btn--small { display: none; }
  .seats__body { padding-top: var(--s6); padding-bottom: var(--s7); }
  .access__actions .btn { flex: 1 1 100%; }
  .info > div { grid-template-columns: 5.5em 1fr; }

  .dock {
    position: fixed; inset: auto 0 0 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--night-2); border-top: 1px solid var(--rule-night);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .dock.is-shown { transform: none; }
  .dock__hours { font-weight: 700; font-feature-settings: "tnum"; color: var(--mist); font-size: 15px; }
  .dock .btn { flex: 1; max-width: 240px; }
  @media (prefers-reduced-motion: reduce) { .dock { transition: none; } }
}
