/*
 * 縁（よる）見本サイトの見た目
 *
 * 形の決まり。
 * - 見出し帯・節の見出しの金の縦線・本文の幅・現れる演出・先頭へ戻るボタン
 * - 金は「線・アイコン・下線」にだけ使う。面で使うと安っぽくなる
 * - 押せるもの（ボタン・リンク）は緑
 * - 配色はお店に合わせて黒地。文字は大きめ・コントラストは高め
 */

:root {
  /* 色 */
  --c-bg: #111111;
  --c-surface: #181818;
  --c-surface-2: #202020;
  --c-border: #2c2c2c;
  --c-border-strong: #4a4a4a;
  --c-text: #f2f2f0;
  --c-text-muted: #b3b1aa;
  --c-accent: #2f7d57;        /* 緑（ボタン） */
  --c-accent-strong: #286b4a; /* 緑のホバー */
  --c-link: #8fd0ad;          /* 緑（リンクの文字。黒地で読める明るさ） */
  --c-accent-2: #b08b3f;      /* 金（線・アイコン・下線のみ） */
  --c-hero: #1b1c1e;          /* 見出し帯 */
  --c-danger: #f07a72;

  /* 席の状態の色 */
  --st-free: #23a55a;
  --st-busy: #f23f43;
  --st-resv: #f0b232;
  --st-paid: #4a7dff;

  /* 分析の2色。金＝2回目以降（主役）、灰＝はじめて。
     暗い背景で見分けられることを確認済み */
  --an-repeat: #b8893a;
  --an-first: #6e6e6e;

  /* 文字 */
  --font-base:
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo,
    system-ui, sans-serif;
  --fs-body: 1.0625rem; /* 17px */
  --fs-small: 0.9375rem;
  --fs-h1: 1.75rem;
  --fs-h2: 1.375rem;
  --fs-h3: 1.125rem;
  --lh-body: 1.8;
  --lh-heading: 1.5;

  /* 並べ方 */
  --measure: 34em; /* 1行あたり 32〜38 文字 */
  --w-page: 68rem;
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --radius: 10px;
  --tap-min: 44px;

  /* 動きの速さ。短く、止まり際をゆるめる */
  --dur: 160ms;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

@media (min-width: 48rem) {
  :root {
    --fs-body: 1.125rem; /* 18px */
    --fs-h1: 2.25rem;
    --fs-h2: 1.625rem;
    --fs-h3: 1.25rem;
  }
}

/* ------------------------------------------------------------------ */
/* 基本                                                                 */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-2);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: 0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p, ul, ol, dl { margin: 0 0 var(--sp-3); }

[hidden] { display: none !important; }

/* リンクは色だけでなく下線でも区別する */
a {
  color: var(--c-link);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition:
    color var(--dur) var(--ease),
    text-decoration-thickness var(--dur) var(--ease),
    text-underline-offset var(--dur) var(--ease);
}
a:hover { color: #b5e2c9; }
@media (hover: hover) {
  a:hover { text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
}

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

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-2);
  top: -6rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border: 2px solid var(--c-accent);
  border-radius: var(--radius);
  background: var(--c-bg);
  transition: top 0.15s;
}
.skip-link:focus { top: var(--sp-2); }

/* ------------------------------------------------------------------ */
/* 並べ方                                                               */
/* ------------------------------------------------------------------ */

.page {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}
.prose { max-width: var(--measure); }

.section { padding-block: var(--sp-5); }
@media (min-width: 48rem) {
  .section { padding-block: var(--sp-6); }
}
.section--surface {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}

/* 節の見出しに金の縦線を添える */
.h-accent {
  position: relative;
  padding-left: 0.9rem;
}
.h-accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 2px;
  background: var(--c-accent-2);
}

.hint { font-size: var(--fs-small); color: var(--c-text-muted); }

/* ------------------------------------------------------------------ */
/* ボタン                                                               */
/* ------------------------------------------------------------------ */
/* ふだんは線だけ。いちばん押してほしいものだけ緑で塗る（.btn--primary） */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--c-border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--c-text);
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.btn:hover { border-color: var(--c-text-muted); background: var(--c-surface-2); color: var(--c-text); }

.btn--primary { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.btn--primary:hover { border-color: var(--c-accent-strong); background: var(--c-accent-strong); color: #fff; }

.btn--danger { border-color: rgba(240, 122, 114, 0.55); color: var(--c-danger); }
.btn--danger:hover { border-color: var(--c-danger); background: rgba(240, 122, 114, 0.08); color: var(--c-danger); }

.btn--ghost { border-color: var(--c-border); color: var(--c-text-muted); }

.btn .icon { --icon: 1em; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* わずかに浮かせる。影は緑を薄く敷いて、面ではなく光に見せる */
  .btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); }
  .btn--primary:not(:disabled):hover { box-shadow: 0 6px 16px rgba(47, 125, 87, 0.4); }
}
/* 押した瞬間は元の位置に戻す。ボタンが沈む感触になる */
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-1);
  margin-top: var(--sp-3);
}
.btn-row .btn { width: 100%; }

.stack { display: grid; gap: var(--sp-1); }
.stack .btn { width: 100%; }

/* 2行のボタン（上が操作、下が説明） */
.btn--two { flex-direction: column; gap: 0; }
.btn--two small { font-weight: 500; font-size: 0.85rem; opacity: 0.85; }

/* ------------------------------------------------------------------ */
/* 上の帯（固定しない）                                                 */
/* ------------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}
/*
 * スマホ: 1段目にロゴを真ん中、2段目にメニューを横幅いっぱいに等分して並べる（左右対称）
 * 広い画面: ロゴを左端、メニューを右端に置き、帯の端から端までを使う
 */
