/* KYABEL v6 / SITE 104 — components.css
   共通部品: header / drawer / breadcrumbs / buttons / badges / table /
   accordion / tabs / modal / lightbox / form / footer / cta-bar
   ページ固有のヒーロー・カレンダー・イベント一覧は pages.css。 */

.container { max-width: var(--w-container); margin: 0 auto; padding: 0 var(--w-pad); }
.container--narrow { max-width: var(--w-narrow); }

.skip-link {
  position: fixed; top: -100%; left: var(--sp-4); z-index: 999;
  background: var(--c-ink); color: var(--c-bg-deep);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm);
  font-weight: 700;
}
.skip-link:focus { top: var(--sp-4); }

/* ---------- ヘッダー ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  height: var(--h-header-sp);
  background: rgba(18, 24, 36, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--c-line);
}
.hdr__inner {
  max-width: var(--w-container); margin: 0 auto; padding: 0 var(--w-pad);
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.hdr__brand { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; }
.hdr__brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; color: var(--c-ink); white-space: nowrap; }
.hdr__brand-sub { font-size: 0.6875rem; letter-spacing: var(--ls-label); color: var(--c-gold-tx); white-space: nowrap; }
.hdr__nav { display: none; }
.hdr__nav ul { display: flex; gap: var(--sp-5); }
.hdr__nav a { font-size: 0.9375rem; font-weight: 500; white-space: nowrap; padding: var(--sp-2) 0; border-bottom: 2px solid transparent; }
.hdr__nav a:hover { color: var(--c-accent-tx); }
.hdr__nav a[aria-current="page"] { color: var(--c-gold-tx); border-bottom-color: var(--c-gold); }
.hdr__actions { display: flex; align-items: center; gap: var(--sp-3); }
.hdr__tel { display: none; text-decoration: none; text-align: right; line-height: 1.2; }
.hdr__tel-label { display: block; font-size: 0.6875rem; color: var(--c-ink-mute); }
.hdr__tel-num { display: block; font-weight: 700; font-size: 1rem; color: var(--c-gold-tx); white-space: nowrap; }
.hdr__toggle {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: var(--h-tap); min-height: var(--h-tap); padding: var(--sp-2);
}
.hdr__toggle-bars { display: flex; flex-direction: column; gap: 4px; width: 22px; }
.hdr__toggle-bars span { display: block; height: 2px; background: var(--c-ink); border-radius: 2px; }
.hdr__toggle-label { font-size: 0.625rem; letter-spacing: var(--ls-label); color: var(--c-ink-soft); }

@media (min-width: 1100px) {
  .hdr { height: var(--h-header); }
  .hdr__nav { display: block; }
  .hdr__tel { display: block; }
  .hdr__toggle { display: none; }
}

/* ---------- ドロワー ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(6, 9, 16, 0.6); border: 0; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px);
  background: var(--c-bg-deep); border-left: 1px solid var(--c-line);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: var(--sp-5) var(--sp-5) var(--sp-8);
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-5); }
.drawer__title { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.drawer__close { font-size: 1.5rem; min-width: var(--h-tap); min-height: var(--h-tap); }
.drawer__nav ul { display: flex; flex-direction: column; gap: var(--sp-1); }
.drawer__nav a { display: block; padding: var(--sp-3) var(--sp-2); font-size: 1.0625rem; border-bottom: 1px solid var(--c-line-soft); }
.drawer__nav a[aria-current="page"] { color: var(--c-gold-tx); }
.drawer__info { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--c-line); display: flex; flex-direction: column; gap: var(--sp-4); }
.drawer__info dl { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-1) var(--sp-3); font-size: var(--fs-small); }
.drawer__info dt { color: var(--c-ink-mute); }

@media (min-width: 1100px) { .drawer { display: none; } }

/* ---------- パンくず ---------- */
.crumbs { border-bottom: 1px solid var(--c-line-soft); }
.crumbs ol { max-width: var(--w-container); margin: 0 auto; padding: var(--sp-2) var(--w-pad); display: flex; flex-wrap: wrap; gap: var(--sp-1); font-size: var(--fs-small); color: var(--c-ink-mute); }
.crumbs li:not(:last-child)::after { content: "\203A"; margin-left: var(--sp-1); }
.crumbs a { text-decoration: underline; text-underline-offset: 2px; }
.crumbs [aria-current="page"] { color: var(--c-ink-soft); }

