/*
 * テスト用のお店: お客さん用の画面（index.html）だけの見た目（2026-12-01）
 *
 * 新しいデザイン候補の1「夜の正面」（ひな形/サイト/designs/new/facade.html）を元にした。
 * - 夜の色の地に、生成りの文字。差し色はれんが色（金色は使わない）
 * - 最初の画面: 写真3枚が、ゆっくり引きながら入れ替わる（21秒で1巡）。真ん中に、字間の広い英字の店名と店名
 * - 「今のお席」と「営業時間と場所」は、生成りの明るい段にする
 * - 大きな言葉を止めたまま、下を写真が流れる段（CSS だけ。スクロールで文字や写真が「現れる」演出は使わない）
 * - 下にいつも浮かぶ3つの札（今の混み具合・電話・地図）。混み具合の言葉と色は assets/shop.js が入れる
 * - 見本にあった「開いたときの幕」「写真の奥行き」「目次のボタン」は入れない（動きを増やさないため）
 * - 書体は端末のもの（本番の守りの決まりで、このサイトのものしか読み込めないため。外の書体は使わない）
 * - 動きを減らす設定の人には、すべての動きを止める（1枚目の写真だけを出す）
 *
 * 共通の部品（style.css）の色は、ここで夜の色に置きかえる
 */

body.facade {
  color-scheme: dark;

  --night: #0f0e0d;
  --night-2: #191715;
  --ivory: #f1ebe1;
  --muted: #a59a8b;
  --brick: #a2442f;
  --ink: #1f1a16;
  --latin: "Didot", "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --g: 24px;

  /* 共通の部品の色（夜の地） */
  --c-bg: var(--night);
  --c-surface: var(--night-2);
  --c-surface-2: #24201c;
  --c-border: rgba(241, 235, 225, 0.16);
  --c-border-strong: rgba(241, 235, 225, 0.42);
  --c-text: var(--ivory);
  --c-text-muted: var(--muted);
  --c-accent: var(--ivory);
  --c-accent-strong: #ffffff;
  --c-on-accent: var(--ink);
  --c-link: #eab9a6;
  --c-link-hover: #f8dccf;
  --c-accent-2: #d98a72;
  --c-hero: var(--night);
  --c-film: 15 14 13;
  --c-shadow: rgba(0, 0, 0, 0.45);
  --c-overlay: rgba(0, 0, 0, 0.65);
  --c-hover: rgba(255, 255, 255, 0.05);
  --c-picked: rgba(255, 255, 255, 0.1);
  --font-heading: var(--mincho);
  --radius-btn: 12px;

  background: var(--night);
  color: var(--ivory);
  letter-spacing: 0.04em;
  /* 言葉のまとまりの途中で行が変わらないようにする（対応しているブラウザだけ） */
  word-break: auto-phrase;
}

/* 生成りの明るい段（今のお席・営業時間と場所） */
.facade .tonight,
.facade .access {
  color-scheme: light;
  --c-bg: var(--ivory);
  --c-surface: #f8f4ec;
  --c-surface-2: #e6ddcf;
  --c-border: rgba(31, 26, 22, 0.14);
  --c-border-strong: rgba(31, 26, 22, 0.45);
  --c-text: var(--ink);
  --c-text-muted: #6b6257;
  --c-accent: var(--ink);
  --c-accent-strong: #3a322b;
  --c-on-accent: var(--ivory);
  --c-link: #8a3b1f;
  --c-link-hover: #5f2710;
  --c-accent-2: var(--brick);
  background: var(--ivory);
  color: var(--ink);
}

