/* データドリブンスポーツ協会 — design system
   Palette / motif はビジョン2030デッキ（HUD × ワイヤーフレーム）に準拠 */

:root {
  --bg: #04070e;
  --bg-2: #070d18;
  --panel: rgba(11, 21, 38, 0.72);
  --panel-solid: #0b1526;
  --line: rgba(34, 211, 238, 0.22);
  --line-soft: rgba(141, 162, 191, 0.16);
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --magenta: #f04fd0;
  --violet: #8b5cf6;
  --amber: #fbbf24;
  --text: #e6f1ff;
  --muted: #8da2bf;
  --muted-2: #5f7391;
  --mono: "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 全面に薄いグリッド */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 7, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); font-weight: 700; letter-spacing: 0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
.brand-name { font-size: 0.95rem; line-height: 1.3; }
.brand-name small { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; color: var(--cyan); font-weight: 400; }

.nav { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; }
.nav a { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; }
.nav a:hover { color: var(--cyan); text-decoration: none; }
.nav a.cta {
  color: var(--bg);
  background: linear-gradient(100deg, var(--cyan), #67e8f9);
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  font-weight: 700;
}
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 7rem 0 6rem; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.75; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 40%, rgba(139, 92, 246, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(34, 211, 238, 0.12), transparent 70%);
  pointer-events: none;
}
.hero .wrap { z-index: 2; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--cyan); }

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.28;
  margin: 0 0 1.4rem;
  letter-spacing: 0.01em;
  font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(96deg, #67e8f9 0%, var(--cyan) 35%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: clamp(1rem, 2.1vw, 1.25rem); color: var(--muted); max-width: 46rem; margin: 0 0 2.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: linear-gradient(100deg, var(--cyan), #67e8f9); color: #03202b; box-shadow: 0 0 30px rgba(34, 211, 238, 0.28); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(34, 211, 238, 0.05); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 24px rgba(34, 211, 238, 0.18); }

/* ---------- 速報バナー ---------- */
.alert-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.09), rgba(240, 79, 208, 0.07));
  position: relative;
  z-index: 1;
}
.alert-bar .wrap { display: flex; align-items: center; gap: 1.2rem; padding: 0.95rem 0; flex-wrap: wrap; }
.tag-live {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--magenta);
  color: var(--magenta);
  border-radius: 2px;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.tag-live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--magenta);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.alert-bar p { margin: 0; font-size: 0.9rem; color: var(--text); }
.alert-bar time { font-family: var(--mono); color: var(--muted); font-size: 0.8rem; }

/* ---------- section ---------- */
section.band { padding: 6rem 0; position: relative; z-index: 1; scroll-margin-top: 78px; }
section.band.alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }

.sec-head { margin-bottom: 3.2rem; }
.sec-head .num { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--cyan); }
.sec-head h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  margin: 0.6rem 0 0.9rem;
  letter-spacing: 0.01em;
  font-weight: 800;
}
.sec-head p { color: var(--muted); margin: 0; max-width: 48rem; }

/* ---------- HUD card ---------- */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 2rem 1.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--cyan);
  opacity: 0.8;
}
.card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.card h3 { margin: 0 0 0.8rem; font-size: 1.1rem; letter-spacing: 0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.card .icon { color: var(--cyan); margin-bottom: 1.2rem; display: block; }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------- mission quote ---------- */
.mission {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.07), rgba(139, 92, 246, 0.05));
  padding: 3rem 2.6rem;
  position: relative;
}
.mission .label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.3em; color: var(--cyan); }
.mission p { font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 2; margin: 1.2rem 0 0; font-weight: 500; }

/* ---------- stats ---------- */
.stat { text-align: left; }
.stat .val {
  font-family: var(--mono);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, #67e8f9, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .unit { font-size: 0.9rem; color: var(--muted); margin-left: 0.3rem; }
.stat .key { display: block; margin-top: 0.8rem; font-size: 0.85rem; color: var(--muted); }
.stat .now { display: block; font-family: var(--mono); font-size: 0.7rem; color: var(--muted-2); margin-top: 0.25rem; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
th, td { padding: 0.95rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { background: rgba(34, 211, 238, 0.07); color: var(--cyan); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; font-weight: 500; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody th { color: var(--text); font-weight: 600; white-space: nowrap; width: 12rem; background: rgba(255, 255, 255, 0.015); }
td { color: var(--muted); }

/* ---------- level list ---------- */
.level {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.4rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.level:last-child { border-bottom: none; }
.level .lv {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--cyan);
  height: fit-content;
  white-space: nowrap;
}
.level h4 { margin: 0 0 0.35rem; font-size: 1rem; }
.level p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- news ---------- */
.news-item {
  display: grid;
  grid-template-columns: 8.5rem 6rem 1fr;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.news-item time { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  color: var(--cyan);
  text-align: center;
  white-space: nowrap;
}
.badge.koukoku { border-color: var(--magenta); color: var(--magenta); }
.badge.event { border-color: var(--violet); color: #c4b5fd; }
.news-item a { color: var(--text); }
.news-item a:hover { color: var(--cyan); }

/* ---------- article ---------- */
.article { padding: 4rem 0 6rem; position: relative; z-index: 1; }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.45; margin: 1rem 0 1.4rem; }
.article h2 { font-size: 1.3rem; margin: 3rem 0 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }
.article h3 { font-size: 1.05rem; margin: 2rem 0 0.6rem; color: var(--cyan); }
.article p { color: #c3d3e8; }
.article ul { color: #c3d3e8; padding-left: 1.3rem; }
.article li { margin-bottom: 0.5rem; }
.article figure { margin: 2rem 0; }
.article img { width: 100%; height: auto; border: 1px solid var(--line-soft); display: block; }
.article figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.7rem; font-family: var(--mono); }
.breadcrumb { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }

.photo-slot {
  border: 1px dashed var(--line);
  background: rgba(34, 211, 238, 0.03);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.notice {
  border: 1px solid var(--line);
  background: rgba(34, 211, 238, 0.05);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: #c3d3e8;
}
.notice strong { color: var(--cyan); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 4rem 0 2.5rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
  background: var(--bg-2);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-grid h4 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.22em; color: var(--cyan); margin: 0 0 1.1rem; font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { color: var(--muted); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--cyan); text-decoration: none; }
.footer-grid p { color: var(--muted); font-size: 0.86rem; margin: 0.4rem 0 0; }
.copyright { font-family: var(--mono); font-size: 0.72rem; color: var(--muted-2); letter-spacing: 0.06em; border-top: 1px solid var(--line-soft); padding-top: 1.8rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--panel-solid);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav.open a { padding: 0.85rem 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav.open a.cta { margin-top: 1rem; border-bottom: none; text-align: center; justify-content: center; }
  .nav-toggle {
    display: block; margin-left: auto;
    background: none; border: 1px solid var(--line);
    color: var(--cyan); padding: 0.45rem 0.7rem; cursor: pointer; border-radius: 2px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .news-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .news-item .badge { justify-self: start; }
  section.band { padding: 4rem 0; }
  .hero { padding: 4.5rem 0 4rem; }
  .mission { padding: 2rem 1.5rem; }
  tbody th { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
