/* =========================================================
   SITE 113 — 共通コンポーネント（暗色・輪郭明確なカード区切り）
   header / drawer / breadcrumb / card / table / tabs /
   modal / lightbox / form / footer / cta-bar / placeholder
   ========================================================= */

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

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -200px;
  z-index: 200;
  background: var(--c-accent);
  color: var(--c-ink-onaccent);
  padding: 12px 20px;
  border-radius: var(--r);
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--sp-4); }

.section { padding-block: var(--sp-8); }
.page-head + .section { padding-block: var(--sp-5) var(--sp-8); }
.section--band { background: var(--c-bg-band); }
.section--alt { background: var(--c-bg-alt); }

.page-head { padding-block: var(--sp-7) var(--sp-5); background: var(--c-bg-alt); border-bottom: 1px solid var(--c-line); }
.page-head__title { font-size: var(--fs-h1); }
.page-head__lead {
  margin-top: var(--sp-4);
  max-width: 46rem;
  color: var(--c-ink-muted);
  font-size: var(--fs-body-lg);
}

.sub-title { font-size: var(--fs-h3); margin: var(--sp-7) 0 var(--sp-4); }
.lead { font-size: var(--fs-body-lg); color: var(--c-ink-muted); max-width: 46rem; }

/* ---------- 見出し帯（sechead） ---------- */
.sechead { max-width: 50rem; margin-bottom: var(--sp-5); }
.sechead__eyebrow {
  display: block;
  font-family: var(--f-display);
  font-size: var(--fs-deco);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-accent2-strong);
  margin-bottom: var(--sp-1);
}
.sechead__title { font-size: var(--fs-h2); }
.sechead__lead { margin-top: var(--sp-3); color: var(--c-ink-muted); font-size: var(--fs-body); }
.sechead__link {
  display: inline-flex;
  margin-top: var(--sp-3);
  min-height: var(--tap);
  align-items: center;
  color: var(--c-accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  padding: 10px 20px;
  border-radius: var(--r);
  font-family: var(--f-display);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--primary { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn--primary:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); }
.btn--accent { background: var(--c-accent2); color: var(--c-ink-onaccent); border-color: var(--c-accent2); }
.btn--accent:hover { background: var(--c-accent2-strong); border-color: var(--c-accent2-strong); }
.btn--navy { background: var(--c-surface-2); color: var(--c-ink); border-color: var(--c-line-strong); }
.btn--navy:hover { background: var(--c-surface); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line-strong); }
.btn--ghost:hover { background: var(--c-surface); border-color: var(--c-accent-strong); }
.btn--sm { min-height: var(--tap); padding: 8px 14px; font-size: var(--fs-label); }
.btn--lg { min-height: 52px; padding: 14px 28px; font-size: var(--fs-body-lg); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.form__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }

/* ---------- プレースホルダー画像枠 ---------- */
.ph {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--c-black-2);
  border: 1px solid var(--c-line);
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--3x2 { aspect-ratio: 3 / 2; }
.ph--3x4 { aspect-ratio: 3 / 4; }
.ph--1x1 { aspect-ratio: 1 / 1; }