.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: var(--sp-1);
}
.site-header__name {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--tap-min);
  color: var(--c-text);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-header__name small {
  margin-left: 0.4em;
  color: var(--c-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
}
/* 丸いロゴに金の細いリング */
.site-header__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--c-accent-2);
  transition: transform var(--dur) var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .site-header__name:hover .site-header__mark { transform: scale(1.06); }
}
.site-header__name:hover { color: var(--c-text); }

.site-header__inner > nav { align-self: stretch; }
.site-header__nav {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  margin: var(--sp-1) 0 0;
  padding: 0;
  border-top: 1px solid var(--c-border);
  list-style: none;
  font-size: var(--fs-small);
}
.site-header__nav li { display: flex; justify-content: center; }
.site-header__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--c-text-muted);
  text-decoration: none;
  white-space: nowrap;
}
/* 下線は「点く」のではなく「左から引かれる」。金は線にだけ使う */
.site-header__nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.6rem;
  left: 0;
  height: 1px;
  background: var(--c-accent-2);
  transform: scaleX(0);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .site-header__nav a::after { transition: transform var(--dur) var(--ease); }
}
@media (hover: hover) {
  .site-header__nav a:hover { color: var(--c-text); }
  .site-header__nav a:hover::after { transform: scaleX(1); }
}
.site-header__nav .icon { --icon: 0.9em; margin-left: 0.3em; }

@media (min-width: 48rem) {
  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--sp-1);
  }
  .site-header__inner > nav { align-self: auto; }
  .site-header__nav {
    display: flex;
    gap: 0 var(--sp-4);
    margin: 0;
    border-top: 0;
  }
}

/* ------------------------------------------------------------------ */
/* 見出し帯                                                             */
/* ------------------------------------------------------------------ */

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--c-accent-2);
  background-color: var(--c-hero);
  /* ロゴの後ろにだけ、ごく淡い緑の明かり */
  background-image: radial-gradient(55% 80% at 12% 35%, rgba(47, 125, 87, 0.16), transparent 70%);
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-block: var(--sp-5);
}
.hero__logo {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--c-accent-2);
}
.hero__text { position: relative; }
.hero__text > * { position: relative; z-index: 1; }

/* 見出しの後ろに敷く薄い英字。読ませるためではなく奥行きのため（読み上げない） */
.hero__text > .hero__label {
  position: absolute;
  left: -0.06em;
  top: -0.42em;
  z-index: 0;
  font-size: clamp(3.4rem, 15vw, 6.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero__title {
  margin: 0 0 var(--sp-2);
  font-size: 2.5rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.hero__title small {
  margin-left: 0.6em;
  color: var(--c-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3em;
}
/* 見出しの下の金の細線 */
.hero__title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin-top: var(--sp-2);
  background: var(--c-accent-2);
  transform-origin: left;
}
.hero__lead { margin: 0; }
.hero__meta { margin: var(--sp-1) 0 0; color: var(--c-text-muted); font-size: var(--fs-small); }

.hero__status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: var(--sp-2) 0 0;
  font-weight: 700;
}
.open-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6b6b6b;
}
.hero__status.is-open .open-dot {
  background: var(--st-free);
  box-shadow: 0 0 0 3px rgba(35, 165, 90, 0.22);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin: var(--sp-3) 0 0;
}
.hero__note { margin: var(--sp-2) 0 0; color: var(--c-text-muted); font-size: var(--fs-small); }

@media (min-width: 48rem) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-5);
    padding-block: var(--sp-6);
  }
  .hero__logo { width: 150px; height: 150px; }
  .hero__title { font-size: 3rem; }
}

/* 背景の絵。差し替えるときは --hero-scene の1行だけ変える（AI で作った画像なら url("hero-scene.jpg") など）。
 * 絵は ::before、文字を読みやすくする黒い膜は ::after に置き、中身はその上に重ねる。
 * スマホは文字が全面にかかるので、絵を全面に敷いて膜を均一にする。
 * 広い画面は、文字のない右7割に絵を寄せ、左ほど膜を濃くする（人物が文字の後ろに隠れないように） */
.hero { position: relative; --hero-scene: url("hero-scene.svg"); }
.hero--scene::before,
.hero--scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero--scene::before { background: var(--hero-scene) center / cover no-repeat; }
.hero--scene::after { background: rgba(17, 17, 17, 0.78); }
.hero--scene > .hero__inner { z-index: 1; }
.hero--scene .hero__text { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
/* 絵の中にも YORU の看板があるので、見出しの後ろの薄い英字は絵のときだけ消す（二重に見えないように） */
.hero--scene .hero__text > .hero__label { visibility: hidden; }
@media (min-width: 48rem) {
  .hero--scene::before {
    left: 30%;
    background-position: center 45%;
    /* 絵の左はしを、ぼかして地の色になじませる */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%);
    mask-image: linear-gradient(90deg, transparent, #000 18%);
  }
  .hero--scene::after {
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.8) 36%, rgba(17, 17, 17, 0.28) 100%);
  }
}
/* 無地に切り替えたときは、絵と膜を消して前の背景（ロゴの後ろの淡い緑の明かり）に戻す */
.hero-plain .hero--scene::before,
.hero-plain .hero--scene::after { display: none; }
.hero-plain .hero--scene .hero__text { text-shadow: none; }
.hero-plain .hero__note { display: none; }
.hero-plain .hero--scene .hero__text > .hero__label { visibility: visible; }

/* 右上の切り替えボタン */
.hero-bg-btn {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-3);
  z-index: 2;
  min-height: var(--tap-min);
  padding: 0.3rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.6);
  color: var(--c-text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .hero-bg-btn:hover { border-color: var(--c-accent-2); }
}

