/* location の style.css から地図系を削ったもの。
   元は health ダッシュボード（style_main.css）の書式：黒背景・Arial・白文字・中央寄せ */
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0a0b0d;
  font-family: Arial, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  color: white;
  padding: 16px;
  font-size: 16px;
}

.site-bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.22;
  pointer-events: none;
}
.site-bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(10,11,13,0.2), rgba(10,11,13,0.75) 70%);
  pointer-events: none;
}

/* body直下の実コンテンツを背景レイヤーより手前に出す */
body > h1, body > .portal-link, body > main, body > .text-block, body > .site-footer {
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  font-family: Arial, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  color: white;
  margin-top: 0;
  line-height: 1.3;
}
h1 { font-size: 1.8rem; text-align: center; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }

.portal-link {
  text-align: center;
  margin: -4px 0 12px;
  font-size: 0.85rem;
}
.portal-link a {
  color: #6db3ff;
  text-decoration: none;
  opacity: 0.7;
}
.portal-link a:hover { opacity: 1; }

.text-block { margin-bottom: 24px; }
.center-text { text-align: center; }

.site-footer {
  margin: 24px 0 8px;
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
}

/* ---- カード（health の .dash-section / .metric-row をそのまま踏襲）---- */
/* カード内チャート行の高さ。PC(min-width:1000px)では大きい方に差し替える（health と同じ）。 */
:root { --row-h: 96px; }

.dash-section {
  width: 100%;
  max-width: 720px;
  margin: 8px 0 24px;
  border-radius: 8px;
  border: 1px solid #323232;
  background: #141414;
  padding: 14px 16px 12px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: #9aa0a8;
  margin: 0 0 12px;
}

.strip-stack { display: flex; flex-direction: column; gap: 14px; }

.metric-row { display: flex; flex-direction: column; gap: 2px; }
.metric-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.metric-row__label { font-size: 13px; color: #9aa0a8; }
.metric-row__label--sub { font-size: 11px; color: #6d7178; letter-spacing: 0.04em; }
.metric-row__now { display: flex; align-items: center; gap: 6px; }
.metric-row__value { font-size: 20px; font-weight: 700; color: #e8e8ea; }
/* 台数は health の STEPS と同系の緑（COLORS.steps）。グラフの線色と揃える。 */
.metric-row__value--count { color: #66d17a; }
/* 「不明」は数値と同じ大きさだと 0 台と紛らわしいので落として灰色にする。 */
.metric-row__value--unknown { font-size: 15px; font-weight: 400; color: #9aa0a8; }

.metric-row__chart { position: relative; width: 100%; height: var(--row-h); }
.metric-row__chart canvas { width: 100%; height: 100%; }

@media (min-width: 1000px) {
  :root { --row-h: 150px; }
  .dash-section { padding: 20px 22px 18px; }
  .section-title { font-size: 14px; }
  .metric-row__label { font-size: 14px; }
  .metric-row__value { font-size: 24px; }
}

.env__when { font-size: 12px; color: #6b7280; text-align: right; margin: 8px 0 0; }

/* ---- パスワード解錠（location の .track-login をそのまま改名）---- */
.env-login {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.env-login[hidden] { display: none; }
.env-login input[type="password"] {
  background: #1a1a1a;
  border: 1px solid #323232;
  border-radius: 6px;
  color: #eee;
  padding: 6px 10px;
}
.env-login button,
.env__logout {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #eee;
  padding: 6px 12px;
  cursor: pointer;
}
.env-login__error { color: #e85d3a; font-size: 13px; }
.env__logout-wrap { margin: 12px 0 0; text-align: center; }
