/* =========================================================
   SITE 115 — CONCAFE MENU & GOODS / components.css
   header / nav / drawer / footer / cta-bar / button / card / table /
   modal / lightbox / bottom-sheet / tabs / accordion / form / badge
   ========================================================= */

/* ---------- レイアウト基礎 ---------- */
.container { width: 100%; max-width: var(--w-container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: var(--w-narrow); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--c-charcoal); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 8px; }

.section { padding: var(--sp-8) 0; }
.section--alt { background: var(--c-bg-alt); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.section__eyebrow { display: block; font-family: var(--f-display); font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: 0.14em; color: var(--c-coral-strong); text-transform: uppercase; margin-bottom: var(--sp-2); }
/* GOODSセクションはブルーの見出しでMENU（コーラル）と役割を視覚的に分ける */
.section__eyebrow--blue { color: var(--c-blue-strong); }
.section__title { font-size: var(--fs-h2); margin-bottom: var(--sp-2); }
.section__lead { color: var(--c-ink-muted); max-width: 60ch; }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.note { font-size: var(--fs-note); color: var(--c-ink-muted); }
.notes li { position: relative; padding-left: 1.1em; color: var(--c-ink-muted); }
.notes li::before { content: "―"; position: absolute; left: 0; color: var(--c-coral-strong); }
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- ヘッダー ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: rgba(255, 249, 241, 0.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--c-line); height: var(--h-header); display: flex; align-items: center; }
.hdr__inner { width: 100%; max-width: var(--w-container); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: var(--sp-5); }
.hdr__brand { display: flex; flex-direction: column; line-height: 1.2; flex: none; }
.hdr__brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.03em; }
.hdr__brand-sub { font-size: var(--fs-note); color: var(--c-ink-muted); }
.hdr__nav { flex: 1; min-width: 0; overflow: hidden; }
.hdr__nav ul { display: flex; gap: var(--sp-5); }
.hdr__nav a { white-space: nowrap; font-size: var(--fs-label); font-weight: 500; padding: 8px 2px; border-bottom: 2px solid transparent; }
.hdr__nav a:hover, .hdr__nav a[aria-current] { border-color: var(--c-coral-strong); color: var(--c-coral-strong); }
.hdr__actions { flex: none; display: flex; align-items: center; gap: var(--sp-4); }
.hdr__tel { display: flex; flex-direction: column; text-align: right; line-height: 1.25; }
.hdr__tel-label { font-size: 0.75rem; color: var(--c-ink-muted); }
.hdr__tel-num { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.hdr__toggle { display: none; align-items: center; gap: 6px; min-height: var(--tap); padding: 6px 10px; }
.hdr__toggle-bars { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.hdr__toggle-bars span, .hdr__toggle-bars::before, .hdr__toggle-bars::after { content: ""; display: block; height: 2px; background: var(--c-ink); border-radius: 2px; }
.hdr__toggle-label { font-size: var(--fs-note); }

/* ---------- パンくず ---------- */
.crumbs { padding: var(--sp-3) 0; }
.crumbs ol { max-width: var(--w-container); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-note); color: var(--c-ink-muted); }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.crumbs a { text-decoration: underline; text-underline-offset: 2px; }
.crumbs [aria-current="page"] { color: var(--c-ink); font-weight: 600; }

/* ---------- ドロワー ---------- */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(48, 52, 58, 0.5); border: 0; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--c-surface); box-shadow: var(--sh-2); padding: var(--sp-5); overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-5); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__title { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; }
.drawer__close { min-width: var(--tap); min-height: var(--tap); font-size: 1.25rem; }
.drawer__nav ul { display: flex; flex-direction: column; gap: var(--sp-1); }
.drawer__nav a { display: block; padding: 10px 4px; min-height: var(--tap); display: flex; align-items: center; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.drawer__nav a[aria-current] { color: var(--c-coral-strong); font-weight: 700; }
.drawer__info { display: flex; flex-direction: column; gap: var(--sp-3); border-top: 1px solid var(--c-line); padding-top: var(--sp-4); }
.drawer__info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: var(--fs-note); }
.drawer__info dt { color: var(--c-ink-muted); }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 20px; border-radius: var(--r); font-weight: 700; font-size: var(--fs-label); white-space: nowrap; border: 1px solid transparent; }
.btn--primary { background: var(--c-coral-strong); color: #fff; }
.btn--primary:hover { background: var(--c-accent-hover); }
/* 二次ボタンはブルーを使い、コーラル（主要CTA・料金）と役割を分ける */
.btn--outline { background: transparent; border-color: var(--c-blue-strong); color: var(--c-blue-strong); }
.btn--outline:hover { background: var(--c-blue-tint); }
.btn--ghost { background: var(--c-surface); border-color: var(--c-line-strong); color: var(--c-ink); }
.btn--ghost:hover { border-color: var(--c-coral-strong); color: var(--c-coral-strong); }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: var(--fs-note); }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ---------- バッジ・チップ ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: var(--fs-note); font-weight: 700; }
.badge--open { background: var(--c-ok-bg); color: var(--c-ok-ink); border: 1px solid var(--c-ok-line); }
.badge--closed { background: var(--c-warn-bg); color: var(--c-warn-ink); border: 1px solid var(--c-warn-line); }