/* 読み込み時の登場。上から順に、少しずつ遅らせて出す */
@media (prefers-reduced-motion: no-preference) {
  .hero__logo,
  .hero__text > * { animation: hero-in 620ms var(--ease) both; }
  .hero__logo { animation: logo-in 760ms var(--ease) both; }
  .hero__title { animation-delay: 120ms; }
  .hero__title::after { animation: line-in 560ms var(--ease) 320ms both; }
  .hero__lead { animation-delay: 200ms; }
  .hero__meta { animation-delay: 240ms; }
  .hero__status { animation-delay: 280ms; }
  .hero__actions { animation-delay: 320ms; }
  .hero__note { animation-delay: 360ms; }
  .hero__text > .hero__label { animation: label-in 1200ms var(--ease) both; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes logo-in { from { opacity: 0; transform: scale(0.9); } }
/* 金の線は左から引かれる */
@keyframes line-in { from { transform: scaleX(0); } }
@keyframes label-in { from { opacity: 0; transform: translateX(-18px); } }

/* ------------------------------------------------------------------ */
/* スクロールに合わせて現れる演出                                       */
/* ------------------------------------------------------------------ */

.has-reveal [data-reveal-self] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
.has-reveal [data-reveal-self].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* 先頭へ戻るボタン                                                     */
/* ------------------------------------------------------------------ */

.to-top {
  position: fixed;
  right: var(--sp-3);
  bottom: var(--sp-3);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 1.5px var(--c-accent-2), 0 6px 18px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.to-top.is-in { opacity: 1; transform: none; }
/* 線だけで描いた山形 */
.to-top__mark {
  width: 0.62em;
  height: 0.62em;
  margin-top: 0.2em;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .to-top:hover { box-shadow: 0 0 0 1.5px var(--c-link), 0 10px 22px rgba(0, 0, 0, 0.5); }
  .to-top:hover .to-top__mark { transform: rotate(45deg) translate(2px, 2px); }
}

/* ------------------------------------------------------------------ */
/* 下の帯                                                               */
/* ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--c-accent-2);
  background: var(--c-surface);
  padding-block: var(--sp-4);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  text-align: center; /* 上の帯と同じく左右対称にする */
  /* 右下の「先頭へ戻る」ボタンが、いちばん下の文字に重ならないだけ空ける */
  padding-bottom: calc(var(--sp-4) + var(--tap-min) + var(--sp-2));
}
.site-footer p { margin: 0; }
.site-footer .site-footer__links { margin-bottom: var(--sp-1); }

/* 電話番号とプライバシーポリシーの文字のリンクは、指で押しやすいよう、押せる範囲だけを上下に広げる（見た目は変えない） */
.info a[href^="tel:"],
.site-footer__links a {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
}

/* SNS のリンク。下線は文字にだけ付ける（アイコンまで線が伸びないように） */
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-1) var(--sp-3);
  margin: 0 0 var(--sp-2);
  padding: 0;
  list-style: none;
}
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--tap-min);
  color: var(--c-text);
  text-decoration: none;
}
.site-footer__social a > span:last-child {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.site-footer__social .icon { --icon: 22px; color: var(--c-accent-2); }
.site-footer__social a:hover { color: var(--c-link); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .site-footer__social a .icon { transition: transform var(--dur) var(--ease); }
  .site-footer__social a:hover .icon { transform: translateY(-2px); }
}

/* ---------- Openly（オープンリー）の表示 ----------
 * 下の帯のロゴ（押すと説明のページが開く）と、説明のページ（openly.html）
 */
/* 一番上の細い帯（お店の名前の上）。ロゴだけを置く */
.openly-strip {
  margin: 0;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
  text-align: center;
}
.openly-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 12px;
  color: var(--c-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.openly-strip img { display: block; height: 20px; width: auto; }
.openly-strip a:hover { color: var(--c-link); }

.site-footer__brand { margin: 0 0 var(--sp-2); }
.openly-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: var(--tap-min);
  padding: 6px 12px;
  color: var(--c-text-muted);
  text-decoration: none;
}
/* ロゴの下に、文字で「Openlyのお店」と添える（ロゴに「のお店」をつなげる形にはしない） */
.openly-badge img { display: block; height: 30px; width: auto; }
.openly-badge span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.openly-badge:hover { color: var(--c-link); }

.openly-page { max-width: 44rem; }
.openly-page__back { margin: 0 0 var(--sp-4); font-size: var(--fs-small); }
.openly-page__brand { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.openly-page__brand img { display: block; height: 56px; width: auto; }
.openly-page__brand small { font-size: 0.75rem; font-weight: 400; letter-spacing: 0.32em; color: var(--c-text-muted); }
.openly-page__lead { margin: var(--sp-3) 0 0; font-weight: 700; font-size: 1.15rem; }
.openly-page h2 { margin-top: var(--sp-5); }
.openly-page__list { list-style: none; margin: var(--sp-2) 0; padding: 0; display: grid; gap: var(--sp-1); }
.openly-page__list li {
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  font-weight: 700;
}

/* ---------- 線のアイコン ----------
 * 絵文字は使わない（端末ごとに絵が変わり、安っぽく見えるため）。
 * 形は細い線でそろえ、色は文字色（currentColor）に合わせる。
 */
.icon {
  --icon: 1.3em;
  display: inline-block;
  flex: none;
  width: var(--icon);
  height: var(--icon);
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
  vertical-align: middle;
}
.icon--mic { --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%3Crect x='9' y='2.5' width='6' height='11.5' rx='3'/%3E%3Cpath d='M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5V21.5M8.5 21.5h7'/%3E%3C/svg%3E"); }
.icon--tv { --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%3Crect x='2.5' y='6.5' width='19' height='13' rx='2'/%3E%3Cpath d='M8 2.5l4 4 4-4M10.2 10.2v6l5-3z'/%3E%3C/svg%3E"); }
.icon--pot { --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='M4.5 10.5h15v5.5a4 4 0 0 1-4 4h-7a4 4 0 0 1-4-4z'/%3E%3Cpath d='M2.5 10.5h19M9.5 7.5c-.6-.9.6-1.6 0-2.5M14.5 7.5c-.6-.9.6-1.6 0-2.5'/%3E%3C/svg%3E"); }
.icon--note { --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='M9 18V5.5l11-2V16'/%3E%3Ccircle cx='6.5' cy='18' r='2.5'/%3E%3Ccircle cx='17.5' cy='16' r='2.5'/%3E%3C/svg%3E"); }
.icon--glass { --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='M4 4h16l-8 9z'/%3E%3Cpath d='M12 13v7.5M8 20.5h8M6.5 7h11'/%3E%3C/svg%3E"); }
.icon--flag { --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='M7 20.5V3l10 4.2-10 4.3'/%3E%3Cpath d='M3.5 20.5h12'/%3E%3C/svg%3E"); }
.icon--phone { --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='M5 3.5h3.3l1.7 4.3-2.2 1.4a11.5 11.5 0 0 0 5 5l1.4-2.2 4.3 1.7V17a2 2 0 0 1-2 2C10 19 5 14 3 7.5V5.5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.icon--check { --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='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.icon--external { --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='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E"); }
.icon--instagram { --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%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.4' cy='6.6' r='1.1' fill='black' stroke='none'/%3E%3C/svg%3E"); }

/* ---------- 状態の丸 ----------
 * 形は全て丸。色と、中の小さな印で見分ける（色が見分けにくい方のため）
 *   空席＝緑（印なし）／空いてない＝赤（横棒）／予約済み＝黄（時計）／会計済み＝青（チェック）
 */
.dot {
  --dot: 14px;
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--dot-c);
  vertical-align: middle;
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dot-mark, #fff);
  -webkit-mask: var(--glyph) center / 100% 100% no-repeat;
  mask: var(--glyph) center / 100% 100% no-repeat;
}
.dot--free { --dot-c: var(--st-free); }
.dot--free::after { content: none; }
.dot--busy {
  --dot-c: var(--st-busy);
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='5' y='8.5' width='10' height='3' rx='1.5'/%3E%3C/svg%3E");
}
.dot--reserved {
  --dot-c: var(--st-resv);
  --dot-mark: #3a2b00;
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5.5V10l3 2' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.dot--paid {
  --dot-c: var(--st-paid);
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.8 10.4l2.8 2.8 5.6-5.8' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.dot--lg { --dot: 24px; }
/* 下地の色でふちを取って枠に重ねる（Discord のアイコンに付く丸と同じ見せ方） */
.dot--ring { box-shadow: 0 0 0 3px var(--ring, var(--c-surface)); }


/* ------------------------------------------------------------------ */
/* 今の席の空き                                                       */
/* ------------------------------------------------------------------ */

.seats { max-width: 40rem; }

.live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-2);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st-free);
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulse 2s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: 0.35; } }

/* 空きの数。枠で囲まず、細い縦線で区切って並べる */
.summary {
  display: flex;
  margin-bottom: var(--sp-3);
  line-height: 1.4;
}
.summary > div { flex: 1; }
.summary > div + div {
  padding-left: var(--sp-3);
  border-left: 1px solid var(--c-border-strong);
}
.summary span { display: block; color: var(--c-text-muted); font-size: var(--fs-small); }
.summary b { display: block; margin: 0.15rem 0; font-size: 1.5rem; }
.summary small { color: var(--c-text-muted); font-size: 0.85rem; }

/* 席の図 */
.map {
  --ring: var(--c-bg);
  padding: var(--sp-3) var(--sp-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg);
}
/* カウンターの天板を、金の線1本で表す */
.map-bar {
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--c-accent-2);
  color: var(--c-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-align: center;
}
.map-row {
  display: grid;
  /* カウンターの席の数（設定の数）に合わせて、横に等分する */
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 12px;
  padding-bottom: 10px; /* カウンターの丸が下にはみ出す分 */
}
.map-gap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: var(--sp-3) 0 var(--sp-2);
  color: var(--c-text-muted);
  font-size: 0.8rem;
}
.map-gap::before,
.map-gap::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--c-border);
}
.map-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

/* 席ひとつ */
.seat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 8px 2px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  line-height: 1.3;
  text-align: center;
}
button.seat {
  cursor: pointer;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  button.seat:not(.is-off):hover { transform: translateY(-2px); }
}

/* カウンターは椅子の形（上が丸い） */
.seat--counter {
  min-height: 60px;
  padding-bottom: 12px;
  border-radius: 999px 999px 8px 8px;
}
.seat--box { min-height: 124px; padding: 10px 4px; }

/* 枠と下地は、丸よりずっとひかえめに */
.seat.is-free     { border-color: rgba(35, 165, 90, 0.5);  background: rgba(35, 165, 90, 0.06); }
.seat.is-busy     { border-color: rgba(242, 63, 67, 0.5);  background: rgba(242, 63, 67, 0.06); }
.seat.is-reserved { border-color: rgba(240, 178, 50, 0.55); background: rgba(240, 178, 50, 0.06); }
.seat.is-paid     { border-color: rgba(74, 125, 255, 0.55); background: rgba(74, 125, 255, 0.06); }

.seat.is-off { opacity: 0.3; cursor: not-allowed; }
/* 選んだ席は、白い枠と右上のチェック */
.seat.is-picked {
  border-color: var(--c-text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px var(--c-text);
}

.seat-no { font-size: 1.15rem; font-weight: 700; }
/* カウンターの丸は、席の下の縁に重ねる */
.seat-dot {
  --dot: 18px;
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
}
.seat-name { font-size: 0.95rem; font-weight: 700; }
.seat-cap { color: var(--c-text-muted); font-size: 0.8rem; }
.seat-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.seat-who {
  max-width: 100%;
  overflow: hidden;
  color: var(--c-text-muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seat-check {
  position: absolute;
  top: -10px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-text);
  color: #111;
}
.seat-check .icon { --icon: 15px; }

/* ソファの形（L字・逆L字・通常）と机。金の線で描く */
.sofa {
  position: relative;
  width: 44px;
  height: 32px;
  margin-bottom: 4px;
  color: var(--c-accent-2);
}
.sofa::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.sofa--L { border-left: 6px solid currentColor; border-bottom: 6px solid currentColor; border-radius: 0 0 0 6px; }
.sofa--L::after { right: 4px; top: 4px; }
.sofa--Lr { border-right: 6px solid currentColor; border-bottom: 6px solid currentColor; border-radius: 0 0 6px 0; }
.sofa--Lr::after { left: 4px; top: 4px; }
.sofa--I { width: 36px; border-bottom: 6px solid currentColor; border-radius: 0 0 4px 4px; }
.sofa--I::after { left: 7px; top: 4px; }

/* 色の見方 */
.legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: var(--sp-3) 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
}
.legend li { display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.legend .dot { --dot: 16px; }
.legend small { display: block; color: var(--c-text-muted); font-size: 0.8rem; }

/* ------------------------------------------------------------------ */
/* 開け閉じできる節                                                     */
/* ------------------------------------------------------------------ */
/* 箱で囲まず、細い横線で区切った一覧にする */

.section--fold { padding-block: 0; }
.section:not(.section--fold) + .section--fold { margin-top: var(--sp-5); }
.section--fold + .section:not(.section--fold) { margin-top: var(--sp-3); }

.fold { border-bottom: 1px solid var(--c-border); }
.section:not(.section--fold) + .section--fold .fold { border-top: 1px solid var(--c-border); }

.fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 76px;
  padding-block: var(--sp-2);
  cursor: pointer;
  list-style: none;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold-title { margin: 0; transition: color var(--dur) var(--ease); }

/* 「開く」と山形。開くと「閉じる」になり、山形が上を向く */
.fold-hint {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  font-weight: 700;
}
.fold-hint::before { content: "開く"; }
.fold[open] .fold-hint::before { content: "閉じる"; }
.fold-hint::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .fold-hint::after { transition: transform var(--dur) var(--ease); }
}
.fold[open] .fold-hint::after { transform: translateY(2px) rotate(-135deg); }
@media (hover: hover) {
  .fold > summary:hover .fold-title,
  .fold > summary:hover .fold-hint { color: var(--c-link); }
}

.fold-body { padding-bottom: var(--sp-4); }

/* ------------------------------------------------------------------ */
/* 予約                                                                 */
/* ------------------------------------------------------------------ */

/* 30分の決まり。箱ではなく、左の緑の線で目を引く */
.note {
  padding: 0.1rem 0 0.1rem var(--sp-2);
  border-left: 2px solid var(--c-accent);
}

.demo-note { color: var(--c-text-muted); font-size: 0.875rem; }
.demo-note::before { content: "※"; }

/* 手順。今の手順に金の下線を引く */
.steps {
  display: flex;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
  padding: 0;
  border-bottom: 1px solid var(--c-border);
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0.25rem 0 0.6rem;
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  white-space: nowrap;
  counter-increment: step;
}
.steps li::before { content: counter(step) ". "; }
.steps li.is-current { color: var(--c-text); font-weight: 700; }
.steps li.is-current::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--c-accent-2);
}

.field { min-width: 0; margin: 0 0 var(--sp-3); padding: 0; border: 0; }
.field > label,
.field > legend {
  display: block;
  margin-bottom: 0.5rem;
  padding: 0;
  font-weight: 700;
}

.input,
.textarea {
  width: 100%;
  min-height: 54px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  background: var(--c-surface-2);
  color: var(--c-text);
  font: inherit;
  font-size: 1.125rem;
  transition: border-color var(--dur) var(--ease);
}
.textarea { min-height: 120px; line-height: 1.6; resize: vertical; }
.input:focus,
.textarea:focus { border-color: var(--c-link); }
.input::placeholder,
.textarea::placeholder { color: #7d7b75; }

.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-1);
}
.choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice {
  min-height: 52px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  background: var(--c-surface-2);
  color: var(--c-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .choice:hover { border-color: var(--c-text-muted); }
}
.choice[aria-pressed="true"] { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }

.err {
  min-height: 1.8em;
  margin: var(--sp-1) 0 0;
  color: var(--c-danger);
  font-weight: 700;
}

.pick-hint { margin-bottom: var(--sp-2); font-weight: 700; }
.picked { margin: var(--sp-2) 0 0; font-weight: 700; }

/* かくにん。細い線で区切った表 */
.confirm {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 0 0 var(--sp-2);
  border-top: 1px solid var(--c-border);
}
.confirm dt,
.confirm dd {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--c-border);
}
.confirm dt { padding-right: var(--sp-3); color: var(--c-text-muted); }
.confirm dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.done {
  padding: var(--sp-4) var(--sp-3);
  border: 1px solid var(--c-border);
  border-top: 2px solid var(--c-accent);
  border-radius: var(--radius);
  text-align: center;
}
.done-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-2);
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
}
.done-mark .icon { --icon: 30px; }
.done-title { margin-bottom: var(--sp-1); font-size: var(--fs-h2); font-weight: 700; }
.done-time { font-size: 1.15rem; }
.done .btn { margin-top: var(--sp-2); }

