/* SITE 110 — 共通コンポーネント
   header / drawer / button / card / table / tabs / chips / modal / lightbox / form / footer / cta-bar */

/* ============ base ============ */
body {
  background: var(--brown);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  padding-bottom: calc(var(--ctabar-h) + env(safe-area-inset-bottom, 0px) + 12px);
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

h1, h2, h3, h4 {
  font-family: var(--font-en);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: 0.01em;
}

p { line-height: var(--lh-body); }

a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

.en {
  font-family: var(--font-en);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: var(--ivory);
  color: var(--brown);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 12px; }

.note {
  font-size: var(--fs-note);
  line-height: 1.7;
  color: var(--text-note);
}

.muted { color: var(--text-muted); }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: var(--fs-note);
  line-height: 1.4;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
}

/* ============ header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(22, 15, 13, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  flex: none;
  padding-block: 8px;
}
.brand__name {
  font-family: var(--font-en);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ivory);
  line-height: 1.2;
  white-space: nowrap;
}
.brand__sub {
  font-size: var(--fs-note);
  color: var(--brass-light);
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}
.gnav { display: none; margin-left: auto; }
.gnav__list { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 20px); }
.gnav__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-family: var(--font-en);
  font-size: 0.9375rem; /* 15px */
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.gnav__link:hover { color: var(--ivory); border-bottom-color: var(--brass); }
.gnav__link[aria-current="page"] { color: var(--ivory); border-bottom-color: var(--brass); }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
@media (min-width: 1024px) {
  .gnav { display: block; }
  .header__actions { margin-left: var(--sp-5); }
}

.hamburger {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ivory);
}
.hamburger span { position: relative; }
.hamburger span::before { position: absolute; top: -6px; }
.hamburger span::after { position: absolute; top: 6px; }
@media (min-width: 1024px) { .hamburger { display: none; } }

/* ============ button ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn--primary { background: var(--brass); color: #201409; }
.btn--primary:hover { background: #C29E6C; }
.btn--outline { border-color: var(--line-strong); color: var(--ivory); }
.btn--outline:hover { border-color: var(--brass); color: var(--brass-light); }
.btn--ghost { color: var(--brass-light); text-decoration: underline; min-height: 44px; padding-inline: 4px; }
.btn--sm { min-height: 44px; font-size: var(--fs-note); padding: 8px 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.btn__icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  color: var(--brass-light);
  text-decoration: underline;
}
.link-arrow::after { content: "→"; }

/* ============ drawer ============ */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 6, 5, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 110;
  width: min(88vw, 380px);
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  /* visibility は「開くときは即時 / 閉じるときはスライド完了後」に切り替える。
     visibility を transition させると開いた直後の focus() が効かず、
     フォーカストラップが成立しないため 0s + delay で表現する。 */
  transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--dur) var(--ease), visibility 0s linear 0s;
}
@media (min-width: 1024px) { .drawer, .backdrop { display: none; } }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.drawer__close {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 1.25rem;
  cursor: pointer;
}
.drawer__nav { padding: var(--sp-2) var(--sp-5) var(--sp-5); }
.drawer__nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 52px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: var(--fs-body);
  font-weight: 600;
  white-space: nowrap;
}
.drawer__nav a[aria-current="page"] { color: var(--brass-light); }
.drawer__nav .en { font-size: var(--fs-note); color: var(--text-note); }
.drawer__foot { padding: 0 var(--sp-5) var(--sp-7); display: grid; gap: var(--sp-3); }

/* ============ section ============ */
.section { padding-block: clamp(40px, 6vw, 88px); }
.section--alt { background: var(--brown-deep); }
.section__head { margin-bottom: var(--sp-5); }
.section__eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: var(--fs-note);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brass-light);
  margin-bottom: 6px;
}
.section__title { font-size: var(--fs-h2); }
.section__lead { margin-top: var(--sp-3); color: var(--text-muted); max-width: 62ch; }
.section__foot { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }

