/* ============================================================
   ryopc-games — シリーズ公式ポータル
   宇宙テーマ / ダーク / レスポンシブ
   NOVA 公式サイトと共通のデザイン言語を採用
   ============================================================ */

:root {
  --bg: #05060f;
  --bg-2: #0b0f2a;
  --panel: rgba(20, 28, 58, 0.65);
  --panel-border: rgba(96, 130, 255, 0.25);
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --magenta: #e879f9;
  --green: #4ade80;
  --red: #f87171;
  --mono: "SF Mono", "JetBrains Mono", "Menlo", "Consolas", "Courier New", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: radial-gradient(1200px 600px at 70% -10%, #141b3f 0%, transparent 60%),
              radial-gradient(900px 500px at 10% 10%, #1a1033 0%, transparent 55%),
              var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── 星背景 ── */
#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#stars i {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ── ナビゲーション ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(5, 6, 15, 0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-border);
}
.nav-logo {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 1px;
}
.nav-links { display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.4rem); flex-wrap: wrap; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }

/* ── ボタン ── */
.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #1a1204;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(251, 191, 36, 0.5); }
.btn-ghost {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── ヒーロー ── */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
}
.hero-title {
  font-family: var(--mono);
  color: var(--magenta);
  font-size: clamp(0.5rem, 1.4vw, 0.85rem);
  line-height: 1.3;
  text-shadow: 0 0 18px rgba(232, 121, 249, 0.4);
  margin-bottom: 1.2rem;
  user-select: none;
}
.hero-wordmark {
  font-family: var(--mono);
  font-size: clamp(2rem, 6vw, 4.2rem);
  letter-spacing: 3px;
  background: linear-gradient(180deg, #fff 20%, var(--gold) 60%, #b45309);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(251, 191, 36, 0.35);
}
.hero-tag {
  margin-top: 1.2rem;
  color: var(--text-dim);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
}
.hero-cmd {
  margin-top: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
.hero-cmd code {
  font-family: var(--mono);
  color: var(--green);
  padding: 0.8rem 1.2rem;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
}
.hero-cmd button {
  border: none;
  border-left: 1px solid var(--panel-border);
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-cmd button:hover { background: rgba(34, 211, 238, 0.28); }
.hero-cmd button.copied { color: var(--green); }
.hero-sub { margin-top: 1rem; color: var(--text-dim); font-size: 0.9rem; }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── セクション共通 ── */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.section-title {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--cyan);
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 0.4rem;
}
.section-title span {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-top: 0.4rem;
}

/* ── カード ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 1.6rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 10px 40px rgba(34, 211, 238, 0.15);
}
.card-emoji { font-size: 2rem; margin-bottom: 0.6rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: #fff; }
.card p { color: var(--text-dim); font-size: 0.92rem; }
.card-tag {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

/* ── ゲームカード ── */
.game-card { display: flex; flex-direction: column; }
.game-card-sub { flex: 1; }
.game-card-meta { margin-top: 0.8rem; }
.card-tag-dim { color: var(--text-dim); border-color: rgba(148, 163, 184, 0.3); }
.card-tag-soon { color: var(--magenta); border-color: rgba(232, 121, 249, 0.35); }
.card-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--cyan);
  font-size: 0.9rem;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }
.game-card-soon {
  border-style: dashed;
  opacity: 0.75;
}
.game-card-soon:hover { border-color: var(--magenta); box-shadow: 0 10px 40px rgba(232, 121, 249, 0.12); }

/* ── フィーチャー（NOVA） ── */
.featured {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.4fr;
  gap: 2rem;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 2.2rem;
  margin-top: 2.5rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.featured:hover { border-color: var(--gold); box-shadow: 0 12px 50px rgba(251, 191, 36, 0.12); }
.featured-art {
  position: relative;
  height: 220px;
  background: #070b1d;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--mono);
}
.fa-ship {
  position: absolute;
  left: 44%;
  bottom: 18px;
  color: var(--cyan);
  font-size: 1.4rem;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.8);
  animation: fa-hover 2.4s ease-in-out infinite;
}
.fa-enemy {
  position: absolute;
  left: 24%;
  top: 16%;
  color: var(--red);
  font-size: 1.2rem;
  animation: fa-fall 6s linear infinite;
}
.fa-enemy2 { left: 62%; animation-delay: 3s; color: var(--magenta); }
.fa-bullet {
  position: absolute;
  left: 47%;
  bottom: 40px;
  color: var(--gold);
  animation: fa-shot 1.6s linear infinite;
}
@keyframes fa-hover {
  0%, 100% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
}
@keyframes fa-fall {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(150px); opacity: 0; }
}
@keyframes fa-shot {
  0%, 10% { opacity: 0; transform: translateY(0); }
  15% { opacity: 1; transform: translateY(-30px); }
  100% { opacity: 0; transform: translateY(-120px); }
}
.featured-no {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 2px;
}
.featured-body h3 {
  font-size: 2rem;
  color: #fff;
  margin: 0.4rem 0 0.6rem;
}
.featured-emoji { font-size: 1.6rem; }
.featured-catch { color: var(--text-dim); font-size: 0.98rem; }
.featured-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 1.6rem; }
.featured-tags li {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}
.featured-links { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ── ロードマップ ── */
.roadmap {
  max-width: 680px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rm-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  transition: border-color 0.25s;
}
.rm-item:hover { border-color: var(--cyan); }
.rm-mark { font-size: 1.4rem; line-height: 1.4; }
.rm-body h3 { font-size: 1.02rem; color: #fff; margin-bottom: 0.2rem; }
.rm-body p { color: var(--text-dim); font-size: 0.9rem; }

/* ── フッター ── */
.footer {
  border-top: 1px solid var(--panel-border);
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer p { margin: 0.3rem 0; }
.footer a { color: var(--cyan); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-license { font-size: 0.78rem; opacity: 0.7; }

/* ── レスポンシブ ── */
@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr; padding: 1.5rem; }
  .featured-art { height: 170px; }
  .nav-links a:nth-child(n+2) { display: none; }
  .hero { min-height: 85vh; }
  .section { padding: 3.5rem 1.2rem; }
}

/* ── スクロール出現アニメーション ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  #stars i, .fa-ship, .fa-enemy, .fa-bullet { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
