:root {
  --bg-page: #f6f5f0;
  --bg-surface: #ffffff;
  --bg-subtle: #efede6;
  --bg-tint-teal: #f0fdfa;

  --text-primary: #1c1e21;
  --text-secondary: #525860;
  --text-muted: #858b94;

  --border-color: #e4e2da;
  --border-strong: #cbc8bc;
  --border-subtle: #eceae2;

  --brand-primary: #0f766e;
  --brand-primary-hover: #115e59;
  --accent-primary: #0f766e;
  --accent-primary-soft: #f0fdfa;

  --accent-warm: #d95d39;
  --accent-warm-hover: #c2410c;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-card: 0 2px 8px rgba(28, 30, 33, 0.04);
  --shadow-float: 0 10px 26px rgba(28, 30, 33, 0.08);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.tiny-muted-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.anchor-target {
  scroll-margin-top: 118px;
}

/* Interactive Footnote Links & Tooltip */
.fn-link {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 3px;
  cursor: pointer;
  vertical-align: super;
  line-height: 1;
}

.fn-link:hover {
  color: var(--accent-warm);
}

.fn-tooltip {
  position: fixed;
  z-index: 9500;
  max-width: 320px;
  background: #1c1e21;
  color: #ffffff;
  font-size: 0.74rem;
  line-height: 1.45;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.fn-tooltip.visible {
  opacity: 1;
}

/* Header */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  padding: 2px 4px;
  border-radius: 6px;
  transition: opacity 0.15s ease;
}

.brand-link:hover {
  opacity: 0.8;
}

.brand-mark {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  background: var(--brand-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
}

.brand-name {
  font-weight: 800;
  font-size: 0.94rem;
}

.header-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Main Container */
.main-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 18px 56px;
  flex: 1;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.18s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   VIEW 1: START SCREEN
   ========================================== */
.start-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.start-title {
  font-size: clamp(1.45rem, 3.6vw, 2.05rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 24px;
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-warm);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  padding: 15px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.btn-primary-large:hover {
  background: var(--accent-warm-hover);
  transform: translateY(-1px);
}

.sample-header {
  margin-bottom: 10px;
}

.sample-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.sample-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.sample-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: inherit;
}

.sample-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-float);
}

.sample-card-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--bg-tint-teal);
  padding: 2px 8px;
  border-radius: 5px;
}

.sample-card-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sample-card-desc {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sample-card-cta {
  margin-top: 4px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================
   VIEW 2: WIZARD
   ========================================== */
.wizard-container {
  max-width: 580px;
  margin: 0 auto;
}

.wizard-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.btn-text-nav {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-text-nav:hover {
  background: var(--bg-subtle);
}

.wizard-step-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.progress-bar-track {
  height: 5px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--brand-primary);
  transition: width 0.2s ease;
}

.wizard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}

.wizard-question-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.choice-grid.cols-1 {
  grid-template-columns: 1fr;
}

.choice-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.choice-btn {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.choice-btn:hover,
.choice-btn.selected {
  border-color: var(--brand-primary);
  background: var(--bg-tint-teal);
}

.wizard-income-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 12px;
}

.wizard-income-big {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--brand-primary);
  margin: 4px 0;
}

.range-slider {
  width: 100%;
  accent-color: var(--brand-primary);
  margin: 8px 0 4px;
  height: 6px;
  cursor: pointer;
}

/* ==========================================
   VIEW 3: STICKY STATUS BAR & COLLAPSIBLE FILTER
   ========================================== */
.sticky-status-wrapper {
  position: sticky;
  top: 48px;
  z-index: 35;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(28, 30, 33, 0.08);
}