/* ---------- noscript ---------- */
.nojs { background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding: var(--sp-5) var(--w-pad); }
.nojs dl { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-1) var(--sp-3); margin: var(--sp-3) 0; max-width: var(--w-container); margin-inline: auto; }
.nojs dt { color: var(--c-ink-mute); }
.nojs p { max-width: var(--w-container); margin-inline: auto; }
.nojs a { text-decoration: underline; }

/* ---------- セクション ---------- */
.section { padding: var(--sp-8) 0; }
.section--alt { background: var(--c-surface); }
.section--surface { background: var(--c-surface-alt); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.section__label { display: block; font-family: var(--f-display); font-size: 0.75rem; letter-spacing: var(--ls-label); color: var(--c-gold-tx); margin-bottom: var(--sp-1); }
.section__title { font-size: var(--fs-h2); }
.stack { display: flex; flex-direction: column; gap: var(--sp-5); }
.textlink { font-size: var(--fs-small); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; color: var(--c-accent-tx); }
.textlink:hover { color: var(--c-gold-tx); }

.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); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--h-tap); padding: 0 var(--sp-5);
  border-radius: var(--r); font-weight: 700; font-size: 0.9375rem;
  text-decoration: none; border: 1px solid transparent; transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--c-accent); color: #FBF3EE; }
.btn--primary:hover { background: var(--c-accent-deep); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-gold); color: var(--c-gold-tx); }
.btn--gold { background: var(--c-gold); color: #241C0E; }
.btn--gold:hover { background: var(--c-gold-deep); color: var(--c-ink); }
.btn--line { background: #1B4B3A; color: #E8F5EE; }
.btn--line:hover { background: #163D2F; }
.btn--sm { min-height: 38px; padding: 0 var(--sp-4); font-size: var(--fs-small); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- バッジ（丸自体が意味を持つため--r-pillの例外） ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px var(--sp-3); border-radius: var(--r-pill);
  font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.02em;
  border: 1px solid transparent; white-space: nowrap;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.badge--open { background: rgba(111, 174, 126, 0.16); color: var(--c-ok-tx); border-color: rgba(111, 174, 126, 0.4); }
.badge--closed { background: rgba(230, 138, 124, 0.14); color: var(--c-accent-tx); border-color: rgba(230, 138, 124, 0.4); }
.badge--private { background: var(--c-gold-wash); color: var(--c-gold-tx); border-color: rgba(169, 138, 78, 0.5); }
.badge--special { background: rgba(220, 192, 127, 0.14); color: var(--c-gold-tx); border-color: rgba(169, 138, 78, 0.4); }
.badge--cat { background: var(--c-surface-alt); color: var(--c-ink-soft); border-color: var(--c-line); }
.badge--cat::before { display: none; }

.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c-ink-mute); }
.status-dot--on { background: var(--c-ok); box-shadow: 0 0 0 3px rgba(111, 174, 126, 0.25); }

/* ---------- カード（人物・共通） ---------- */
.card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1);
  display: flex; flex-direction: column;
}
.card__media { aspect-ratio: 3 / 4; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.person__role { font-size: var(--fs-small); color: var(--c-gold-tx); font-weight: 700; }
.person__name { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; display: flex; align-items: baseline; gap: var(--sp-2); }
.person__kana { font-size: var(--fs-small); font-weight: 400; color: var(--c-ink-mute); }
.taglist { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.taglist li { background: var(--c-surface-alt); border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: 2px var(--sp-3); font-size: 0.75rem; color: var(--c-ink-soft); }
.person__shift { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--sp-2); font-size: var(--fs-small); margin-top: auto; padding-top: var(--sp-2); border-top: 1px dashed var(--c-line); }
.person__shift dt { color: var(--c-ink-mute); }
.person__shift dd.is-off { color: var(--c-ink-mute); }
.person-detail__media { aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; max-width: 280px; }
.person-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail-dl { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-1) var(--sp-3); font-size: var(--fs-small); }
.detail-dl dt { color: var(--c-ink-mute); }