/* ---------- ヘッダー（黒い通常ヘッダー） ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(18, 19, 25, 0.94);
  border-bottom: 1px solid var(--c-line);
  backdrop-filter: saturate(1.1) blur(6px);
}
.hdr__in {
  max-width: var(--w-container);
  margin-inline: auto;
  padding: 10px var(--gutter);
  min-height: var(--h-header);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.hdr__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
  min-height: var(--tap);
  justify-content: center;
  padding: 4px 0;
}
.hdr__cta-short { display: none; }
.hdr__brand-name {
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-ink);
  line-height: 1.2;
}
.hdr__brand-sub {
  font-size: var(--fs-note);
  color: var(--c-ink-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.3;
}
.hdr__nav { margin-left: auto; }
.hdr__nav ul { display: flex; align-items: center; gap: 2px; }
.hdr__nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 8px 12px;
  border-radius: var(--r);
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 600;
  text-decoration: none;
  color: var(--c-ink-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.hdr__nav a:hover { background: var(--c-surface); color: var(--c-ink); }
.hdr__nav a[aria-current] {
  background: var(--c-surface-2);
  color: var(--c-ink);
  box-shadow: inset 0 -3px 0 var(--c-accent2);
}
.hdr__nav a[aria-current="true"] { box-shadow: inset 0 -3px 0 var(--c-line-strong); }
.hdr__acts { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.hdr__tel {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  padding: 4px 6px;
  min-height: var(--tap);
  justify-content: center;
}
.hdr__tel-label { font-size: var(--fs-note); color: var(--c-ink-muted); line-height: 1.3; }
.hdr__tel-num {
  font-family: var(--f-display);
  font-size: var(--fs-body-lg);
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.hdr__menu {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 8px 12px;
  border: 2px solid var(--c-line-strong);
  border-radius: var(--r);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-label);
  color: var(--c-ink);
  background: var(--c-surface);
}
.hdr__menu-bars { display: inline-block; width: 18px; height: 12px; position: relative; }
.hdr__menu-bars::before,
.hdr__menu-bars::after,
.hdr__menu-bars span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
}
.hdr__menu-bars::before { top: 0; }
.hdr__menu-bars span { top: 5px; }
.hdr__menu-bars::after { bottom: 0; }

/* ---------- ドロワー ---------- */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); }
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  height: 100dvh;
  width: min(92vw, 400px);
  background: var(--c-surface);
  border-left: 1px solid var(--c-line);
  box-shadow: var(--sh-2);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--sp-4) var(--sp-4) calc(var(--sp-7) + env(safe-area-inset-bottom));
}
.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
}
.drawer__title { font-size: var(--fs-h4); font-family: var(--f-display); font-weight: 700; }
.drawer__close {
  min-width: var(--tap);
  min-height: var(--tap);
  border: 2px solid var(--c-line-strong);
  border-radius: var(--r);
  font-size: var(--fs-label);
  font-weight: 700;
  font-family: var(--f-display);
  padding: 0 12px;
  background: var(--c-surface-2);
  color: var(--c-ink);
}
.drawer__nav { padding-block: var(--sp-3); }
.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 52px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-line);
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--c-ink);
}
.drawer__nav a::after { content: "→"; color: var(--c-accent2-strong); }
.drawer__nav a[aria-current] { background: var(--c-bg-band); color: var(--c-ink); }
.drawer__info {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: var(--c-bg-band);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  font-size: var(--fs-note);
  color: var(--c-ink-muted);
}
.drawer__info dt { font-weight: 700; color: var(--c-ink); margin-top: var(--sp-2); }
.drawer__info dt:first-child { margin-top: 0; }
.drawer__actions { margin-top: var(--sp-4); display: grid; gap: var(--sp-2); }

/* ---------- パンくず ---------- */
.crumbs { background: var(--c-bg-alt); border-bottom: 1px solid var(--c-line); }
.crumbs ol {
  max-width: var(--w-container);
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-size: var(--fs-note);
  color: var(--c-ink-muted);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--c-line-strong); }
.crumbs a, .crumbs span { display: inline-flex; align-items: center; min-height: var(--tap); }
.crumbs a { color: var(--c-ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--c-accent-strong); }
.crumbs [aria-current="page"] { color: var(--c-ink); font-weight: 700; }

