:root {
  --ink: #12212b;
  --muted: #627482;
  --line: #dce6ec;
  --bg: #f4f8fa;
  --card: #ffffff;
  --brand: #12384f;
  --accent: #007f8f;
  --green: #18804f;
  --yellow: #b87900;
  --orange: #c95616;
  --red: #b82434;
  --shadow: 0 14px 34px rgba(18, 33, 43, .1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid #00a2b1;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  padding: .7rem 1rem;
  background: var(--ink);
  color: #fff;
  z-index: 30;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}

.brand span {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-end;
}

nav a {
  padding: .45rem .65rem;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  background: #eaf2f5;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 1.4rem;
  align-items: end;
  padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 5vw, 5rem);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(18, 56, 79, .95), rgba(0, 127, 143, .82)),
    url("https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.eyebrow {
  margin: 0 0 .4rem;
  color: var(--accent);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.hero .eyebrow { color: rgba(255, 255, 255, .82); }

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: .65rem .95rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 7px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

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

.status-box {
  display: grid;
  gap: .45rem;
  padding: 1rem;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-box span,
.status-box small {
  color: var(--muted);
}

.status-box strong {
  font-size: 1.7rem;
}

.status-box button {
  min-height: 2.6rem;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.quick-summary,
.main-grid,
.memo-section,
.official-section,
.policy-section,
.command-center,
.insight-section,
.visual-section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem);
}

.quick-summary {
  background: #fff;
}

.visual-section {
  background: linear-gradient(180deg, rgba(5, 14, 18, .92), rgba(3, 10, 13, .96));
  border-top: 1px solid rgba(0, 212, 255, .2);
  border-bottom: 1px solid rgba(57, 255, 136, .16);
}

.visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .78fr) minmax(17rem, .78fr);
  gap: 1rem;
  align-items: stretch;
}

.rail-map-card,
.heat-card,
.visual-data-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(0, 212, 255, .26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 212, 255, .1), transparent 34%),
    linear-gradient(180deg, rgba(12, 27, 32, .94), rgba(6, 17, 20, .96));
  box-shadow: var(--shadow);
}

.visual-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}

.visual-card-head strong {
  color: #fff;
  font-size: 1rem;
}

.rail-map {
  position: relative;
  min-height: 25rem;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, .2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 212, 255, .07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(57, 255, 136, .045) 1px, transparent 1px),
    radial-gradient(circle at 56% 42%, rgba(0, 212, 255, .16), transparent 16rem),
    rgba(2, 8, 10, .82);
  background-size: 32px 32px, 32px 32px, auto, auto;
}

.rail-map svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 25rem;
}

.map-line-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 22;
  cursor: pointer;
}

.map-line-bg,
.map-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-line-bg {
  stroke: rgba(255, 255, 255, .16);
  stroke-width: 13;
}

.map-line {
  stroke: var(--line-color);
  stroke-width: calc(5px + var(--severity) * 1px);
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--line-color), transparent 30%));
}

.map-line.status-delay,
.map-line.status-partial,
.map-line.status-suspended {
  stroke-dasharray: 14 8;
  animation: map-flow 1.45s linear infinite;
}

.map-node {
  fill: #061014;
  stroke: rgba(233, 251, 255, .86);
  stroke-width: 2;
}

.map-label {
  fill: #dffaff;
  font-size: 12px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(2, 8, 10, .82);
  stroke-width: 4px;
}

.map-route-label {
  fill: #fff;
  font-size: 11px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(2, 8, 10, .86);
  stroke-width: 4px;
}

.map-alert-ring {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  opacity: .78;
  transform-box: fill-box;
  transform-origin: center;
  animation: map-ping 1.8s ease-out infinite;
}

.map-route-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .75rem;
  border-top: 1px solid rgba(0, 212, 255, .16);
}

.map-route-buttons button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.25rem;
  padding: .35rem .55rem;
  border: 1px solid rgba(0, 212, 255, .24);
  border-left: 4px solid var(--line-color);
  border-radius: 7px;
  background: rgba(2, 9, 12, .84);
  color: #fff;
  font-size: .84rem;
  font-weight: 900;
}