.sticky-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sticky-current-values {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sticky-val-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sticky-val-pill:hover {
  border-color: var(--brand-primary);
  background: var(--bg-tint-teal);
}

.sticky-val-pill small {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.sticky-val-pill strong {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--brand-primary);
}

.sticky-val-pill.asset-pill strong {
  color: var(--accent-warm);
}

.pill-caret {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.sticky-cond-summary {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.sticky-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.jump-nav-group {
  display: inline-flex;
  background: var(--bg-page);
  padding: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.btn-jump {
  background: none;
  border: none;
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
}

.btn-jump.active,
.btn-jump:hover {
  background: var(--brand-primary);
  color: #fff;
}

.btn-toggle-filter {
  background: var(--bg-surface);
  border: 1.5px solid var(--brand-primary);
  color: var(--brand-primary);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-toggle-filter:hover {
  background: var(--bg-tint-teal);
}

/* Collapsible Filter Drawer inside Sticky Wrapper */
.collapsible-filter-drawer {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.collapsible-filter-drawer.open {
  display: block;
}

/* Top Drawer Sliders (Income & Financial Assets in Sticky Header) */
.top-drawer-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.drawer-slider-card {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}

.drawer-slider-card.highlight-focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}

.drawer-slider-card.asset-theme .range-slider {
  accent-color: var(--accent-warm);
}

.drawer-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.drawer-slider-head label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.drawer-slider-val-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-slider-val-wrap strong {
  font-size: 0.96rem;
  font-weight: 900;
  color: var(--brand-primary);
}

.control-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.mode-switch-inline {
  display: inline-flex;
  background: var(--bg-page);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.mode-pill {
  background: none;
  border: none;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
}

.mode-pill.active {
  background: var(--brand-primary);
  color: #fff;
}

.btn-reset-filters {
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-reset-filters:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.filters-always-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.filter-cell label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.form-select-compact {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: inherit;
}

/* Self-employed Reference Banner */
.self-employed-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

/* Inline Slider Bar inside Income & Asset Cards */
.inline-slider-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.inline-slider-box.asset-slider-theme .range-slider {
  accent-color: var(--accent-warm);
}

.inline-slider-box.asset-slider-theme .inline-slider-big {
  color: var(--accent-warm);
}

.inline-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-slider-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
}

.inline-slider-val-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-slider-big {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-primary);
}

.form-input-compact {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 0.8rem;
  width: 84px;
  text-align: right;
  font-weight: 700;
}

.tiny-unit {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Section Divider Banner */
.section-divider-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-primary);
}

.section-divider-banner::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

/* Result Cards */
.result-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.section-title-compact {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Headline Score Panels */
.headline-score-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.primary-score-panel {
  background: var(--bg-tint-teal);
  border: 1.5px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.score-panel-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.rank-big-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.rank-prefix {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.rank-prefix.is-bottom {
  color: #64748b;
}

.rank-huge {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1.05;
}

.rank-huge.is-bottom {
  color: #475569;
}

.rank-top-pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.score-sub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.score-sub-badges strong {
  color: var(--text-primary);
}

.secondary-score-panel {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.secondary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
}

.secondary-row:last-child {
  border-bottom: none;
}

.secondary-row span {
  color: var(--text-secondary);
  white-space: nowrap;
}

.secondary-row strong {
  font-size: 0.84rem;
  text-align: right;
}

/* 2-Column Visual Charts */
.charts-two-col {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.chart-col-main,
.chart-col-side {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 14px;
}

.mini-chart-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.chart-box {
  position: relative;
  height: 215px;
  width: 100%;
}

.doughnut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.doughnut-canvas-box {
  position: relative;
  width: 140px;
  height: 140px;
}

.doughnut-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  padding: 3px 6px;
  border-radius: 4px;
}

.legend-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

/* KPI Numbers & Overtake Cards */
.numbers-grid-3,
.overtake-row-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.num-box,
.overtake-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.num-box-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.num-box-val {
  font-size: 1.12rem;
  font-weight: 900;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.num-box-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.overtake-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.overtake-plus {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.overtake-Next {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent-warm);
}

.overtake-main {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

/* Step-by-Step Bars */
.step-bars-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-bar-row {
  padding: 9px 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: 170px 1fr 185px;
  align-items: center;
  gap: 10px;
}

.step-bar-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-bar-track {
  height: 7px;
  background: #dfddd4;
  border-radius: 999px;
  overflow: hidden;
}

.step-bar-fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 999px;
}

.step-bar-meta {
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-align: right;
}

/* Tables & Global Chips */
.pref-compare-picker {
  min-width: 185px;
}

.global-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.chip-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 480px;
}

.clean-table th,
.clean-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.clean-table th {
  font-size: 0.71rem;
  color: var(--text-muted);
  font-weight: 700;
  background: var(--bg-page);
}

.clean-table tr.row-current {
  background: var(--bg-tint-teal);
  font-weight: 700;
}

/* Ad Slot */
.ad-slot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ad-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 1px 6px;
  border-radius: 4px;
}

.ad-text-wrap {
  flex: 1;
}

.ad-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.ad-btn {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

/* Bottom Return & Footnotes */
.bottom-actions-area {
  text-align: center;
  margin: 22px 0 18px;
}

.btn-return-start {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
}

.btn-return-start:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.footnotes-block {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footnote-item {
  padding: 4px 6px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.footnote-item.flash-highlight {
  background-color: #fef3c7;
  color: var(--text-primary);
}

/* Interstitial Modal */
.interstitial-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(28, 30, 33, 0.7);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.interstitial-overlay.open,
.interstitial-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.interstitial-modal {
  max-width: 440px;
  width: 100%;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.interstitial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.interstitial-close {
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.interstitial-body {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  margin-bottom: 14px;
}

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 16px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================
   DOPAMINE FX LAYER & RANK TIER CELEBRATION
   ========================================== */
.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9800;
}

.fx-reactions-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9850;
  overflow: hidden;
}

.fx-floating-badge {
  position: fixed;
  transform: translate(-50%, -50%);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 5px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.32);
  white-space: nowrap;
  letter-spacing: 0.02em;
  animation: floatUpPop 0.82s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fx-floating-badge.fx-variant-teal,
.fx-floating-badge.tier-teal {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.32);
}

.fx-floating-badge.fx-variant-gold {
  background: linear-gradient(135deg, #d95d39, #f59e0b);
  box-shadow: 0 8px 22px rgba(217, 93, 57, 0.38);
}

.fx-floating-badge.fx-variant-legend,
.fx-floating-badge.tier-god {
  font-size: 1.02rem;
  padding: 6px 16px;
  background: linear-gradient(135deg, #181a1f 0%, #451a03 50%, #b45309 100%);
  color: #fde047;
  border: 2px solid #fbbf24;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.52);
}

@keyframes floatUpPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -10%) scale(0.55);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -85%) scale(1.12);
  }
  45% {
    opacity: 1;
    transform: translate(-50%, -115%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -185%) scale(0.92);
  }
}

.score-panel-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.rank-tier-badge {
  display: none;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.rank-tier-badge.visible {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Rank Tier Visual Themes on Primary Score Panel */
.primary-score-panel {
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-score-panel.tier-top1,
.primary-score-panel.tier-top5 {
  position: relative;
}

.primary-score-panel.tier-top1::after,
.primary-score-panel.tier-top5::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  animation: cardShimmerSweep 3.6s infinite ease-in-out;
}

@keyframes cardShimmerSweep {
  0% {
    left: -120%;
  }
  38%, 100% {
    left: 160%;
  }
}

.primary-score-panel.tier-top1 {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 45%, #fde68a 100%);
  border: 2.5px solid #d97706;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25), 0 12px 30px rgba(180, 83, 9, 0.22);
}

.primary-score-panel.tier-top1 .rank-huge {
  background: linear-gradient(135deg, #92400e 0%, #d97706 50%, #0f766e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.primary-score-panel.tier-top1 .rank-tier-badge {
  background: linear-gradient(135deg, #181a1f 0%, #78350f 60%, #d97706 100%);
  color: #fde047;
  border: 1.5px solid #fbbf24;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.38);
}

.primary-score-panel.tier-top5 {
  background: linear-gradient(135deg, #fffbeb 0%, #f0fdfa 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18), 0 8px 22px rgba(217, 93, 57, 0.14);
}

.primary-score-panel.tier-top5 .rank-tier-badge {
  background: linear-gradient(135deg, #d95d39, #f59e0b);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(217, 93, 57, 0.3);
}

.primary-score-panel.tier-top10 {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 2px solid #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16), 0 6px 18px rgba(15, 118, 110, 0.12);
}

.primary-score-panel.tier-top10 .rank-tier-badge {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
}

.primary-score-panel.tier-top25 .rank-tier-badge {
  background: #e6f4f1;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}

.pop-scale {
  animation: numberPop 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes numberPop {
  0% {
    transform: scale(0.88);
  }
  55% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

/* ==========================================
   REGIONAL REAL AFFORDABILITY BREAKDOWN
   ========================================== */
.real-base-summary {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
}

.real-cost-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.real-cost-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.real-cost-pill strong {
  color: var(--text-primary);
}

.real-cost-pill.surplus {
  background: var(--bg-tint-teal);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  font-weight: 800;
}

.diff-pos {
  color: #0f766e;
  font-weight: 800;
}

.diff-neg {
  color: #c2410c;
  font-weight: 800;
}

/* ==========================================
   SHARE CARD SECTION & PRIVACY TOGGLE
   ========================================== */
.share-controls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.privacy-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-page);
  border: 1.5px solid var(--border-strong);
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.share-controls-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.share-mode-switch {
  display: inline-flex;
  background: var(--bg-page);
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.share-mode-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.share-mode-btn:hover {
  color: var(--text-primary);
}

.share-mode-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
}

.privacy-toggle-label:hover {
  border-color: var(--brand-primary);
}

.privacy-toggle-input {
  display: none;
}

.privacy-toggle-slider {
  position: relative;
  width: 36px;
  height: 20px;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.privacy-toggle-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.privacy-toggle-input:checked + .privacy-toggle-slider {
  background: var(--brand-primary);
}

.privacy-toggle-input:checked + .privacy-toggle-slider::after {
  transform: translateX(16px);
}

.privacy-toggle-text {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
}

.share-card-preview-wrap {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}

.share-card-canvas {
  width: 100%;
  max-width: 820px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(28, 30, 33, 0.1);
  display: block;
}

.share-buttons-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-share-x {
  flex: 1.3;
  min-width: 200px;
  background: #181a1f;
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.btn-share-x:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-share-sub {
  flex: 1;
  min-width: 160px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-share-sub:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ==========================================
   MOBILE RESPONSIVE (< 680px)
   ========================================== */
@media (max-width: 680px) {
  .brand-name {
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .header-note {
    display: none;
  }

  .main-container {
    padding: 12px 10px 44px;
  }

  .start-hero {
    padding: 28px 16px;
  }

  .btn-primary-large {
    width: 100%;
  }

  .sample-cards-grid {
    grid-template-columns: 1fr;
  }

  .choice-grid,
  .choice-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .sticky-status-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .sticky-actions {
    justify-content: space-between;
  }

  .top-drawer-sliders {
    grid-template-columns: 1fr;
  }

  .filters-always-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .headline-score-grid,
  .charts-two-col,
  .numbers-grid-3,
  .overtake-row-grid {
    grid-template-columns: 1fr;
  }

  .step-bar-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .step-bar-meta {
    text-align: left;
  }

  .result-section-card {
    padding: 16px 12px;
  }

  .share-buttons-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================
   Aligned Scale Comparison Panel (全国 vs 同じ条件)
   ========================================== */
.scale-compare-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
}

.scale-compare-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.scale-compare-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
}

.hl-rank {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 900;
  margin: 0 1px;
}

.income-scale-theme .hl-rank.tier-top,
.income-scale-theme .hl-rank.tier-high {
  background: #ecfdf5;
  color: #047857;
}

.asset-scale-theme .hl-rank.tier-top,
.asset-scale-theme .hl-rank.tier-high {
  background: #fff7ed;
  color: #c2410c;
}

.hl-rank.tier-mid {
  background: #f1f5f9;
  color: #334155;
}

.hl-rank.tier-bottom {
  background: #f1f5f9;
  color: #64748b;
}

.aligned-scale-grid {
  display: grid;
  grid-template-columns: 78px 1fr 90px;
  column-gap: 10px;
  row-gap: 9px;
  align-items: center;
}

.scale-axis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  padding: 0 2px 2px 2px;
  line-height: 1.1;
}

.scale-axis-header span {
  white-space: nowrap;
}

.scale-axis-header .axis-center-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-weight: 800;
}

.scale-col-val-head {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
  padding-right: 4px;
}

.scale-row-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.scale-row-label strong {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
}

.scale-row-label small {
  font-size: 0.67rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.scale-track-box {
  position: relative;
  width: 100%;
  height: 28px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #dde3ec;
}

.scale-people-bg,
.scale-fill-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3px 4px 2px 4px;
  pointer-events: none;
  border-radius: 5px;
}

.scale-fill-layer {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.scale-people-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 15px;
}

.scale-person {
  width: 10px;
  height: 14px;
  display: block;
}

.scale-people-bg .scale-person {
  color: #dbe2ea;
}

.scale-bar-base {
  width: 100%;
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
}

.scale-bar-fill-line {
  width: 100%;
  height: 5px;
  border-radius: 3px;
}

/* カラースケール：中央(50%＝5人目)より左はグレー系、中央(6人目〜)を超えると緑(年収) / オレンジ(資産)に発色 */
.scale-fill-layer .scale-person.p-lv1 {
  color: #94a3b8;
}

.scale-fill-layer .scale-person.p-lv2 {
  color: #7c8ba1;
}

.income-scale-theme .scale-fill-layer .scale-person.p-lv3 {
  color: #10b981;
}
.income-scale-theme .scale-fill-layer .scale-person.p-lv4 {
  color: #059669;
}
.income-scale-theme .scale-bar-fill-line {
  background: linear-gradient(90deg, #94a3b8 0%, #7c8ba1 48%, #10b981 54%, #059669 80%, #047857 100%);
}

.asset-scale-theme .scale-fill-layer .scale-person.p-lv3 {
  color: #f59e0b;
}
.asset-scale-theme .scale-fill-layer .scale-person.p-lv4 {
  color: #d97706;
}
.asset-scale-theme .scale-bar-fill-line {
  background: linear-gradient(90deg, #94a3b8 0%, #7c8ba1 48%, #f59e0b 54%, #ea580c 80%, #c2410c 100%);
}

.scale-gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

.scale-gridline.center {
  left: 50%;
  width: 0;
  border-left: 1.5px dashed #64748b;
  opacity: 0.7;
  z-index: 2;
}

.scale-marker {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 4px;
  border-radius: 2px;
  transform: translateX(-50%);
  z-index: 3;
  background: #64748b;
  box-shadow: 0 0 0 1.5px #ffffff;
}

.income-scale-theme .scale-marker.tier-top,
.income-scale-theme .scale-marker.tier-high {
  background: #047857;
}

.asset-scale-theme .scale-marker.tier-top,
.asset-scale-theme .scale-marker.tier-high {
  background: #c2410c;
}

.scale-marker.tier-mid {
  background: #475569;
}

.scale-marker.tier-bottom {
  background: #64748b;
}

.scale-row-val {
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid transparent;
  line-height: 1.2;
}

.income-scale-theme .scale-row-val.tier-top,
.income-scale-theme .scale-row-val.tier-high {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.asset-scale-theme .scale-row-val.tier-top,
.asset-scale-theme .scale-row-val.tier-high {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.scale-row-val.tier-mid {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

.scale-row-val.tier-bottom {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}

.scale-compare-foot {
  border-top: 1px solid var(--border-color);
  padding-top: 6px;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .aligned-scale-grid {
    grid-template-columns: 72px 1fr 84px;
    column-gap: 8px;
  }
  .scale-person {
    width: 9px;
    height: 13px;
  }
}

/* ==========================================
   LINE Share Button
   ========================================== */
.btn-share-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 800;
  background: #06c755;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(6, 199, 85, 0.25);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-share-line:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ==========================================
   Methodology & Limitations Page & Links
   ========================================== */
.methodology-article {
  line-height: 1.7;
}

.methodology-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.methodology-lead {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.methodology-section {
  margin-bottom: 28px;
}

.methodology-section h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.methodology-block {
  margin-bottom: 14px;
}

.methodology-block h3 {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.methodology-block p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.methodology-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.methodology-list strong {
  color: var(--text-primary);
}

.methodology-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

.methodology-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.methodology-table th,
.methodology-table td {
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  text-align: left;
}

.methodology-table th {
  background: var(--bg-subtle);
  font-weight: 800;
  color: var(--text-primary);
}

.header-back-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
}

.header-back-link:hover {
  text-decoration: underline;
}

.hero-methodology-link,
.fn-methodology-link,
.footer-link {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 760px) {
  .anchor-target {
    scroll-margin-top: 195px;
  }
}