/* ---------- カード基本（輪郭を明確にする） ---------- */
.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- タグ・バッジ・ステータス点 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r);
  background: var(--c-surface-2);
  border: 1px solid var(--c-line-strong);
  color: var(--c-ink);
  font-size: var(--fs-note);
  font-weight: 500;
  line-height: 1.6;
}
.tag--accent { background: rgba(122, 99, 216, 0.28); border-color: var(--c-accent); color: var(--c-ink); }
.tag--ok { background: var(--c-ok-bg); border-color: var(--c-ok-line); }
.tag--warn { background: var(--c-warn-bg); border-color: var(--c-warn-line); }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--c-line-strong); flex: none; }
.dot--on { background: var(--c-accent2); box-shadow: 0 0 0 3px rgba(223, 94, 155, 0.25); }

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-surface); }
.table { font-size: var(--fs-body); min-width: 520px; }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--c-line); vertical-align: top; line-height: 1.5; }
.table thead th { background: var(--c-surface-2); font-weight: 700; white-space: nowrap; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }

/* ---------- タブ ---------- */
.tabs { display: flex; flex-direction: column; gap: var(--sp-4); }
.tablist { display: flex; gap: var(--sp-2); overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.tablist::-webkit-scrollbar { height: 6px; }
.tablist::-webkit-scrollbar-thumb { background: var(--c-line-strong); border-radius: 3px; }
.tab {
  flex: none;
  min-height: var(--tap);
  padding: 8px 16px;
  border: 2px solid var(--c-line-strong);
  border-radius: var(--r);
  background: var(--c-surface);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-label);
  color: var(--c-ink);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  white-space: nowrap;
}
.tab small { font-size: var(--fs-note); font-weight: 500; color: var(--c-ink-muted); }
.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 { border-style: dashed; opacity: 0.7; }

/* ---------- 絞り込み ---------- */
.filter { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; padding: var(--sp-3) 0; }
.filter__label { font-size: var(--fs-label); font-weight: 700; margin-right: var(--sp-2); }
.chip {
  min-height: var(--tap);
  padding: 8px 16px;
  border: 2px solid var(--c-line-strong);
  border-radius: var(--r);
  background: var(--c-surface);
  font-size: var(--fs-label);
  font-weight: 600;
  font-family: var(--f-display);
  color: var(--c-ink);
}
.chip[aria-pressed="true"] { background: var(--c-accent2); border-color: var(--c-accent2); color: var(--c-ink-onaccent); }
.filter__result { width: 100%; font-size: var(--fs-note); color: var(--c-ink-muted); }

/* ---------- アコーディオン ---------- */
.acc { border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-surface); 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);
  min-height: 56px;
  padding: 14px 16px;
  text-align: left;
  font-family: var(--f-display);
  font-size: var(--fs-body-lg);
  font-weight: 600;
  color: var(--c-ink);
}
.acc__btn:hover { background: var(--c-surface-2); }
.acc__mark { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--c-surface-2); position: relative; }
.acc__mark::before, .acc__mark::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--c-ink); transform: translate(-50%, -50%); }
.acc__mark::before { width: 12px; height: 2px; }
.acc__mark::after { width: 2px; height: 12px; transition: opacity 0.2s ease; }
.acc__btn[aria-expanded="true"] .acc__mark::after { opacity: 0; }
.acc__panel { padding: 0 16px 16px; }
.acc__panel > * + * { margin-top: var(--sp-3); }

/* ---------- 注意・案内ボックス ---------- */
.callout { border: 1px solid var(--c-line); background: var(--c-bg-band); border-radius: var(--r); padding: var(--sp-5); }
.callout h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }

.note { font-size: var(--fs-note); color: var(--c-ink-muted); line-height: 1.7; }
.note + .note { margin-top: var(--sp-2); }
.note-list { display: grid; gap: var(--sp-2); }
.note-list li { font-size: var(--fs-note); color: var(--c-ink-muted); line-height: 1.7; padding-left: 1.2em; position: relative; }
.note-list li::before { content: "・"; position: absolute; left: 0; }

