/* =========================================================
   ギガビットゲームラボ ティザーサイト共通スタイル
   各ゲームのページで :root の --t-* を上書きすると配色が変わります
   ========================================================= */
:root {
  --t-bg: #0B1030;
  --t-bg2: #16205A;
  --t-ink: #EEF2FF;
  --t-muted: #A7B3D9;
  --t-accent: #FF4D6D;
  --t-gold: #E9C877;
  --t-line: rgba(255, 255, 255, .16);
  --t-panel: rgba(255, 255, 255, .05);
  --t-en: 'Cinzel', 'Times New Roman', serif;
  --t-sans: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', 'Noto Sans CJK JP', sans-serif;
  --t-max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--t-sans);
  color: var(--t-ink);
  background: var(--t-bg);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--t-gold); }
.t-wrap { max-width: var(--t-max); margin: 0 auto; padding: 0 16px; }

/* ---------- 上部バー ---------- */
.t-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 36, .86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--t-line);
}
.t-bar .t-wrap { display: flex; align-items: center; gap: 12px; height: 54px; }
.t-back { color: var(--t-muted); text-decoration: none; font-size: .8rem; white-space: nowrap; }
.t-back:hover { color: var(--t-ink); }
.t-bar-name { flex: 1; min-width: 0; font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-bar .t-btn { padding: 7px 14px; font-size: .82rem; }

/* ---------- ボタン ---------- */
.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #FF6A85, var(--t-accent));
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 77, 109, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.t-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 77, 109, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.t-btn:active { transform: translateY(1px); }
.t-btn.ghost { background: transparent; border: 1px solid var(--t-line); box-shadow: none; color: var(--t-ink); font-weight: 700; }
.t-btn.big { font-size: 1.1rem; padding: 16px 30px; }

/* ストアバッジ（PCでは両方、スマホでは端末に合う大ボタン） */
.t-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.t-badges img.as { height: 44px; width: auto; }
.t-badges img.gp { height: 64px; width: auto; margin: -10px -8px; }
.t-cta-mobile { display: none; }
html[data-device="ios"] .t-cta-mobile, html[data-device="android"] .t-cta-mobile { display: inline-flex; }
html[data-device="ios"] .t-badges.pc-only, html[data-device="android"] .t-badges.pc-only { display: none; }
.t-alt { font-size: .8rem; color: var(--t-muted); margin: 10px 0 0; }
html[data-device="desktop"] .t-alt { display: none; }

/* ---------- セクション ---------- */
.t-sec { padding: 72px 0 8px; }
.t-label {
  display: block;
  font-family: var(--t-en);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .3em;
  color: var(--t-gold);
  margin: 0 0 6px;
}
.t-title { font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.4; margin: 0 0 10px; font-weight: 800; }
.t-lead { color: var(--t-muted); margin: 0 0 28px; }
.t-center { text-align: center; }
.t-center .t-lead { margin-left: auto; margin-right: auto; max-width: 640px; }

/* ---------- 背景に薄く流すPV（.t-bgv[data-yt]） ---------- */
.t-bgv {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s;
}
.t-bgv.on { opacity: var(--t-bgv-opacity, .35); }
.t-bgv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(1px) saturate(1.2); }
.t-bgv iframe { position: absolute; top: 50%; left: 50%; border: 0; transform: translate(-50%, -50%) scale(1.4); filter: blur(1px) saturate(1.2); }
.t-bgv::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 38, .15) 0%, rgba(7, 12, 38, 0) 35%, rgba(7, 12, 38, .55) 68%, var(--t-bg) 100%);
}

/* ---------- 特徴カード ---------- */
.t-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .t-grid.col2 { grid-template-columns: repeat(2, 1fr); } .t-grid.col4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 560px) and (max-width: 759px) { .t-grid.col4 { grid-template-columns: repeat(2, 1fr); } }
.t-card {
  background: var(--t-panel);
  border: 1px solid var(--t-line);
  border-radius: 16px;
  padding: 20px;
}
.t-card .ic { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; }
.t-card h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.5; }
.t-card p { margin: 0; font-size: .9rem; color: var(--t-muted); }

/* ---------- 遊び方ステップ ---------- */
.t-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .t-steps { grid-template-columns: repeat(4, 1fr); } }
.t-steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--t-line);
  font-size: .9rem;
}
.t-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  border-radius: 50%;
  font-family: var(--t-en);
  font-weight: 700;
  color: var(--t-bg);
  background: var(--t-gold);
}
.t-steps b { display: block; font-size: 1rem; margin-bottom: 2px; }
.t-steps span { color: var(--t-muted); }

/* ---------- スクリーンショット ---------- */
.t-shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 16px 18px;
  margin: 0 -16px;
  scrollbar-width: thin;
}
.t-shots img {
  flex: none;
  width: min(56vw, 230px);
  aspect-ratio: 321 / 696;
  object-fit: contain;
  background: #000;
  border-radius: 18px;
  border: 1px solid var(--t-line);
  scroll-snap-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
@media (min-width: 1000px) { .t-shots { justify-content: center; overflow: visible; } }

/* ---------- 動画 ---------- */
.t-yt {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 820px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  border: 1px solid var(--t-line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.t-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.t-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.t-yt::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 77, 109, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 38px no-repeat;
  box-shadow: 0 0 0 10px rgba(255, 77, 109, .25);
  transition: transform .15s;
}
.t-yt:hover::after { transform: translate(-50%, -50%) scale(1.08); }
.t-yt.playing::after { display: none; }

/* ---------- 評価・記事 ---------- */
.t-rating { display: inline-flex; align-items: baseline; gap: 10px; }
.t-rating b { font-family: var(--t-en); font-size: 2.6rem; line-height: 1; color: var(--t-gold); }
.t-stars { color: var(--t-gold); letter-spacing: 2px; }
.t-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 760px) { .t-links { grid-template-columns: repeat(2, 1fr); } }
.t-links a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--t-panel);
  border: 1px solid var(--t-line);
  color: var(--t-ink);
  text-decoration: none;
  font-size: .88rem;
  line-height: 1.6;
}
.t-links a:hover { border-color: var(--t-gold); }
.t-links small { display: block; color: var(--t-gold); font-size: .72rem; }

/* ---------- 追従CTA ---------- */
.t-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: flex;
  justify-content: center;
  transform: translateY(160%);
  transition: transform .3s;
  pointer-events: none;
}
.t-dock.show { transform: none; }
.t-dock .t-btn { pointer-events: auto; width: min(100%, 420px); }

/* ---------- フッター ---------- */
.t-footer {
  margin-top: 80px;
  padding: 40px 0 110px;
  border-top: 1px solid var(--t-line);
  text-align: center;
  font-size: .82rem;
  color: var(--t-muted);
}
.t-footer a { color: var(--t-muted); }
.t-footer .by { font-size: .9rem; color: var(--t-ink); margin-bottom: 10px; }
.t-footer .by a { color: var(--t-gold); }

/* ---------- 出現アニメーション ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
