/* =========================================================
   イベント出店利益シミュレーター スタイル
   方針：白基調／落ち着いたアクセント／数字を大きく／スマホ優先
   ========================================================= */

:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --text: #22282b;
  --text-sub: #5f686d;
  --text-faint: #8a9297;
  --line: #e2e6e3;
  --line-strong: #cfd5d1;

  --accent: #2f6b6a;        /* 落ち着いた青緑 */
  --accent-strong: #24524f;
  --accent-soft: #e8f1f0;

  --profit: #1f7a4d;
  --profit-soft: #e6f4ec;
  --loss: #b3372f;
  --loss-soft: #fbeceb;
  --warn: #8a5a00;
  --warn-soft: #fdf4e1;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 30, 30, .06), 0 2px 8px rgba(20, 30, 30, .04);

  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
          "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-num: "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, var(--font);

  --tabbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  /* スマホ下部タブバーの分だけ余白 */
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(47, 107, 106, .45);
  outline-offset: 2px;
}

/* ---------- ヘッダー ---------- */
.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.app-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.app-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent-strong);
  line-height: 1.35;
}
.app-title__br { display: inline; }

.save-status {
  font-size: 13px;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color .3s;
}
.save-status.is-saved { color: var(--profit); }
.save-status.is-error { color: var(--loss); }

/* ---------- タブ（スマホ：画面下部に固定） ---------- */
.tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--line);
  z-index: 20;
}
.tab {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-faint);
  padding: 6px 2px;
  min-width: 0;
}
.tab__icon { font-size: 18px; line-height: 1; }
.tab__label { font-size: 12px; line-height: 1.3; white-space: nowrap; }
.tab.is-active { color: var(--accent); font-weight: 700; }
.tab__full { display: none; }
.tab__short { display: inline; }

/* ---------- メイン ---------- */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}
.screen-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.screen-lead {
  color: var(--text-sub);
  font-size: 15px;
  margin-bottom: 20px;
}

/* ---------- パネル ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  margin-bottom: 16px;
}
.panel__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.panel__title--spaced {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.panel__desc {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 14px;
}

/* ---------- はじめてガイド ---------- */
.guide {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 15px;
}
.guide summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-strong);
}
.guide__steps { margin: 10px 0 6px; padding-left: 1.4em; }
.guide__steps li { margin-bottom: 4px; }
.guide__note { font-size: 13px; color: var(--text-sub); }

/* ---------- ダッシュボード ---------- */
.event-summary { margin-bottom: 14px; }
.event-summary__name { font-size: 19px; font-weight: 700; }
.event-summary__date { font-size: 14px; color: var(--text-sub); }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}
.hero-card__label { font-size: 15px; font-weight: 700; color: var(--text-sub); }
.hero-card__value {
  font-family: var(--font-num);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--accent-strong);
  margin: 4px 0;
}
.hero-card__value .unit { font-size: 22px; margin-left: 4px; font-family: var(--font); }
.hero-card__sub { font-size: 14px; color: var(--text-sub); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  min-width: 0;
}
.kpi:first-child { grid-column: 1 / -1; }   /* 予想利益は横いっぱい */
.kpi__label {
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 4px;
}
.kpi__value {
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.kpi:first-child .kpi__value { font-size: 36px; }

.is-profit { color: var(--profit); }
.is-loss { color: var(--loss); }

.badge, .kpi__badge:not(:empty) {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  margin-top: 4px;
}
.badge--profit { background: var(--profit-soft); color: var(--profit); }
.badge--loss { background: var(--loss-soft); color: var(--loss); }
.badge--even { background: var(--accent-soft); color: var(--accent-strong); }

/* 案内メッセージ（入力不足・計算不可） */
.notice {
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 15px;
  margin-bottom: 16px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.notice--warn { background: var(--warn-soft); color: var(--warn); }
.notice--error { background: var(--loss-soft); color: var(--loss); }
.notice strong { display: block; margin-bottom: 2px; }
.notice .btn { margin-top: 10px; }

/* 用語説明（?マーク） */
.term {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--line);
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  flex-shrink: 0;
}
.term:hover::after, .term:focus::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  z-index: 30;
  white-space: normal;
}