/* ---------- モーダル ---------- */
.modal { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; padding: var(--sp-4); }
.modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.modal__panel {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  box-shadow: var(--sh-2);
  width: min(100%, 560px);
  max-height: min(86vh, 720px);
  overflow-y: auto;
  padding: var(--sp-5);
}
.modal__title { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.modal__body > * + * { margin-top: var(--sp-3); }
.modal__foot { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: var(--tap);
  min-height: var(--tap);
  border-radius: var(--r);
  border: 2px solid var(--c-line-strong);
  background: var(--c-surface-2);
  color: var(--c-ink);
  font-size: var(--fs-body-lg);
  font-weight: 700;
}

/* ---------- ライトボックス ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; }
.lightbox__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.88); }
.lightbox__panel { position: relative; width: min(94vw, 980px); max-height: 92vh; display: flex; flex-direction: column; gap: var(--sp-3); }
.lightbox__stage {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  padding: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 74vh;
  overflow: hidden;
}
.lightbox__stage img { max-height: 68vh; width: auto; object-fit: contain; border-radius: 6px; }
.lightbox__cap {
  color: var(--c-ink);
  background: rgba(30, 32, 41, 0.92);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  padding: 8px 14px;
  margin-inline: auto;
  max-width: 46rem;
  font-size: var(--fs-note);
  text-align: center;
  line-height: 1.6;
}
.lightbox__ctrl { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); }
.lightbox__btn {
  min-width: 48px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--r);
  background: var(--c-surface);
  color: var(--c-ink);
  border: 2px solid var(--c-line-strong);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-label);
}
.lightbox__btn:hover { background: var(--c-surface-2); }
.lightbox__count { color: var(--c-ink); font-size: var(--fs-label); font-variant-numeric: tabular-nums; }

/* ---------- フォーム ---------- */
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: 8px; }
.field__label { font-size: var(--fs-label); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.field__req { font-size: var(--fs-note); background: var(--c-accent2); color: var(--c-ink-onaccent); border-radius: 4px; padding: 1px 8px; font-weight: 700; }
.field__opt { font-size: var(--fs-note); background: var(--c-surface); border: 1px solid var(--c-line-strong); color: var(--c-ink-muted); border-radius: 4px; padding: 1px 8px; }
.field__hint { font-size: var(--fs-note); color: var(--c-ink-muted); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 2px solid var(--c-line-strong);
  border-radius: var(--r);
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: var(--fs-body);
  line-height: 1.5;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--c-focus); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--c-error); background: var(--c-error-bg); }
.field__error { font-size: var(--fs-note); color: var(--c-error); font-weight: 700; display: flex; gap: 6px; align-items: flex-start; }
.field__error::before { content: "！"; flex: none; }

.choice { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.choice label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 8px 14px;
  border: 2px solid var(--c-line-strong);
  border-radius: var(--r);
  background: var(--c-surface);
  font-size: var(--fs-label);
  cursor: pointer;
}
.choice input { width: 20px; height: 20px; accent-color: var(--c-accent2); }
.choice label:has(input:checked) { border-color: var(--c-accent2); background: var(--c-bg-band); }

.form__summary {
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  background: var(--c-bg-band);
  padding: var(--sp-4);
  scroll-margin-bottom: 190px; /* 固定CTA・バナーとの重なり防止（390pxで実測確認） */
}
.form__summary h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-3); }
.form__summary dl { display: grid; gap: 8px; font-size: var(--fs-body); }
.form__summary div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--sp-3); }
.form__summary dt { font-weight: 700; }
.form__summary dd { color: var(--c-ink-muted); word-break: break-word; }

