/* 死験 紹介ページ。style.css は読み込まず、ここだけで成立させる */

:root {
  --bg: #0a0a0c;
  --panel: #141417;
  --panel-2: #1a1a1f;
  --line: #2a2a30;
  --bone: #e9e5db;
  --ink: #d6d2c8;      /* 本文 */
  --dim: #8d8a83;      /* 補助。黒地で 5.6:1 */
  --red: #c8102e;
  --red-hot: #ff2b4a;  /* 黒地で 5.3:1 */
  --red-ink: #1f0d12;
  --ok: #7fbf8e;
  --mincho: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: -apple-system, 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --gutter: 16px;
  --wrap: 1040px;
  --topbar: 56px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

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

body.lp {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.85 var(--sans);
  font-feature-settings: 'palt';
  overflow-x: hidden;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bone); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }

h1, h2, h3, .tate, .num, .price, .last-line, .kicker { font-family: var(--mincho); font-weight: 800; }
h2 {
  font-size: clamp(26px, 4.6vw, 36px);
  line-height: 1.3;
  letter-spacing: .04em;
  margin: 0;
  color: var(--bone);
  text-wrap: balance;
}
h3 { margin: 0; font-size: 20px; line-height: 1.4; letter-spacing: .04em; color: var(--bone); }
p { margin: 0; }

.eyebrow {
  font-size: 12px;
  letter-spacing: .32em;
  color: var(--red-hot);
  margin: 0 0 10px;
}
.fine { font-size: 12px; line-height: 1.7; color: var(--dim); }

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--bone);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  line-height: 1.3;
  text-align: center;
  transition: background .15s, border-color .15s, transform .06s;
}
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: #d81436; }
.btn-ghost { background: transparent; border-color: #4a4a52; }
.btn-ghost:hover { background: var(--panel); border-color: var(--dim); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 13px; letter-spacing: .06em; }

/* ---- 上部バー ---- */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--topbar);
  padding: 6px var(--gutter);
  background: rgba(10, 10, 12, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .1em;
  color: var(--bone);
}
.topbar-brand img { width: 28px; height: 28px; border-radius: 7px; }
.topbar-cta { display: flex; gap: 8px; }

/* ---- 一番上 ---- */
.hero {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 45% at 70% 30%, rgba(200, 16, 46, .16) 0%, transparent 100%);
}
.hero-copy { position: relative; }
.kicker {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .4em;
  color: var(--dim);
  margin: 0 0 8px;
}
.brand {
  margin: 0 0 20px;
  font-size: clamp(88px, 24vw, 152px);
  line-height: 1;
  letter-spacing: .06em;
  display: flex;
}
.brand-shi { color: var(--bone); text-shadow: 4px 0 var(--red); }
.brand-ken { color: var(--red-hot); text-shadow: 4px 0 #500; }
.hero-lead {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 2;
  color: var(--bone);
  max-width: 34em;
  margin: 0 0 22px;
}
.wide-only { display: none; }

/* 命の目盛り。ゲーム画面の HUD と同じ十マス */
.lives {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  gap: 5px;
  max-width: 300px;
}
.lives span {
  flex: 1;
  height: 12px;
  border-radius: 2px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 43, 74, .35);
}
.lives span:nth-child(n+8) { background: #3a1018; box-shadow: none; }

.cta { display: flex; flex-direction: column; gap: 10px; }
.cta .btn { width: 100%; min-height: 52px; font-size: 16px; letter-spacing: .04em; padding-inline: 18px; }
.hero-fine { margin-top: 12px; }

/* 画面と縦書きの標語 */
.hero-shot {
  position: relative;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}
.tate {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: clamp(20px, 5vw, 28px);
  letter-spacing: .3em;
  line-height: 1;
  color: var(--red-hot);
  margin: 12px 0 0;
  padding-top: 6px;
  border-top: 2px solid var(--red);
  white-space: nowrap;
}
.phone {
  width: min(280px, 62vw);
  border-radius: 24px;
  border: 1px solid #3a3a42;
  box-shadow: 0 0 0 4px #0a0a0c, 0 0 0 5px var(--line), 0 30px 80px rgba(200, 16, 46, .22);
}

/* ---- 節の共通 ---- */
main { display: block; }
.sec { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 28px; max-width: 40em; }
.sec-lead { margin-top: 10px; color: var(--ink); }

/* ---- 六つの遊戯 ---- */
.games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.games li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 18px 18px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.num {
  font-size: 34px;
  line-height: 1;
  color: var(--red-hot);
  text-shadow: 2px 0 #500;
  padding-top: 2px;
}
.game-body { display: flex; flex-direction: column; gap: 8px; }
.game-body p { font-size: 15px; line-height: 1.8; }
.stake {
  align-self: flex-start;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--red-hot);
  border: 1px solid #5a1a26;
  background: var(--red-ink);
  border-radius: 3px;
  padding: 3px 8px;
  margin-top: 2px;
}

