:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #637083;
  --line: #dce3eb;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #c2410c;
  --blue: #2563eb;
  --violet: #7c3aed;
  --amber: #d97706;
  --rose: #e11d48;
  --cyan: #0891b2;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 15px;
}

.app-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: 0;
}

h2 {
  font-size: 21px;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.top-link:hover,
.top-link.active {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: #ecfdf5;
}

.filter-board {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
}

.filter-group {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.filter-group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.filter-group-head strong {
  color: var(--text);
}

.filter-row,
.fiscal-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

select {
  min-width: 160px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  padding: 0 34px 0 10px;
  font-size: 15px;
}

select[multiple] {
  height: 118px;
  min-width: 190px;
  padding: 6px;
}

.inline-control {
  min-width: 180px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.metric,
.panel,
.strategy-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric,
.strategy-card {
  min-height: 128px;
  padding: 18px;
  display: grid;
  align-content: space-between;
}

.metric span,
.metric small,
.strategy-card span,
.strategy-card small,
.panel-header p {
  color: var(--muted);
}

.metric span,
.strategy-card span {
  font-size: 14px;
  font-weight: 700;
}

.metric strong {
  font-size: 34px;
  line-height: 1.1;
}

.strategy-card strong {
  font-size: 27px;
  line-height: 1.15;
}

.metric small,
.strategy-card small {
  font-size: 13px;
  line-height: 1.45;
}

.panel {
  padding: 20px;
  min-width: 0;
}

.panel.wide {
  margin-bottom: 14px;
}

.market-panel,
.destination-panel,
.aviation-panel {
  margin-bottom: 16px;
}

.dashboard-topbar {
  padding-bottom: 4px;
}

.monitor-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.comparison-board {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.comparison-board strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.comparison-board span {
  color: var(--muted);
  font-size: 14px;
}

.comparison-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.flow-step {
  min-height: 94px;
  padding: 15px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}

.flow-step span {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 850;
}

.flow-step strong {
  font-size: 19px;
}

.flow-step small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-chart-panel,
.event-panel {
  margin-bottom: 16px;
}

.hero-line-chart {
  height: 380px;
}

.monitor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: 16px;
  margin-bottom: 16px;
}

.monitor-stack {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.supply-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(480px, 0.95fr);
}

.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.panel-link:hover {
  background: var(--primary-dark);
}

.footer-link {
  margin-top: 12px;
}

.strategy-content-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
}

.market-table-wrap,
.destination-table-wrap,
.aviation-table-wrap {
  max-height: 460px;
}

.market-table-wrap,
.destination-table-wrap {
  max-height: none;
}

.market-table {
  min-width: 980px;
}

.market-table td strong {
  font-size: 14px;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  border-radius: 6px;
  background: #ecfdf5;
  color: var(--primary-dark);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

td.positive {
  color: #047857;
  font-weight: 750;
}

td.negative {
  color: #be123c;
  font-weight: 750;
}

.journey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.journey-country-block {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.journey-country-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.journey-country-head strong {
  font-size: 19px;
}

.journey-country-head span {
  color: var(--muted);
  font-size: 13px;
}

.journey-stage-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.journey-stage-card {
  min-height: 126px;
  padding: 10px;
  border: 1px solid #dbe4ef;
  border-radius: 6px;
  background: #ffffff;
}

.journey-stage-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin-bottom: 8px;
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.journey-stage-label b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
}

.journey-stage-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.journey-stage-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.indicator-item dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.indicator-item dl div {
  display: grid;
  gap: 2px;
}

.indicator-item dt {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.indicator-item dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.indicator-list {
  display: grid;
  gap: 10px;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
  margin-bottom: 12px;
}

.indicator-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.indicator-item strong {
  display: block;
  margin: 5px 0 4px;
  font-size: 15px;
}

.indicator-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.indicator-category {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--violet);
  font-size: 13px;
  font-weight: 800;
}

.indicator-item a,
.destination-table-wrap a,
.aviation-table-wrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.indicator-item a:hover,
.destination-table-wrap a:hover,
.aviation-table-wrap a:hover {
  background: var(--primary-dark);
}

.destination-insight,
.aviation-insight {
  margin-bottom: 12px;
}

.signal-compare-insight {
  margin-bottom: 12px;
}

.data-gap,
.destination-summary,
.aviation-summary,
.signal-summary {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}

.data-gap strong,
.destination-summary strong,
.aviation-summary strong,
.signal-summary strong {
  font-size: 15px;
}

.data-gap span,
.destination-summary span,
.aviation-summary span,
.signal-summary span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.destination-country-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.destination-country-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.destination-country-head strong {
  font-size: 19px;
}

.destination-country-head span {
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 850;
}

.destination-rank-list {
  display: grid;
  gap: 7px;
}

.destination-rank-row {
  display: grid;
  grid-template-columns: 28px minmax(72px, 1fr) minmax(78px, 1fr) 56px;
  gap: 8px;
  align-items: center;
  min-height: 34px;
}

.destination-rank-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 850;
}

.destination-rank-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.destination-rank-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.destination-rank-row b {
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.aviation-table {
  min-width: 1080px;
}

.aviation-table-wrap {
  max-height: none;
  border: 0;
  overflow: visible;
}

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

.aviation-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.aviation-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.aviation-card-head small {
  color: var(--muted);
  font-size: 12px;
}

.aviation-card strong {
  font-size: 15px;
  line-height: 1.4;
}

.aviation-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.aviation-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.aviation-card dl div {
  min-width: 0;
  padding: 7px;
  border-radius: 6px;
  background: #f8fafc;
}

.aviation-card dt {
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 850;
}

.aviation-card dd {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.aviation-table td strong {
  font-size: 14px;
}

.aviation-table td small {
  color: var(--muted);
  font-size: 12px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
}

.status-chip.waiting {
  background: #fff7ed;
  color: #c2410c;
}

.status-chip.candidate {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-chip.paid {
  background: #f5f3ff;
  color: #6d28d9;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-header p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.scope-tags span {
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
}

.panel-scope,
.fiscal-scope {
  justify-content: flex-start;
  margin: -4px 0 12px;
}

.fiscal-panel {
  margin-bottom: 14px;
}

.fiscal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.fiscal-block,
.fiscal-matrix {
  min-width: 0;
}

.fiscal-matrix {
  margin-top: 18px;
}

.block-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
}

.block-header h3 {
  font-size: 15px;
}

.block-header p {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.fiscal-bars {
  min-height: 190px;
}

.fiscal-bar-row .bar-label {
  display: grid;
  gap: 2px;
}

.fiscal-bar-row .bar-label small {
  color: var(--muted);
  font-size: 11px;
}

.fiscal-table-wrap {
  max-height: 360px;
}

.fiscal-table-wrap small {
  color: var(--muted);
}

.event-panel {
  margin-bottom: 14px;
}

.event-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.event-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.event-card {
  min-height: 106px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  display: grid;
  align-content: space-between;
}

.event-card span,
.event-card small,
.event-description {
  color: var(--muted);
}

.event-card span {
  font-size: 13px;
  font-weight: 750;
}

.event-card strong {
  font-size: 26px;
}

.event-card small {
  font-size: 13px;
  line-height: 1.35;
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 14px;
}

.event-description {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.event-list {
  display: grid;
  gap: 8px;
  max-height: 318px;
  overflow: auto;
  padding-right: 4px;
}

.event-item {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.event-item:hover,
.event-item.active {
  border-color: var(--primary);
  background: #ecfdf5;
}

.event-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.event-item small {
  color: var(--muted);
  font-size: 12px;
}

.event-marker {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}

.event-marker-label {
  fill: var(--accent);
  font-size: 11px;
  font-weight: 750;
}

.event-number-dot {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 2;
}

.event-number-label {
  fill: var(--accent);
  font-size: 11px;
  font-weight: 850;
  text-anchor: middle;
}

.line-chart {
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.line-chart.compact {
  height: 260px;
}

.line-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.line-chart svg.multi-chart {
  height: calc(100% - 38px);
}

.axis-label {
  fill: var(--muted);
  font-size: 11px;
}

.grid-line {
  stroke: #e8edf3;
  stroke-width: 1;
}

.trend-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
}

.series-line {
  fill: none;
  stroke-width: 2.5;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 8px 10px 0;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.trend-area {
  fill: rgba(15, 118, 110, 0.12);
}

.trend-event-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.trend-event-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.trend-event-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.trend-event-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.trend-event-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 170px) 1fr minmax(88px, auto);
  gap: 10px;
  align-items: center;
  min-height: 32px;
}

.bar-label {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 12px;
  background: #e9eef4;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  min-width: 2px;
  background: var(--blue);
}

.bar-value {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.table-panel {
  padding-bottom: 8px;
}

.table-wrap {
  overflow: auto;
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.table-wrap.aviation-table-wrap {
  max-height: none;
  border: 0;
  overflow: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 14px;
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 750;
}

td.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.empty {
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.compact-empty {
  padding: 12px;
}

.definition-box {
  margin-top: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}

.definition-box summary {
  padding: 10px 12px;
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.definition-box p {
  padding: 0 12px 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

.deep-dive {
  margin-top: 16px;
}

.deep-dive > summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  cursor: pointer;
  list-style: none;
}

.deep-dive > summary::-webkit-details-marker {
  display: none;
}

.deep-dive > summary span {
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 850;
}

.deep-dive > summary small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.deep-dive[open] > summary {
  margin-bottom: 16px;
}

.detail-grid {
  margin-bottom: 16px;
}

.sources-topbar {
  align-items: start;
}

.sources-page {
  max-width: 1480px;
}

.sources-page h1 {
  font-size: 33px;
}

.sources-page h2 {
  font-size: 22px;
}

.sources-page .top-link {
  min-height: 36px;
  font-size: 15px;
}

.sources-page .panel-header p {
  font-size: 16px;
  line-height: 1.6;
}

.source-meta {
  min-width: 190px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
}

.source-meta span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.source-meta strong {
  font-size: 24px;
}

.source-summary .metric strong {
  font-size: 27px;
}

.source-guide {
  margin-bottom: 18px;
}

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

.source-guide-grid div {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.source-guide-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.source-guide-grid p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.source-section {
  margin-bottom: 18px;
}

.source-table-panel {
  padding: 20px;
}

.source-note {
  margin: -2px 0 14px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.source-table-wrap {
  max-height: none;
}

.source-table {
  min-width: 1560px;
  font-size: 17px;
  line-height: 1.55;
}

.source-table th,
.source-table td {
  padding: 14px 16px;
  white-space: normal;
  vertical-align: top;
}

.source-table th {
  font-size: 16px;
}

.source-table td:nth-child(1) {
  width: 136px;
}

.source-table td:nth-child(2) {
  width: 220px;
}

.source-table td:nth-child(4) {
  width: 190px;
}

.source-table td:nth-child(5) {
  width: 210px;
}

.source-table td:nth-child(6) {
  width: 140px;
}

.source-table td:nth-child(8) {
  width: 92px;
}

.source-table td strong {
  display: block;
  font-size: 18px;
  line-height: 1.45;
}

.source-table a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.source-table a:hover {
  background: var(--primary-dark);
}

.next-check {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #fff7ed;
  color: var(--accent);
  font-size: 16px;
  white-space: nowrap;
}

.section-heading {
  margin: 0 0 12px;
}

.section-heading h2 {
  font-size: 19px;
}

.section-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.source-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.source-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.source-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.source-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.source-card dl {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.source-card dl div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
}

.source-card dt {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 750;
}

.source-card dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.source-card a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.source-card a:hover {
  background: var(--primary-dark);
}

.source-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 4px 5px 0;
  min-height: 22px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
}

.source-badge.official {
  background: var(--primary);
}

.source-badge.private {
  background: var(--violet);
}

.source-badge.quantitative {
  background: var(--blue);
}

.source-badge.qualitative {
  background: var(--rose);
}

.source-badge.dashboard {
  background: var(--cyan);
}

.source-badge.schedule {
  background: var(--amber);
}

.source-badge.external {
  background: var(--accent);
}

.source-badge.regional {
  background: #16a34a;
}

@media (max-width: 920px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .summary-grid,
  .strategy-grid,
  .monitor-flow,
  .monitor-grid,
  .destination-compare-grid,
  .trend-event-list,
  .content-grid,
  .strategy-content-grid,
  .fiscal-layout,
  .event-summary,
  .event-layout,
  .journey-grid,
  .source-guide-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .journey-grid {
    grid-template-columns: 1fr;
  }

  .journey-stage-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .comparison-board {
    align-items: flex-start;
    flex-direction: column;
  }

  .comparison-controls {
    justify-content: flex-start;
  }

  .panel-header {
    flex-direction: column;
  }

  .scope-tags {
    justify-content: flex-start;
  }

  .block-header {
    align-items: start;
    flex-direction: column;
  }

  .block-header p {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding: 14px;
  }

  h1 {
    font-size: 23px;
  }

  .filter-board,
  .filter-group,
  .filter-row,
  .fiscal-controls,
  .top-link,
  .source-meta,
  .source-card a,
  label,
  select {
    width: 100%;
  }

  .source-card dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .metric strong {
    font-size: 25px;
  }

  .bar-row {
    grid-template-columns: 88px 1fr;
  }

  .bar-value {
    grid-column: 2;
  }

  .journey-grid {
    grid-template-columns: 1fr;
  }

  .journey-stage-strip,
  .aviation-card-grid {
    grid-template-columns: 1fr;
  }

  .destination-rank-row {
    grid-template-columns: 28px 1fr 56px;
  }

  .destination-rank-row small {
    display: none;
  }

  .deep-dive > summary {
    align-items: start;
    flex-direction: column;
  }
}

/* ===== IMP-005: サイト共通ヘッダー・フッター（ダークティール基調） ===== */
:root {
  --ink-900: #0f172a;
  --ink-800: #162033;
  --ink-700: #263241;
  --ink-600: #344154;
  --ink-line: #3b4657;
  --mint: #86c7bf;
  --teal-bright: #86c7bf;
  --ink-text: #d8dee8;
  --ink-text-soft: #aeb9c8;
}
body {
  font-family: "Noto Sans JP", "Segoe UI", "Yu Gothic UI", "Meiryo", sans-serif;
}
.site-header {
  background: var(--ink-800);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 1px 0 var(--ink-line);
}
.site-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  flex-wrap: wrap;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  padding: 10px 0;
}
.site-brand-name {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}
.site-brand-mark {
  width: 3px;
  height: 27px;
  background: var(--teal-bright);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav > a,
.nav-group-btn {
  color: var(--ink-text);
  font-size: 13px;
  padding: 9px 12px;
  text-decoration: none;
  border: 0;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-nav > a:hover,
.nav-group-btn:hover {
  color: #ffffff;
  background: var(--ink-600);
}
.site-nav > a.active {
  background: var(--teal-bright);
  color: var(--ink-800);
  font-weight: 700;
}
.nav-group {
  position: relative;
}
.nav-group.active .nav-group-btn {
  color: #ffffff;
  box-shadow: inset 0 -2px 0 var(--teal-bright);
  border-radius: 6px 6px 0 0;
}
.nav-caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--ink-700);
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  padding: 8px;
  display: none;
  box-shadow: 0 12px 28px rgba(4, 18, 22, 0.45);
}
.nav-group.open .nav-dropdown {
  display: block;
}
@media (hover: hover) {
  .nav-group:hover .nav-dropdown {
    display: block;
  }
}
.nav-dropdown a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
}
.nav-dropdown a:hover {
  background: var(--ink-600);
}
.nav-dropdown strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}
.nav-dropdown small {
  display: block;
  color: var(--ink-text-soft);
  font-size: 11px;
  margin-top: 2px;
}
.nav-toggle {
  display: none;
}
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--mint);
    display: block;
    transition: transform .18s, opacity .18s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 12px;
    gap: 0;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav > a,
  .nav-group-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px;
    font-size: 14px;
  }
  .nav-dropdown {
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: 0;
  }
}
.site-footer {
  background: var(--ink-800);
  margin-top: 48px;
}
@media (prefers-reduced-motion: reduce) {
  .nav-toggle span { transition: none; }
}
.site-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}
.footer-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}
.footer-desc {
  color: var(--ink-text-soft);
  font-size: 12px;
  line-height: 1.7;
  margin: 8px 0 0;
}
.footer-head {
  color: var(--teal-bright);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: var(--ink-text);
  font-size: 13px;
  line-height: 2.1;
  text-decoration: none;
}
.footer-col a:hover {
  color: #ffffff;
}
.site-footer-bottom {
  background: var(--ink-900);
}
.site-footer-bottom p {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 28px;
  color: var(--ink-text-soft);
  font-size: 11px;
}
@media (max-width: 760px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Dashboard decision guides */
.decision-guide {
  margin: 28px 0 8px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid #d9e5e5;
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 10%, rgba(13, 148, 136, .12), transparent 32%),
    #f8fbfb;
}
.decision-guide .eyebrow { margin: 0 0 6px; }
.decision-guide > h2 {
  margin: 0;
  color: #17343b;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.4;
}
.decision-guide-lead {
  max-width: 820px;
  margin: 12px 0 0;
  color: #526476;
  font-size: 15px;
  line-height: 1.85;
}
.decision-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.decision-guide-grid article {
  padding: 20px;
  border: 1px solid #dce7e8;
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
}
.decision-guide-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.decision-guide-grid h3 {
  margin: 12px 0 7px;
  color: #18353c;
  font-size: 17px;
  line-height: 1.5;
}
.decision-guide-grid p {
  margin: 0;
  color: #5d6d7e;
  font-size: 14px;
  line-height: 1.75;
}
.decision-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.decision-guide-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #b9d5d2;
  border-radius: 999px;
  background: #fff;
  color: #0f5f5a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.decision-guide-links a:hover {
  border-color: #0f766e;
  background: #effaf8;
}
@media (max-width: 780px) {
  .decision-guide-grid { grid-template-columns: 1fr; }
}

/* Free diagnostic resource and service funnel */
.resource-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 18px 0 8px;
  padding: 28px 30px;
  border-radius: 16px;
  background: #17343b;
  color: #fff;
}
.resource-strip h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.45;
}
.resource-strip p:not(.eyebrow) {
  max-width: 820px;
  margin: 10px 0 0;
  color: #d8e5e7;
  line-height: 1.8;
}
.resource-strip .eyebrow { color: #70e1cf; }
.resource-strip > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 9px;
  background: #2dd4bf;
  color: #102f35;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.resource-page {
  max-width: 1240px;
}
.resource-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid #d7e5e5;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 12%, rgba(45, 212, 191, .18), transparent 30%),
    linear-gradient(145deg, #f8fbfb, #edf7f5);
}
.resource-badge {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 11px;
  border: 1px solid #9bcfc8;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: #0f655f;
  font-size: 12px;
  font-weight: 800;
}
.resource-hero h1 {
  max-width: 820px;
  color: #16343b;
  font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1.36;
}
.resource-hero-lead {
  max-width: 850px;
  margin-top: 20px;
  color: #536776;
  font-size: 16px;
  line-height: 1.95;
}
.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 26px;
}
.resource-primary,
.resource-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.resource-primary {
  background: #0f766e;
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, .2);
}
.resource-primary:hover { background: #115e59; }
.resource-secondary {
  border: 1px solid #b8cecf;
  background: #fff;
  color: #31555b;
}
.resource-file-note {
  margin-top: 13px;
  color: #74848f;
  font-size: 12px;
}
.resource-score-preview {
  padding: 26px;
  border: 1px solid #d2e1e2;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 42px rgba(23, 52, 59, .1);
}
.resource-score-preview > strong {
  display: block;
  margin-top: 4px;
  color: #0f766e;
  font-size: 72px;
  line-height: 1;
}
.resource-score-preview > span {
  color: #536776;
  font-weight: 800;
}
.resource-score-preview > p:last-child {
  margin-top: 18px;
  color: #657582;
  font-size: 13px;
  line-height: 1.7;
}
.resource-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 22px;
}
.resource-preview-grid div {
  padding: 12px;
  border: 1px solid #e0e8e9;
  border-radius: 10px;
  background: #f7fafb;
}
.resource-preview-grid b {
  display: block;
  color: #183d43;
  font-size: 20px;
}
.resource-preview-grid small { color: #778692; }
.resource-section {
  padding: clamp(48px, 7vw, 80px) clamp(4px, 3vw, 24px) 0;
}
.resource-section > h2 {
  max-width: 840px;
  margin: 0;
  color: #17343b;
  font-size: clamp(25px, 3.5vw, 36px);
  line-height: 1.45;
}
.resource-section-alt {
  margin-top: 64px;
  padding: clamp(38px, 6vw, 62px);
  border-radius: 20px;
  background: #edf5f4;
}
.resource-domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.resource-domain-grid article {
  min-height: 195px;
  padding: 20px;
  border: 1px solid #dce5e7;
  border-radius: 13px;
  background: #fff;
}
.resource-domain-grid span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}
.resource-domain-grid h3 {
  margin: 10px 0 8px;
  color: #213d43;
  font-size: 16px;
  line-height: 1.55;
}
.resource-domain-grid p {
  color: #667783;
  font-size: 13px;
  line-height: 1.75;
}
.resource-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.resource-sheet-grid article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  border: 1px solid #d5e2e3;
  border-radius: 13px;
  background: #fff;
}
.resource-sheet-grid b,
.resource-steps > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 13px;
}
.resource-sheet-grid h3,
.resource-steps h3 {
  margin: 0 0 7px;
  color: #1b3b41;
  font-size: 17px;
}
.resource-sheet-grid p,
.resource-steps p {
  color: #657682;
  font-size: 14px;
  line-height: 1.75;
}
.resource-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.resource-steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  border-left: 3px solid #0f766e;
  background: #fff;
}
.resource-download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 28px;
  align-items: center;
  margin-top: 72px;
  padding: clamp(30px, 5vw, 52px);
  border-radius: 20px;
  background: #17343b;
  color: #fff;
}
.resource-download-panel h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 3.2vw, 35px);
  line-height: 1.45;
}
.resource-download-panel > div > p:not(.eyebrow) {
  max-width: 760px;
  margin: 13px 0 22px;
  color: #d4e1e3;
  line-height: 1.8;
}
.resource-download-panel .eyebrow { color: #70e1cf; }
.resource-download-panel .resource-primary {
  background: #2dd4bf;
  color: #102f35;
}
.resource-consult {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
}
.resource-consult strong {
  color: #fff;
  font-size: 17px;
}
.resource-consult p {
  margin: 10px 0 16px;
  color: #d4e1e3;
  font-size: 13px;
  line-height: 1.75;
}
.resource-consult a {
  color: #70e1cf;
  font-weight: 800;
}
.resource-faq details {
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid #dbe4e6;
  border-radius: 11px;
  background: #fff;
}
.resource-faq summary {
  cursor: pointer;
  color: #204148;
  font-weight: 800;
}
.resource-faq details p {
  margin-top: 11px;
  color: #647582;
  line-height: 1.8;
}
.resource-disclaimer {
  margin: 46px 4px 0;
  padding: 18px 20px;
  border: 1px solid #e1e7ea;
  border-radius: 10px;
  background: #f8fafb;
  color: #6b7b87;
  font-size: 12px;
  line-height: 1.8;
}
.service-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.service-contact-grid article {
  padding: 16px;
  border: 1px solid #dfe7ea;
  border-radius: 10px;
  background: #f8fafb;
}
.service-contact-grid strong {
  display: block;
  margin-bottom: 7px;
  color: #1a444a;
}
.service-contact-grid span {
  color: #687985;
  font-size: 12px;
  line-height: 1.7;
}
.contact-prep {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 3px solid #0f766e;
  background: #eef8f6;
}
.contact-prep strong { color: #165c57; }
.contact-prep ul { margin: 8px 0 0; padding-left: 20px; }
.contact-prep li { margin-top: 4px; }
@media (max-width: 980px) {
  .resource-domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-hero,
  .resource-download-panel { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .resource-strip,
  .resource-sheet-grid,
  .resource-steps,
  .service-contact-grid { grid-template-columns: 1fr; }
  .resource-strip > a { white-space: normal; }
  .resource-hero { padding: 28px 20px; }
  .resource-hero h1 { font-size: 30px; }
  .resource-domain-grid { grid-template-columns: 1fr; }
  .resource-section-alt { margin-left: -8px; margin-right: -8px; padding: 30px 20px; }
  .resource-download-panel { padding: 30px 22px; }
}