.closed {
  padding: var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

/* ------------------------------------------------------------------ */
/* お値段                                                               */
/* ------------------------------------------------------------------ */

.price { margin: 0; padding: 0; }
.price > div {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--c-border);
}
.price > div:last-child { border-bottom: 0; }
.price dt {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 10px;
}
/* 品名と値段をつなぐ点線 */
.price dt::after {
  content: "";
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted var(--c-border-strong);
}
.price dd { flex: none; margin: 0; font-size: 1.1rem; font-weight: 700; }

/* ------------------------------------------------------------------ */
/* ママとマスター                                                       */
/* ------------------------------------------------------------------ */

.staff { display: grid; gap: var(--sp-4); max-width: 44rem; }
@media (min-width: 40rem) {
  .staff { grid-template-columns: 1fr 1fr; }
}
.staff-role {
  margin: 0 0 var(--sp-1);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
}
.staff-likes { margin: 0; padding: 0; list-style: none; }
/* その人からの一言（好きなことの下に置く） */
.staff-note { margin: var(--sp-1) 0 0; color: var(--c-text-muted); }
.staff-likes li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
}
.staff-likes .icon { --icon: 22px; color: var(--c-accent-2); }

/* ------------------------------------------------------------------ */
/* 今日のひとこと                                                       */
/* ------------------------------------------------------------------ */

