/* シリーズのトップページ。ゲーム本体の style.css とは別。 */

:root {
  --bg: #05080a;
  --ink: #eef3f6;
  --muted: #92a5b1;
  --dim: #5f7079;
  --amber: #ffd56b;
  --amber-deep: #e8a93c;
  --line: rgba(255, 255, 255, .11);
  --gutter: clamp(22px, 5vw, 72px);
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Roboto Mono", monospace;
  --serif: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

/* 画面全体にうっすら走査線。暗い画面に質感を出すため */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px);
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: min(1080px, 100% - var(--gutter) * 2); margin-inline: auto; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--dim);
  text-transform: uppercase;
}

/* ============ 扉 ============ */

.hero {
  position: relative;
  /* 背の高い画面でも伸ばしすぎない（伸ばすとロゴの上が間延びする） */
  min-height: 100vh;
  min-height: min(100svh, 920px);
  display: grid;
  place-items: center;
  text-align: center;
  /* 下を厚くして、中身を画面のやや上に寄せる（真ん中に置くと上が間延びして見える） */
  padding: clamp(20px, 3vh, 36px) 0 clamp(64px, 10vh, 128px);
  overflow: hidden;
}

/* ロゴの後ろにわずかな熱。光の形は作らない（形を作ると黒地に染みのように見える） */
.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 30%;
  width: min(760px, 96vw);
  height: 46vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(52% 50% at 50% 50%, rgba(255, 186, 96, .09), transparent 72%);
  animation: breathe 11s ease-in-out infinite;
  pointer-events: none;
}

/* 四隅を落として、部屋の奥にいる感じにする */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 78% at 50% 34%, transparent 42%, rgba(0, 0, 0, .55));
  pointer-events: none;
}

@keyframes breathe {
  0%, 100% { opacity: .78; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }

.hero > .wrap { position: relative; z-index: 1; }

/* ロゴは画面幅に追従させつつ、上限を決めて主役になりすぎないようにする */
.logo {
  width: clamp(240px, 33vw, 360px);
  height: auto;
  margin: 0 auto;
}

h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }

.lead {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(21px, 3.9vw, 31px);
  line-height: 1.75;
  letter-spacing: .1em;
  margin: 26px 0 0;
}

.lead-sub {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 2;
  max-width: 34em;
  margin: 18px auto 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
  padding: 15px 34px;
  border: 1px solid rgba(255, 213, 107, .48);
  border-radius: 2px;
  color: var(--amber);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 213, 107, .07), rgba(255, 213, 107, .02));
  transition: background .45s ease, color .45s ease, border-color .45s ease;
}
.cta:hover, .cta:focus-visible { background: var(--amber); border-color: var(--amber); color: #14100a; }
.cta small { font: 400 11px/1 var(--mono); letter-spacing: .2em; opacity: .75; }

.hero-note { margin: 16px 0 0; font-size: 12px; color: var(--dim); letter-spacing: .06em; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 1px;
  height: 56px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--line));
  overflow: hidden;
}
.scroll-cue span { position: absolute; inset-inline: -1px; height: 14px; background: linear-gradient(to bottom, transparent, var(--amber)); animation: drop 2.6s ease-in-out infinite; }
@keyframes drop { 0% { top: -14px; opacity: 0; } 35% { opacity: .9; } 100% { top: 56px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; top: 20px; } }

/* ============ 3つの言い分 ============ */

.creed { padding: clamp(32px, 5vh, 72px) 0 clamp(48px, 7vh, 90px); }

.creed-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0 clamp(20px, 4vw, 56px);
  align-items: start;
  padding: clamp(30px, 5vh, 54px) 0;
  border-top: 1px solid var(--line);
}
.creed-row:last-child { border-bottom: 1px solid var(--line); }

.creed-row .mono { padding-top: .8em; }

.creed-row h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(23px, 4vw, 36px);
  line-height: 1.5;
  letter-spacing: .06em;
  margin: 0;
}

.creed-row p { margin: .55em 0 0; color: var(--muted); font-size: 13.5px; }

@media (max-width: 760px) {
  .creed-row { grid-template-columns: 44px minmax(0, 1fr); }
  .creed-row p { grid-column: 2; }
}

