/* ============================================================
   健康管理アプリ — スタイル
   カラートークンは dataviz リファレンスパレット準拠（ライト/ダーク両対応）
   ============================================================ */

:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --text-1: #0b0b0b;
  --text-2: #52514e;
  --text-3: #71706a;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --series-raw: #2a78d6;   /* 実測値: categorical slot 1 (blue) */
  --series-ma: #008300;    /* 7日平均: categorical slot 2 (green) */
  --goal: #898781;         /* 目標参照線: muted */
  --goal-band: rgba(42, 120, 214, 0.10);
  --good: #006300;         /* 減少（良い方向）テキスト */
  --bad: #d03b3b;          /* 増加（注意方向）テキスト */
  --accent: #2a78d6;
  --accent-ink: #ffffff;
  --wash: rgba(11, 11, 11, 0.045);
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.05), 0 4px 16px rgba(11, 11, 11, 0.05);
  --backdrop: rgba(11, 11, 11, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --text-1: #ffffff;
    --text-2: #c3c2b7;
    --text-3: #9b9992;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --series-raw: #3987e5;
    --series-ma: #2f9e44;
    --goal: #898781;
    --goal-band: rgba(57, 135, 229, 0.12);
    --good: #0ca30c;
    --bad: #e66767;
    --accent: #3987e5;
    --accent-ink: #ffffff;
    --wash: rgba(255, 255, 255, 0.06);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    --backdrop: rgba(0, 0, 0, 0.55);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: system-ui, -apple-system, "Hiragino Sans", "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text-1);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

.hidden { display: none !important; }

/* ---------- ヘッダー ---------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 12px) 20px 12px;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.app-title { font-size: 17px; font-weight: 700; letter-spacing: 0.02em; }

.header-actions { display: flex; gap: 4px; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: none; border-radius: 12px;
  background: transparent; color: var(--text-2);
  cursor: pointer;
}
.icon-btn:active { background: var(--wash); }
.icon-btn svg { width: 21px; height: 21px; }

/* ---------- メイン ---------- */

.app-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px calc(env(safe-area-inset-bottom) + 96px);
  display: flex; flex-direction: column; gap: 14px;
}
#dashboard { display: flex; flex-direction: column; gap: 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h2 { font-size: 14px; font-weight: 650; color: var(--text-2); }

/* ---------- 初期設定 ---------- */

.onboarding h2 { font-size: 18px; color: var(--text-1); margin-bottom: 8px; }
.onboarding p { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }

/* ---------- ヒーロー ---------- */

.hero-top { display: flex; justify-content: space-between; align-items: baseline; }
.hero-label { font-size: 13px; font-weight: 650; color: var(--text-2); }
.hero-date { font-size: 12px; color: var(--text-3); }

.hero-row { display: flex; align-items: baseline; gap: 12px; margin-top: 2px; }
.hero-value { font-size: 52px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.hero-unit { font-size: 20px; font-weight: 600; color: var(--text-3); margin-left: 3px; }

.delta { font-size: 14px; font-weight: 650; }
.delta.small { font-size: 12px; }
.delta.down { color: var(--good); }
.delta.up { color: var(--bad); }
.delta.flat { color: var(--text-3); }

.hero-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.trend-chip {
  font-size: 12px; font-weight: 650;
  padding: 3px 10px; border-radius: 999px;
  background: var(--wash); color: var(--text-2);
}
.trend-chip.down { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }
.trend-chip.up { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.hero-note { font-size: 12px; color: var(--text-3); }

/* ---------- タイル ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow);
}
.tile-label { font-size: 11px; font-weight: 650; color: var(--text-3); }
.tile-value { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.tile-unit { font-size: 12px; font-weight: 600; color: var(--text-3); margin-left: 2px; }
.tile-sub { font-size: 11px; color: var(--text-3); }

/* ---------- 目標カード ---------- */

.goal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.goal-target { font-weight: 700; color: var(--text-1); margin-left: 4px; }
.goal-days { font-size: 12px; color: var(--text-3); white-space: nowrap; }

.meter {
  height: 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  overflow: hidden;
}
.meter-fill {
  height: 100%; width: 0%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.goal-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 10px; font-size: 13px; font-weight: 650;
}
.goal-policy { font-size: 11px; font-weight: 500; color: var(--text-3); }

/* ---------- チャート ---------- */

.chart-card { padding-bottom: 12px; }

.seg {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--wash);
  border-radius: 12px; padding: 3px; gap: 2px;
}
.seg-btn {
  border: none; background: transparent;
  font-family: inherit; font-size: 13px; font-weight: 650;
  color: var(--text-2);
  padding: 7px 0; border-radius: 9px; cursor: pointer;
}
.seg-btn.active { background: var(--surface); color: var(--text-1); box-shadow: var(--shadow); }

.range-row { display: flex; gap: 6px; margin: 12px 0 4px; }
.chip {
  border: 1px solid var(--border); background: transparent;
  font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--text-2);
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  min-height: 38px;
}
.chip.active { background: var(--text-1); color: var(--page); border-color: var(--text-1); }