/* 小さな英字の見出し */
.facade .eyebrow {
  margin: 0;
  color: var(--c-text-muted);
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---------- Openly の印（写真の左上に重ねる） ---------- */
.facade .openly-strip {
  position: absolute;
  z-index: 5;
  top: env(safe-area-inset-top);
  left: 8px;
  border: 0;
  background: transparent;
  text-align: left;
}
.facade .openly-strip a { min-height: 44px; padding: 12px; }
.facade .openly-strip img { height: 20px; }

/* ---------- 最初の画面 ---------- */
.facade .hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  max-height: 920px;
  overflow: hidden;
  border: 0;
  background: #000;
  color: var(--ivory);
}
.facade .hero__media { position: absolute; inset: 0; }
.facade .hero__slide {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  animation: facade-slide 21s linear infinite;
}
.facade .hero__slide:nth-child(1) { background-image: url("photos/hero-1.webp"); background-position: 30% 50%; animation-delay: -1.3s; }
.facade .hero__slide:nth-child(2) { background-image: url("photos/hero-2.webp"); background-position: 60% 50%; animation-delay: 5.7s; }
.facade .hero__slide:nth-child(3) { background-image: url("photos/hero-3.webp"); animation-delay: 12.7s; }
/* 1枚が7秒。入れ替わりは1.4秒かけて重ねる。出ている間、少しずつ引いていく */
@keyframes facade-slide {
  0% { opacity: 0; transform: scale(1.14); }
  6% { opacity: 1; }
  33.3% { opacity: 1; }
  40% { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.02); }
}
/* 写真は明るいので、夜の色を重ねて、白い文字を読めるようにする */
.facade .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.6) 0%, rgba(8, 7, 6, 0.3) 35%, rgba(8, 7, 6, 0.4) 65%, rgba(8, 7, 6, 0.88) 100%),
    rgba(8, 7, 6, 0.22);
}

.facade .hero__center {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 28%;
  padding: 0 var(--g);
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.facade .hero__en {
  margin: 0;
  font-family: var(--latin);
  font-weight: 400;
  font-size: clamp(30px, 10vw, 46px);
  line-height: 1;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
}
.facade .hero__title {
  display: block;
  margin: 20px 0 0;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.8em;
  text-indent: 0.8em;
}
.facade .hero__title small {
  display: block;
  margin-top: 4px;
  color: rgba(241, 235, 225, 0.8);
  font-family: var(--mincho);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
}
.facade .hero__rule {
  display: block;
  width: 1px;
  height: 40px;
  margin: 20px auto 0;
  background: rgba(241, 235, 225, 0.6);
}
.facade .hero__lead {
  max-width: 19em;
  margin: 18px auto 0;
  color: rgba(241, 235, 225, 0.92);
  font-family: var(--mincho);
  font-size: 14.5px;
  line-height: 1.95;
  letter-spacing: 0.08em;
}

/* 下へ、の印（細い線の中を、光が落ちていく） */
.facade .hero__down {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: calc(96px + env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(241, 235, 225, 0.85);
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}
.facade .hero__down i {
  position: relative;
  width: 1px;
  height: 36px;
  overflow: hidden;
  background: rgba(241, 235, 225, 0.25);
}
.facade .hero__down i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ivory);
  animation: facade-drip 2.2s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}
