:root {
  --ink: #1f1b16;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #fff;
  --soft: #f8fafc;
  --navy: #0f172a;
  --cyan: #22b8d6;
  --cyan-ink: #0e7490;
  --ok: #15803d;
  --ok-bg: #f0fdf4;
  --warn: #b45309;
  --warn-bg: #fffbeb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 12px;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.topbar b { color: #fff; }

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  margin-right: 6px;
}

header.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav .in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg,#1d4ed8,#22b8d6);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

.brand .t { font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: .01em; }
.brand .t span { color: #2563eb; }
.brand small { display: block; font-size: 9px; letter-spacing: .14em; color: var(--muted); }

.pill {
  border: 1px solid #bae6fd;
  color: var(--cyan-ink);
  background: #f0f9ff;
  border-radius: 999px;
  font-size: 12px;
  padding: 3px 10px;
  font-weight: 600;
}

.sp { flex: 1; }

.navlink {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color .15s ease;
}

.navlink:hover { background: var(--soft); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn:hover { filter: brightness(.96); box-shadow: 0 3px 10px rgba(15,23,42,.12); }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-cyan { background: var(--cyan); color: #062a33; }
.btn-line { border-color: #7dd3e8; color: var(--cyan-ink); background: #fff; }

.hero {
  background: radial-gradient(1200px 400px at 20% 0%,#134e5e 0%,transparent 60%), linear-gradient(120deg,#0b1a2e,#0f2a3a 55%,#0b1a2e);
  color: #fff;
}

.hero .in { max-width: 1200px; margin: 0 auto; padding: 36px 20px 44px; }

.tag {
  display: inline-block;
  border: 1px solid rgba(125,211,232,.5);
  background: rgba(34,184,214,.12);
  color: #a5f3fc;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
}

.tag.g { border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.1); color: #a7f3d0; }
.hero h1 { font-size: clamp(26px,4vw,38px); margin: 14px 0 10px; letter-spacing: .02em; }
.hero p { max-width: 760px; color: #dbe4ee; margin: 0 0 22px; }
.hero b { color: #fff; }
.hero .ghost { color: #cbd5e1; font-size: 14px; margin-left: 16px; }
.hero .ghost:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

main { max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px; min-height: 485px; }

.filter {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
  margin-bottom: 28px;
}

.filter h3 { margin: 0 0 2px; font-size: 15px; }
.filter .sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.chips .lb { font-size: 12px; color: var(--muted); width: 64px; }

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.chip:hover { border-color: #94a3b8; transform: translateY(-1px); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.sec { display: flex; justify-content: space-between; align-items: end; margin-bottom: 12px; }
.sec h2 { font-size: 17px; margin: 0; }
.sec .n { font-size: 13px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 22px; }

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}

.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.1); }

.thumb {
  position: relative;
  color: #fff;
  padding: 14px 14px 12px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px);
  background-size: 12px 12px;
}

.c0 { background-color: #1e3a8a; background-image: radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px), linear-gradient(135deg,#1e40af,#312e81); }
.c1 { background-image: radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px), linear-gradient(135deg,#0f3b57,#1e3a5f); }
.c2 { background-image: radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px), linear-gradient(135deg,#6d28d9,#4c1d95); }
.c3 { background-image: radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px), linear-gradient(135deg,#065f46,#134e4a); }

.thumb .cat { align-self: flex-start; background: rgba(15,23,42,.55); border: 1px solid rgba(255,255,255,.2); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 5px; }
.thumb .spn { position: absolute; right: 12px; top: 12px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 2px 8px; }
.thumb .sub { margin-top: auto; font-size: 12px; color: #dbeafe; }
.thumb .ttl { font-size: 18px; font-weight: 800; line-height: 1.4; margin-top: 2px; }
.thumb .meta { display: flex; justify-content: space-between; font-size: 12px; margin-top: 10px; color: #e0e7ff; }

.body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.who { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); gap: 5px; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.b-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #bbf7d0; }
.b-lock { background: #f1f5f9; color: #475569; border: 1px solid var(--line); }
.b-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #fde68a; }
.sponsor { font-size: 12px; color: var(--muted); }
.sponsor b { color: var(--ink); }
.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 40px; text-align: center; color: var(--muted); }

.box { max-width: 440px; margin: 40px auto; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 4px 20px rgba(15,23,42,.06); }
.box h1 { font-size: 20px; margin: 0 0 6px; }
.box p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
label { font-size: 13px; font-weight: 700; display: block; margin: 10px 0 6px; }
input[type=email], input[type=text] { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 9px; font-size: 16px; font-family: inherit; }
input:focus { outline: 3px solid rgba(34,184,214,.18); border-color: #22b8d6; }
input.code { letter-spacing: .5em; font-size: 24px; text-align: center; font-weight: 700; }
.full { width: 100%; justify-content: center; margin-top: 14px; padding: 12px; }
.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 9px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.dev { background: #fffbeb; border: 1px dashed #f59e0b; color: #92400e; border-radius: 9px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.dev b { font-size: 20px; letter-spacing: .2em; color: #78350f; }

.breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.breadcrumb a:hover { color: var(--cyan-ink); text-decoration: underline; text-underline-offset: 2px; }
.player { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 24px; }
video { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 16 / 9; }
.lock { aspect-ratio: 16 / 9; border-radius: 12px; background: linear-gradient(135deg,#0b1a2e,#1e3a5f); color: #fff; display: grid; place-items: center; text-align: center; padding: 24px; }
.lock h2 { margin: 8px 0; }
.lock p { color: #cbd5e1; max-width: 520px; margin: 0 auto 16px; font-size: 14px; }
.side { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.side h3 { margin: 0 0 8px; font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; color: var(--muted); }
.detail-title { margin: 26px 0 5px; font-size: 25px; }
.detail-sub { color: var(--muted); margin: 0; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; padding: 20px; }

@media (max-width: 900px) {
  .player { grid-template-columns: 1fr; }
  .side { max-width: 100%; }
}

@media (max-width: 700px) {
  .hide-sm { display: none; }
  .topbar .r { display: none; }
  .topbar { padding-left: 14px; padding-right: 14px; }
  .nav .in { padding: 10px 14px; gap: 10px; }
  .brand .t { font-size: 18px; }
  .brand small { font-size: 8px; }
  .btn { padding: 8px 12px; }
  .hero .in { padding: 28px 18px 34px; }
  .hero h1 { line-height: 1.42; }
  .hero .ghost { display: inline-block; margin: 12px 0 0; }
  main { padding: 22px 14px 42px; }
  .filter { padding: 16px; margin-bottom: 24px; }
  .chips .lb { width: 100%; }
  .chip { padding: 5px 12px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .foot { flex-wrap: wrap; }
  .box { margin: 26px auto; padding: 22px; }
  .player { gap: 18px; }
}