.form__errorbox {
  border: 2px solid var(--c-error);
  background: var(--c-error-bg);
  border-radius: var(--r);
  padding: var(--sp-4);
  font-size: var(--fs-body);
  scroll-margin-bottom: 190px;
}
.form__errorbox h3 { font-size: var(--fs-h4); color: var(--c-error); margin-bottom: var(--sp-2); }
.form__errorbox ul { display: grid; gap: 6px; }
.form__errorbox a { color: var(--c-error); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- フッター ---------- */
.ftr { background: #0c0d12; color: var(--c-ink); margin-top: var(--sp-9); padding-block: var(--sp-7) var(--sp-5); border-top: 1px solid var(--c-line); }
.ftr a { color: var(--c-ink); }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
.ftr__brand-name { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.06em; }
.ftr__brand-sub { font-size: var(--fs-note); color: var(--c-ink-muted); margin-top: 4px; }
.ftr__info { margin-top: var(--sp-4); display: grid; gap: 8px; font-size: var(--fs-body); }
.ftr__info dt { font-size: var(--fs-note); color: var(--c-ink-muted); }
.ftr__info dd { font-weight: 500; }
.ftr__tel { font-family: var(--f-display); font-size: 1.375rem; font-weight: 700; text-decoration: none; letter-spacing: 0.02em; display: inline-block; min-height: var(--tap); color: var(--c-accent2-strong); }
.ftr__navtitle { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-body-lg); margin-bottom: var(--sp-3); }
.ftr__nav a { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--fs-body); text-decoration: underline; text-underline-offset: 3px; }
.ftr__notices { margin-top: var(--sp-6); display: grid; gap: var(--sp-2); }
.ftr__notice { font-size: var(--fs-note); color: var(--c-ink-muted); line-height: 1.7; padding-left: 1.2em; position: relative; }
.ftr__notice::before { content: "・"; position: absolute; left: 0; }
.ftr__bottom {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-note);
  color: var(--c-ink-muted);
}
.ftr__demo { display: inline-block; border: 1px solid var(--c-line-strong); border-radius: var(--r); padding: 6px 12px; font-size: var(--fs-note); color: var(--c-ink); }

/* ---------- モバイル固定CTA ---------- */
.ctabar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line-strong);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
  padding-bottom: env(safe-area-inset-bottom);
}
.ctabar__list { display: flex; align-items: stretch; }
.ctabar__item { flex: 1 1 0; display: flex; }
.ctabar__item--wide { flex: 1.35 1 0; }
.ctabar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 6px 4px;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-note);
  color: var(--c-ink);
  border-right: 1px solid var(--c-line);
  line-height: 1.3;
}
.ctabar__item:last-child a { border-right: 0; }
.ctabar__item--primary a { background: var(--c-accent2); color: var(--c-ink-onaccent); }
.ctabar a[aria-current] { background: var(--c-surface-2); }
.ctabar__icon { width: 22px; height: 22px; flex: none; }
.ctabar__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- noscript フォールバック ---------- */
.noscript-box {
  border: 2px solid var(--c-line-strong);
  background: var(--c-bg-alt);
  border-radius: var(--r);
  padding: var(--sp-4);
  margin: var(--sp-4) auto;
  max-width: var(--w-container);
  font-size: var(--fs-body);
}
.noscript-box h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.noscript-box dl { display: grid; gap: 6px; margin-block: var(--sp-3); }
.noscript-box dt { font-weight: 700; }
.noscript-box ul { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: var(--sp-2); }
.noscript-box a { color: var(--c-accent-strong); text-decoration: underline; text-underline-offset: 3px; min-height: var(--tap); display: inline-flex; align-items: center; }

/* ---------- 読み込み中・空状態 ---------- */
.empty {
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  color: var(--c-ink-muted);
  font-size: var(--fs-body);
  background: var(--c-bg-alt);
}
.empty__title { font-family: var(--f-display); font-weight: 700; color: var(--c-ink); font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.empty .btn { margin-top: var(--sp-4); }

/* ---------- モーション（1種類: fade-up / reduce で完全停止） ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- ページ上部へ ---------- */
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 8px 16px;
  border-radius: var(--r);
  border: 2px solid var(--c-line-strong);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-label);
  text-decoration: none;
  color: var(--c-ink);
}
.to-top:hover { background: rgba(255, 255, 255, 0.06); }

/* ---------- 可視性ユーティリティ ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
body.is-locked { overflow: hidden; }