.map-route-buttons button:hover {
  border-color: rgba(57, 255, 136, .44);
  box-shadow: 0 0 14px rgba(57, 255, 136, .14);
}

.map-route-buttons span {
  color: var(--muted);
  font-size: .72rem;
}

.heat-rows,
.visual-data {
  display: grid;
  gap: .62rem;
}

.heat-row,
.data-row {
  display: grid;
  gap: .35rem;
  padding: .65rem;
  border: 1px solid rgba(0, 212, 255, .18);
  border-radius: 7px;
  background: rgba(2, 9, 12, .72);
}

.heat-row button,
.data-row button {
  width: 100%;
  min-height: 2.2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  font-weight: 900;
}

.heat-meta,
.data-meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  color: var(--muted);
  font-size: .82rem;
}

.heat-bar {
  height: .72rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.heat-fill {
  display: block;
  width: var(--heat);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--line-color), var(--red));
  box-shadow: 0 0 16px color-mix(in srgb, var(--line-color), transparent 20%);
}

.sparkline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .25rem;
  align-items: end;
  height: 2.35rem;
}

.sparkline span {
  display: block;
  min-height: .35rem;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, var(--line-color), rgba(0, 212, 255, .25));
}

.data-status {
  display: inline-flex;
  width: fit-content;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(0, 212, 255, .12);
  color: #b9f6ff;
  font-size: .78rem;
  font-weight: 900;
}

.map-empty {
  padding: 1rem;
  color: var(--muted);
}

@keyframes map-flow {
  to { stroke-dashoffset: -22; }
}

@keyframes map-ping {
  0% { transform: scale(.82); opacity: .95; }
  100% { transform: scale(1.45); opacity: 0; }
}

.insight-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(13rem, .72fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: .9rem;
}

.insight-score-card,
.insight-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.insight-score-card {
  display: grid;
  align-content: space-between;
  min-height: 15rem;
}

.insight-score-card strong {
  display: block;
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  line-height: .9;
  font-weight: 900;
}

.insight-score-card p,
.insight-panel p {
  color: var(--muted);
}

.insight-panel h3 {
  margin: 0 0 .75rem;
}

.priority-routes,
.station-watch {
  display: grid;
  gap: .55rem;
}

.priority-routes button,
.station-watch button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .2rem .65rem;
  align-items: center;
  min-height: 3.3rem;
  padding: .6rem .7rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.priority-routes span,
.station-watch span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.2rem;
  min-height: 2rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: #eef4f6;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.priority-routes strong,
.station-watch strong {
  line-height: 1.25;
}

.priority-routes small,
.station-watch small {
  color: var(--muted);
}

.watch-hot span {
  background: rgba(201, 86, 22, .14);
  color: var(--orange);
}

.watch-calm span {
  background: rgba(24, 128, 79, .12);
  color: var(--green);
}

.next-read-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.next-read-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--brand);
  text-decoration: none;
  font-weight: 900;
}

