* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-namboku: #00ac9b; /* 南北線 エメラルドグリーン */
  --color-mita: #007ac1;    /* 三田線 ブルー */
  --bg-dark: #0b0d12;
  --bg-card: #151922;
  --border-card: #283040;
}

body {
  background-color: var(--bg-dark);
  color: #f0f2f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", Meiryo, sans-serif;
  width: 1080px;
  height: 1920px;
  overflow: hidden;
  user-select: none;
}

/* 全体コンテナ（1080x1920固定） */
.signage-container {
  display: flex;
  flex-direction: column;
  width: 1080px;
  height: 1920px;
  padding: 32px 36px;
  gap: 28px;
}

/* 1. 最上部：駅名ブランディング ＋ 時計ヘッダー */
.station-header {
  height: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.station-title-group {
  display: flex;
  align-items: center;
  gap: 32px;
}

.station-signs {
  display: flex;
  gap: 16px;
}

.line-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.05;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.line-badge span {
  font-size: 1.05rem;
}
.namboku-bg { background-color: var(--color-namboku); }
.mita-bg { background-color: var(--color-mita); }

.station-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.station-name-ja {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1.1;
}

.station-name-en {
  font-size: 1.3rem;
  color: #8c9ba5;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.clock-display {
  font-family: "SF Pro Text", "Roboto Mono", monospace;
  font-size: 3.4rem;
  font-weight: 800;
  color: #66fcf1;
  letter-spacing: 2px;
}

/* 2. メイン領域（発車標 2面を上下配置） */
.boards-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 0;
}

.board-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* 各方面ヘッダー */
.board-header {
  padding: 18px 32px;
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.north-header {
  background: linear-gradient(90deg, #18423f 0%, #151922 100%);
  border-left: 10px solid var(--color-namboku);
}
.south-header {
  background: linear-gradient(90deg, #133a5e 0%, #151922 100%);
  border-left: 10px solid var(--color-mita);
}

.board-dir-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.board-dir-sub {
  font-size: 1.2rem;
  color: #a4b3c6;
  font-weight: 500;
}

/* 発車標テーブル */
.departure-table-container {
  flex: 1;
  padding: 12px 24px;
  display: flex;
}

.departure-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.departure-table th {
  color: #7b8ea7;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid #232b3b;
}

.departure-table td {
  padding: 16px 14px;
  border-bottom: 1px solid #1c2433;
  font-size: 1.6rem;
  vertical-align: middle;
}

/* カラム幅配分 */
.col-line   { width: 15%; }
.col-order  { width: 11%; }
.col-type   { width: 14%; }
.col-time   { width: 18%; }
.col-dest   { width: 26%; font-weight: 700; }
.col-status { width: 16%; text-align: right; }

.cell-time {
  font-family: "SF Pro Text", "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 1px;
}

/* 種別・路線バッジ */
.badge-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: bold;
}
.tag-namboku { 
  background: rgba(0, 172, 155, 0.18); 
  color: #00e5cf; 
  border: 1px solid var(--color-namboku); 
}
.tag-mita { 
  background: rgba(0, 122, 193, 0.18); 
  color: #4db3ff; 
  border: 1px solid var(--color-mita); 
}

.type-local { color: #ffffff; font-weight: 700; }
.type-exp   { color: #ff9f1a; font-weight: 800; }

.status-ok    { color: #2ecc71; font-size: 1.25rem; font-weight: 600; }
.status-delay { color: #ff4757; font-size: 1.25rem; font-weight: 800; }

/* 3. 最下部：運行情報テロップバー */
.footer-bar {
  height: 90px;
  background: #11141b;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.ticker-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-badge {
  background: #e67e22;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 6px;
  margin-right: 24px;
  white-space: nowrap;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-text {
  display: inline-block;
  font-size: 1.45rem;
  font-weight: 500;
  color: #f1f4f8;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0%   { transform: translateX(1080px); }
  100% { transform: translateX(-100%); }
}