@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;600;700&family=Manrope:wght@500;700&display=swap');

:root {
  --bg: #0b1220;
  --panel: #0f172a;
  --surface: #111827;
  --surface-2: #0f172a;
  --border: rgba(255, 255, 255, 0.06);
  --muted: #9ca3af;
  --text: #e5e7eb;
  --accent: #38bdf8;
  --accent-2: #f59e0b;
  --danger: #ef4444;
  --success: #22c55e;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  font-family: 'Noto Sans JP', 'Manrope', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.12), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.14), transparent 40%),
    linear-gradient(160deg, #0b1324 0%, #0b1220 50%, #0d172a 100%);
  color: var(--text);
}

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

.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(13, 17, 30, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-pill {
  background: linear-gradient(120deg, #0ea5e9, #38bdf8);
  color: #0b1220;
}

.brand-sub {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary,
.ghost {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.primary {
  background: linear-gradient(120deg, #0ea5e9, #22d3ee);
  color: #0b1220;
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.3);
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(34, 211, 238, 0.4);
}

.ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--border);
}

.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 18px 42px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  padding: 14px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 6px 0 4px;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.hero .lede {
  color: var(--muted);
  margin: 8px 0 12px;
}

.hero-actions {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.eyebrow,
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-weight: 700;
  border: 1px solid var(--border);
}

.pill.small {
  padding: 6px 10px;
  font-size: 12px;
}

.pill.muted {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

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

.map-card {
  padding: 0;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 8px 14px;
}

.map {
  width: 100%;
  height: 480px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px 14px;
}

.map-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

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

.metric-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.metric-cards.compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.metric-card h3 {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.metric-card .value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin: 6px 0 2px;
}

.metric-card .hint {
  color: var(--muted);
  font-size: 12px;
}

.chart-wrapper {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
}

.chart-wrapper canvas {
  width: 100%;
}

.table {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.table table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

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

.table th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.direction-card {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.direction-card .title {
  font-weight: 700;
  margin-bottom: 4px;
}

.direction-card .meta {
  color: var(--muted);
  font-size: 12px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
}

.badge {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
}

.badge.level-2 {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.12);
}

.badge.level-3 {
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(239, 68, 68, 0.14);
}

.plan-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.plan-block {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.plan-block h3 {
  margin: 0 0 6px;
}

.plan-block ul {
  padding-left: 18px;
  margin: 6px 0;
  color: var(--muted);
}

.plan-block li {
  margin-bottom: 4px;
}

.notice {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(239, 68, 68, 0.1);
  color: #fecdd3;
}

.notice.error {
  border-color: rgba(239, 68, 68, 0.6);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 12px;
  color: var(--muted);
}

.field input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
}

.field-grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.footer {
  padding: 16px 18px 26px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.footer-copy a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-copy a:hover {
  color: #cbd5e1;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .map {
    height: 360px;
  }
  .top-nav {
    position: static;
  }
}