.chart-wrap { position: relative; margin-top: 6px; }
#chart { width: 100%; height: 240px; display: block; touch-action: pan-y; }

.tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px 12px;
  font-size: 12px;
  min-width: 120px;
  z-index: 5;
}
.tooltip .tt-date { color: var(--text-3); font-size: 11px; margin-bottom: 4px; }
.tooltip .tt-row { display: flex; align-items: center; gap: 6px; }
.tooltip .tt-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.tooltip .tt-name { color: var(--text-2); font-size: 11px; }

.line-key {
  display: inline-block; width: 14px; height: 0;
  border-top: 2.5px solid; border-radius: 2px; vertical-align: middle;
}
.key-raw { border-color: var(--series-raw); }
.key-ma { border-color: var(--series-ma); }
.key-goal { border-color: var(--goal); border-top-style: dashed; }

.legend { display: flex; gap: 16px; margin-top: 10px; padding: 0 64px 0 4px; }
.legend-item { font-size: 11px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 記録テーブル ---------- */

.table-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.table-scroll { overflow-x: auto; }

.records-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.records-table th {
  text-align: right; font-size: 11px; font-weight: 650;
  color: var(--text-3);
  padding: 6px 8px; border-bottom: 1px solid var(--grid);
}
.records-table th:first-child, .records-table td:first-child { text-align: left; padding-left: 4px; }
.records-table td {
  text-align: right;
  padding: 8px;
  border-bottom: 1px solid var(--grid);
  font-variant-numeric: tabular-nums;
}
.records-table tr:last-child td { border-bottom: none; }
.records-table .dim { color: var(--text-3); }

/* ---------- ボタン ---------- */

.btn {
  font-family: inherit; font-size: 15px; font-weight: 650;
  border: none; border-radius: 14px;
  padding: 13px 20px; cursor: pointer;
  width: 100%;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:active { filter: brightness(0.92); }
.btn.ghost { background: var(--wash); color: var(--text-1); }
.btn.small { width: auto; font-size: 12px; padding: 6px 12px; border-radius: 10px; }

.fab {
  position: fixed;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  width: 52px; height: 52px;
  border-radius: 20px; border: none;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 40%, transparent);
  cursor: pointer; z-index: 15;
}
.fab:active { transform: scale(0.95); }
.fab svg { width: 24px; height: 24px; }

/* ---------- フォーム ---------- */

.field { margin-bottom: 14px; flex: 1; }
.field label {
  display: block; font-size: 12px; font-weight: 650;
  color: var(--text-2); margin-bottom: 6px;
}
.field input {
  width: 100%;
  font-family: inherit; font-size: 16px;
  color: var(--text-1);
  background: var(--wash);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.field input:focus { border-color: var(--accent); }
.field-row { display: flex; gap: 10px; }

.ob-status { font-size: 13px; margin-top: 10px; min-height: 1.2em; }
.ob-status.ok { color: var(--good); }
.ob-status.err { color: var(--bad); }

/* ---------- シート ---------- */

.sheet-backdrop {
  position: fixed; inset: 0;
  background: var(--backdrop);
  z-index: 30;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 480px;
  background: var(--page);
  border-radius: 24px 24px 0 0;
  padding: 10px 20px calc(env(safe-area-inset-bottom) + 20px);
  animation: sheet-up 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sheet-up { from { transform: translateY(40%); opacity: 0.5; } to { transform: none; opacity: 1; } }

.sheet-handle {
  width: 36px; height: 4px; border-radius: 999px;
  background: var(--axis);
  margin: 4px auto 16px;
}
.sheet h2 { font-size: 18px; color: var(--text-1); margin-bottom: 16px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 6px; }

.sync-note { font-size: 11px; color: var(--text-3); text-align: center; }
.version-note { font-size: 11px; color: var(--text-3); margin-top: 14px; text-align: center; }

/* チャートのテキスト（SVG内） */
.axis-text { font-size: 10px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.goal-text { font-size: 10px; fill: var(--text-3); font-weight: 600; }

/* ============================================================
   v2: タブバー・食事・筋トレ・アドバイス
   ============================================================ */

.app-main { padding-bottom: calc(env(safe-area-inset-bottom) + 150px); }
.tab-page { display: flex; flex-direction: column; gap: 14px; }

.tab-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 8px calc(env(safe-area-inset-bottom) + 8px);
  background: color-mix(in srgb, var(--page) 85%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
}
.tab-btn {
  border: none; background: transparent;
  font-family: inherit; font-size: 10px; font-weight: 650;
  color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0 4px; border-radius: 12px; cursor: pointer;
}
.tab-btn svg { width: 23px; height: 23px; }
.tab-btn.active { color: var(--accent); }
.tab-btn:active { background: var(--wash); }

.fab { bottom: calc(env(safe-area-inset-bottom) + 84px); }

/* ---------- 記録アクションボタン ---------- */

.record-actions {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.record-actions.two { grid-template-columns: repeat(2, 1fr); }
.action-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 4px 10px;
  font-family: inherit; font-size: 11px; font-weight: 650;
  color: var(--text-1);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.record-actions.two .action-btn { flex-direction: row; font-size: 13px; padding: 14px; gap: 8px; }
.action-btn:active { background: var(--wash); }
.action-icon { width: 22px; height: 22px; color: var(--accent); }

/* ---------- 食事タブ ---------- */

.meal-day-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }

.macro-row { display: flex; flex-direction: column; gap: 12px; }
.macro-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; font-weight: 650; color: var(--text-2);
  margin-bottom: 6px;
}
.macro-val { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.macro-val strong { font-size: 15px; color: var(--text-1); }
.meter.small { height: 8px; }
.meter-fill.over { background: var(--bad); }
.meter-fill.good { background: var(--good); }

.meal-list, .wk-list { display: flex; flex-direction: column; margin-top: 4px; }
.meal-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--grid);
}
.meal-item:last-child { border-bottom: none; }
.slot-badge {
  flex-shrink: 0;
  font-size: 11px; font-weight: 700;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--wash); color: var(--text-2);
}
.meal-item-main { flex: 1; min-width: 0; }
.meal-item-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meal-item-sub { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pending-chip {
  font-size: 10px; font-weight: 650;
  padding: 3px 8px; border-radius: 999px;
  background: color-mix(in srgb, #eda100 15%, transparent);
  color: #a06c00;
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) { .pending-chip { color: #eda100; } }

.meal-history, .wk-history { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.day-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--grid);
  font-size: 13px;
}
.day-row:last-child { border-bottom: none; }
.day-row .dim { color: var(--text-3); font-size: 12px; }
.day-row-main { flex: 1; margin: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-row-val { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }

.empty-note { font-size: 13px; color: var(--text-3); padding: 12px 0; text-align: center; }

/* ---------- シート内（食事） ---------- */

.sheet-tall { max-height: 88dvh; display: flex; flex-direction: column; }
.sheet-scroll { overflow-y: auto; flex: 1; min-height: 60px; margin: 4px 0; -webkit-overflow-scrolling: touch; }

.slot-row { display: flex; gap: 6px; margin-bottom: 12px; }

.pick-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--grid);
}
.pick-item-name { font-size: 14px; font-weight: 600; }
.pick-item-sub { font-size: 11px; color: var(--text-3); }
.pick-item .btn.small { flex-shrink: 0; }

.stepper {
  display: flex; align-items: center; gap: 2px;
  background: var(--wash); border-radius: 10px; padding: 2px;
}
.stepper button {
  width: 42px; height: 44px;
  border: none; border-radius: 8px;
  background: transparent; color: var(--accent);
  font-size: 20px; font-weight: 600; cursor: pointer;
  font-family: inherit;
}
.stepper button:active { background: var(--surface); }
.stepper .stepper-val {
  min-width: 52px; text-align: center;
  font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums;
}

.meal-sheet-total {
  font-size: 13px; font-weight: 650;
  padding: 10px 4px 2px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.search-input {
  width: 100%;
  font-family: inherit; font-size: 15px;
  color: var(--text-1);
  background: var(--wash);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  outline: none;
  margin-bottom: 8px;
}

.photo-preview { width: 100%; border-radius: 14px; margin: 8px 0; max-height: 260px; object-fit: cover; }

/* ---------- 筋トレタブ ---------- */

.wk-gym-note { font-size: 12px; color: var(--text-3); margin: 4px 0 10px; }
.wk-gym-note.closed { color: var(--bad); font-weight: 650; }

.wk-targets { display: flex; flex-direction: column; }
.wk-target-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--grid);
}
.wk-target-row:last-child { border-bottom: none; }
.wk-target-name { flex: 1; font-size: 13px; font-weight: 650; }
.wk-target-name small { display: block; font-size: 10px; color: var(--text-3); font-weight: 500; }
.wk-target-vals { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.wk-target-vals .last { color: var(--text-3); }
.wk-target-vals .next { font-weight: 700; }

.wk-item { padding: 10px 0; border-bottom: 1px solid var(--grid); }
.wk-item:last-child { border-bottom: none; }
.wk-item-name { font-size: 13px; font-weight: 650; }
.wk-item-sets { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; margin-top: 2px; }
.wk-item .proposed { color: var(--good); font-size: 11px; font-weight: 650; }

.wk-last {
  font-size: 12px; color: var(--text-2);
  background: var(--wash);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.wk-last strong { color: var(--text-1); }

.set-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
}
.set-row .set-no { width: 20px; font-size: 12px; color: var(--text-3); font-weight: 650; }
.set-row .stepper { flex: 1; justify-content: space-between; }
.set-row .unit { font-size: 11px; color: var(--text-3); width: 22px; }
.set-row .del-set {
  width: 44px; height: 44px; border: none; background: transparent;
  color: var(--text-3); font-size: 16px; cursor: pointer; border-radius: 8px;
  flex-shrink: 0;
}

.check-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  padding: 10px 2px;
}
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }

.select {
  width: 100%;
  font-family: inherit; font-size: 15px;
  color: var(--text-1);
  background: var(--wash);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.prog-note { font-size: 11px; color: var(--text-3); margin: 6px 4px; }
#prog-chart { width: 100%; height: 200px; display: block; }
#prog-list { max-height: 24dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ---------- v2.1: トースト・削除ボタン・ストリーク ---------- */

.toast {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 64px);
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  max-width: 88%;
  background: var(--text-1);
  color: var(--page);
  font-size: 13px; font-weight: 650;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 50;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.item-del {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border: none; background: transparent;
  color: var(--text-3);
  font-size: 15px; cursor: pointer;
  border-radius: 10px;
}
.item-del:active { background: var(--wash); color: var(--bad); }

.wk-item-head { display: flex; align-items: center; justify-content: space-between; }

.wk-target-row { cursor: pointer; }
.wk-target-row:active { background: var(--wash); }

.trend-chip.streak {
  background: color-mix(in srgb, #eda100 14%, transparent);
  color: #a06c00;
}
@media (prefers-color-scheme: dark) {
  .trend-chip.streak { color: #eda100; }
}

/* ---------- レディネス（コンディション判定） ---------- */

.readiness-head { display: flex; align-items: center; gap: 10px; }
.readiness-chip {
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  white-space: nowrap;
}
.readiness-chip.green { background: color-mix(in srgb, #0ca30c 14%, transparent); color: #006300; }
.readiness-chip.yellow { background: color-mix(in srgb, #fab219 18%, transparent); color: #8a6200; }
.readiness-chip.red { background: color-mix(in srgb, #d03b3b 14%, transparent); color: #d03b3b; }
@media (prefers-color-scheme: dark) {
  .readiness-chip.green { color: #0ca30c; }
  .readiness-chip.yellow { color: #fab219; }
  .readiness-chip.red { color: #e66767; }
}
.readiness-label { font-size: 14px; font-weight: 700; }
.readiness-note { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ---------- アドバイスタブ ---------- */

.advice-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.advice-headline { font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 14px; }
.advice-section-card h3 { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.advice-section-card p { font-size: 14px; line-height: 1.75; white-space: pre-wrap; }
#advice-sections { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
