:root {
  --bg-main: #020617;
  --card-bg: rgba(15,23,42,0.9);
  --accent-blue: #38bdf8;
  --accent-pink: #fb7185;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(15,23,42,0.8);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, #0b1220 0%, #020617 45%, #020617 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ヘッダー */
header {
  padding: 16px 16px 8px;
  border-bottom: 1px solid rgba(148,163,184,0.25);
  backdrop-filter: blur(10px);
  background: linear-gradient(120deg, rgba(15,23,42,0.96), rgba(15,23,42,0.9));
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.header-tagline {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

/* メイン */
main {
  flex: 1;
  padding: 16px 16px 32px;
}

.main-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ヒーローセクション */
.hero {
  display: grid;
  grid-template-columns: minmax(0,2.1fr) minmax(0,1.4fr);
  gap: 20px;
  align-items: center;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: minmax(0,1fr);
  }
}

.hero-text {
  padding: 18px 20px 20px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.18) 0, rgba(15,23,42,0.9) 40%, rgba(15,23,42,0.98) 100%);
  box-shadow: var(--shadow-soft);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.hero-label-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-blue);
  box-shadow: 0 0 10px rgba(56,189,248,0.8);
}

.hero-title-ja {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-title-en {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-copy {
  font-size: 13px;
  line-height: 1.9;
  color: #e5e7eb;
  margin-bottom: 14px;
}

.hero-meta {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 距離カード */
.distance-card {
  border-radius: 24px;
  background: rgba(15,23,42,0.9);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.distance-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.distance-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.distance-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
}

.distance-label-left {
  white-space: nowrap;
}

.distance-label-right {
  margin-left: auto;
  white-space: nowrap;
}

.distance-bar {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  opacity: 0.45;
  overflow: hidden;
}

.distance-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #38bdf8;
  transform: translate(-50%, -50%);
  left: 12%; /* Karte0 時点は400km側 */
  box-shadow: 0 0 10px rgba(56,189,248,0.8);
}

.distance-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* セクション共通 */
.section {
  margin-top: 4px;
}

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

.section-title {
  font-size: 14px;
  font-weight: 600;
}

.section-caption {
  font-size: 11px;
  color: var(--text-muted);
}

/* エピソードカード */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.episode-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,184,0.35);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.episode-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 2px;
}

.episode-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.episode-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.episode-desc {
  font-size: 12px;
  line-height: 1.8;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.episode-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.episode-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  white-space: nowrap;
}

.episode-status {
  font-size: 11px;
  color: var(--text-muted);
}

.episode-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--text-muted);
}

.episode-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.8);
}

.episode-pill-dot-soon {
  background: #f97316;
  box-shadow: 0 0 8px rgba(249,115,22,0.8);
}

/* SNS カード */
.sns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.sns-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 12px 14px 10px;
  border: 1px solid rgba(148,163,184,0.3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sns-headline {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.sns-name {
  font-size: 13px;
  font-weight: 600;
}

.sns-role {
  font-size: 10px;
  color: var(--text-muted);
}

.sns-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.sns-link {
  margin-top: 4px;
  font-size: 11px;
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sns-tagline {
  font-size: 11px;
  color: #e5e7eb;
  line-height: 1.7;
  margin-top: 2px;
}

/* フッター */
footer {
  padding: 10px 16px 16px;
  border-top: 1px solid rgba(148,163,184,0.25);
  background: rgba(15,23,42,0.96);
  font-size: 10px;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}