/* =========================================================
   SITE 121 — CONCAFE MOBILE FIRST / 共通コンポーネント
   header / drawer / bottom-sheet / modal / lightbox / tabs /
   filter / accordion / form / card / button / footer / ctabar
   ========================================================= */

/* ---------- レイアウト基礎 ---------- */
.container { max-width: var(--w-container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--w-narrow); }
main#main { display: block; padding-top: var(--h-header); padding-bottom: calc(var(--h-ctabar) + 12px + env(safe-area-inset-bottom)); }
.section { padding-block: var(--sp-7); }
.section--alt { background: var(--c-bg-alt); }
.section--band { background: var(--c-bg-band); }
.section__head { margin-bottom: var(--sp-5); }
.section__eyebrow { display: block; font-size: var(--fs-note); font-weight: 700; color: var(--c-accent-strong); letter-spacing: 0.06em; margin-bottom: 4px; }
.section__title { font-size: var(--fs-h2); }
.section__lead { margin-top: var(--sp-2); color: var(--c-ink-muted); font-size: var(--fs-body-lg); }
.section__foot { margin-top: var(--sp-5); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 20px; border-radius: var(--r);
  font-size: var(--fs-body); font-weight: 700; line-height: 1.3; text-align: center;
  border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--c-accent); color: var(--c-ink-onaccent); }