/* ---------- フォーム ---------- */
.field { margin-bottom: 18px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.field__help { font-size: 13px; color: var(--text-sub); margin-bottom: 6px; }
.field__error { font-size: 13px; color: var(--loss); margin-top: 4px; }
.field__error:empty { display: none; }
.field__warn { font-size: 13px; color: var(--warn); margin-top: 4px; }
.field__warn:empty { display: none; }

.req, .opt {
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 1.6;
}
.req { background: var(--loss-soft); color: var(--loss); }
.opt { background: var(--bg); color: var(--text-faint); border: 1px solid var(--line); }

.input {
  width: 100%;
  min-height: 48px;          /* スマホで押しやすい高さ */
  padding: 10px 12px;
  font-size: 16px;           /* iOSで勝手にズームされないよう16px以上 */
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.input.is-invalid { border-color: var(--loss); background: var(--loss-soft); }
.input--num { text-align: right; font-variant-numeric: tabular-nums; }
.input--date { max-width: 220px; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap--short { max-width: 180px; }
.input-wrap .input { padding-right: 40px; }
.input-suffix {
  position: absolute;
  right: 12px;
  color: var(--text-sub);
  pointer-events: none;
  font-size: 15px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.total-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}
.total-bar__label { font-weight: 700; color: var(--accent-strong); }
.total-bar__value {
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-strong);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--bg); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { border-color: var(--accent); color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--danger { border-color: #e3aeaa; color: var(--loss); }
.btn--danger:hover { background: var(--loss-soft); }
.btn--small { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.btn--block { width: 100%; min-height: 52px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.btn-row:last-child { margin-bottom: 0; }

/* ---------- 商品カード ---------- */
.product-list { display: grid; gap: 16px; margin-bottom: 16px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.product-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.product-card__no { font-size: 13px; font-weight: 700; color: var(--accent); }
.product-card__section {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  margin: 16px 0 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.product-card__result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.mini { min-width: 0; }
.mini__label { font-size: 12px; color: var(--text-sub); display: flex; align-items: center; gap: 4px; }
.mini__value {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.empty-note {
  text-align: center;
  color: var(--text-sub);
  padding: 24px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

/* ---------- シミュレーション表 ---------- */
.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.result-table th, .result-table td {
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}
.result-table td.num, .result-table th.num {
  text-align: right;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.result-table tr.is-total td, .result-table tr.is-total th {
  font-weight: 700;
  border-bottom: 2px solid var(--text);
  font-size: 17px;
}
.result-table .sub { display: block; font-size: 12px; color: var(--text-sub); font-weight: 400; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.table-scroll .result-table { min-width: 520px; }

/* ---------- フッター ---------- */
.app-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  padding: 0 16px 24px;
}

/* ---------- トースト（保存・エラー通知） ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 40;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast--error { background: var(--loss); }

/* =========================================================
   PC・タブレット（768px以上）
   ========================================================= */
@media (min-width: 768px) {
  body { padding-bottom: 0; }

  .app-header__inner { padding: 14px 24px 10px; }
  .app-title { font-size: 20px; }
  .app-title__br { margin-left: .3em; }

  .tabs {
    position: static;
    height: auto;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 4px;
    border-top: 0;
    background: none;
  }
  .tab {
    flex-direction: row;
    gap: 6px;
    padding: 10px 16px 12px;
    border-bottom: 3px solid transparent;
    color: var(--text-sub);
  }
  .tab__icon { font-size: 15px; }
  .tab__label { font-size: 15px; }
  .tab__full { display: inline; }
  .tab__short { display: none; }
  .tab:hover { color: var(--accent); }
  .tab.is-active { border-bottom-color: var(--accent); }

  .main { padding: 32px 24px 40px; }
  .screen-title { font-size: 26px; }
  .panel { padding: 24px; }

  .hero-card { padding: 24px 28px; }
  .hero-card__value { font-size: 72px; }

  .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 16px; }
  .kpi:first-child .kpi__value { font-size: 44px; }

  .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }

  .product-card { padding: 20px 24px; }
  .product-card__result { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .toast { bottom: 24px; }
}

/* 小さいスマホ（360px未満） */
@media (max-width: 359px) {
  .field-grid { grid-template-columns: 1fr; }
  .hero-card__value { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* 2列グリッド内で、説明文の長さが違っても入力欄の位置をそろえる */
.field-grid .field { display: flex; flex-direction: column; }
.field-grid .field .input-wrap { margin-top: auto; }
.field-grid .field:last-child { margin-bottom: 18px; }

/* ---------- STEP 5：計算結果表示 ---------- */
.panel__desc--after { margin: 14px 0 0; }
.result-table .sub.is-warn { color: var(--warn); }
.table-scroll .result-table--wide { min-width: 760px; }
.result-table thead th { font-size: 13px; color: var(--text-sub); font-weight: 700; border-bottom: 2px solid var(--line-strong); }
.result-table .badge { margin: 0 0 0 6px; vertical-align: middle; }
.notice .btn { margin-top: 10px; }
.product-card > .field__warn { margin-top: 10px; font-weight: 700; }
.note-line { display: block; }
.note-line + .note-line { margin-top: 2px; }

/* ---------- STEP 7 の修正 ---------- */
/* スマホ：用語説明は画面下部に帯で表示（左右にはみ出さない） */
@media (max-width: 767px) {
  .term:hover::after, .term:focus::after {
    position: fixed;
    left: 16px;
    right: 16px;
    top: auto;
    bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom, 0px));
    transform: none;
    width: auto;
    max-width: none;
    font-size: 14px;
    padding: 12px 14px;
  }
}
/* 狭いスマホ：タイトルを1行に収め、保存状態はその下へ */
@media (max-width: 413px) {
  .app-header__inner { flex-wrap: wrap; row-gap: 0; padding-top: 10px; padding-bottom: 8px; }
  .app-title { font-size: 15px; white-space: nowrap; }
  .save-status { font-size: 12px; }
}

/* ---------- 改善：黒字化の判定（予想販売数・在庫） ---------- */
.checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.6;
}
.check__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  margin-top: 1px;
}
.check__body { min-width: 0; }
.check__title { display: block; font-weight: 700; }
.check__text { display: block; color: var(--text-sub); overflow-wrap: anywhere; }
.check--ok { background: var(--profit-soft); }
.check--ok .check__icon { background: var(--profit); }
.check--ok .check__title { color: var(--profit); }
.check--ng { background: var(--loss-soft); }
.check--ng .check__icon { background: var(--loss); }
.check--ng .check__title { color: var(--loss); }
.check--unknown { background: var(--warn-soft); }
.check--unknown .check__icon { background: var(--warn); }
.check--unknown .check__title { color: var(--warn); }

/* ---------- 改善：実績入力の状態 ---------- */
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.actual-status { margin-bottom: 14px; }
.actual-status__line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: 14px; margin-bottom: 8px;
}
.actual-status__line .badge { margin: 0; font-size: 14px; padding: 3px 12px; }
.actual-status .notice { margin-bottom: 0; font-size: 14px; }
.inline-strong { font-weight: 700; color: var(--warn); }
#products-actual-status { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 2px; margin-bottom: 16px; }

/* ---------- 公開版：サンプル表示・注意書き・試用版表示 ---------- */
.sample-banner {
  background: var(--warn-soft);
  border: 1px solid #ecd9a8;
  border-radius: var(--radius);
  padding: 12px 16px 14px;
  margin-bottom: 20px;
}
.sample-banner__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--warn);
  font-size: 16px;
}
.sample-banner__tag {
  background: var(--warn);
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  padding: 1px 8px;
  line-height: 1.7;
  flex-shrink: 0;
}
.sample-banner__text { font-size: 14px; color: var(--text-sub); margin: 4px 0 10px; }

.app-footer__edition { margin-bottom: 10px; }
.edition-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid #cfe0de;
  border-radius: 999px;
  padding: 2px 14px;
}
.app-footer__notes {
  max-width: 640px;
  margin: 0 auto 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
  text-align: left;
}
.app-footer__notes p + p { margin-top: 6px; }

/* ---------- ご意見・ご感想（Googleフォームへのリンク） ---------- */
.feedback-panel { border-top: 4px solid var(--accent); }
.feedback-btn { text-decoration: none; gap: 8px; }
.feedback-btn:hover { color: #fff; }
.feedback-btn__ext { font-size: 15px; line-height: 1; }
.feedback-panel__note {
  text-align: center;
  font-size: 14px;
  color: var(--accent-strong);
  margin-top: 10px;
}
.feedback-panel__sub {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 2px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
@media (min-width: 768px) {
  .feedback-btn { width: auto; min-width: 320px; margin: 0 auto; display: flex; }
}

/* ---------- アクセス解析：説明・設定・同意バナー ---------- */
.analytics-info {
  max-width: 640px;
  margin: 12px auto 0;
  text-align: left;
  font-size: 13px;
  color: var(--text-sub);
}
.analytics-info summary { cursor: pointer; text-align: center; color: var(--accent-strong); font-weight: 700; padding: 6px 0; }
.analytics-info__body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 6px;
  line-height: 1.7;
}
.analytics-info dl { margin: 10px 0 0; }
.analytics-info dt { font-weight: 700; color: var(--text); margin-top: 8px; }
.analytics-info dd { margin: 0; }
.analytics-info a, .consent-banner a { color: var(--accent); }

.link-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 4px;
  min-height: 40px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.consent-settings { margin-top: 4px; }

.consent-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--tabbar-h) + 8px + env(safe-area-inset-bottom, 0px));
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(20, 30, 30, .18);
  padding: 14px 16px 8px;
  z-index: 35;
  max-height: calc(100vh - var(--tabbar-h) - 90px);
  overflow-y: auto;
}
.consent-banner__title { font-weight: 700; font-size: 15px; color: var(--accent-strong); margin-bottom: 4px; }
.consent-banner__text { font-size: 13px; line-height: 1.7; color: var(--text-sub); }
.consent-banner__current { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.consent-banner__current:empty { display: none; }
.consent-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
/* 「同意する」「同意しない」は同じ見た目・同じ大きさ（どちらかに誘導しない） */
.consent-btn {
  min-height: 48px;
  border: 2px solid var(--accent);
  color: var(--accent-strong);
  background: var(--surface);
  font-weight: 700;
}
.consent-btn:hover { background: var(--accent-soft); }
.consent-banner .link-btn { display: block; margin: 2px auto 0; }
/* バナー表示中は、ページの最後までスクロールできるよう余白を足す */
body.has-consent-banner { padding-bottom: calc(var(--tabbar-h) + 260px + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 768px) {
  .consent-banner { bottom: 16px; }
  body.has-consent-banner { padding-bottom: 220px; }
}