/* ---------- テーブル ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r); }
.table { font-size: var(--fs-small); }
.table th, .table td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--c-line-soft); vertical-align: top; }
.table thead th { background: var(--c-surface-alt); font-weight: 700; color: var(--c-gold-tx); }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { width: 32%; color: var(--c-ink-soft); font-weight: 700; }
.price-value { font-weight: 700; color: var(--c-gold-tx); font-size: 1.05em; }

@media (max-width: 640px) {
  .table--cards thead { display: none; }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards th, .table--cards td { display: block; width: 100%; }
  .table--cards tr { border-bottom: 1px solid var(--c-line); padding: var(--sp-3) 0; }
  .table--cards tr:last-child { border-bottom: 0; }
  .table--cards td { border: 0; padding: 2px 0; }
  .table--cards td::before { content: attr(data-label) "："; color: var(--c-ink-mute); font-size: 0.75rem; display: block; }
}

/* ---------- アコーディオン ---------- */
.acc__item { border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; margin-bottom: var(--sp-3); background: var(--c-surface); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4); text-align: left; font-weight: 700; min-height: var(--h-tap); }
.acc__mark { flex: none; width: 20px; height: 20px; position: relative; }
.acc__mark::before, .acc__mark::after { content: ""; position: absolute; background: var(--c-gold); border-radius: 2px; }
.acc__mark::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.acc__mark::after { top: 2px; left: 9px; width: 2px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.acc__btn[aria-expanded="true"] .acc__mark::after { transform: scaleY(0); }
.acc__panel { padding: 0 var(--sp-4) var(--sp-4); }

/* ---------- タブ ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.tab { padding: var(--sp-2) var(--sp-4); min-height: var(--h-tap); border-radius: var(--r-pill); border: 1px solid var(--c-line); font-size: var(--fs-small); font-weight: 700; color: var(--c-ink-soft); }
.tab[aria-selected="true"] { background: var(--c-accent); border-color: var(--c-accent); color: #FBF3EE; }

.viewswitch { display: inline-flex; border: 1px solid var(--c-line); border-radius: var(--r-pill); overflow: hidden; }
.viewswitch button { padding: var(--sp-2) var(--sp-4); min-height: var(--h-tap); font-size: var(--fs-small); font-weight: 700; color: var(--c-ink-soft); }
.viewswitch button[aria-pressed="true"] { background: var(--c-gold); color: #241C0E; }

/* ---------- モーダル / オーバーレイ共通 ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; }
.modal__scrim { position: absolute; inset: 0; background: rgba(6, 9, 16, 0.65); border: 0; }
.modal__panel {
  position: relative; width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto;
  background: var(--c-bg-deep); border: 1px solid var(--c-line); border-radius: var(--r) var(--r) 0 0;
  padding: var(--sp-5); box-shadow: var(--sh-2);
}
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.modal__title { font-size: var(--fs-h3); }
.modal__close { font-size: 1.5rem; min-width: var(--h-tap); min-height: var(--h-tap); flex: none; }
@media (min-width: 640px) {
  .modal { align-items: center; }
  .modal__panel { border-radius: var(--r); }
}

/* ---------- ライトボックス ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(6, 9, 16, 0.92); display: flex; flex-direction: column; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4); color: var(--c-ink); }
.lightbox__close { font-size: 1.75rem; min-width: var(--h-tap); min-height: var(--h-tap); }
.lightbox__stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 var(--sp-5); min-height: 0; }
.lightbox__stage img { max-height: 70vh; width: auto; max-width: 100%; border-radius: var(--r-sm); }
.lightbox__foot { display: flex; align-items: center; justify-content: center; gap: var(--sp-5); padding: var(--sp-5); color: var(--c-ink-soft); }
.lightbox__caption { text-align: center; max-width: 480px; font-size: var(--fs-small); }
.lightbox__count { font-size: var(--fs-small); color: var(--c-ink-mute); white-space: nowrap; }
.lightbox button[data-lb-prev], .lightbox button[data-lb-next] { font-size: 1.5rem; min-width: var(--h-tap); min-height: var(--h-tap); }

/* ---------- フォーム ---------- */
.field { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-4); }
.field__label { font-size: var(--fs-small); font-weight: 700; color: var(--c-ink-soft); }
.field__label .req { color: var(--c-accent-tx); margin-left: 4px; }
.field input, .field select, .field textarea {
  min-height: var(--h-tap); padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-sm); color: var(--c-ink);
}
.field textarea { min-height: 120px; padding-top: var(--sp-3); resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--c-gold); }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: var(--c-accent-tx); }
.field__error { color: var(--c-accent-tx); font-size: var(--fs-small); }
.field__hint { color: var(--c-ink-mute); font-size: var(--fs-small); }
.form__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.form__summary { background: var(--c-accent-wash); border: 1px solid var(--c-accent); border-radius: var(--r); padding: var(--sp-4); margin-bottom: var(--sp-5); }
.form__summary h3 { font-size: var(--fs-body); margin-bottom: var(--sp-2); }
.form__summary a { color: var(--c-accent-tx); text-decoration: underline; }
.form__confirm { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: var(--sp-4); margin-bottom: var(--sp-5); }
.form__confirm dl { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
.form__confirm > div { display: grid; grid-template-columns: 30% 1fr; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--c-line-soft); }
.form__demo-note { font-size: var(--fs-small); color: var(--c-ink-mute); }