/* ============ card ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card--flat { background: transparent; }

.media {
  position: relative;
  display: block;
  background: var(--brown-deep);
  overflow: hidden;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x4 { aspect-ratio: 3 / 4; }

.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--cast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid--cast { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--cast { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); } }

/* cast card */
.cast-card { display: flex; flex-direction: column; }
.cast-card__link { text-decoration: none; display: block; }
.cast-card__body { padding: var(--sp-3) var(--sp-4) var(--sp-4); display: grid; gap: 6px; }
.cast-card__name { font-size: 1.0625rem; font-weight: 700; font-family: var(--font-en); }
.cast-card__role { font-size: var(--fs-note); color: var(--brass-light); }
.cast-card__time { font-size: var(--fs-note); color: var(--text-muted); }
.cast-card__time strong { font-size: var(--fs-body); color: var(--ivory); font-variant-numeric: tabular-nums; }

/* room card（本サイトの主役コンテンツ。人数・料金・喫煙は必ず本文常時表示にする） */
.room-card {
  display: grid;
  /* height:100% で列を揃える構成のため、画像側の aspect-ratio 固定を打ち消す指示を明示する */
  aspect-ratio: auto;
  min-width: 0;
  height: 100%;
}
.room-card__body { padding: var(--sp-4); display: grid; gap: var(--sp-3); align-content: start; }
.room-card__name { font-size: var(--fs-h3); }
.room-spec { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--sp-4); font-size: var(--fs-note); }
.room-spec dt { color: var(--text-note); }
.room-spec dd { margin: 0; color: var(--ivory); font-size: var(--fs-body); }
.room-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* event / news */
.event-card__body, .news-card__body { padding: var(--sp-4); display: grid; gap: var(--sp-3); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-size: var(--fs-note); }
.meta-date { font-family: var(--font-en); font-weight: 700; color: var(--brass-light); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.badge {
  display: inline-block;
  font-size: var(--fs-note);
  line-height: 1.4;
  padding: 3px 10px;
  border-radius: var(--radius);
  background: rgba(167, 135, 82, 0.18);
  border: 1px solid rgba(211, 182, 133, 0.5);
  color: var(--brass-light);
}
.badge--open { background: rgba(143, 191, 155, 0.16); border-color: rgba(143, 191, 155, 0.55); color: #B7DCC0; }
.badge--closed { background: rgba(216, 154, 106, 0.16); border-color: rgba(216, 154, 106, 0.55); color: var(--warn); }
.badge--smoke { background: rgba(199, 127, 146, 0.18); border-color: rgba(199, 127, 146, 0.55); color: var(--wine-light); }
.badge--nosmoke { background: rgba(143, 191, 155, 0.1); border-color: var(--line-strong); color: var(--text-muted); }

.news-list { display: grid; gap: var(--sp-4); }
.news-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.news-item__summary {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-4);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
.news-item__summary::-webkit-details-marker { display: none; }
.news-item__summary::after {
  content: "詳しく読む ＋";
  font-size: var(--fs-note);
  color: var(--brass-light);
  font-weight: 700;
}
.news-item[open] .news-item__summary::after { content: "閉じる −"; }
.news-item__title { font-size: var(--fs-h3); }
.news-item__body { padding: 0 var(--sp-4) var(--sp-4); display: grid; gap: var(--sp-4); }
/* 開いたときに画像が本文より支配的にならないよう、幅広では2カラムにする */
@media (min-width: 768px) {
  .news-item__body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}

/* ============ tabs ============ */
.tabs {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.tab {
  flex: none;
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font-size: var(--fs-note);
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-align: center;
}
.tab .tab__day { font-size: var(--fs-body); color: var(--ivory); }
.tab[aria-selected="true"] {
  background: var(--brass);
  border-color: var(--brass);
  color: #201409;
}
.tab[aria-selected="true"] .tab__day { color: #201409; }
.tabpanel { margin-top: var(--sp-5); }

/* ============ chips (絞り込み・人数フィルター) ============ */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: var(--fs-note);
  font-weight: 700;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ivory); border-color: var(--ivory); color: var(--brown); }
.filter-status { margin-top: var(--sp-3); font-size: var(--fs-note); color: var(--text-muted); }

/* ============ table ============ */
.table-wrap { overflow-x: auto; }
.table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: var(--fs-body);
}
.table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: var(--sp-3);
  font-size: var(--fs-note);
  color: var(--text-note);
}
.table th, .table td {
  padding: 14px var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
  vertical-align: top;
}
.table thead th { background: var(--surface-2); font-size: var(--fs-note); letter-spacing: 0.03em; color: var(--text-muted); }
.table tbody th { font-weight: 700; background: var(--surface); }
.table td { color: var(--text-muted); }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ivory); font-weight: 700; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }

/* 表のカード化（SPで .table--cards を使用） */
.price-cards { display: grid; gap: var(--sp-4); }
.price-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: var(--sp-4); display: grid; gap: var(--sp-2);
  /* height:100% 列揃えの隣接カードと混在する場面での安全策 */
  aspect-ratio: auto; min-width: 0;
}
.price-card__name { font-size: var(--fs-h3); }
.price-card__row { display: flex; justify-content: space-between; gap: var(--sp-4); font-size: var(--fs-body); border-bottom: 1px dashed var(--line); padding-block: 6px; }
.price-card__row:last-of-type { border-bottom: 0; }
.price-card__row dt { color: var(--text-note); font-size: var(--fs-note); }
.price-card__row dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; }

/* ============ definition blocks ============ */
.deflist { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.deflist > div {
  display: grid;
  gap: 4px;
  padding: 14px var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.deflist > div:last-child { border-bottom: 0; }
.deflist dt { font-size: var(--fs-note); color: var(--text-note); }
.deflist dd { margin: 0; font-size: var(--fs-body); }
@media (min-width: 640px) {
  .deflist > div { grid-template-columns: 180px 1fr; gap: var(--sp-4); align-items: baseline; }
}

/* ============ accordion (FAQ) ============ */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item:last-child { border-bottom: 0; }
.acc__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  min-height: 56px;
  padding: 14px var(--sp-4);
  text-align: left;
  font-size: var(--fs-body);
  font-weight: 700;
  cursor: pointer;
}
.acc__q::after { content: "＋"; color: var(--brass-light); flex: none; }
.acc__q[aria-expanded="true"]::after { content: "−"; }
.acc__a { padding: 0 var(--sp-4) var(--sp-4); color: var(--text-muted); }

/* ============ modal ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  background: rgba(10, 6, 5, 0.8);
}
.modal[hidden] { display: none !important; }
.modal__panel {
  width: min(560px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: var(--sp-5);
  display: grid;
  gap: var(--sp-4);
}
.modal__title { font-size: var(--fs-h3); }
.modal__foot { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: flex-end; }

/* ============ lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(10, 6, 5, 0.94);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--sp-4);
  gap: var(--sp-3);
}
.lightbox[hidden] { display: none !important; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.lightbox__counter { font-size: var(--fs-note); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; }
.lightbox__stage img { max-height: 68vh; width: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox__caption { text-align: center; font-size: var(--fs-note); color: var(--text-muted); }
.lightbox__nav { display: flex; justify-content: center; gap: var(--sp-3); }
.lightbox__btn {
  min-width: 56px; min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--fs-body);
  font-weight: 700;
}

/* ============ form ============ */
.form { display: grid; gap: var(--sp-5); }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.fieldset > legend {
  padding-inline: var(--sp-3);
  font-size: var(--fs-h3);
  font-weight: 700;
}
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-body); font-weight: 700; }
.field__req {
  font-size: var(--fs-note);
  color: #201409;
  background: var(--brass-light);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  font-weight: 700;
}
.field__opt { font-size: var(--fs-note); color: var(--text-note); margin-left: 6px; }
.field__hint { font-size: var(--fs-note); color: var(--text-note); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field input[type="time"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px var(--sp-3);
  background: var(--brown-deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--fs-body);
  color: var(--ivory);
}
.field textarea { min-height: 120px; line-height: 1.7; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--brass-light) 50%), linear-gradient(135deg, var(--brass-light) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--warn); }
.field__error { font-size: var(--fs-note); color: var(--warn); font-weight: 700; }
.field__error:empty { display: none; }

.radio-group, .check-group { display: grid; gap: var(--sp-2); }
.radio-group label, .check-group label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  min-height: 48px;
  padding: 12px var(--sp-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--fs-body);
}
.radio-group input, .check-group input { margin-top: 4px; width: 20px; height: 20px; flex: none; accent-color: var(--brass); }
.radio-group label:has(input:checked), .check-group label:has(input:checked) { border-color: var(--brass); background: rgba(167, 135, 82, 0.12); }

.form-error-summary {
  border: 1px solid var(--warn);
  border-radius: var(--radius);
  background: rgba(216, 154, 106, 0.12);
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
}
.form-error-summary[hidden] { display: none !important; }
.form-error-summary h2 { font-size: var(--fs-h3); color: var(--warn); }
.form-error-summary ul { display: grid; gap: 4px; padding-left: 1.3em; }
.form-error-summary a { color: var(--ivory); }

