/* yoyaku_display - style.css (20260410-UI修正版) */
body {
  background-color: #000000; color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0; padding: 0; padding-bottom: 40px;
}
.header {
  position: sticky; top: 0; background-color: #000000;
  padding: 10px 15px; z-index: 100; border-bottom: 1px solid #333;
  display: flex; flex-direction: column; gap: 10px;
}
.top-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.app-title { font-size: 16px; font-weight: bold; color: #fff; }
.update-controls { display: flex; gap: 8px; align-items: center; }
#area-select {
  background-color: #222; color: #fff; border: 1px solid #444;
  padding: 6px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; outline: none;
}
#update-btn {
  background-color: #e63946; color: white; border: none; padding: 6px 12px;
  border-radius: 4px; font-weight: bold; cursor: pointer; min-width: 100px; font-size: 12px;
  position: relative; overflow: hidden; --progress-width: 0%;
  background: linear-gradient(to right, #0099ff var(--progress-width), #e63946 var(--progress-width));
}
.nav-buttons { display: flex; gap: 6px; justify-content: flex-start; overflow-x: auto; }
.nav-btn {
  background-color: #222; color: #888; border: 1px solid #333;
  padding: 5px 15px; border-radius: 15px; font-size: 12px; font-weight: bold;
  cursor: pointer; transition: 0.2s; white-space: nowrap;
}
.nav-btn.active { background-color: #0099ff; color: white; border-color: #0099ff; }
.meta-bar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: #ccc; border-top: 1px solid #222; padding-top: 8px;
}
.legend-box { display: flex; gap: 10px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 3px; }
.dot-ok { background-color: #00bfff; }
.dot-ng { background-color: #ff3399; }
.dot-st { background-color: #888888; }
#car-list { padding: 10px; }
.car-card {
  background-color: #161618; border-radius: 8px; padding: 12px 10px;
  margin-bottom: 15px; border: 1px solid #2a2a2a;
}
.station-name { font-size: 14px; font-weight: bold; color: #ffffff; margin-bottom: 4px; }
.car-name { font-size: 14px; font-weight: bold; color: #fff; margin-bottom: 8px; }
.scroll-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 5px; }
.timeline-full-width { position: relative; height: 35px; margin-top: 5px; }
.timeline-container {
  display: flex; width: 100%; height: 12px; border-radius: 4px;
  overflow: hidden; background-color: #333; position: absolute; bottom: 0; z-index: 1;
}
.time-slot { flex: 1; height: 100%; border-right: 1px solid rgba(0, 0, 0, 0.35); }
.status-ok { background-color: #00bfff; }
.status-ng { background-color: #ff3399; }
.status-stopped { background-color: #888888; }
.ruler-label { position: absolute; top: 0; font-size: 10px; color: #ffffff; transform: translateX(-50%); white-space: nowrap; }
.grid-line { position: absolute; bottom: 0; height: 12px; width: 1px; background-color: #000000; z-index: 10; }
.error-msg { color: #ff3399; font-size: 11px; font-weight: bold; padding: 5px; border: 1px dashed #ff3399; border-radius: 4px; }
.loading { text-align: center; padding: 40px; color: #666; }

/* 0時ラベルと日付ラベルの重なりを解消するための追加ルール */
.ruler-label[style*="margin-left: 6px"] {
  top: 11px !important; /* 日付のみ一段下げて表示 */
}
