:root {
  --primary: #0066cc;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #888;
  --border: #ddd;
  --green: #4caf50;
  --gray: #9e9e9e;
  --orange: #ff9800;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; padding: 0 0 64px 0; font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif; background: var(--bg); color: var(--text); }
h1, h2, h3 { margin: 0 0 8px; }
.card { background: var(--surface); border-radius: 8px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--border); }
.muted { color: var(--muted); font-size: 12px; }
.btn { display: inline-block; padding: 10px 16px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; }
.btn-block { width: 100%; }
.input, .select, textarea { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; background: var(--surface); }
nav.bottom { position: fixed; bottom: 0; left: 0; right: 0; height: 56px; background: #fff; border-top: 1px solid var(--border); display: flex; }
nav.bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--muted); font-size: 11px; }
nav.bottom a.active { color: var(--primary); }

/* === 車種フィルタタブ (segmented pill control) === */
.vehicle-tabs {
  display: inline-flex;
  background: #eef0f3;
  border-radius: 999px;
  padding: 3px;
  margin: 8px 0;
  width: 100%;
  max-width: 480px;
  gap: 0;
}
.vehicle-tabs button {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  color: #6b7280;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.vehicle-tabs button:hover:not(.active) { color: #1f2937; }
.vehicle-tabs button.active {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

/* === 今日の車種 トグル (ホーム専用 — prominent) === */
.today-vehicle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 0 0 10px;
  background: linear-gradient(135deg, #fff7e6 0%, #fffaf0 100%);
  border: 1px solid #ffe0b2;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(245,127,23,0.08);
}
.today-vehicle-label {
  font-size: 13px;
  font-weight: 700;
  color: #e65100;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.today-vehicle-buttons {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}
.today-vehicle-buttons button {
  flex: 0 1 130px;
  padding: 10px 18px;
  background: #fff;
  color: #555;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.today-vehicle-buttons button:hover:not(.active) {
  border-color: #cbd5e1;
  color: #1f2937;
}
.today-vehicle-buttons button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0,102,204,0.25);
}

@media (max-width: 420px) {
  .today-vehicle { gap: 10px; padding: 12px 14px; }
  .today-vehicle-buttons button { padding: 9px 12px; flex: 1; min-width: 0; }
  .today-vehicle-label { font-size: 12px; }
}

/* === 法務フッター === */
.legal-footer {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 16px 12px 80px;
  background: var(--bg);
  border-top: 1px solid #e0e0e0;
  margin-top: 24px;
}
.legal-footer-links a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 4px;
  white-space: nowrap;
}
.legal-footer-links a:hover { text-decoration: underline; }
.legal-footer-sep { color: #ccc; margin: 0 4px; }
.legal-footer-copyright { margin-top: 6px; color: #999; font-size: 10px; }

/* === 法務文書ページ === */
.legal-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.legal-doc h1 { font-size: 20px; margin: 16px 0 12px; }
.legal-doc h2 { font-size: 16px; margin: 20px 0 8px; padding-top: 8px; border-top: 1px solid #eee; }
.legal-doc h3 { font-size: 14px; margin: 12px 0 6px; color: var(--text); }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0; }
.legal-doc th, .legal-doc td { border: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: top; }
.legal-doc th { background: #f5f5f5; width: 30%; font-weight: 600; }
.legal-doc ol, .legal-doc ul { padding-left: 24px; margin: 8px 0; }
.legal-doc li { margin-bottom: 4px; }
.legal-doc p { margin: 6px 0; }
.legal-doc .updated-at { color: var(--muted); font-size: 11px; text-align: right; margin-top: 24px; }
.legal-doc .back-link { display: inline-block; margin: 12px 0; color: var(--primary); text-decoration: none; font-size: 13px; }
.legal-doc .back-link:hover { text-decoration: underline; }

/* ─── 予定セルの車種色分け & JP バッジ（calendar.html / index.html 共通） ─── */
.cal-cell { position: relative; }
.cal-cell.planned.japantaxi {
  background: #26c6da;
  border-color: #00acc1;
  color: #fff;
  font-weight: 600;
}
.cal-cell.planned.premium {
  background: #1976d2;
  border-color: #0d47a1;
  color: #fff;
  font-weight: 600;
}
.cal-cell .vt-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(255,255,255,0.88);
  color: #333;
  pointer-events: none;
}