.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-note); font-weight: 600; }
.chip--ok { background: var(--c-ok-bg); color: var(--c-ok-ink); }
.chip--warn { background: var(--c-warn-bg); color: var(--c-warn-ink); }
.chip--quiet { background: var(--c-blue-tint); color: var(--c-blue-strong); }
.chip--accent { background: var(--c-coral-strong); color: #fff; }

.stock-badge { position: absolute; top: 8px; left: 8px; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-note); font-weight: 700; }
.stock-badge.is-instock { background: var(--c-ok-bg); color: var(--c-ok-ink); border: 1px solid var(--c-ok-line); }
.stock-badge.is-low { background: var(--c-warn-bg); color: var(--c-warn-ink); border: 1px solid var(--c-warn-line); }
.stock-badge.is-soldout { background: var(--c-soldout-bg); color: var(--c-soldout-ink); border: 1px solid var(--c-line-strong); }

/* ---------- 画像プレースホルダー枠（比率固定） ---------- */
.ph { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--c-bg-alt); width: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--3x4 { aspect-ratio: 3 / 4; }
.ph--1x1 { aspect-ratio: 1 / 1; }
.ph--16x9 { aspect-ratio: 16 / 9; }

/* ---------- カード共通 ---------- */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: var(--sh-1); }

/* ---------- テーブル ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--c-line); text-align: left; font-size: var(--fs-body); }
.table thead th { font-size: var(--fs-note); color: var(--c-ink-muted); font-weight: 700; }
.table--compact td { padding: 8px 10px; }

/* ---------- 定義リスト ---------- */
.deflist { display: grid; grid-template-columns: 9em 1fr; gap: 10px 16px; }
.deflist dt { color: var(--c-ink-muted); font-weight: 600; }

/* ---------- タブ ---------- */
.tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.tab { min-height: var(--tap); padding: 8px 18px; border-radius: 999px; border: 1px solid var(--c-line-strong); background: var(--c-surface); font-weight: 600; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--c-coral-strong); border-color: var(--c-coral-strong); color: #fff; }
.tab.is-closed { opacity: 0.55; }
.tab__date { font-weight: 700; }
.tab__dow { font-size: var(--fs-note); margin-left: 2px; }

/* ---------- アコーディオン ---------- */
.acc__item { border-bottom: 1px solid var(--c-line); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) 4px; min-height: var(--tap); text-align: left; font-weight: 700; font-size: var(--fs-body-lg); }
.acc__mark::before { content: "+"; font-size: 1.3rem; }
.acc__btn[aria-expanded="true"] .acc__mark::before { content: "−"; }
.acc__panel { padding: 0 4px var(--sp-4); color: var(--c-ink-muted); }