/* ---- 画面 ---- */
.shots-scroll {
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.shots {
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
  display: flex;
  gap: 14px;
  width: max-content;
}
.shots li { width: 216px; scroll-snap-align: start; }
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #33333b;
}
.shots figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.shots figcaption b { font-family: var(--mincho); font-weight: 800; font-size: 16px; color: var(--bone); letter-spacing: .04em; }
.shots figcaption span { font-size: 13px; color: var(--dim); line-height: 1.6; }

/* ---- 対戦と補習 ---- */
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.pane { display: flex; flex-direction: column; gap: 14px; }
.pane h2 { margin-top: -6px; }
.facts { margin: 8px 0 0; display: flex; flex-direction: column; }
.facts div {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.facts div:last-child { border-bottom: 1px dashed var(--line); }
.facts dt { color: var(--dim); letter-spacing: .06em; }
.facts dd { margin: 0; color: var(--bone); }

/* ---- 死験パス ---- */
.pass {
  position: relative;
  padding: 28px 22px;
  border: 3px double var(--red);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--red-ink) 0%, var(--panel) 45%);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.pass-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pass-head .eyebrow { margin-bottom: -4px; }
.pass-lead { max-width: 30em; }
.price { margin: 4px 0 6px; line-height: 1.5; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--bone); }
.price-main { font-size: 22px; letter-spacing: .04em; }
.price-sub { font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--red-hot); }
.price-or { display: none; color: var(--dim); font-weight: 500; }
.price-main:last-child { flex-basis: 100%; }
.pass-head .btn { min-width: 220px; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.perks li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.perks b { font-family: var(--mincho); font-weight: 800; font-size: 17px; color: var(--bone); letter-spacing: .04em; }
.perks span { font-size: 14px; line-height: 1.8; }

/* ---- よくある質問 ---- */
.faq { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.faq div { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.faq div:last-child { border-bottom: 1px solid var(--line); }
.faq dt { font-family: var(--mincho); font-weight: 800; font-size: 17px; color: var(--bone); letter-spacing: .02em; }
.faq dd { margin: 0; font-size: 15px; }

/* ---- 最後のひと押し ---- */
.last { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.last img { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 10px 40px rgba(200, 16, 46, .3); }
.last-line { font-size: clamp(22px, 4vw, 30px); letter-spacing: .12em; color: var(--bone); }
.last .cta { width: 100%; max-width: 420px; }

/* ---- 末尾 ---- */
.lpfoot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px var(--gutter) 64px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.foot-links a:hover { color: var(--bone); border-bottom-color: var(--dim); }

/* ---- 幅ごと ---- */
@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .cta { flex-direction: row; flex-wrap: wrap; }
  .price-or { display: inline; }
  .price-main:last-child { flex-basis: auto; }
  .cta .btn { width: auto; flex: 1 1 auto; white-space: nowrap; }
  .last .cta { flex-direction: column; }
  .last .cta .btn { width: 100%; }
}
@media (min-width: 640px) {
  .games { grid-template-columns: repeat(2, 1fr); }
  .shots li { width: 232px; }
}
@media (min-width: 720px) {
  .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .pass { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 36px 32px; align-items: start; }
  .perks { border-top: 0; }
  .perks li:first-child { border-top: 0; padding-top: 0; }
}
@media (min-width: 860px) {
  :root { --gutter: 32px; }
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding-top: 64px; padding-bottom: 72px; gap: 32px; }
  .hero-shot { justify-content: flex-end; }
  .wide-only { display: inline; }
  .phone { width: min(320px, 30vw); }
  .sec { padding-top: 72px; padding-bottom: 72px; }
  .last .cta { flex-direction: row; max-width: 520px; }
  .last .cta .btn { width: auto; }
}
@media (min-width: 960px) {
  .games { grid-template-columns: repeat(3, 1fr); }
  .shots-scroll { margin: 0; padding: 0; overflow: visible; }
  .shots { width: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .shots li { width: auto; }
}

/* 固定バーの下に見出しが隠れないように(ページ内リンクで来たとき) */
[id] { scroll-margin-top: 80px; }