@keyframes facade-drip {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- 今のお席（生成りの段） ---------- */
.facade .tonight {
  position: relative;
  padding: 64px var(--g) 64px;
  text-align: center;
}
/* 段の下に、れんが色の細い線を1本おろす */
.facade .tonight::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -36px;
  width: 1px;
  height: 72px;
  background: var(--brick);
}
.facade .tonight .crowd {
  max-width: 24rem;
  margin: 22px auto 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
}
.facade .crowd .crowd__open,
.facade .crowd .crowd__closed { justify-content: center; }
.facade .crowd .crowd__open { font-size: 14px; }
.facade .crowd .crowd__closed b {
  font-family: var(--mincho);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.facade .crowd .crowd__level {
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.facade .crowd__level b {
  font-family: var(--mincho);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}
.facade .crowd__level small { margin-top: 8px; font-size: 14.5px; color: var(--c-text); }
.facade .crowd .crowd__time,
.facade .crowd .crowd__sub { margin-top: 10px; font-size: 13px; }

.facade .tonight__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 26rem;
  margin: 28px auto 0;
}
.facade .tonight__btns .btn {
  width: 100%;
  min-height: 54px;
  padding-inline: 8px;
  font-size: 14.5px;
  letter-spacing: 0.06em;
}

/* ---------- 止めた言葉の下を、写真が流れる ---------- */
/* 写真2枚と文を縦に並べ、言葉の層を、その上に節の高さいっぱいに重ねる。
 * 言葉は画面の真ん中に止まり、節の外（料金や場所）には出ない */
.facade .story {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  max-width: 1080px;
  margin: 72px auto 0;
}
.facade .story > * { grid-column: 1; }
.facade .story__pic:nth-of-type(1) { grid-row: 1; }
.facade .story__pic:nth-of-type(2) { grid-row: 2; }
.facade .story__text { grid-row: 3; }
.facade .story__fixed {
  position: relative;
  z-index: 2;
  grid-row: 1 / 4;
  padding: 50vh var(--g);
  padding: 50svh var(--g);
  pointer-events: none;
}
.facade .story__word {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-family: var(--mincho);
  font-size: clamp(24px, 7.4vw, 36px);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.2em;
  text-align: center;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.75);
}
.facade .story__word small {
  display: block;
  margin-top: 18px;
  font-family: var(--latin);
  font-size: 19px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.facade .story__pic {
  position: relative;
  height: 88vh;
  height: 88svh;
  margin: 0 0 12vh;
  overflow: hidden;
}
.facade .story__pic:nth-of-type(1) { margin-left: var(--g); }
.facade .story__pic:nth-of-type(2) { margin-right: var(--g); }
.facade .story__pic > i {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
}
.facade .story__pic:nth-of-type(1) > i { background-image: url("photos/strip-3.webp"); }
.facade .story__pic:nth-of-type(2) > i { background-image: url("photos/strip-4.webp"); }
.facade .story__pic > i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.5);
}
.facade .story__pic figcaption {
  position: absolute;
  z-index: 3;
  bottom: 16px;
  left: 16px;
  color: rgba(241, 235, 225, 0.85);
  font-family: var(--latin);
  font-size: 14px;
  font-style: italic;
}
.facade .story__pic:nth-of-type(2) figcaption { left: auto; right: 16px; }
.facade .story__text {
  position: relative;
  z-index: 3;
  margin: 0;
  padding: 0 var(--g) 48px;
  color: #ddd4c7;
  font-family: var(--mincho);
  font-size: 15.5px;
  line-height: 2.3;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ---------- 開け閉じできる節（料金・席・予約など） ---------- */
.facade .fold {
  border-color: var(--c-border);
  border-radius: 16px;
  background: rgba(241, 235, 225, 0.03);
}
.facade .fold-title { font-weight: 600; letter-spacing: 0.12em; }
.facade .price dt { font-family: var(--mincho); letter-spacing: 0.08em; }
.facade .price dd {
  font-family: var(--latin);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ---------- 営業時間と場所（生成りの段） ---------- */
.facade .access {
  margin-top: 56px;
  padding: 64px 0 48px;
}
.facade .access__title {
  margin: 0 0 24px;
  font-family: var(--latin);
  font-size: 44px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}
.facade .access__title small {
  display: block;
  margin-top: 12px;
  color: var(--c-text-muted);
  font-family: var(--mincho);
  font-size: 14px;
  font-style: normal;
  letter-spacing: 0.3em;
}
.facade .access .info {
  grid-template-columns: 5.5em 1fr;
  gap: 0;
}
.facade .access .info dt,
.facade .access .info dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}
.facade .access .info dt { font-size: 13px; }
.facade .access .info dd { font-weight: 500; }

/* ---------- 一番下 ---------- */
.facade .site-footer {
  margin-top: 0;
  border-top: 0;
  background: transparent;
  padding: 64px 0 calc(110px + env(safe-area-inset-bottom));
}
.facade .end__name {
  margin: 0 0 20px;
  color: var(--c-text);
  font-family: var(--latin);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}
.facade .end__name small {
  display: block;
  margin-top: 8px;
  color: var(--c-text-muted);
  font-family: var(--mincho);
  font-size: 12px;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
}
.facade .site-footer p + p { margin-top: 4px; }

/* ---------- 下に浮かぶ3つの札 ---------- */
.facade .pills {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 6px;
  width: min(536px, calc(100% - 24px));
  transform: translateX(-50%);
}
.facade .pills a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 54px;
  padding: 0 8px;
  border: 1px solid rgba(241, 235, 225, 0.5);
  border-radius: 12px;
  background: rgba(15, 14, 13, 0.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  color: var(--ivory);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}
.facade .pills .icon { --icon: 17px; }
.facade .pills .pills__st {
  border-color: transparent;
  background: rgba(241, 235, 225, 0.95);
  color: var(--ink);
  font-family: var(--mincho);
  font-size: 15px;
}
/* 今の混み具合の丸。色は <html> の data-state（shop.js が付ける）。言葉でも分かるようにしてある */
html { --st: #8d877c; }
html[data-state="free"] { --st: var(--st-free); }
html[data-state="few"] { --st: var(--st-resv); }
html[data-state="full"] { --st: var(--st-busy); }
.facade .pills__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--st);
  box-shadow: 0 0 0 3px rgba(31, 26, 22, 0.08);
}
@media (hover: hover) {
  .facade .pills a { transition: background-color var(--dur) var(--ease); }
  .facade .pills a:hover { background: rgba(15, 14, 13, 0.8); color: var(--ivory); }
  .facade .pills .pills__st:hover { background: #ffffff; color: var(--ink); }
}

/* 地図の線の絵（下の札で使う。共通の部品にはないため、ここで足す） */
.icon--pin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E"); }

/* ---------- パソコン ---------- */
@media (min-width: 960px) {
  .facade .hero__center { top: 32%; }
  .facade .hero__en { font-size: 56px; }
  .facade .story__pic:nth-of-type(1) { margin-right: 22%; }
  .facade .story__pic:nth-of-type(2) { margin-left: 22%; }
}

/* ---------- 動きを減らす設定の人 ---------- */
@media (prefers-reduced-motion: reduce) {
  .facade .hero__slide { animation: none; }
  .facade .hero__slide:nth-child(1) { opacity: 1; }
  .facade .hero__down i::after { animation: none; transform: none; opacity: 0.5; }
}

/* ---------- Openly＋ から出す欄（イベント・お店の人・メニュー。2026-12-01） ---------- */
.facade .lineup { padding: 56px 0 8px; }
.facade .lineup__title {
  margin: 0 0 24px;
  font-family: var(--latin);
  font-size: 40px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}
.facade .lineup__title small {
  display: block;
  margin-top: 10px;
  color: var(--c-text-muted);
  font-family: var(--mincho);
  font-size: 14px;
  font-style: normal;
  letter-spacing: 0.3em;
}
.facade .events,
.facade .people { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

/* イベント */
.facade .event { display: grid; overflow: hidden; border: 1px solid var(--c-border); border-radius: 16px; background: rgba(241, 235, 225, 0.03); }
.facade .event__photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.facade .event__body { padding: 16px 18px 18px; }
.facade .event__when { margin: 0; color: var(--c-accent-2); font-size: 13.5px; font-weight: 700; letter-spacing: 0.06em; }
.facade .event__title { margin: 6px 0 0; font-size: 19px; letter-spacing: 0.1em; }
.facade .event__text { margin: 8px 0 0; color: var(--c-text-muted); font-size: 14.5px; white-space: pre-wrap; }

/* お店の人 */
.facade .person { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--c-border); border-radius: 16px; }
.facade .person.is-on { border-color: rgba(241, 235, 225, 0.42); background: rgba(241, 235, 225, 0.04); }
.facade .person__photo { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; background: var(--night-2); }
.facade .person__photo--none { display: grid; place-items: center; border: 1px solid var(--c-border); font-family: var(--mincho); font-size: 30px; color: var(--ivory); }
.facade .person__today {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brick);
  color: var(--ivory);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.facade .person__name { margin: 0; font-size: 19px; letter-spacing: 0.12em; }
.facade .person__name small { margin-left: 10px; color: var(--c-text-muted); font-family: var(--font-base); font-size: 13px; letter-spacing: 0.04em; }
.facade .person__note { margin: 6px 0 0; font-size: 14.5px; }
.facade .person__likes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.facade .person__likes li { padding: 2px 10px; border: 1px solid var(--c-border); border-radius: 999px; color: var(--c-text-muted); font-size: 12.5px; }

/* メニュー（料金システムの下） */
.facade .menu__group { margin: 28px 0 4px; font-size: 16px; letter-spacing: 0.16em; }
.facade .price dt small { display: block; width: 100%; color: var(--c-text-muted); font-family: var(--font-base); font-size: 12.5px; letter-spacing: 0.02em; }
.facade .price dt { flex-wrap: wrap; }
.facade .price .is-sold dd { color: var(--c-text-muted); text-decoration: line-through; }
.facade .soldout { padding: 1px 8px; border-radius: 999px; background: rgba(241, 235, 225, 0.12); color: var(--ivory); font-family: var(--font-base); font-size: 11.5px; letter-spacing: 0.04em; }

@media (min-width: 960px) {
  .facade .events { grid-template-columns: repeat(2, 1fr); }
  .facade .people { grid-template-columns: repeat(2, 1fr); }
}