/* ============ ラインナップ ============ */

.lineup { padding: clamp(40px, 7vh, 90px) 0 clamp(50px, 8vh, 96px); }

.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; }
.section-head hr { flex: 1; border: 0; border-top: 1px solid var(--line); }

.stage {
  display: block;
  text-decoration: none;
  position: relative;
  border: 1px solid var(--line);
  background: #070b0e;
  overflow: hidden;
  transition: border-color .5s ease;
}
.stage:hover, .stage:focus-visible { border-color: rgba(255, 213, 107, .42); }

.stage-art { position: relative; overflow: hidden; }
.stage-art img { width: 100%; height: auto; transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.stage:hover .stage-art img { transform: scale(1.035); }

/* 扉の光が広がる。触る端末では最初から明るくしておく */
.stage-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 120% at 88% 60%, rgba(255, 185, 80, .30), transparent 62%);
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.stage:hover .stage-art::after, .stage:focus-visible .stage-art::after { opacity: 1; }
@media (hover: none) { .stage-art::after { opacity: .5; } }

.stage-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}
.stage-meta p { margin: 0; color: var(--muted); font-size: 13px; flex: 1 1 260px; }
.stage-go { color: var(--amber); font-weight: 700; font-size: 13.5px; letter-spacing: .12em; white-space: nowrap; }
.stage-go i { font-style: normal; display: inline-block; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.stage:hover .stage-go i { transform: translateX(6px); }

.stage-soon {
  margin-top: 14px;
  padding: 26px 22px;
  border: 1px dashed rgba(255, 255, 255, .12);
  color: var(--dim);
  display: flex;
  align-items: baseline;
  gap: 8px 18px;
  flex-wrap: wrap;
}
.stage-soon .mono, .stage-soon b { white-space: nowrap; }
.stage-soon b { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .08em; color: #7d8d96; }
.stage-soon i { font-style: normal; font-size: 13px; }
@media (max-width: 560px) { .stage-soon { display: block; } .stage-soon b { display: block; margin: 6px 0 2px; } }

/* ============ よくある質問 ============ */

.faq { padding-bottom: clamp(70px, 11vh, 130px); }
.faq dl { margin: 0; }
.faq div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 4px clamp(20px, 4vw, 56px); }
.faq dt { font-weight: 700; font-size: 14.5px; letter-spacing: .04em; }
.faq dd { margin: 0; color: var(--muted); font-size: 13.5px; }
@media (max-width: 760px) { .faq div { grid-template-columns: 1fr; } }

/* ============ 足元 ============ */

footer { border-top: 1px solid var(--line); padding: 30px 0 46px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer b { font-family: var(--serif); font-weight: 700; letter-spacing: .22em; font-size: 14px; }

/* ============ ぼやけから合焦する文字（top.js が付ける） ============ */

.ch { display: inline-block; white-space: pre; will-change: filter, opacity; }

/* ============ 画面サイズごとの調整 ============ */

/* 横に寝かせたスマホなど、縦が短い画面。扉を画面いっぱいにせず、下の誘導も出さない */
@media (max-height: 620px) {
  .hero { min-height: 0; padding-block: 64px 56px; }
  .scroll-cue { display: none; }
}

/* 小さいスマホ（iPhone SE 幅）。行間と余白を詰める */
@media (max-width: 400px) {
  body { font-size: 14.5px; }
  /* 「思うがままに、脱出せよ。」が句点だけ次行に落ちないところまで詰める */
  .lead { font-size: 19px; letter-spacing: .03em; }
  .lead-sub, .creed-row p, .stage-meta p, .faq dd { font-size: 13px; }
  .cta { width: 100%; justify-content: center; padding-inline: 20px; }
  .stage-meta { padding: 16px; gap: 10px; }
  .faq div { padding: 18px 0; }
}

/* タブレット。本文は読みやすい幅で止める */
@media (min-width: 761px) and (max-width: 1080px) {
  .creed-row { grid-template-columns: 54px minmax(0, 1fr) minmax(0, .95fr); }
}

/* 大きな画面でロゴが小さく見えすぎないように、少しだけ戻す */
@media (min-width: 1600px) {
  .logo { width: 380px; }
}