.empty-mini {
  margin: 0;
  padding: .75rem;
  border-radius: 7px;
  background: #eef4f6;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(7.4rem, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}

.live-strip {
  display: grid;
  grid-template-columns: minmax(11rem, .8fr) minmax(10rem, .65fr) minmax(16rem, 1.4fr) minmax(12rem, .8fr);
  gap: .7rem;
  padding: .8rem clamp(1rem, 5vw, 5rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.live-cell,
.commute-mode {
  min-height: 4.8rem;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}

.live-cell {
  display: grid;
  align-content: center;
  gap: .15rem;
}

.live-cell small,
.commute-mode small {
  color: var(--muted);
}

.live-cell strong {
  line-height: 1.25;
}

.freshness-card {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .7rem;
}

.freshness-card div {
  display: grid;
}

.pulse-dot {
  width: .78rem;
  height: .78rem;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 5px rgba(98, 116, 130, .14);
}

.freshness-good .pulse-dot {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(24, 128, 79, .14), 0 0 18px var(--green);
  animation: live-pulse 1.8s ease-in-out infinite;
}

.freshness-warn .pulse-dot {
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(184, 121, 0, .15), 0 0 16px var(--yellow);
}

.freshness-stale .pulse-dot {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(184, 36, 52, .14), 0 0 16px var(--red);
}

.live-change strong {
  font-size: .95rem;
}

.commute-mode {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 .65rem;
  align-items: center;
  text-align: left;
}

.commute-mode > span {
  grid-row: span 2;
  color: var(--yellow);
  font-size: 1.35rem;
}

.commute-mode.is-active {
  border-color: var(--accent);
  background: rgba(57, 255, 136, .1);
}

@keyframes live-pulse {
  0%, 100% { transform: scale(.9); opacity: .72; }
  50% { transform: scale(1.08); opacity: 1; }
}

.command-center {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr) minmax(16rem, .7fr);
  gap: 1rem;
  background: rgba(4, 12, 15, .72);
  border-bottom: 1px solid rgba(0, 212, 255, .18);
}

.command-card {
  min-height: 11rem;
  padding: 1rem;
  border: 1px solid rgba(0, 212, 255, .28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 212, 255, .12), transparent 35%),
    linear-gradient(180deg, rgba(12, 27, 32, .94), rgba(6, 17, 20, .94));
  box-shadow: var(--shadow);
}

.command-card h2 {
  margin: .25rem 0 .4rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
}

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

.command-alert {
  border-color: rgba(255, 59, 107, .36);
}

.impact-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.impact-ticker span {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  padding: .35rem .65rem;
  border: 1px solid rgba(0, 212, 255, .3);
  border-radius: 999px;
  background: rgba(0, 212, 255, .08);
  color: var(--ink);
  font-weight: 800;
}

.command-actions button {
  min-height: 2.75rem;
  padding: .55rem .85rem;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #00d4ff, #39ff88);
  color: #041014;
  font-weight: 900;
}

.decision-dock {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .95fr) minmax(14rem, .65fr);
  gap: 1rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem);
  background:
    radial-gradient(circle at 12% 10%, rgba(57, 255, 136, .12), transparent 24rem),
    rgba(3, 10, 13, .84);
  border-bottom: 1px solid rgba(57, 255, 136, .18);
}

.decision-main,
.quick-chip-panel,
.action-stack {
  padding: 1rem;
  border: 1px solid rgba(57, 255, 136, .24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 27, 32, .94), rgba(6, 17, 20, .94));
  box-shadow: var(--shadow);
}

.decision-main h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.decision-main p {
  color: var(--muted);
}

.level-badge {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(0, 212, 255, .12);
  border: 1px solid rgba(0, 212, 255, .34);
  color: #b9f6ff;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(0, 212, 255, .24);
}

.level-critical {
  background: rgba(255, 59, 107, .16);
  border-color: rgba(255, 59, 107, .42);
  color: #ffd9e1;
}

.level-warning {
  background: rgba(255, 209, 102, .15);
  border-color: rgba(255, 209, 102, .42);
  color: #fff1bf;
}

.level-notice {
  background: rgba(0, 212, 255, .13);
}

.level-normal {
  background: rgba(57, 255, 136, .13);
  border-color: rgba(57, 255, 136, .38);
  color: #cfffe2;
}

.quick-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.quick-chip-grid button,
.ghost-button {
  min-height: 2.45rem;
  padding: .45rem .65rem;
  border: 1px solid rgba(0, 212, 255, .28);
  border-radius: 999px;
  background: rgba(0, 212, 255, .08);
  color: var(--ink);
  font-weight: 800;
}

.quick-chip-grid button:hover,
.ghost-button:hover {
  border-color: rgba(57, 255, 136, .48);
  box-shadow: 0 0 18px rgba(57, 255, 136, .18);
}

