:root {
  --ocean: #0EA5E9;
  --ocean-deep: #0369A1;
  --teal: #14B8A6;
  --sand: #FBF7EF;
  --sand-deep: #F1E9DA;
  --ink: #1E293B;
  --muted: #64748B;
  --line: #E5E0D5;
  --warn: #B45309;
  --warn-bg: #FEF6E7;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.app-shell { min-height: 100vh; background: var(--sand); }
@media (min-width: 480px) {
  body { background: #DCE7EC; }
  .app-shell {
    max-width: 440px; margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 28px rgba(3,105,161,0.10);
  }
}

/* トップバー */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--teal) 100%);
  color: #fff;
  padding: env(safe-area-inset-top) 16px 14px;
}
.topbar-inner { padding-top: 14px; display: flex; align-items: center; gap: 10px; }
.topbar .title { font-size: 16px; font-weight: 800; letter-spacing: 0.02em; }
.topbar .logout {
  margin-left: auto; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.22); color: #fff;
  padding: 6px 12px; border-radius: 999px;
}
.back-btn {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.22); color: #fff; font-size: 18px; flex: 0 0 auto;
}

/* セクション */
.section { padding: 14px 16px 0; }
.section-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; color: var(--ocean-deep);
  margin: 6px 0 10px;
}
.section-h .icon { font-size: 20px; }

/* カード */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(3,105,161,0.05);
}
.card.accent { border-left: 5px solid var(--ocean); }

.kv { display: flex; gap: 8px; font-size: 13.5px; margin: 4px 0; }
.kv .k { color: var(--muted); flex: 0 0 84px; font-weight: 700; }
.kv .v { flex: 1; }

/* メンバー・乗車などのリスト行 */
.row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.row:last-child { border-bottom: none; }
.row .ic { font-size: 20px; flex: 0 0 auto; }
.row .body { flex: 1; min-width: 0; }
.row .name { font-size: 14px; font-weight: 700; }
.row .sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.tag {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; margin-left: 2px;
}
.tag-drive { background: #DBF4FF; color: var(--ocean-deep); }
.tag-beginner { background: #DCFCE7; color: #15803D; }
.tag-train { background: #F3E8FF; color: #7C3AED; }

/* 車カード */
.car-head { display:flex; align-items:center; gap:8px; font-weight:800; font-size:14px; color: var(--ocean-deep); margin-bottom: 6px; }
.car-head .badge { background: var(--ocean); color:#fff; font-size:11px; font-weight:800; padding:2px 9px; border-radius:999px; }

/* スケジュール表 */
.day-label {
  font-size: 13px; font-weight: 800; color: #fff;
  background: var(--teal); display: inline-block;
  padding: 3px 12px; border-radius: 8px; margin: 4px 0 8px;
}
.sched { list-style: none; padding: 0; margin: 0; }
.sched li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sched li:last-child { border-bottom: none; }
.sched .time { flex: 0 0 56px; font-weight: 800; color: var(--ocean-deep); font-size: 13px; }
.sched .what { flex: 1; font-size: 13.5px; }

/* お知らせ/注意バナー */
.note {
  margin: 14px 16px 0;
  background: var(--warn-bg);
  border: 1px dashed #E0B25C;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px; color: var(--warn); line-height: 1.55;
}
.note b { color: #7A4A06; }

.linkrow {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border:1px solid var(--line); border-radius:10px;
  margin-top:8px; background:#fff;
}
.linkrow .ic { font-size:18px; }
.linkrow .t { flex:1; font-size:13px; font-weight:700; }
.linkrow .arrow { color: var(--muted); }

.foot { text-align: center; color: var(--muted); font-size: 11px; padding: 24px 16px 36px; }

/* ===== ログイン / トップ ===== */
.hero {
  background: linear-gradient(160deg, var(--ocean) 0%, var(--teal) 100%);
  color: #fff; padding: 64px 24px 56px; text-align: center;
}
.hero .wave { font-size: 44px; }
.hero h1 { font-size: 24px; font-weight: 800; margin: 10px 0 6px; }
.hero p { font-size: 13.5px; opacity: 0.95; margin: 0; }
.center-wrap { padding: 24px 20px; }
.btn {
  display: block; width: 100%; text-align: center;
  background: linear-gradient(135deg, var(--ocean), var(--teal));
  color: #fff; font-weight: 800; font-size: 15px;
  padding: 14px; border-radius: 12px; border: none;
  box-shadow: 0 4px 14px rgba(14,165,233,0.30); cursor: pointer;
}
.btn:active { transform: scale(0.99); }
.field { margin-bottom: 14px; }
.field label { display:block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 13px 14px; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus { outline: none; border-color: var(--ocean); }
.login-box { background:#fff; border:1px solid var(--line); border-radius:16px; padding: 20px 18px; box-shadow:0 4px 16px rgba(3,105,161,0.06); }
.err { background:#FEE2E2; color:#B91C1C; font-size:12.5px; padding:10px 12px; border-radius:10px; margin-bottom:14px; }