/* ---------- お知らせ / 記事 共通 ---------- */
.callout { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: var(--sp-5); }
.callout h3 { margin-bottom: var(--sp-2); }
.notes { display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-small); color: var(--c-ink-soft); }
.notes li::before { content: "\203B "; color: var(--c-ink-mute); }
.empty { padding: var(--sp-6) 0; text-align: center; color: var(--c-ink-mute); }
.alert { background: var(--c-accent-wash); border: 1px solid var(--c-accent); border-radius: var(--r); padding: var(--sp-4); margin-bottom: var(--sp-5); }

/* ---------- footer ---------- */
.ftr { background: var(--c-bg-deep); border-top: 1px solid var(--c-line); padding: var(--sp-8) 0 var(--sp-9); }
.ftr__grid { display: grid; gap: var(--sp-6); margin-bottom: var(--sp-6); }
.ftr__brand-name { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; }
.ftr__brand-sub { font-size: var(--fs-small); color: var(--c-gold-tx); margin-top: var(--sp-1); }
.ftr__brand-info { margin-top: var(--sp-4); font-size: var(--fs-small); color: var(--c-ink-soft); display: flex; flex-direction: column; gap: 4px; }
.ftr__nav-title { font-size: 0.75rem; letter-spacing: var(--ls-label); color: var(--c-ink-mute); margin-bottom: var(--sp-3); }
.ftr__nav { display: flex; flex-direction: column; gap: var(--sp-2); }
.ftr__nav a { font-size: var(--fs-small); color: var(--c-ink-soft); }
.ftr__notices { display: flex; flex-direction: column; gap: var(--sp-1); font-size: 0.75rem; color: var(--c-ink-mute); border-top: 1px solid var(--c-line); padding-top: var(--sp-5); margin-bottom: var(--sp-5); }
.ftr__bottom { font-size: var(--fs-small); color: var(--c-ink-mute); display: flex; flex-direction: column; gap: var(--sp-2); }
.ftr__demo { color: var(--c-gold-tx); }

@media (min-width: 768px) {
  .ftr__grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

/* ---------- 固定CTA ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: var(--h-ctabar); background: var(--c-bg-deep); border-top: 1px solid var(--c-line);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding-bottom: env(safe-area-inset-bottom);
}
.cta-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 0.6875rem; color: var(--c-ink-soft); }
.cta-bar a svg { width: 20px; height: 20px; }
.cta-bar__primary { background: var(--c-accent); color: #FBF3EE !important; }

@media (min-width: 1100px) { .cta-bar { display: none; } }

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