.steps { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.steps li {
  flex: 1 1 140px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px var(--sp-3);
  font-size: var(--fs-note);
  color: var(--text-note);
  line-height: 1.45;
}
.steps li[aria-current="step"] { border-color: var(--brass); background: rgba(167, 135, 82, 0.14); color: var(--ivory); }
.steps .steps__num { display: block; font-family: var(--font-en); font-weight: 700; letter-spacing: 0.08em; color: var(--brass-light); }

/* 確認パネル・エラーサマリは、フォーカス移動時に固定CTA・kyabel-promoバナーへ
   隠れないよう scroll-margin-bottom を確保する（390pxで実測必須・重大バグ再発防止） */
.confirm-panel {
  border: 1px solid var(--brass); border-radius: var(--radius); padding: var(--sp-5); display: grid; gap: var(--sp-4);
  background: rgba(167, 135, 82, 0.08);
  scroll-margin-bottom: var(--confirm-scroll-pad);
  scroll-margin-top: var(--sp-5);
}
.confirm-panel[hidden] { display: none !important; }

/* ============ breadcrumb ============ */
.breadcrumb { border-bottom: 1px solid var(--line); background: var(--brown-deep); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-block: 12px; font-size: var(--fs-note); }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--text-note); }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--text-muted); min-height: 44px; display: inline-flex; align-items: center; }

/* ============ footer ============ */
.site-footer {
  background: var(--brown-deep);
  border-top: 1px solid var(--line);
  padding-block: var(--sp-7) var(--sp-6);
  margin-top: var(--sp-8);
}
.site-footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: var(--fs-note); letter-spacing: 0.14em; color: var(--brass-light); margin-bottom: var(--sp-3); font-family: var(--font-en); }
.site-footer__info { display: grid; gap: 6px; font-size: var(--fs-body); color: var(--text-muted); }
/* 本文中のリンクもタップ領域44pxを確保する */
.site-footer__info a,
.deflist dd a,
.doc a,
.news-item__body a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brass-light); text-decoration: underline; }
.site-footer__info a { color: var(--ivory); }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-4); }
.site-footer__nav a { min-height: 44px; display: flex; align-items: center; font-size: var(--fs-note); color: var(--text-muted); text-decoration: none; }
.site-footer__nav a:hover { color: var(--ivory); text-decoration: underline; }
.site-footer__notices { margin-top: var(--sp-6); display: grid; gap: var(--sp-2); border-top: 1px solid var(--line); padding-top: var(--sp-5); }
.site-footer__notices li { font-size: var(--fs-note); color: var(--text-note); line-height: 1.7; }
.site-footer__colophon { margin-top: var(--sp-5); display: grid; gap: var(--sp-2); }
.site-footer__colophon p { font-size: var(--fs-note); color: var(--text-note); }

/* ============ 固定CTA（〜1023px） ============ */
.cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.6fr;
  background: rgba(22, 15, 13, 0.97);
  border-top: 1px solid var(--line-strong);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.cta-bar a {
  /* バー全体の高さを --ctabar-h に収めるため、上ボーダー1pxを差し引く（タップ領域は44px以上を維持） */
  min-height: calc(var(--ctabar-h) - 1px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: var(--fs-note);
  font-weight: 700;
  text-decoration: none;
  color: var(--text-muted);
  border-right: 1px solid var(--line);
}
.cta-bar a:last-child { border-right: 0; }
.cta-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cta-bar__primary { background: var(--brass); color: #201409 !important; }
@media (min-width: 1024px) { .cta-bar { display: none; } }

/* ============ noscript ============ */
.noscript-note {
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  background: rgba(167, 135, 82, 0.12);
  padding: var(--sp-4);
  margin-block: var(--sp-4);
  font-size: var(--fs-body);
}
.noscript-note dl { margin-top: var(--sp-2); display: grid; gap: 4px; }
.noscript-note dt { font-size: var(--fs-note); color: var(--text-note); }
.noscript-note dd { margin: 0; }

/* 読み込み中／データ無し表示 */
.empty-note {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: var(--sp-5);
  color: var(--text-muted);
  font-size: var(--fs-body);
}

/* ============ motion（fade-up 1種類のみ） ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .backdrop, .drawer, .btn, .skip-link { transition: none !important; }
  html { scroll-behavior: auto !important; }
}