/* ---------- モーダル ---------- */
.modal { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; padding: var(--sp-4); }
.modal__scrim { position: absolute; inset: 0; background: rgba(48, 52, 58, 0.55); border: 0; }
.modal__panel { position: relative; z-index: 1; background: var(--c-surface); border-radius: var(--r); max-width: 480px; width: 100%; padding: var(--sp-6); box-shadow: var(--sh-2); max-height: 85vh; overflow-y: auto; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.modal__title { font-size: var(--fs-h3); }
.modal__close { min-width: var(--tap); min-height: var(--tap); font-size: 1.2rem; }
.stack { display: flex; flex-direction: column; gap: var(--sp-3); }

/* ---------- ライトボックス ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: var(--sp-5); }
.lightbox__overlay { position: absolute; inset: 0; background: rgba(20, 20, 20, 0.86); border: 0; }
.lightbox__panel { position: relative; z-index: 1; width: min(920px, 100%); color: #fff; }
.lightbox__stage { max-height: 72vh; display: flex; justify-content: center; margin-bottom: var(--sp-3); }
.lightbox__stage img { max-height: 72vh; width: auto; max-width: 100%; border-radius: var(--r); }
.lightbox__caption { text-align: center; margin-bottom: var(--sp-2); }
.lightbox__count { text-align: center; font-size: var(--fs-note); opacity: 0.8; margin-bottom: var(--sp-3); }
.lightbox__ctrl { position: absolute; top: 50%; transform: translateY(-50%); min-width: 48px; min-height: 48px; background: rgba(255, 255, 255, 0.14); border-radius: 999px; color: #fff; font-size: 1.4rem; }
.lightbox__ctrl[data-lb-prev] { left: -8px; }
.lightbox__ctrl[data-lb-next] { right: -8px; }
.lightbox__close { position: absolute; top: -44px; right: 0; min-width: var(--tap); min-height: var(--tap); color: #fff; font-size: 1.3rem; }
.lightbox__actions { display: flex; justify-content: center; }

/* ---------- ボトムシート（モバイルのメニューカテゴリ選択） ---------- */
.sheet { position: fixed; inset: 0; z-index: 130; display: flex; align-items: flex-end; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(48, 52, 58, 0.5); border: 0; }
.sheet__panel { position: relative; z-index: 1; width: 100%; background: var(--c-surface); border-radius: 16px 16px 0 0; padding: var(--sp-5); padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom)); max-height: 78vh; overflow-y: auto; box-shadow: var(--sh-2); }
.sheet__grabber { width: 40px; height: 4px; background: var(--c-line-strong); border-radius: 999px; margin: 0 auto var(--sp-4); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.sheet__title { font-weight: 700; font-size: var(--fs-h4); }
.sheet__close { min-width: var(--tap); min-height: var(--tap); font-size: 1.2rem; }
.sheet__list { display: flex; flex-direction: column; gap: var(--sp-2); }
.sheet-cat-btn { min-height: var(--tap); padding: 12px 16px; border: 1px solid var(--c-line); border-radius: var(--r); text-align: left; font-weight: 600; }
.sheet-cat-btn:hover { border-color: var(--c-coral-strong); }

/* ---------- フォーム ---------- */
.form { display: flex; flex-direction: column; gap: var(--sp-5); }
/* フォーカス時の自動スクロールで、固定CTAバー・kyabel-promoバナーの帯（目安190px）に
   入力欄・確認ボタンが重ならないよう、フォーム内の主要な着地点すべてに
   scroll-margin を確保する（MASTER §フォーム確認画面と固定要素の重なりに注意）。 */
.field, .form__summary { scroll-margin-bottom: 190px; scroll-margin-top: 90px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-weight: 700; }
.field__req { color: var(--c-error); font-size: var(--fs-note); margin-left: 4px; }
.field__opt { color: var(--c-ink-muted); font-size: var(--fs-note); margin-left: 4px; }
.field__hint { font-size: var(--fs-note); color: var(--c-ink-muted); }
.field input, .field select, .field textarea { min-height: var(--tap); padding: 10px 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); background: #fff; width: 100%; }
.field textarea { min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-coral-strong); }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: var(--c-error); }
.field__error { color: var(--c-error); font-size: var(--fs-note); font-weight: 600; }
.form__summary { background: var(--c-error-bg); border: 1px solid var(--c-error); border-radius: var(--r); padding: var(--sp-4); }
.form__summary a { color: var(--c-error); text-decoration: underline; }
.form__confirm { background: var(--c-bg-alt); border: 1px solid var(--c-line); border-radius: var(--r); padding: var(--sp-5); scroll-margin-bottom: 190px; scroll-margin-top: 90px; }
.form__confirm-list { display: grid; grid-template-columns: 9em 1fr; gap: 8px 16px; margin-bottom: var(--sp-4); }
.form__confirm-list dt { color: var(--c-ink-muted); }
.form__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.form__complete { background: var(--c-ok-bg); border: 1px solid var(--c-ok-line); border-radius: var(--r); padding: var(--sp-5); scroll-margin-bottom: 190px; scroll-margin-top: 90px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; min-height: var(--tap); }
.checkbox-row input { width: 20px; height: 20px; min-height: 0; }