.posts { margin: 0; padding: 0; border-top: 1px solid var(--c-border); list-style: none; }
.posts > li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--c-border); }
.post-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  color: var(--c-text-muted);
  font-size: var(--fs-small);
}
.who-tag { color: var(--c-text); font-weight: 700; }
.post-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ */
/* 営業時間と場所                                                       */
/* ------------------------------------------------------------------ */

.info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem var(--sp-3);
}
.info dt { color: var(--c-text-muted); }
.info dd { margin: 0; font-weight: 700; }

/* ================================================================== */
/* お店用の画面                                                         */
/* ================================================================== */

/* 節はすべて開け閉じできる一覧にする（お客さん用の画面の開け閉じと同じ形） */
.admin-main { padding-bottom: var(--sp-5); }
.admin-main .section--fold:first-of-type { margin-top: var(--sp-3); }
.admin-main .section--fold:first-of-type .fold { border-top: 1px solid var(--c-border); }

/* 予約状況の件数（来店待ち）。閉じていても、予約が入っていることが分かるように見出しに添える */
.fold-count {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--st-resv);
  border-radius: 999px;
  color: var(--c-text);
  font-size: 0.85rem;
  font-weight: 700;
  vertical-align: 0.2em;
}

.mock-banner {
  margin: var(--sp-2) 0 0;
  color: var(--c-text-muted);
  font-size: var(--fs-small);
}
.mock-banner::before { content: "※"; }