.ghost-button {
  margin-top: .8rem;
  border-radius: 7px;
}

.action-stack {
  display: grid;
  gap: .6rem;
}

.action-stack a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: .6rem .75rem;
  border: 1px solid rgba(0, 212, 255, .24);
  border-radius: 7px;
  color: #6ee7ff;
  text-decoration: none;
  font-weight: 900;
}

.next-action {
  display: inline-flex;
  width: fit-content;
  margin-top: .8rem;
  padding: .22rem .55rem;
  border: 1px solid rgba(57, 255, 136, .28);
  border-radius: 999px;
  color: #cfffe2;
  background: rgba(57, 255, 136, .09);
  font-size: .86rem;
  font-weight: 900;
}

.metric {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: center;
  min-height: 6.4rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-top: 5px solid var(--muted);
  border-radius: 8px;
  background: var(--card);
  text-align: left;
}

.metric-symbol {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 900;
}

.metric-copy {
  display: grid;
  min-width: 0;
}

.metric-copy strong {
  color: var(--ink);
  line-height: 1.2;
}

.metric-copy small,
.metric-count small,
.summary-help {
  color: var(--muted);
}

.summary-help {
  margin: .35rem 0 0;
}

.metric-count {
  display: grid;
  justify-items: end;
  line-height: 1;
}

.metric-count b {
  color: var(--ink);
  font-size: 2rem;
}

.metric-count small {
  margin-top: .2rem;
  font-size: .78rem;
}

.metric:disabled {
  cursor: default;
  opacity: .48;
}

.metric.status-normal { border-top-color: var(--green); }
.metric.status-normal .metric-symbol { color: var(--green); }
.metric.status-notice { border-top-color: #9bb2bc; }
.metric.status-notice .metric-symbol { color: #9bb2bc; }
.metric.status-delay { border-top-color: var(--yellow); }
.metric.status-delay .metric-symbol { color: var(--yellow); }
.metric.status-partial { border-top-color: var(--orange); }
.metric.status-partial .metric-symbol { color: var(--orange); }
.metric.status-suspended { border-top-color: var(--red); }
.metric.status-suspended .metric-symbol { color: var(--red); }

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 8rem;
  padding: 1rem;
  border: 1px dashed #aebdc7;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.ad-slot span {
  display: inline-flex;
  margin-bottom: .25rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: #eef4f6;
  color: var(--muted);
  font-weight: 800;
  font-size: .8rem;
}

.ad-slot p { margin: 0; }

.ad-wide {
  margin: 1rem clamp(1rem, 5vw, 5rem) 0;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 1rem;
  align-items: start;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 1rem;
}

.section-head h2,
.quick-summary h2,
.panel h2,
.policy-section h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.18;
}

.section-head p,
.panel p,
.policy-section p {
  color: var(--muted);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 13rem;
  gap: .8rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-panel label {
  display: grid;
  gap: .35rem;
  font-weight: 800;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 2.8rem;
  padding: .55rem .7rem;
  border: 1px solid #b7c7d1;
  border-radius: 6px;
}

.list-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 .7rem;
  color: var(--muted);
}

.list-head strong {
  color: var(--ink);
}

.line-list {
  display: grid;
  gap: .8rem;
}

.line-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 7px solid var(--line-color);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 33, 43, .06);
}

.line-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .7rem;
  align-items: center;
}

.favorite-button {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #b87900;
  font-size: 1.15rem;
}

.line-top h3,
.line-top p {
  margin: 0;
}

.line-top p,
.line-meta,
.source-note {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  color: #fff;
  background: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.status-normal .status-pill { background: var(--green); }
.status-notice .status-pill { background: var(--muted); }
.status-delay .status-pill { background: var(--yellow); }
.status-partial .status-pill { background: var(--orange); }
.status-suspended .status-pill { background: var(--red); }

.line-action {
  margin: .7rem 0;
  font-weight: 800;
}

.line-links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.connection-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .7rem 0;
}

