/* =========================================================
   Hormuz Crisis Report
   assets/css/report.css
   ========================================================= */

/* ------------------------------
   Base
------------------------------ */

:root {
  --bg: #f5f7fb;
  --bg-soft: #eef2f8;
  --bg-dark: #0f172a;
  --bg-card: #ffffff;
  --bg-card-soft: #f8fafc;

  --text: #172033;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --text-invert: #ffffff;

  --line: #dbe3ef;
  --line-strong: #c4cfdd;

  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-soft: #dbeafe;

  --cyan: #0891b2;
  --cyan-soft: #cffafe;

  --green: #15803d;
  --green-soft: #dcfce7;

  --yellow: #a16207;
  --yellow-soft: #fef3c7;

  --orange: #c2410c;
  --orange-soft: #ffedd5;

  --red: #b91c1c;
  --red-soft: #fee2e2;

  --purple: #6d28d9;
  --purple-soft: #ede9fe;

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.16);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.10), transparent 32rem),
    radial-gradient(circle at top right, rgba(185, 28, 28, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 850;
}

h3 {
  font-size: 1.18rem;
  font-weight: 800;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 0;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 84px 0;
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.70), rgba(238, 242, 248, 0.86));
  border-top: 1px solid rgba(219, 227, 239, 0.7);
  border-bottom: 1px solid rgba(219, 227, 239, 0.7);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading p:not(.eyebrow) {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-top: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-dark);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ------------------------------
   Header
------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 227, 239, 0.9);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 2px;
  min-width: 250px;
}

.brand-label {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.header-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  text-decoration: none;
}

/* ------------------------------
   Hero
------------------------------ */

.hero {
  padding: 86px 0 76px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.92)),
    radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.32), transparent 26rem),
    radial-gradient(circle at 90% 20%, rgba(239, 68, 68, 0.28), transparent 28rem);
  color: var(--text-invert);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  max-width: 820px;
}

.hero .eyebrow {
  color: #93c5fd;
}

.hero h1 {
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero-subtitle {
  margin: -4px 0 22px;
  color: #fecaca;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 850;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 780px;
  color: #dbeafe;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.9;
}

.hero-message {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(147, 197, 253, 0.32);
  border-left: 6px solid #60a5fa;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.56);
  box-shadow: var(--shadow-md);
}

.message-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.18);
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.hero-message p {
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 850;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 850;
  box-shadow: var(--shadow-sm);
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button.primary {
  background: #ffffff;
  color: var(--primary-dark);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.panel-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
}

.panel-card.danger {
  border-top: 5px solid #f87171;
}

.panel-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #fecaca;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.panel-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.5rem;
  line-height: 1.35;
}

.panel-card p {
  color: #e2e8f0;
}

.meta-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.meta-list div {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.meta-list dt {
  margin-bottom: 4px;
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 850;
}

.meta-list dd {
  margin: 0;
  color: #f8fafc;
  font-size: 0.94rem;
}

/* ------------------------------
   Summary Cards
------------------------------ */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.summary-card {
  position: relative;
  min-height: 255px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.summary-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
}

.card-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.summary-card h3 {
  margin-bottom: 12px;
}

.summary-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ------------------------------
   Citation
------------------------------ */

.cite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2em;
  margin-inline: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.76em;
  font-weight: 900;
  line-height: 1.45;
  vertical-align: 0.08em;
}

.cite:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ------------------------------
   Indicator Cards
------------------------------ */

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.indicator-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.indicator-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.indicator-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.indicator-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.indicator-card.critical {
  border-top: 5px solid var(--red);
}

.indicator-card.warning {
  border-top: 5px solid var(--orange);
}

.indicator-card.danger {
  border-top: 5px solid var(--purple);
}

/* ------------------------------
   Compare
------------------------------ */

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