/* 本番だけ。LINE の通知の欄。届け先を足すときの4桁の番号 */
.line-code {
  margin: var(--sp-1) 0;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
}
.line-actions { display: grid; gap: var(--sp-1); margin-top: var(--sp-2); }
.line-actions .btn { width: 100%; }

/* 本番だけ。サーバーとつながっていないとき・操作を送れなかったときの知らせ */
.conn-note {
  margin: var(--sp-2) 0 0;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-danger);
  border-radius: var(--radius);
  color: var(--c-danger);
  font-weight: 700;
}

/* 状況の確認。数を細い線で区切って並べる */
.counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--c-border);
  list-style: none;
}
@media (min-width: 40rem) {
  .counts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.counts li {
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-border);
}
.count-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text-muted);
  font-size: var(--fs-small);
}
.counts .num { display: block; font-size: 2rem; font-weight: 700; line-height: 1.3; }

/* 予約状況。左の黄色い線が「予約済み」の印 */
.res-list { margin: 0; padding: 0; list-style: none; }
.res-list > li {
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--st-resv);
  border-radius: var(--radius);
  background: var(--c-surface);
}
.res-list > li + li { margin-top: var(--sp-1); }
.res-list p { margin: 0 0 0.25rem; }
.res-name { font-size: 1.2rem; font-weight: 700; }
.res-deadline { font-weight: 700; }
.res-deadline.is-soon { color: var(--c-danger); }
.res-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}
.res-actions .btn { width: 100%; }
.tel { display: inline-flex; align-items: center; gap: 6px; }
.tel .icon { --icon: 1.05em; }

.empty {
  padding: var(--sp-2) 0;
  color: var(--c-text-muted);
  list-style: none;
}

/* はじめて／2回目以降の札。はじめての方は金の枠で気づけるようにする */
.visit-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0 0.5rem;
  border: 1px solid var(--c-border-strong);
  border-radius: 4px;
  color: var(--c-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.8;
  vertical-align: middle;
}
.visit-tag--first { border-color: var(--c-accent-2); color: var(--c-text); }

/* ひとことを書く */
.who-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
  margin: 0 0 var(--sp-2);
  padding: 0;
  border: 0;
}
.who-pick legend { margin-bottom: 0.5rem; padding: 0; font-weight: 700; }
.who-pick label { position: relative; }
.who-pick input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.who-pick span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  background: var(--c-surface-2);
  font-weight: 700;
}
.who-pick input:checked + span { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.who-pick input:focus-visible + span { outline: 3px solid var(--c-link); outline-offset: 2px; }

.posts--admin { margin-top: var(--sp-1); }
.post-actions { margin-top: var(--sp-1); }
.post-actions .btn { min-height: 40px; padding: 0.3rem 1rem; font-size: var(--fs-small); }

/* 下から出る操作パネル */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.65);
}
.sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 41;
  max-width: 560px;
  max-height: 90vh;
  margin: 0 auto;
  overflow-y: auto;
  padding: var(--sp-3) var(--sp-3) calc(var(--sp-3) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-accent-2);
  border-radius: 16px 16px 0 0;
  background: var(--c-surface);
}
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: sheet-in 0.25s var(--ease); }
}
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
.sheet h3 { margin: 0 0 0.25rem; font-size: var(--fs-h2); }
.sheet-now { margin-bottom: var(--sp-2); color: var(--c-text-muted); }
.sheet-now b { display: inline-flex; align-items: center; gap: 6px; color: var(--c-text); }
.sheet .res-card {
  margin-bottom: var(--sp-2);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--st-resv);
  border-radius: var(--radius);
}
.sheet .res-card p { margin: 0 0 0.25rem; }
.status-btn { justify-content: flex-start; gap: 14px; text-align: left; }
.status-btn small { display: block; color: var(--c-text-muted); font-size: 0.85rem; font-weight: 500; }
.status-btn.is-current { border-color: var(--c-text); background: var(--c-surface-2); }
.status-btn .now-tag {
  margin-left: auto;
  color: var(--c-text-muted);
  font-size: 0.8rem;
  font-style: normal;
}