.connection-chips span {
  display: inline-flex;
  min-height: 1.9rem;
  align-items: center;
  padding: .22rem .5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.line-links a {
  color: var(--brand);
  font-weight: 800;
}

.side-column {
  position: sticky;
  top: 5rem;
  display: grid;
  gap: 1rem;
}

.panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.favorite-strip {
  display: grid;
  gap: .5rem;
}

.favorite-strip button {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  min-height: 2.5rem;
  padding: .45rem .65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.label {
  display: inline-flex;
  padding: .16rem .5rem;
  border-radius: 999px;
  background: #eef4f6;
  color: var(--muted);
  font-weight: 900;
  font-size: .78rem;
}

.affiliate-panel a {
  display: block;
  padding: .65rem 0;
  color: var(--brand);
  font-weight: 800;
  border-top: 1px solid var(--line);
}

.memo-section,
.policy-section {
  background: #fff;
}

.memo-grid,
.policy-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.memo-card,
.policy-cards article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.memo-card strong {
  display: block;
  color: var(--brand);
}

.memo-card small {
  display: block;
  color: var(--muted);
  margin-top: .5rem;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.source-list a {
  display: block;
  color: var(--brand);
  font-weight: 900;
}

.source-list span {
  color: var(--muted);
}

.site-footer {
  padding: 2rem clamp(1rem, 5vw, 5rem);
  background: var(--brand);
  color: rgba(255, 255, 255, .86);
}

.site-footer a { color: #fff; }
.site-footer p { margin: .2rem 0; }

.policy-page {
  min-height: 70vh;
}

.page-hero {
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 5vw, 5rem) clamp(1.4rem, 4vw, 2.5rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 54rem;
  color: var(--ink);
  font-size: clamp(2.2rem, 7vw, 4.6rem);
}

.page-hero p {
  max-width: 48rem;
  color: var(--muted);
}

.document {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
}

.document h2 {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.document h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.document p,
.document li {
  color: var(--muted);
}

.document code {
  padding: .1rem .35rem;
  border-radius: 4px;
  background: #eaf2f5;
  color: var(--ink);
}

.plain-button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

/* Cyber visual layer */
:root {
  --ink: #e9fbff;
  --muted: #8aa6af;
  --line: rgba(40, 238, 255, .24);
  --bg: #061012;
  --card: rgba(8, 21, 25, .88);
  --brand: #00d4ff;
  --accent: #39ff88;
  --green: #39ff88;
  --yellow: #ffd166;
  --orange: #ff8a3d;
  --red: #ff3b6b;
  --shadow: 0 18px 48px rgba(0, 212, 255, .13);
}

body {
  background:
    linear-gradient(90deg, rgba(0, 212, 255, .06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(57, 255, 136, .045) 1px, transparent 1px),
    radial-gradient(circle at 25% 0%, rgba(0, 212, 255, .16), transparent 34rem),
    linear-gradient(135deg, #05090c 0%, #061418 46%, #0d1016 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, .035),
    rgba(255, 255, 255, .035) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: .26;
}

.site-header {
  background: rgba(4, 12, 15, .9);
  border-bottom-color: rgba(0, 212, 255, .3);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .28);
}

.live-strip {
  background: rgba(3, 10, 13, .92);
  border-bottom-color: rgba(0, 212, 255, .2);
}

.live-cell,
.commute-mode {
  background: linear-gradient(180deg, rgba(12, 27, 32, .96), rgba(6, 17, 20, .96));
  border-color: rgba(0, 212, 255, .24);
  box-shadow: inset 0 0 20px rgba(0, 212, 255, .035);
}

.live-cell strong,
.commute-mode strong {
  color: #fff;
}

.commute-mode:hover {
  border-color: rgba(57, 255, 136, .5);
  box-shadow: 0 0 18px rgba(57, 255, 136, .16);
}

.brand span {
  background: linear-gradient(135deg, #00d4ff, #39ff88);
  color: #041014;
  box-shadow: 0 0 24px rgba(0, 212, 255, .42);
}

.brand strong,
nav a {
  color: var(--ink);
}

nav a {
  border: 1px solid transparent;
}

nav a:hover {
  background: rgba(0, 212, 255, .12);
  border-color: rgba(0, 212, 255, .34);
  color: #fff;
}

.hero {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid rgba(0, 212, 255, .28);
  background:
    linear-gradient(115deg, rgba(3, 12, 16, .96), rgba(4, 45, 54, .8)),
    linear-gradient(90deg, rgba(0, 212, 255, .16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(57, 255, 136, .1) 1px, transparent 1px),
    url("https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?auto=format&fit=crop&w=1800&q=80") center/cover;
  background-size: auto, 54px 54px, 54px 54px, cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, #00d4ff, #39ff88, transparent);
  box-shadow: 0 0 22px rgba(0, 212, 255, .9);
  z-index: -1;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0;
  text-shadow: 0 0 16px rgba(57, 255, 136, .45);
}

h1 {
  text-shadow: 0 0 28px rgba(0, 212, 255, .45);
}

.button {
  border-color: rgba(0, 212, 255, .48);
  background: rgba(0, 212, 255, .08);
  box-shadow: inset 0 0 18px rgba(0, 212, 255, .08);
}

.button.primary,
.plain-button {
  background: linear-gradient(135deg, #00d4ff, #39ff88);
  color: #041014;
  border-color: transparent;
  box-shadow: 0 0 26px rgba(0, 212, 255, .36);
}

.status-box,
.metric,
.search-panel,
.line-card,
.panel,
.memo-card,
.policy-cards article,
.source-list li,
.document,
.insight-score-card,
.insight-panel,
.next-read-strip a {
  background: linear-gradient(180deg, rgba(12, 27, 32, .94), rgba(6, 17, 20, .94));
  border-color: rgba(0, 212, 255, .24);
  box-shadow: var(--shadow);
}

.status-box {
  color: var(--ink);
  border: 1px solid rgba(0, 212, 255, .3);
}

.status-box button {
  background: linear-gradient(135deg, #00d4ff, #39ff88);
  color: #041014;
}

.quick-summary,
.insight-section,
.memo-section,
.policy-section,
.page-hero {
  background: rgba(4, 12, 15, .8);
  border-color: rgba(0, 212, 255, .18);
}

.official-section,
.main-grid {
  background: transparent;
}

.metric {
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  pointer-events: none;
}

.metric-count b {
  color: #fff;
  text-shadow: 0 0 18px rgba(0, 212, 255, .5);
}

.metric:hover:not(:disabled) {
  border-color: rgba(0, 212, 255, .48);
  box-shadow: 0 0 22px rgba(0, 212, 255, .14);
}

.ad-slot {
  background:
    linear-gradient(135deg, rgba(10, 24, 28, .94), rgba(17, 17, 24, .92));
  border-color: rgba(255, 209, 102, .34);
  color: #d6e9ef;
}

.ad-slot span,
.label {
  background: rgba(255, 209, 102, .14);
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, .28);
}

.search-panel input,
.search-panel select {
  background: rgba(2, 9, 12, .9);
  border-color: rgba(0, 212, 255, .35);
  color: var(--ink);
}

.line-card {
  border-left-width: 5px;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .24),
    inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.favorite-button,
.favorite-strip button,
.priority-routes button,
.station-watch button {
  background: rgba(2, 9, 12, .85);
  border-color: rgba(0, 212, 255, .28);
  color: #ffd166;
}

.insight-score-card strong {
  color: #fff;
  text-shadow: 0 0 28px rgba(0, 212, 255, .52);
}

.score-high {
  border-color: rgba(255, 59, 107, .42);
  box-shadow: 0 0 30px rgba(255, 59, 107, .18);
}

.score-mid {
  border-color: rgba(255, 209, 102, .38);
}

.score-low {
  border-color: rgba(57, 255, 136, .34);
}

.priority-routes button:hover,
.station-watch button:hover,
.next-read-strip a:hover {
  border-color: rgba(57, 255, 136, .5);
  box-shadow: 0 0 18px rgba(57, 255, 136, .17);
}

.status-pill {
  box-shadow: 0 0 18px rgba(0, 212, 255, .22);
}

.status-normal .status-pill { color: #03110a; }
.status-delay .status-pill { color: #1b1200; }
.status-partial .status-pill { color: #170904; }

.line-links a,
.source-list a,
.affiliate-panel a,
.next-read-strip a {
  color: #6ee7ff;
}

.connection-chips span {
  border-color: rgba(0, 212, 255, .24);
  background: rgba(0, 212, 255, .06);
}

.empty-mini {
  background: rgba(0, 212, 255, .08);
}

.site-footer {
  background:
    linear-gradient(90deg, rgba(0, 212, 255, .12) 1px, transparent 1px),
    #050b0e;
  background-size: 48px 48px;
  border-top: 1px solid rgba(0, 212, 255, .3);
}

.page-hero h1 {
  color: var(--ink);
}

.document code {
  background: rgba(0, 212, 255, .12);
  color: #b9f6ff;
}

.empty {
  padding: 1rem;
  border-radius: 8px;
  background: var(--card);
}

@media (max-width: 900px) {
  .live-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .main-grid,
  .search-panel,
  .command-center,
  .decision-dock,
  .insight-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .side-column {
    position: static;
  }

  .summary-grid,
  .memo-grid,
  .source-list,
  .policy-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.6rem, 17vw, 4.2rem);
  }

  .live-strip {
    grid-template-columns: 1fr;
  }

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

  .summary-grid .metric:last-child {
    grid-column: 1 / -1;
  }

  .metric {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: .45rem;
    min-height: 5.8rem;
    padding: .65rem;
  }

  .metric-symbol {
    width: 2rem;
    height: 2rem;
  }

  .metric-copy strong {
    font-size: .92rem;
  }

  .metric-copy small {
    font-size: .74rem;
  }

  .metric-count b {
    font-size: 1.65rem;
  }

  .memo-grid,
  .source-list,
  .policy-cards {
    grid-template-columns: 1fr;
  }

  .line-top {
    grid-template-columns: auto 1fr;
  }

  .status-pill {
    grid-column: 2;
    width: fit-content;
  }

  .rail-map {
    min-height: 20rem;
  }

  .rail-map svg {
    min-height: 20rem;
  }
}

@media (max-width: 350px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid .metric:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ===== 収益コンポーネント(2026-07追加) ===== */
.rescue-section {
  margin: 2.4rem auto;
  max-width: 72rem;
  padding: 0 1.2rem;
}
.rescue-section .section-head p.pr-note {
  font-size: .8rem;
  color: var(--muted);
}
.rescue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.rescue-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.rescue-card .pr-badge {
  position: absolute;
  top: .8rem;
  right: .9rem;
  font-size: .68rem;
  letter-spacing: .08em;
  padding: .15rem .5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.rescue-card h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--brand);
}
.rescue-card p {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
  flex: 1;
}
.rescue-card .use-when {
  font-size: .75rem;
  color: var(--accent);
}
.rescue-card a.cta {
  display: block;
  text-align: center;
  padding: .6rem .8rem;
  border-radius: 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.rescue-card a.cta:hover { background: rgba(0, 212, 255, .08); }
.rescue-card.urgent { border-color: var(--red); }
.rescue-card.urgent h3 { color: var(--red); }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin: 1rem 0;
}
.compare-table th, .compare-table td {
  border: 1px solid var(--line);
  padding: .55rem .7rem;
  text-align: left;
  vertical-align: top;
}
.compare-table th { color: var(--brand); background: rgba(0, 212, 255, .06); }

.inline-cta {
  display: block;
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 12px;
  text-decoration: none;
  background: var(--card);
}
.inline-cta strong { color: var(--accent); }
.inline-cta small { display: block; color: var(--muted); margin-top: .2rem; }