/* ---------- コールアウト ---------- */
.callout { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: var(--sp-6); }
.empty { text-align: center; padding: var(--sp-6) 0; }
.empty__title { font-weight: 700; font-size: var(--fs-h4); margin-bottom: var(--sp-2); }

/* ---------- ページ見出し共通 ---------- */
.page-head { padding: var(--sp-7) 0 var(--sp-6); }
.page-head__title { font-size: var(--fs-h1); margin-bottom: var(--sp-3); }
.page-head__lead { color: var(--c-ink-muted); max-width: 64ch; }

/* ---------- 終端CTA ---------- */
.endcta { background: var(--c-charcoal); color: #fff; padding: var(--sp-7) 0; }
.endcta .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; }
.endcta__title { font-size: var(--fs-h2); margin-bottom: var(--sp-2); }
.endcta__text { opacity: 0.85; max-width: 52ch; margin-bottom: var(--sp-2); }
.endcta__acts { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.endcta .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.endcta .btn--ghost:hover { border-color: #fff; }

/* ---------- フッター ---------- */
.ftr { background: var(--c-bg-alt); border-top: 1px solid var(--c-line); padding: var(--sp-8) 0 var(--sp-7); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-6); margin-bottom: var(--sp-6); }
.ftr__brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }
.ftr__brand-sub { color: var(--c-ink-muted); margin-bottom: var(--sp-3); }
.ftr__brand-info p { margin-bottom: 4px; font-size: var(--fs-note); }
.ftr__nav-title { font-weight: 700; font-size: var(--fs-note); letter-spacing: 0.08em; color: var(--c-ink-muted); margin-bottom: var(--sp-3); }
.ftr__nav li { margin-bottom: 8px; }
.ftr__nav a { white-space: nowrap; }
.ftr__notices { border-top: 1px solid var(--c-line); padding-top: var(--sp-4); margin-bottom: var(--sp-4); display: flex; flex-direction: column; gap: 6px; }
.ftr__notice { font-size: var(--fs-note); color: var(--c-ink-muted); }
.ftr__bottom { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-note); color: var(--c-ink-muted); }
.to-top { align-self: flex-start; }

/* ---------- 固定CTAバー ---------- */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; background: var(--c-surface); border-top: 1px solid var(--c-line); box-shadow: 0 -4px 16px rgba(48, 52, 58, 0.08); padding-bottom: env(safe-area-inset-bottom); }
.cta-bar__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--h-ctabar); font-size: var(--fs-note); font-weight: 600; color: var(--c-ink); }
.cta-bar__item svg { width: 22px; height: 22px; }
.cta-bar__item--wide { flex: 1.5; }
.cta-bar__item--primary { background: var(--c-coral-strong); color: #fff; }

/* ---------- noscript ---------- */
.nojs { background: var(--c-bg-alt); padding: var(--sp-5); }
.nojs dl { display: grid; grid-template-columns: 8em 1fr; gap: 6px 12px; margin: var(--sp-3) 0; }