/* ------------------------------------------------------------------ */
/* 分析                                                                 */
/* ------------------------------------------------------------------ */

/* 期間の切り替え。選んだものに金の下線 */
.range {
  display: flex;
  margin: var(--sp-2) 0 var(--sp-3);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.range-btn {
  flex: 1;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--c-text-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.range-btn + .range-btn { border-left: 1px solid var(--c-border-strong); }
.range-btn[aria-pressed="true"] {
  background: var(--c-surface-2);
  color: var(--c-text);
  box-shadow: inset 0 -2px 0 var(--c-accent-2);
}

.hero-fig { display: flex; flex-direction: column; }
.hero-fig-label { color: var(--c-text-muted); font-weight: 700; }
.hero-fig-value { font-size: 56px; font-weight: 700; line-height: 1.15; }
.hero-fig-value small { margin-left: 4px; font-size: 0.45em; }
.hero-fig-sub { color: var(--c-text-muted); font-size: var(--fs-small); }

/* 全体のうち、2回目以降がどれだけか（1本の帯） */
.split { display: flex; gap: 2px; height: 12px; margin-top: var(--sp-2); }
.split > span { min-width: 2px; }
.split-repeat { background: var(--an-repeat); }
.split-first { background: var(--an-first); }
.split > :first-child { border-radius: 4px 0 0 4px; }
.split > :last-child { border-radius: 0 4px 4px 0; }
.split > :only-child { border-radius: 4px; }

.an-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
}
.an-legend li { display: flex; align-items: center; gap: 8px; }
.an-legend--small { margin: 0; color: var(--c-text-muted); font-size: 0.85rem; }
.swatch { flex: none; width: 12px; height: 12px; border-radius: 3px; }
.swatch--repeat { background: var(--an-repeat); }
.swatch--first { background: var(--an-first); }

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: var(--sp-3) 0 var(--sp-1);
  padding: 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  list-style: none;
}
.kpis li { padding: 0.75rem 0; line-height: 1.4; }
.kpis li + li { padding-left: var(--sp-2); border-left: 1px solid var(--c-border); }
.kpis span { display: block; color: var(--c-text-muted); font-size: 0.8rem; }
.kpis b { font-size: 1.4rem; }

.chart {
  position: relative;
  margin-top: var(--sp-3);
  padding: var(--sp-2) var(--sp-2) 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
}
.chart-title { margin: 0; font-weight: 700; }
.chart-max { margin: 2px 0 8px; color: var(--c-text-muted); font-size: 0.8rem; }
.chart-plot {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 2px;
  height: 140px;
  border-bottom: 1px solid #3a3a3a;
}
/* 当たり判定は、棒より広い（その日の縦一列ぜんぶ） */
.col {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px 4px 0 0;
  background: transparent;
  cursor: pointer;
}
.col-stack { display: flex; flex-direction: column; gap: 2px; width: 100%; max-width: 24px; }
.col-stack > span { display: block; }
.col-stack > :first-child { border-radius: 4px 4px 0 0; }
.col-repeat { background: var(--an-repeat); }
.col-first { background: var(--an-first); }
.col:focus-visible { outline: 2px solid var(--c-link); outline-offset: 1px; }
@media (hover: hover) {
  .col:hover { background: rgba(255, 255, 255, 0.04); }
  .col:hover .col-stack { filter: brightness(1.25); }
}
.chart-x {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 2px;
  margin-top: 6px;
  color: var(--c-text-muted);
  font-size: 0.75rem;
}
.chart-x span { overflow: visible; text-align: center; white-space: nowrap; }

.tip {
  position: absolute;
  z-index: 5;
  padding: 8px 12px;
  border: 1px solid var(--c-border-strong);
  border-radius: 8px;
  background: #0b0b0b;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -100%);
}
.tip-head { color: var(--c-text-muted); }
.tip b { font-size: 1rem; }
.tip-foot { margin-top: 2px; color: var(--c-text-muted); }
.key { display: inline-block; width: 12px; height: 2px; margin-right: 8px; vertical-align: middle; }
.key--repeat { background: var(--an-repeat); }
.key--first { background: var(--an-first); }

.table-view { margin-top: var(--sp-2); }
.table-view summary { color: var(--c-link); font-weight: 700; cursor: pointer; }
.table-view table {
  width: 100%;
  margin-top: var(--sp-1);
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.table-view th,
.table-view td { padding: 6px 4px; border-bottom: 1px solid var(--c-border); text-align: right; }
.table-view th { color: var(--c-text-muted); font-weight: 500; }
.table-view th:first-child,
.table-view td:first-child { text-align: left; }

/* ------------------------------------------------------------------ */
/* 動きを減らす設定の方へ                                               */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-reveal [data-reveal-self] { opacity: 1; transform: none; transition: none; }
}

