/* =====================================================================
   月謝コンパス — 月謝管理SaaS UIモック 共通スタイル
   デザイン方向: 教育/月謝管理の信頼感。落ち着いた藍×ティール主色＋
   温かみのある琥珀アクセント。状態色で支払状況が一目で分かる設計。
   タイポ: 見出し Zen Kaku Gothic New / 本文 BIZ UDPGothic（汎用フォント回避）
   ===================================================================== */

:root {
  /* --- 主色（落ち着いた藍） --- */
  --brand-900: #0f2438;
  --brand-800: #173451;
  --brand-700: #1f456b;
  --brand-600: #2a5a89;
  --brand-500: #3a72a8;
  --brand-100: #dce8f2;
  --brand-050: #eef4f9;

  /* --- アクセント（ティール／琥珀） --- */
  --teal-600: #1d8a8a;
  --teal-100: #d6efee;
  --amber-600: #c47f12;
  --amber-500: #e0961f;
  --amber-100: #faecce;

  /* --- 面・背景・境界・文字 --- */
  --bg:        #f4f6f8;
  --bg-tint:   #eef2f6;
  --surface:   #ffffff;
  --surface-2: #fafbfc;
  --line:      #dde4eb;
  --line-soft: #e9eef3;
  --ink:       #1c2733;
  --ink-soft:  #4d5a68;
  --ink-mute:  #7c8a98;

  /* --- 状態色（支払ステータス） --- */
  --ok:        #2f8f5b;   /* 入金済 */
  --ok-bg:     #e3f3ea;
  --ok-line:   #b7ddc7;
  --warn:      #c47f12;   /* 未収 */
  --warn-bg:   #faecce;
  --warn-line: #eccf94;
  --danger:    #c0392b;   /* 決済失敗 */
  --danger-bg: #fae6e3;
  --danger-line:#eebab2;
  --info:      #2a5a89;
  --info-bg:   #e2ecf5;

  /* --- 形状・影 --- */
  --r-sm: 7px;
  --r-md: 11px;
  --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(16,36,56,.06), 0 1px 3px rgba(16,36,56,.05);
  --shadow-2: 0 4px 14px rgba(16,36,56,.08), 0 1px 4px rgba(16,36,56,.05);
  --shadow-pop: 0 18px 48px rgba(16,36,56,.20);

  --maxw: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "BIZ UDPGothic", "Zen Kaku Gothic New", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, var(--brand-050), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, var(--teal-100), transparent 55%),
    var(--bg);
  line-height: 1.6;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: "Zen Kaku Gothic New", "BIZ UDPGothic", system-ui, sans-serif;
  letter-spacing: .005em;
  line-height: 1.3;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

/* =========================== レイアウト枠 =========================== */
.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

/* --------- サイドバー --------- */
.sidebar {
  background:
    linear-gradient(180deg, var(--brand-900), var(--brand-800) 60%, var(--brand-700));
  color: #cfe0ee;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px 18px;
}
.brand .mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-600), var(--brand-500));
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 4px 10px rgba(0,0,0,.25);
  flex: 0 0 auto;
}
.brand .mark svg { width: 22px; height: 22px; }
.brand .name {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  line-height: 1.2;
}
.brand .name small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: #8eb0cd;
  letter-spacing: .12em;
  margin-top: 2px;
}

.nav-label {
  font-size: 10.5px;
  letter-spacing: .14em;
  color: #6d8eaa;
  padding: 14px 10px 6px;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: #b9cee0;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.nav-item svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: .9; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #eaf2f9; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(29,138,138,.30), rgba(58,114,168,.18));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}
.nav-item.active svg { opacity: 1; }
.nav-item .pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  background: var(--amber-500);
  color: #3b2a06;
  border-radius: 999px;
  padding: 1px 8px;
  min-width: 20px;
  text-align: center;
}
.nav-item.muted { color: #5f7d99; font-size: 13px; }
.nav-item.muted:hover { color: #88a4bf; }

.sidebar .spacer { flex: 1; }

.side-foot {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.side-foot .avatar {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--amber-500), var(--teal-600));
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 14px;
  flex: 0 0 auto;
}
.side-foot .who { font-size: 13px; color: #d9e6f1; line-height: 1.3; }
.side-foot .who small { display: block; font-size: 11px; color: #7d9bb6; }

/* --------- メイン領域 --------- */
.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar .page-title { font-size: 21px; font-weight: 700; }
.topbar .page-sub { font-size: 12.5px; color: var(--ink-mute); margin-top: 1px; }
.topbar .grow { flex: 1; }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink-mute);
  font-size: 13px;
  min-width: 240px;
}
.search svg { width: 16px; height: 16px; }

.content { padding: 28px 32px 56px; max-width: var(--maxw); width: 100%; margin: 0 auto; }

/* =========================== 部品 =========================== */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  border-radius: var(--r-sm);
  padding: 9px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  color: #fff;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-amber {
  background: linear-gradient(180deg, var(--amber-500), var(--amber-600));
  color: #fff;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-amber:hover { box-shadow: var(--shadow-2); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-soft);
}
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-700); }
.btn-danger {
  background: var(--surface);
  border-color: var(--danger-line);
  color: var(--danger);
}
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }

/* --- 当月サマリのカード --- */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--brand-500);
}
.stat.is-ok::before { background: var(--ok); }
.stat.is-warn::before { background: var(--warn); }
.stat.is-amber::before { background: var(--amber-500); }
.stat .k {
  font-size: 11.5px; color: var(--ink-mute); font-weight: 700;
  letter-spacing: .04em; display: flex; align-items: center; gap: 6px;
}
.stat .k svg { width: 15px; height: 15px; }
.stat .v {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 28px; font-weight: 700; margin-top: 6px;
  display: flex; align-items: baseline; gap: 5px;
}
.stat .v .unit { font-size: 13px; color: var(--ink-mute); font-weight: 500; }
.stat .v.money { color: var(--brand-700); }
.stat .v.warn-num { color: var(--warn); }
.stat .delta { font-size: 11.5px; color: var(--ink-mute); margin-top: 3px; }
.stat .delta b.up { color: var(--ok); }

/* --- カード/パネル --- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-head h2 { font-size: 16px; font-weight: 700; }
.panel-head .grow { flex: 1; }
.panel-head .sub { font-size: 12px; color: var(--ink-mute); }

/* --- フィルタチップ --- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  transition: all .14s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip.active { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }
.chip:hover:not(.active) { border-color: var(--brand-500); }
.chip .count { color: var(--ink-mute); font-weight: 700; }
.chip.active .count { color: #bcd4ea; }

/* =========================== テーブル =========================== */
.table-wrap { width: 100%; overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.grid thead th {
  text-align: left;
  font-size: 11px; letter-spacing: .06em;
  color: var(--ink-mute); font-weight: 700;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.grid tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
table.grid tbody tr { transition: background .12s ease; }
table.grid tbody tr:hover { background: var(--brand-050); }
table.grid tbody tr:last-child td { border-bottom: none; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }

.student-cell { display: flex; align-items: center; gap: 11px; }
.student-cell .ava {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: #fff;
  flex: 0 0 auto;
}
.student-cell .nm { font-weight: 700; color: var(--ink); }
.student-cell .nm small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink-mute); }

.course-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-soft);
}
.course-tag .swatch { width: 9px; height: 9px; border-radius: 3px; }

.money-cell { font-weight: 700; font-variant-numeric: tabular-nums; }
.money-cell small { font-weight: 500; color: var(--ink-mute); font-size: 11px; }

/* --- ステータスバッジ --- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge .led { width: 7px; height: 7px; border-radius: 50%; }
.badge.ok     { background: var(--ok-bg);     color: var(--ok);     border-color: var(--ok-line); }
.badge.ok .led { background: var(--ok); }
.badge.warn   { background: var(--warn-bg);   color: var(--warn);   border-color: var(--warn-line); }
.badge.warn .led { background: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.badge.danger .led { background: var(--danger); animation: pulse 1.6s ease-in-out infinite; }
.badge.info   { background: var(--info-bg);   color: var(--info);   border-color: #c2d6e8; }
.badge.info .led { background: var(--info); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,.45); }
  50%      { box-shadow: 0 0 0 4px rgba(192,57,43,0); }
}

.date-cell { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.date-cell.overdue { color: var(--danger); font-weight: 700; }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer;
  color: var(--ink-soft); transition: all .14s ease;
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { border-color: var(--brand-500); color: var(--brand-700); background: var(--brand-050); }

/* =========================== アラート画面 =========================== */
.alert-band {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(120deg, var(--danger-bg), #fdeee6);
  border: 1px solid var(--danger-line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 22px;
}
.alert-band .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--danger); color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}
.alert-band .ico svg { width: 22px; height: 22px; }
.alert-band .txt b { color: var(--danger); }
.alert-band .txt { font-size: 13.5px; color: var(--ink-soft); }
.alert-band .txt strong { color: var(--ink); font-size: 15px; }
.alert-band .grow { flex: 1; }

.alert-list { display: flex; flex-direction: column; gap: 14px; }
.alert-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  transition: box-shadow .15s ease, transform .12s ease;
}
.alert-card:hover { box-shadow: var(--shadow-2); }
.alert-card.is-danger { border-left-color: var(--danger); }
.alert-card.is-warn   { border-left-color: var(--warn); }
.alert-card.is-info   { border-left-color: var(--info); }
.alert-card .who { display: flex; align-items: center; gap: 12px; }
.alert-card .who .ava {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; color: #fff; font-weight: 700; flex: 0 0 auto;
}
.alert-card .who .nm { font-weight: 700; font-size: 15px; }
.alert-card .who .nm small { display: block; font-size: 12px; color: var(--ink-mute); font-weight: 500; }

