/* ==========================================================================
   CAMERA GAMES 共通スタイル（ポータル・各ゲームの外枠・静的ページ）
   ========================================================================== */
:root {
  --bg: #05070f;
  --bg-2: #0b1020;
  --panel: #111831;
  --line: #22305a;
  --ink: #e8eefc;
  --ink-2: #9fb0d8;
  --ink-3: #6b7aa3;
  --cyan: #35f0ff;
  --magenta: #ff3fa4;
  --amber: #ffb020;
  --red: #ff3b3b;
  --header-h: 52px;
  --maxw: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* ヘッダ ---------------------------------------------------------------- */
.site-header {
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 15, 0.9);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 60;
}
.site-header .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 16px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  font-weight: 800; letter-spacing: 0.18em; font-size: 15px; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.site-nav { display: flex; gap: 18px; font-size: 13px; }
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* 本文の器 --------------------------------------------------------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 0; }
.section h2 {
  font-size: 14px; letter-spacing: 0.2em; color: var(--ink-3); text-transform: uppercase;
  margin-bottom: 14px;
}
.prose { color: var(--ink-2); font-size: 15px; max-width: 760px; }
.prose h3 { color: var(--ink); font-size: 17px; margin: 22px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px 1.4em; }
.prose li { margin-bottom: 4px; }
.prose strong { color: var(--ink); }
.prose code { background: var(--panel); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.page-title { font-size: 28px; font-weight: 800; letter-spacing: 0.04em; margin: 32px 0 6px; }
.page-lead { color: var(--ink-2); margin-bottom: 24px; }

/* 広告枠 ---------------------------------------------------------------- */
.ad-slot {
  margin: 20px auto; text-align: center; overflow: hidden;
}
.ad-slot .ad-label {
  font-size: 10px; letter-spacing: 0.2em; color: var(--ink-3); margin-bottom: 4px;
}
.ad-slot.ad-horizontal { min-height: 100px; }
.ad-slot.ad-horizontal ins { min-height: 90px; }
.ad-slot.ad-multiplex { min-height: 280px; }
.ad-slot.ad-rect { width: 300px; min-height: 250px; margin: 12px auto 0; }
.ad-placeholder {
  border: 1px dashed var(--line); border-radius: 8px; color: var(--ink-3);
  font-size: 12px; letter-spacing: 0.1em;
  display: flex; align-items: center; justify-content: center; min-height: 90px;
}
.ad-multiplex .ad-placeholder { min-height: 250px; }
.ad-rect .ad-placeholder { min-height: 250px; }
.ad-hidden { display: none !important; }

/* フッタ ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 40px;
  color: var(--ink-3); font-size: 12px;
}
.site-footer .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 16px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}
.site-footer a { color: var(--ink-2); }

/* ポータル ---------------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center;
  padding: 36px 0 8px;
}
.hero .thumb {
  aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
}
.hero .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .kicker { font-size: 12px; letter-spacing: 0.25em; color: var(--cyan); margin-bottom: 8px; }
.hero h1 { font-size: 40px; font-weight: 900; letter-spacing: 0.02em; line-height: 1.15; }
.hero .sub { color: var(--ink-2); margin: 10px 0 18px; font-size: 16px; }
.hero .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tag {
  font-size: 11px; letter-spacing: 0.1em; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--bg-2);
}
.btn-play {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cyan); color: #04121a; font-weight: 800; letter-spacing: 0.15em;
  padding: 14px 28px; border-radius: 12px; font-size: 15px;
  box-shadow: 0 0 24px rgba(53, 240, 255, 0.35);
  transition: transform 0.12s ease;
}
.btn-play:hover { transform: translateY(-2px); text-decoration: none; }
.privacy-note { font-size: 12px; color: var(--ink-3); margin-top: 12px; }

.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.card {
  display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--bg-2); color: var(--ink); transition: transform 0.12s ease, border-color 0.12s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--cyan); text-decoration: none; }
.card .thumb { aspect-ratio: 16 / 9; background: var(--panel); position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .badge {
  position: absolute; top: 10px; left: 10px; font-size: 10px; letter-spacing: 0.2em;
  padding: 3px 8px; border-radius: 6px; background: var(--cyan); color: #04121a; font-weight: 800;
}
.card .badge.soon { background: var(--ink-3); color: var(--bg); }
.card .body { padding: 14px 16px 16px; }
.card h3 { font-size: 17px; font-weight: 800; letter-spacing: 0.04em; }
.card p { color: var(--ink-2); font-size: 13px; margin: 4px 0 10px; }
.card .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.card.soon { opacity: 0.55; pointer-events: none; }
.card.ad-card { padding: 0; background: var(--bg-2); }
.card.ad-card .ad-slot { margin: 0; min-height: 100%; }
.card.ad-card .ad-placeholder { min-height: 240px; border: 0; }

.requirements {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px;
}
.req {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg-2);
  font-size: 13px; color: var(--ink-2);
}
.req b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 6px; }

/* ゲームページの外枠 --------------------------------------------------------- */
.stage-wrap { width: 100%; background: #000; }
#stage {
  position: relative; margin: 0 auto; overflow: hidden; background: var(--bg);
  width: min(100%, calc((100vh - var(--header-h)) * 16 / 9));
  aspect-ratio: 16 / 9;
}
@media (orientation: portrait) {
  #stage { width: 100%; aspect-ratio: auto; height: calc(100dvh - var(--header-h)); }
}
body.fs #stage {
  position: fixed; inset: 0; width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; z-index: 50;
}
body.fs .site-header, body.fs .site-footer, body.fs .below { display: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero h1 { font-size: 30px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .requirements { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .site-nav { gap: 12px; }
}

/* 併記（日本語 / English） ---------------------------------------------------- */
.en { color: var(--ink-3); }
.dual .en::before { content: " / "; color: var(--ink-3); }
.dual .en { font-size: 0.9em; }
.dual-block .en { display: block; font-size: 0.92em; margin-top: 2px; }
.prose p.en, .prose li .en, .prose .en-block { color: var(--ink-3); }
.prose p.en { margin-top: -6px; font-size: 14px; }
.prose li .en { display: block; font-size: 0.92em; }
.section h2 .en::before { content: " / "; }
.req b .en { font-weight: 400; font-size: 0.85em; }
.card .body p .en { display: block; font-size: 0.9em; }
.hero .sub .en { display: block; font-size: 0.9em; margin-top: 2px; }

/* ポータルの今日のトップ ---------------------------------------------------- */
.top5 { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg-2); }
.top5 h4 { font-size: 11px; letter-spacing: 0.25em; color: var(--ink-3); margin-bottom: 8px; }
.top5 ol { list-style: none; font-size: 13px; }
.top5 li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid rgba(34, 48, 90, 0.5); }
.top5 li:last-child { border-bottom: 0; }
.top5 .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top5 .sc { font-variant-numeric: tabular-nums; color: var(--amber); font-weight: 700; }
.top5 .empty { color: var(--ink-3); font-size: 12px; }