/* スマホで押しやすいよう、手順の中と店用の画面のボタンは横いっぱいにする */
[data-reserve] > .btn,
.done .btn,
.admin-main form .btn,
.admin-main .fold-body > .btn { width: 100%; }

/* 開け閉じの中の一覧は、外側の区切り線と二重にならないようにする */
.fold-body .posts { border-top: 0; }
.fold-body .posts > li:first-child { padding-top: 0; }
.fold-body .posts > li:last-child { border-bottom: 0; padding-bottom: 0; }

/* 満席で押せない予約ボタン。灰色にして、触っても反応しないようにする */
.btn.is-disabled,
.btn.is-disabled:hover {
  border-color: var(--c-border);
  background: var(--c-surface-2);
  color: var(--c-text-muted);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
  pointer-events: none;
}
.closed p:last-child { margin-bottom: 0; }

/* 席状況の確認。色の付いた帯のまま開け閉じできるようにする。
 * 閉じたときに帯が間延びしないよう、上下の余白は見出しの行の高さに任せる */
.section--seats { padding-block: var(--sp-1); }
.fold--seats { border-bottom: 0; }
/* すぐ下の「席を予約する」とは隙間を空けず、帯の下の線で区切って一覧に見せる */
.section.section--seats + .section--fold { margin-top: 0; }
.section.section--seats + .section--fold .fold { border-top: 0; }

/* 更新時刻と、満席テストのボタンを横に並べる（狭いときは折り返す） */
.seats-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-2);
  margin-bottom: var(--sp-2);
}
.seats-head .live { margin: 0; }
.seats-head .test-btn { margin-left: auto; } /* 折り返しても右に寄せる */

/* 見本だけのテスト用ボタン。お客さん向けのボタンと見分けがつくよう、点線の枠にする */
.test-btn {
  flex: none;
  min-height: var(--tap-min);
  padding: 0.3rem 0.9rem;
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--c-text-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
@media (hover: hover) {
  .test-btn:hover { border-color: var(--c-text-muted); color: var(--c-text); }
}
.test-btn[aria-pressed="true"] { border-color: var(--st-busy); color: var(--c-text); }

/* ------------------------------------------------------------------ */
/* お店用の画面のログイン                                               */
/* ------------------------------------------------------------------ */

.login { padding-block: var(--sp-5); }
.login-box { max-width: 26rem; margin-inline: auto; }
.login-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: var(--sp-2);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--c-accent-2);
}
.login-title { margin: 0 0 var(--sp-3); font-size: var(--fs-h2); }
.login-title small {
  display: block;
  margin-top: 0.25rem;
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  font-weight: 500;
}
/* スマホで押しやすいよう、ボタンは横いっぱい。続けて並ぶときは少し間をあける */
.login .btn { width: 100%; }
.login .btn + .btn { margin-top: var(--sp-1); }
.login-other,
.login-demo,
.login-box > .hint { margin-top: var(--sp-2); }

/* 文字だけのボタン（リンクと同じ見た目。色だけでなく下線でも分かるように） */
.link-btn {
  min-height: var(--tap-min);
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-link);
  font: inherit;
  font-size: var(--fs-small);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* お店用の画面の一番下のログアウト */
.logout { margin-top: var(--sp-4); }
.logout .btn { width: 100%; }

/* 確認のパネル（取り消す・消すの前に出す） */
.confirm-body { margin: var(--sp-1) 0 0.25rem; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.sheet-sub { margin: var(--sp-2) 0 var(--sp-1); color: var(--c-text-muted); font-size: var(--fs-small); }

/* お店への通知（「確認しました」を押すまで、画面の一番上に出しておく） */
.notices {
  margin-top: var(--sp-3);
  padding: var(--sp-2);
  border: 1px solid var(--st-resv);
  border-radius: var(--radius);
  background: var(--c-surface);
}
.notices-title { display: flex; align-items: center; margin: 0 0 var(--sp-1); font-size: var(--fs-h3); }
.notice-list { margin: 0; padding: 0; list-style: none; }
.notice { padding: var(--sp-1) 0 var(--sp-1) var(--sp-2); border-left: 3px solid var(--st-resv); }
.notice + .notice { margin-top: var(--sp-1); }
.notice--expired { border-left-color: var(--c-border-strong); }
.notice p { margin: 0; }
.notice-head { display: flex; justify-content: space-between; gap: var(--sp-1); }
.notice-head time { flex: none; color: var(--c-text-muted); font-size: var(--fs-small); }
.notice .notice-body { margin-top: 0.25rem; line-height: 1.6; }
.notice-actions { display: grid; gap: var(--sp-1); margin-top: var(--sp-2); }
.notice-actions .btn { width: 100%; }
/* 画面を閉じていても届く通知の設定 */
.push { margin-top: var(--sp-2); }
.push .btn { width: 100%; }
.push-title { margin: 0 0 var(--sp-1); font-weight: 700; }
.push-steps { margin: 0; padding-left: 1.4em; color: var(--c-text-muted); font-size: var(--fs-small); line-height: 1.7; }
.push-actions { display: grid; gap: var(--sp-1); }
.push-msg { margin: var(--sp-1) 0 0; color: var(--c-link); font-size: var(--fs-small); }

/* ご要望・備考。金の細線で、ほかの情報と分けて目に入るようにする */
.res-note {
  margin-top: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-left: 2px solid var(--c-accent-2);
  background: var(--c-surface-2);
  font-size: var(--fs-small);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.notice .res-note { margin-top: 0.4rem; }
.done-note { color: var(--c-text-muted); font-size: var(--fs-small); overflow-wrap: anywhere; }
.textarea--short { min-height: 72px; }
.res-list .res-note { margin-top: 0.4rem; }