.alert-body .reason {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink); margin-bottom: 5px; font-weight: 600;
}
.alert-body .reason svg { width: 16px; height: 16px; flex: 0 0 auto; }
.alert-body .meta { font-size: 12.5px; color: var(--ink-mute); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.alert-body .meta b { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.alert-amount { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: 17px; }
.alert-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 150px; }

.retry-meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-mute);
  background: var(--bg-tint); border-radius: 999px; padding: 3px 10px;
}

/* =========================== プラン設定画面 =========================== */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
.field { margin-bottom: 18px; }
.field > label {
  display: block; font-size: 12.5px; font-weight: 700;
  color: var(--ink-soft); margin-bottom: 7px;
}
.field .hint { font-size: 11.5px; color: var(--ink-mute); margin-top: 6px; }
.req { color: var(--danger); margin-left: 3px; }

.input, .select {
  width: 100%;
  font-family: inherit; font-size: 14px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(58,114,168,.16);
}
.input-money { position: relative; }
.input-money .yen {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--ink-mute); font-weight: 700; font-size: 14px; pointer-events: none;
}
.input-money input { padding-left: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.input-suffix {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  color: var(--ink-mute); font-size: 12.5px; pointer-events: none;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.segmented label {
  padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; background: var(--surface); border-right: 1px solid var(--line);
}
.segmented label:last-child { border-right: none; }
.segmented input { display: none; }
.segmented input:checked + span {
  /* handled below */
}
.seg-on { background: var(--brand-700); color: #fff; }

.toggle-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--brand-100);
  background: var(--brand-050);
  border-radius: var(--r-md);
}
.toggle-row .ico {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand-500), var(--teal-600));
  color: #fff; display: grid; place-items: center;
}
.toggle-row .ico svg { width: 20px; height: 20px; }
.toggle-row .lbl { flex: 1; }
.toggle-row .lbl b { font-size: 13.5px; }
.toggle-row .lbl small { display: block; font-size: 11.5px; color: var(--ink-mute); }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { display: none; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--ink-mute); transition: background .18s ease;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3);
  transition: transform .18s ease;
}
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { transform: translateX(20px); }

/* --- プレビューカード --- */
.preview-card {
  background: linear-gradient(165deg, var(--brand-900), var(--brand-700));
  color: #eaf2f9;
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-2);
  position: sticky; top: 92px;
}
.preview-card .pv-label {
  font-size: 10.5px; letter-spacing: .14em; color: #8eb0cd; font-weight: 700;
  display: flex; align-items: center; gap: 6px; margin-bottom: 14px;
}
.preview-card .pv-course {
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
}
.preview-card .pv-course .sw { width: 12px; height: 12px; border-radius: 4px; }
.preview-card .pv-course h3 { font-size: 18px; color: #fff; }
.preview-card .pv-student { font-size: 13px; color: #a9c6dd; margin-bottom: 18px; }
.preview-card .pv-price {
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700;
  font-size: 38px; color: #fff; display: flex; align-items: baseline; gap: 4px;
}
.preview-card .pv-price .yen { font-size: 20px; }
.preview-card .pv-price .per { font-size: 14px; color: #9fc0d9; font-weight: 500; }
.preview-card .pv-divider { height: 1px; background: rgba(255,255,255,.12); margin: 18px 0; }
.pv-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 7px 0; color: #cfe0ee; }
.pv-row svg { width: 16px; height: 16px; color: var(--teal-100); flex: 0 0 auto; }
.pv-row .grow { flex: 1; }
.pv-row b { color: #fff; }
.pv-stripe {
  margin-top: 16px; display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: #9fc0d9;
  background: rgba(255,255,255,.06); border-radius: var(--r-sm); padding: 9px 12px;
}
.pv-stripe svg { width: 16px; height: 16px; }

/* --- ステップヘッダ --- */
.steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.step {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--ink-mute); font-weight: 600;
  padding: 7px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px;
}
.step .n {
  width: 21px; height: 21px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--bg-tint); color: var(--ink-mute);
}
.step.active { border-color: var(--brand-500); color: var(--brand-700); background: var(--brand-050); }
.step.active .n { background: var(--brand-600); color: #fff; }
.step.done .n { background: var(--ok); color: #fff; }

/* --- 汎用 --- */
.section-note {
  font-size: 12px; color: var(--ink-mute);
  display: flex; align-items: center; gap: 7px;
  margin-top: 16px;
}
.section-note svg { width: 15px; height: 15px; }

.kbd {
  font-size: 11px; font-weight: 700; color: var(--ink-mute);
  border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 6px; background: var(--surface);
}

.page-tabs { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.page-tab {
  padding: 10px 16px; font-size: 13.5px; font-weight: 700; color: var(--ink-mute);
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
}
.page-tab.active { color: var(--brand-700); border-bottom-color: var(--brand-600); }

.footnote {
  margin-top: 30px; font-size: 11.5px; color: var(--ink-mute);
  display: flex; align-items: center; gap: 8px; justify-content: center;
}

/* レスポンシブ（簡易） */
@media (max-width: 1080px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .form-layout { grid-template-columns: 1fr; }
  .preview-card { position: static; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