.compare-card {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.compare-card.forecast {
  border-top: 7px solid var(--cyan);
}

.compare-card.reality {
  border-top: 7px solid var(--red);
}

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

.date-badge {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.compare-card.forecast .date-badge {
  background: var(--cyan-soft);
  color: #155e75;
}

.compare-card.reality .date-badge {
  background: var(--red-soft);
  color: var(--red);
}

.check-list,
.alert-list {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.check-list li,
.alert-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
}

.check-list li::before,
.alert-list li::before {
  position: absolute;
  left: 0;
  top: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.check-list li::before {
  content: "✓";
  background: var(--cyan);
}

.alert-list li::before {
  content: "!";
  background: var(--red);
}

/* ------------------------------
   Gap Cards
------------------------------ */

.gap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.gap-card {
  padding: 23px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.gap-index {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
}

.gap-card h3 {
  margin-bottom: 10px;
}

.gap-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ------------------------------
   Score Cards
------------------------------ */

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.score-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.score-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 18px;
  font-size: 1.35rem;
  font-weight: 950;
}

.score-card h3 {
  margin-bottom: 8px;
}

.score-card p {
  color: var(--text-muted);
}

.score-card.hit .score-symbol {
  background: var(--green-soft);
  color: var(--green);
}

.score-card.partial .score-symbol {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.score-card.miss .score-symbol {
  background: var(--red-soft);
  color: var(--red);
}

.score-card.worse .score-symbol {
  background: var(--purple-soft);
  color: var(--purple);
}

/* ------------------------------
   Table
------------------------------ */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.comparison-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: var(--bg-card);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  position: sticky;
  top: 72px;
  z-index: 5;
  background: #172033;
  color: #fff;
  font-size: 0.9rem;
  white-space: nowrap;
}

.comparison-table tbody th {
  width: 150px;
  color: var(--text);
  font-weight: 850;
  background: #f8fafc;
}

.comparison-table tbody td {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.comparison-table tbody tr:hover td,
.comparison-table tbody tr:hover th {
  background: #eff6ff;
}

.judge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.judge.hit {
  background: var(--green-soft);
  color: var(--green);
}

.judge.partial {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.judge.miss {
  background: var(--red-soft);
  color: var(--red);
}

.judge.worse {
  background: var(--purple-soft);
  color: var(--purple);
}

.table-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ------------------------------
   Timeline
------------------------------ */

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 112px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--red));
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 26px;
  padding: 0 0 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 103px;
  top: 10px;
  width: 21px;
  height: 21px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
  z-index: 2;
}

.timeline-item.highlight::before {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.14);
}

.timeline-item time {
  display: inline-flex;
  justify-content: flex-end;
  padding-top: 5px;
  color: var(--primary-dark);
  font-weight: 900;
}

.timeline-item > div {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.timeline-item.highlight > div {
  border-color: rgba(185, 28, 28, 0.25);
  background: linear-gradient(180deg, #fff, #fff7f7);
}

.timeline-item h3 {
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--text-muted);
}

/* ------------------------------
   Heatmap
------------------------------ */

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

.heat-card {
  padding: 25px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

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

.heat-header span {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.heat-card p {
  color: var(--text-muted);
}

.heat-card.severe {
  border-top: 6px solid var(--red);
}

.heat-card.severe .heat-header span {
  background: var(--red-soft);
  color: var(--red);
}

.heat-card.medium {
  border-top: 6px solid var(--yellow);
}

.heat-card.medium .heat-header span {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.heat-card.warning {
  border-top: 6px solid var(--orange);
}

.heat-card.warning .heat-header span {
  background: var(--orange-soft);
  color: var(--orange);
}

.heat-card.alert {
  border-top: 6px solid var(--purple);
}

.heat-card.alert .heat-header span {
  background: var(--purple-soft);
  color: var(--purple);
}

/* ------------------------------
   Scenarios
------------------------------ */

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.scenario-card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.scenario-card.most-likely {
  border: 2px solid rgba(185, 28, 28, 0.34);
  box-shadow: var(--shadow-md);
}

.scenario-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.scenario-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.probability {
  display: inline-flex;
  min-width: 54px;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 950;
}

.scenario-card.most-likely .probability {
  background: var(--red-soft);
  color: var(--red);
}

.scenario-card h3 {
  margin-bottom: 12px;
}

.scenario-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.scenario-card ul {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-left: 1.2em;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tag {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
}

/* ------------------------------
   Conclusion
------------------------------ */

.section-conclusion {
  background:
    linear-gradient(135deg, #0f172a, #172033 58%, #1e293b);
  color: #fff;
}

.conclusion-card {
  max-width: 980px;
  padding: clamp(30px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 18rem),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
}

.conclusion-card .eyebrow {
  color: #93c5fd;
}

.conclusion-card h2 {
  margin-bottom: 22px;
}

.conclusion-card p {
  color: #dbe4f0;
  font-size: 1.02rem;
}

.conclusion-highlight {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.32);
}

.conclusion-highlight strong {
  color: #fecaca;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.conclusion-highlight span {
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.5;
}

/* ------------------------------
   Related
------------------------------ */

.related {
  padding-top: 68px;
}

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

.related-card {
  display: block;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.related-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.related-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.18rem;
}

.related-card p {
  color: var(--text-muted);
}

/* ------------------------------
   Footer
------------------------------ */

.site-footer {
  padding: 34px 0;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  display: grid;
  gap: 8px;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.footer-note {
  color: #94a3b8;
}

/* ------------------------------
   Generic Page Styles
   source-notes / methodology / update-log 用にも使える
------------------------------ */

.page-hero {
  padding: 64px 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94)),
    radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.26), transparent 24rem);
  color: #fff;
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.page-hero p {
  max-width: 780px;
  color: #dbeafe;
}

.page-section {
  padding: 64px 0;
}

.note-box {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--yellow-soft);
  border: 1px solid rgba(161, 98, 7, 0.22);
  color: #713f12;
}

.source-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.source-item {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.source-item:target {
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px rgba(29, 78, 216, 0.12),
    var(--shadow-md);
}

.source-item strong {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.source-item p {
  color: var(--text-muted);
}

.source-item a {
  word-break: break-all;
}

.method-card,
.log-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.method-grid,
.log-list {
  display: grid;
  gap: 16px;
}

/* ------------------------------
   Responsive
------------------------------ */

@media (max-width: 1100px) {
  .summary-grid,
  .gap-grid,
  .indicator-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .hero-panel {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 62px 0;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .header-nav {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .header-nav a {
    flex: 0 0 auto;
  }

  .hero {
    padding: 62px 0;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .summary-grid,
  .indicator-grid,
  .compare-grid,
  .gap-grid,
  .score-grid,
  .heatmap-grid,
  .scenario-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: auto;
  }

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

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 34px;
  }

  .timeline-item::before {
    left: 0;
    top: 6px;
  }

  .timeline-item time {
    justify-content: flex-start;
    padding-top: 0;
  }

  .comparison-table thead th {
    top: 0;
  }

  .tag {
    position: static;
    margin-top: 16px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 22px, var(--container));
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    padding: 52px 0;
  }

  .hero-message,
  .panel-card,
  .summary-card,
  .indicator-card,
  .compare-card,
  .gap-card,
  .score-card,
  .heat-card,
  .scenario-card,
  .related-card,
  .conclusion-card {
    border-radius: 18px;
  }

  .hero-message,
  .panel-card,
  .summary-card,
  .indicator-card,
  .compare-card,
  .gap-card,
  .score-card,
  .heat-card,
  .scenario-card,
  .related-card {
    padding: 20px;
  }

  .comparison-table {
    min-width: 880px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 13px 14px;
  }
}

/* ------------------------------
   Print
------------------------------ */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .hero-actions,
  .site-footer,
  .skip-link {
    display: none;
  }

  .hero,
  .section-conclusion,
  .page-hero {
    background: #fff;
    color: #000;
  }

  .hero-lead,
  .panel-card p,
  .meta-list dd,
  .conclusion-card p,
  .page-hero p {
    color: #000;
  }

  .summary-card,
  .indicator-card,
  .compare-card,
  .gap-card,
  .score-card,
  .heat-card,
  .scenario-card,
  .related-card,
  .timeline-item > div,
  .conclusion-card {
    box-shadow: none;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
/* Related main site link */

.related-main-site {
  margin-top: 56px;
}

.main-map-link-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  padding: 24px;
  border: 1px solid rgba(248, 113, 113, 0.5);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(248, 113, 113, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(127, 29, 29, 0.48), rgba(15, 23, 42, 0.9));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 22px 56px rgba(2, 6, 23, 0.28);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.main-map-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.36);
  background:
    radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(127, 29, 29, 0.58), rgba(15, 23, 42, 0.92));
}

.main-map-link-label {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(254, 202, 202, 0.16);
  color: #fecaca;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.main-map-link-card strong {
  color: #f8fafc;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.main-map-link-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.75;
}

.main-map-link-arrow {
  margin-top: 4px;
  color: #fde68a;
  font-size: 0.95rem;
  font-weight: 850;
}

@media (max-width: 640px) {
  .related-main-site {
    margin-top: 40px;
  }

  .main-map-link-card {
    padding: 20px;
    border-radius: 20px;
  }
}