.btn--primary:hover { background: var(--c-accent-hover); }
.btn--pink { background: var(--c-accent2); color: var(--c-ink-onaccent); }
.btn--pink:hover { background: var(--c-accent2-strong); }
.btn--ghost { background: transparent; color: var(--c-accent-strong); border-color: var(--c-line-strong); }
.btn--ghost:hover { background: var(--c-blue-050); }
.btn--outline { background: var(--c-white); color: var(--c-ink); border-color: var(--c-line-strong); }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: var(--fs-note); }
.btn--lg { min-height: 52px; padding: 12px 26px; font-size: var(--fs-body-lg); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn__ic { width: 18px; height: 18px; flex: none; }
.btn__ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- ヘッダー（コンパクト・固定） ---------- */
.hdr { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 900; background: rgba(255,255,255,0.96); backdrop-filter: saturate(140%) blur(6px); border-bottom: 1px solid var(--c-line); }
.hdr__row1 { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--h-header); padding-inline: var(--gutter); }
.hdr__brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hdr__mark { flex: none; width: 34px; height: 34px; border-radius: var(--r); background: var(--c-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9375rem; }
.hdr__brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.hdr__brand-name { font-size: 1.0625rem; font-weight: 700; white-space: nowrap; }
.hdr__brand-sub { font-size: 0.75rem; color: var(--c-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr__status { flex: none; display: none; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r); background: var(--c-blue-050); font-size: var(--fs-note); font-weight: 700; color: var(--c-accent-strong); white-space: nowrap; }
.hdr__status[data-open="true"] { background: var(--c-ok-bg); color: #1f6b3d; }
.hdr__status[data-open="false"] { background: var(--c-warn-bg); color: #8a5a10; }
.hdr__status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.hdr__acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr__menu { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border-radius: var(--r); flex: none; }
.hdr__menu:hover { background: var(--c-bg-alt); }
.hdr__menu-bars { display: block; width: 20px; height: 14px; position: relative; }
.hdr__menu-bars span, .hdr__menu-bars::before, .hdr__menu-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--c-ink); border-radius: 2px; }
.hdr__menu-bars::before { top: 0; }
.hdr__menu-bars span { top: 6px; }
.hdr__menu-bars::after { top: 12px; }
.hdr__row2 { display: none; border-top: 1px solid var(--c-line); }
.hdr__nav { }
.hdr__nav ul { display: flex; gap: var(--sp-5); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
.hdr__nav ul::-webkit-scrollbar { display: none; }
.hdr__nav a { display: block; padding: 10px 2px; font-size: var(--fs-label); font-weight: 700; white-space: nowrap; color: var(--c-ink-muted); border-bottom: 2px solid transparent; }
.hdr__nav a[aria-current] { color: var(--c-accent-strong); border-color: var(--c-accent); }

@media (min-width: 720px) {
  .hdr__row1 { min-height: var(--h-header-desktop); }
  .hdr__status { display: inline-flex; }
  .hdr__row2 { display: block; }
  main#main { padding-top: calc(var(--h-header-desktop) + 44px); }
}

/* ---------- パンくず ---------- */
.crumbs { padding-block: var(--sp-3); border-bottom: 1px solid var(--c-line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--fs-note); color: var(--c-ink-muted); }
.crumbs li:not(:last-child)::after { content: "›"; margin-inline: 6px; }
.crumbs a { text-decoration: underline; text-underline-offset: 2px; }
.crumbs [aria-current="page"] { color: var(--c-ink); font-weight: 700; }

/* ---------- ページ見出し ---------- */
.page-head { padding-block: var(--sp-6) var(--sp-5); background: var(--c-bg-band); border-bottom: 1px solid var(--c-line); }
.page-head__eyebrow { display: block; font-size: var(--fs-note); font-weight: 700; color: var(--c-accent-strong); margin-bottom: 6px; }
.page-head__title { font-size: var(--fs-h1); }
.page-head__lead { margin-top: var(--sp-2); color: var(--c-ink-muted); font-size: var(--fs-body-lg); max-width: 46em; }

/* ---------- ドロワー ---------- */
.drawer { position: fixed; inset: 0; z-index: 1200; }
.drawer[hidden] { display: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(20,24,38,0.45); }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(88vw, 360px); background: #fff; box-shadow: var(--sh-2); display: flex; flex-direction: column; padding: var(--sp-4); padding-top: calc(var(--sp-4) + env(safe-area-inset-top)); padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom)); overflow-y: auto; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.drawer__title { font-size: var(--fs-h4); font-weight: 700; }
.drawer__close { min-height: var(--tap); padding: 6px 12px; font-weight: 700; border-radius: var(--r); }
.drawer__close:hover { background: var(--c-bg-alt); }
.drawer__nav { display: flex; flex-direction: column; margin-bottom: var(--sp-4); border-top: 1px solid var(--c-line); }
.drawer__nav a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--c-line); font-weight: 700; white-space: nowrap; }
.drawer__nav a[aria-current] { color: var(--c-accent-strong); }
.drawer__actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--sp-4); }
.drawer__info { font-size: var(--fs-note); color: var(--c-ink-muted); display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.drawer__info dt { font-weight: 700; color: var(--c-ink); }

/* ---------- ボトムシート（出勤／メニューカテゴリ 共通部品） ---------- */
.sheet { position: fixed; inset: 0; z-index: 1300; }
.sheet__overlay { position: absolute; inset: 0; background: rgba(20,24,38,0.45); }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 82svh; margin-inline: auto;
  max-width: var(--w-container); background: #fff; border-radius: var(--r-sheet);
  box-shadow: var(--sh-2); display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet__grab { width: 44px; height: 4px; border-radius: 2px; background: var(--c-line-strong); margin: 10px auto 4px; flex: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px var(--gutter) var(--sp-3); border-bottom: 1px solid var(--c-line); flex: none; }
.sheet__title { font-size: var(--fs-h4); font-weight: 700; }
.sheet__close { min-height: var(--tap); min-width: var(--tap); border-radius: var(--r); font-size: 1.1rem; }
.sheet__close:hover { background: var(--c-bg-alt); }
.sheet__body { overflow-y: auto; padding: var(--sp-4) var(--gutter) var(--sp-5); }

/* ---------- モーダル ---------- */
.modal { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; padding: var(--gutter); }
.modal__overlay { position: absolute; inset: 0; background: rgba(20,24,38,0.5); }
.modal__panel { position: relative; z-index: 1; width: 100%; max-width: 440px; background: #fff; border-radius: var(--r); padding: var(--sp-5); box-shadow: var(--sh-2); max-height: 84svh; overflow-y: auto; }
.modal__close { position: absolute; top: 10px; right: 10px; width: var(--tap); height: var(--tap); border-radius: var(--r); font-size: 1.25rem; }
.modal__close:hover { background: var(--c-bg-alt); }
.modal__title { font-size: var(--fs-h3); margin-bottom: var(--sp-3); padding-right: 30px; }
.modal__body p { margin-bottom: var(--sp-2); color: var(--c-ink-muted); }
.modal__foot { margin-top: var(--sp-4); display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- ライトボックス ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; padding: var(--gutter); }
.lightbox__overlay { position: absolute; inset: 0; background: rgba(10,12,20,0.86); }
.lightbox__panel { position: relative; z-index: 1; width: 100%; max-width: 620px; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.lightbox__stage { width: 100%; border-radius: var(--r); overflow: hidden; background: #111; }
.lightbox__stage img { width: 100%; height: auto; }
.lightbox__cap { color: #fff; font-size: var(--fs-note); text-align: center; }
.lightbox__ctrl { display: flex; align-items: center; gap: var(--sp-3); color: #fff; }
.lightbox__btn { min-height: var(--tap); padding: 8px 16px; border: 1px solid rgba(255,255,255,0.5); border-radius: var(--r); color: #fff; font-weight: 700; }
.lightbox__btn:hover { background: rgba(255,255,255,0.12); }
.lightbox__count { font-size: var(--fs-note); }

/* ---------- タブ（日付タブ等） ---------- */
.tabs { display: flex; flex-direction: column; gap: var(--sp-4); }
.tablist { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: var(--tap); padding: 8px 14px; border-radius: var(--r); border: 1px solid var(--c-line-strong); background: #fff; font-weight: 700; display: flex; flex-direction: column; align-items: center; line-height: 1.3; white-space: nowrap; }
.tab small { font-weight: 400; color: var(--c-ink-muted); font-size: var(--fs-note); }
.tab[aria-selected="true"] { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.tab[aria-selected="true"] small { color: rgba(255,255,255,0.85); }
.tab--closed { opacity: 0.55; }
.tabpanel { min-height: 40px; }

/* ---------- 絞り込みチップ ---------- */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter__label { font-weight: 700; font-size: var(--fs-note); color: var(--c-ink-muted); margin-right: 4px; }
.chip { min-height: 40px; padding: 7px 14px; border-radius: var(--r); border: 1px solid var(--c-line-strong); background: #fff; font-size: var(--fs-note); font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.filter__result { width: 100%; font-size: var(--fs-note); color: var(--c-ink-muted); margin-top: 2px; }

/* ---------- アコーディオン ---------- */
.acc { border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; }
.acc + .acc { margin-top: var(--sp-3); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 14px var(--sp-4); min-height: var(--tap); text-align: left; font-weight: 700; background: #fff; }
.acc__btn:hover { background: var(--c-bg-alt); }
.acc__mark { flex: none; width: 18px; height: 18px; position: relative; }
.acc__mark::before, .acc__mark::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--c-ink); }
.acc__mark::before { width: 12px; height: 2px; }
.acc__mark::after { width: 2px; height: 12px; transition: transform .15s ease; }
.acc__btn[aria-expanded="true"] .acc__mark::after { transform: translate(-50%,-50%) scaleY(0); }
.acc__panel { padding: 0 var(--sp-4) var(--sp-4); color: var(--c-ink-muted); }
.acc__panel p + p { margin-top: 8px; }

/* ---------- カード共通 ---------- */
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; }
.ph { position: relative; width: 100%; overflow: hidden; background: var(--c-bg-alt); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph--1x1 { aspect-ratio: 1 / 1; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--3x4 { aspect-ratio: 3 / 4; }
.ph--16x9 { aspect-ratio: 16 / 9; min-width: 0; }
.ph--sq { aspect-ratio: 1 / 1; min-width: 0; }

/* ---------- 定義リスト ---------- */
.deflist { display: flex; flex-direction: column; }
.deflist__row { display: grid; grid-template-columns: 8.5rem minmax(0,1fr); gap: var(--sp-3); padding-block: 10px; border-bottom: 1px dashed var(--c-line); font-size: var(--fs-body); }
.deflist__row:last-child { border-bottom: 0; }
.deflist dt { font-weight: 700; color: var(--c-ink-muted); }

/* ---------- 表（PC）／カード化（SP） ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r); }
.table { min-width: 480px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--c-line); font-size: var(--fs-body); }
.table thead th { background: var(--c-bg-alt); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table td.num { text-align: right; white-space: nowrap; }

/* ---------- フォーム ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-4); }
.field label { font-weight: 700; font-size: var(--fs-label); }
.field__req { color: var(--c-accent2-strong); font-size: var(--fs-note); font-weight: 700; margin-left: 6px; }
.field__opt { color: var(--c-ink-muted); font-size: var(--fs-note); font-weight: 400; margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: var(--tap); padding: 10px 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r);
  font-size: 1rem; background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field__hint { font-size: var(--fs-note); color: var(--c-ink-muted); }
.field__error { font-size: var(--fs-note); color: var(--c-error); font-weight: 700; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--c-error); background: var(--c-error-bg); }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field--check input { min-height: 22px; width: 22px; height: 22px; flex: none; margin-top: 2px; }
.field-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--sp-3); }
.field-row > .field { min-width: 0; }
.form__errors { background: var(--c-error-bg); border: 1px solid var(--c-error); border-radius: var(--r); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4); }
.form__errors h3 { font-size: var(--fs-body); margin-bottom: 6px; }
.form__errors ul { display: flex; flex-direction: column; gap: 4px; }
.form__errors a { text-decoration: underline; color: var(--c-error); font-weight: 700; }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--sp-5); }
.form__summary { background: var(--c-bg-alt); border-radius: var(--r); padding: var(--sp-4); margin-bottom: var(--sp-4); }
.form__summary div { display: grid; grid-template-columns: 8rem minmax(0,1fr); gap: var(--sp-2); padding-block: 6px; border-bottom: 1px dashed var(--c-line-strong); }
.form__summary div:last-child { border-bottom: 0; }
.form__summary dt { font-weight: 700; }

/* ---------- コールアウト／注記 ---------- */
.callout { background: var(--c-bg-alt); border: 1px solid var(--c-line); border-radius: var(--r); padding: var(--sp-5); }
.callout h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.callout p + p { margin-top: 8px; }
.note { font-size: var(--fs-note); color: var(--c-ink-muted); }
.notice-list { display: flex; flex-direction: column; gap: 6px; }
.notice-list li { font-size: var(--fs-note); color: var(--c-ink-muted); padding-left: 1.1em; position: relative; }
.notice-list li::before { content: "・"; position: absolute; left: 0; }
.empty { text-align: center; padding: var(--sp-8) var(--sp-4); color: var(--c-ink-muted); }
.empty__title { font-weight: 700; color: var(--c-ink); margin-bottom: 6px; font-size: var(--fs-h4); }

/* ---------- 固定CTA（TODAY / MENU / MAP / LINE） ---------- */
.ctabar { position: fixed; inset-inline: 0; bottom: 0; z-index: 850; background: #fff; border-top: 1px solid var(--c-line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(28,35,51,0.08); }
.ctabar__list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); height: var(--h-ctabar); max-width: var(--w-container); margin-inline: auto; }
.ctabar__item { min-width: 0; }
.ctabar__item a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; font-size: 0.75rem; font-weight: 700; color: var(--c-ink-muted); }
.ctabar__item a[aria-current] { color: var(--c-accent-strong); }
.ctabar__item--primary a { color: var(--c-accent-strong); }
.ctabar__icon { width: 22px; height: 22px; }
.ctabar__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) {
  .ctabar { display: none; }
  main#main { padding-bottom: var(--sp-9); }
}

/* ---------- 末尾CTA ---------- */
.endcta { background: var(--c-blue-050); border-top: 1px solid var(--c-line); padding-block: var(--sp-7); }
.endcta__title { font-size: var(--fs-h2); }
.endcta__text { margin-top: var(--sp-2); color: var(--c-ink-muted); }
.endcta__acts { margin-top: var(--sp-4); display: flex; flex-direction: column; gap: 10px; }
.endcta__acts .btn { width: 100%; }

/* ---------- フッター ---------- */
.ftr { background: var(--c-ink-base); color: #eef0f8; padding-block: var(--sp-7) var(--sp-5); }
.ftr__grid { display: flex; flex-direction: column; gap: var(--sp-6); }
.ftr__brand-name { font-size: var(--fs-h3); font-weight: 700; }
.ftr__brand-sub { margin-top: 4px; color: #b7bdd6; font-size: var(--fs-note); }
.ftr__info { margin-top: var(--sp-4); display: grid; grid-template-columns: 5.5rem minmax(0,1fr); gap: 6px 10px; font-size: var(--fs-note); color: #cfd3e8; }
.ftr__info dt { color: #9aa1c2; }
.ftr__tel { color: #fff; font-weight: 700; }
.ftr__navtitle { font-size: var(--fs-note); color: #9aa1c2; font-weight: 700; margin-bottom: 8px; }
.ftr__nav { display: flex; flex-direction: column; gap: 8px; }
.ftr__nav a { color: #e4e7f5; font-size: var(--fs-body); white-space: nowrap; }
.ftr__nav a[aria-current] { color: #fff; text-decoration: underline; }
.ftr__notices { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,0.16); display: flex; flex-direction: column; gap: 6px; }
.ftr__notice { font-size: var(--fs-note); color: #b7bdd6; }
.ftr__bottom { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,0.16); display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-note); color: #9aa1c2; }
.to-top { align-self: flex-start; color: #e4e7f5; font-weight: 700; }
@media (min-width: 720px) {
  .ftr__grid { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
  .ftr__grid > div { flex: 1 1 220px; }
}

/* ---------- 状態バッジ ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r); font-size: var(--fs-note); font-weight: 700; }
.badge--open { background: var(--c-ok-bg); color: #1f6b3d; }
.badge--closed { background: var(--c-warn-bg); color: #8a5a10; }
.badge--dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- noscript ---------- */
.noscript-box { max-width: 640px; margin: 40px auto; padding: 24px; border: 1px solid var(--c-line); border-radius: var(--r); }
.noscript-box dl { display: grid; grid-template-columns: 6rem 1fr; gap: 6px 12px; margin: 16px 0; }
.noscript-box ul { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.noscript-box a { text-decoration: underline; }

/* ---------- reveal（fade-up 1種のみ） ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }
