/* TERMINUS 公式サイト。ゲーム本体と同じ紺×金・Cinzel / Noto Serif JP の組み合わせ */
:root {
  --bg: #0a0c18;
  --bg-2: #10132a;
  --panel: #151935;
  --line: rgba(216, 181, 106, 0.28);
  --gold: #d8b56a;
  --gold-bright: #f3dfa8;
  --text: #e9e6dc;
  --muted: #a9a7b4;
  --display: 'Cinzel', 'Noto Serif JP', serif;
  --serif: 'Noto Serif JP', 'Cinzel', serif;
  --sans: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', sans-serif;
  --header-h: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.4; margin: 0; text-wrap: balance; }
.lead, .hero-lead, .hero-catch, .cta-note, .hero-note { text-wrap: balance; }
main { overflow-x: clip; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.wrap.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.lead { color: #d6d2c6; font-size: 1.05rem; }
p.narrow { margin-inline: auto; }
.note { color: var(--muted); font-size: 0.85rem; }

/* ---------- ヘッダ ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h); padding: 0 20px;
  background: rgba(10, 12, 24, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.14em; color: var(--gold-bright); }
.brand-sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 6px 14px; text-decoration: none; color: var(--text);
  font-family: var(--serif); font-size: 0.95rem; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--gold-bright); }
.site-nav a[aria-current='page'] { color: var(--gold-bright); border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 0.82rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.lang:hover { color: var(--gold-bright); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; padding: 10px 28px;
  font-family: var(--serif); font-weight: 700; letter-spacing: 0.08em; text-decoration: none; white-space: nowrap;
  color: #1c1405;
  background: linear-gradient(180deg, #f6e3ad 0%, #d8b56a 55%, #b48a3c 100%);
  border: 1px solid #f6e3ad; border-radius: 4px;
  box-shadow: 0 2px 0 #6f5320, 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s, filter 0.15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-small { padding: 5px 16px; font-size: 0.85rem; box-shadow: 0 1px 0 #6f5320; }
.btn-large { padding: 16px 48px; font-size: 1.2rem; }
.btn-ghost { background: none; color: var(--gold-bright); border-color: var(--line); box-shadow: none; }
.link-more {
  display: inline-block; margin-top: 8px; padding-bottom: 2px;
  font-family: var(--serif); text-decoration: none; border-bottom: 1px solid var(--gold);
}
.link-more::after { content: ' →'; }
.link-more:hover { color: #fff; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(760px, calc(100svh - var(--header-h)));
  display: grid; place-items: center; text-align: center;
  padding: 48px 20px 64px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 12, 24, 0.35) 0%, rgba(10, 12, 24, 0.25) 45%, var(--bg) 100%),
    url('/img/hero.webp') center / cover no-repeat;
}
.hero-inner { width: 100%; max-width: 760px; }
.hero-logo { margin: 0 auto 4px; width: min(560px, 88vw); filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.7)); }
.hero-catch {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 4.6vw, 2.4rem);
  letter-spacing: 0.1em; margin: 0 0 12px; color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9);
}
.hero-lead { margin: 0 auto 28px; max-width: 34em; color: #f1eee6; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95), 0 0 2px #000; }
.hero-note, .cta-note { margin: 14px 0 0; font-size: 0.85rem; color: #d6d2c6; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95); }

/* ---------- 節 ---------- */
.section { padding: 72px 0; }
.section-title {
  position: relative; text-align: center; margin-bottom: 36px;
  font-size: clamp(1.5rem, 3.6vw, 2rem); letter-spacing: 0.12em; color: var(--gold-bright);
}
.section-title::after {
  content: ''; display: block; width: 120px; height: 9px; margin: 14px auto 0;
  background:
    linear-gradient(45deg, transparent 42%, var(--gold) 42%, var(--gold) 58%, transparent 58%) center / 9px 9px no-repeat,
    linear-gradient(90deg, transparent, var(--gold) 30%, transparent 46%, transparent 54%, var(--gold) 70%, transparent) center / 100% 1px no-repeat;
}
.section-title.left { text-align: left; }
.section-title.left::after { margin-left: 0; }
.sub-title { text-align: center; margin: 56px 0 28px; font-size: 1.2rem; letter-spacing: 0.2em; color: var(--gold); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.features li {
  position: relative; padding: 36px 26px 24px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 6px;
}
.feature-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; color: var(--gold-bright);
  background: var(--bg); border: 1px solid var(--gold); border-radius: 50%;
}
.features h3 { text-align: center; font-size: 1.15rem; margin-bottom: 12px; color: #fff; }
.features p { margin: 0; color: #cfccc2; font-size: 0.95rem; }

.section-world {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(10, 12, 24, 0.82) 30%, rgba(10, 12, 24, 0.82) 70%, var(--bg) 100%),
    url('/img/night.webp') center / cover no-repeat;
}

/* ---------- 化身 ---------- */
.chara-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.chara-link { text-decoration: none; color: inherit; display: block; transition: transform 0.2s; }
.chara-link:hover { transform: translateY(-4px); }
.chara-art img { width: 100%; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); }
.chara-seat { margin: 12px 0 2px; font-size: 0.75rem; color: var(--gold); letter-spacing: 0.04em; line-height: 1.5; }
.chara-name { font-size: 1.05rem; color: #fff; word-break: keep-all; overflow-wrap: anywhere; text-wrap: wrap; }
.chara-quote { margin: 8px 0 0; font-family: var(--serif); font-size: 0.85rem; line-height: 1.7; color: #d6d2c6; }

.chara-list { display: grid; gap: 28px; margin-top: 36px; }
.chara-full {
  display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start;
  padding: 28px; background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 8px;
}
.chara-full .chara-seat { margin-top: 0; font-size: 0.85rem; }
.chara-full .chara-name { font-size: 1.6rem; }
.chara-facts { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 12px 0; }
.chara-facts li { padding: 1px 10px; font-size: 0.8rem; color: #d6d2c6; border: 1px solid var(--line); border-radius: 99px; }
.chara-full .chara-quote { margin: 14px 0 16px; padding-left: 14px; font-size: 1.05rem; color: var(--gold-bright); border-left: 2px solid var(--gold); }
.chara-full h4 { margin: 18px 0 6px; font-size: 0.95rem; color: var(--gold); letter-spacing: 0.08em; }
.chara-full p { font-size: 0.95rem; }
.seat-lore { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.seat-lore dt { font-family: var(--serif); color: var(--gold); font-size: 0.85rem; letter-spacing: 0.08em; }
.seat-lore dd { margin: 0 0 10px; color: #cfccc2; }
.seat-lore strong { color: #fff; font-family: var(--serif); }

/* ---------- カードの扇 ---------- */
.fan { display: flex; justify-content: center; margin: 40px auto 36px; padding: 10px 0 30px; }
.fan a {
  width: clamp(84px, 14vw, 170px); margin: 0 clamp(-22px, -2.4vw, -12px);
  transform: rotate(calc(var(--i) * 5deg)) translateY(calc(var(--i) * var(--i) * 5px));
  transform-origin: 50% 120%; transition: transform 0.2s;
}
.fan a:hover { transform: rotate(calc(var(--i) * 5deg)) translateY(calc(var(--i) * var(--i) * 5px - 18px)); z-index: 2; }
.fan img { width: 100%; border-radius: 7px; border: 1px solid rgba(243, 223, 168, 0.5); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6); }

/* ---------- 遊び方 ---------- */
.section-howto { background: linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6); }
.shot figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

.steps { counter-reset: step; display: grid; gap: 14px; margin: 20px 0; }
.steps li {
  counter-increment: step; position: relative; padding: 14px 18px 14px 66px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: #1c1405;
  background: linear-gradient(180deg, #f6e3ad, #b48a3c); border-radius: 50%;
}
.steps h3 { font-size: 1.05rem; color: #fff; }
.steps p { margin: 2px 0 0; font-size: 0.92rem; color: #cfccc2; line-height: 1.7; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.modes li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; background: rgba(21, 25, 53, 0.6); }
.modes h3 { font-size: 1.05rem; color: var(--gold-bright); margin-bottom: 4px; }
.modes p { margin: 0; font-size: 0.9rem; color: #cfccc2; line-height: 1.7; }

/* ---------- 下層ページの見出し ---------- */
.page-head {
  position: relative; padding: 84px 0 64px;
  background:
    linear-gradient(180deg, rgba(10, 12, 24, 0.55), var(--bg)),
    url('/img/night.webp') center 30% / cover no-repeat;
}
.page-head.head-howto { background-image: linear-gradient(180deg, rgba(10, 12, 24, 0.5), var(--bg)), url('/img/eclipse.webp'); }
.page-head.head-cards { background-image: linear-gradient(180deg, rgba(10, 12, 24, 0.4), var(--bg)), url('/img/hero.webp'); }
.page-head h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: 0.2em; color: var(--gold-bright); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9); margin-bottom: 12px; }
.page-head .lead { margin: 0; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95); }
.notfound { min-height: 60vh; }

/* ---------- 世界観 ---------- */
.lore { position: relative; padding: 0 0 12px 64px; margin-bottom: 40px; }
.lore-num {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; color: var(--gold-bright); border: 1px solid var(--gold); border-radius: 50%;
}
.lore::before { content: ''; position: absolute; left: 22px; top: 52px; bottom: 0; width: 1px; background: var(--line); }
.lore h2 { font-size: 1.5rem; color: #fff; margin: 4px 0 14px; letter-spacing: 0.08em; }
.lore p { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; line-height: 2.1; color: #dedad0; }

.section-seats { background: var(--bg-2); border-block: 1px solid var(--line); }
.seats { display: grid; grid-template-columns: repeat(11, 1fr); gap: 14px 10px; margin-top: 32px; }
.seats a { display: block; text-decoration: none; color: var(--text); transition: transform 0.2s; }
.seats a:hover { transform: translateY(-4px); }
.seats img { width: 100%; border-radius: 5px; border: 1px solid var(--line); }
.seat-num { display: block; margin-top: 6px; font-family: var(--display); font-size: 0.8rem; color: var(--gold); line-height: 1.2; }
.seat-name { display: block; font-family: var(--serif); font-size: 0.78rem; line-height: 1.3; }

/* ---------- 遊び方（本文） ---------- */
.prose h2 {
  margin: 56px 0 18px; padding-left: 16px; font-size: 1.45rem; color: var(--gold-bright);
  letter-spacing: 0.08em; border-left: 3px solid var(--gold);
}
.prose h2:first-child { margin-top: 0; }
.rules { margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.rules div { display: grid; grid-template-columns: 9em 1fr; border-bottom: 1px solid var(--line); }
.rules div:last-child { border-bottom: 0; }
.rules dt { padding: 12px 16px; font-family: var(--serif); color: var(--gold); background: var(--panel); }
.rules dd { margin: 0; padding: 12px 16px; }
.priority { counter-reset: pr; display: grid; gap: 10px; }
.priority li {
  counter-increment: pr; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start;
  padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
}
.priority li::before { content: counter(pr); grid-row: 1 / 3; font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--gold); line-height: 1.2; text-align: center; }
.priority h3 { font-size: 1.05rem; color: #fff; }
.priority p { margin: 0; font-size: 0.93rem; color: #cfccc2; }
.tips li { position: relative; padding: 6px 0 6px 26px; }
.tips li::before { content: '◆'; position: absolute; left: 2px; color: var(--gold); font-size: 0.7rem; top: 12px; }

/* ---------- カード一覧 ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.filters input { position: absolute; opacity: 0; pointer-events: none; }
.filters span {
  display: block; padding: 4px 16px; font-size: 0.88rem; cursor: pointer;
  color: var(--text); border: 1px solid var(--line); border-radius: 99px; transition: background 0.15s;
}
.filters span:hover { border-color: var(--gold); }
.filters input:checked + span { color: #1c1405; background: var(--gold); border-color: var(--gold); font-weight: 500; }
.filters input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

.card-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card-item {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start;
  padding: 18px; background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 8px;
}
.card-item:target { border-color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold-bright), 0 0 28px rgba(216, 181, 106, 0.25); }
.card-art img { width: 100%; border-radius: 6px; border: 1px solid rgba(243, 223, 168, 0.4); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5); }
.card-num { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 4px; line-height: 1.4; }
.roman { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--gold-bright); }
.value { font-size: 0.8rem; color: var(--muted); }
.tag { margin-left: auto; padding: 0 10px; font-size: 0.72rem; color: var(--gold); border: 1px solid var(--line); border-radius: 99px; white-space: nowrap; }
.card-name { font-size: 1.4rem; color: #fff; }
.card-en { margin-left: 10px; font-family: var(--display); font-weight: 500; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; }
.card-flavor { margin: 4px 0 10px; font-family: var(--serif); font-size: 0.85rem; color: var(--gold); line-height: 1.6; }
.card-effect { margin: 0; font-size: 0.93rem; line-height: 1.8; }

.cards-wrap:has(input[value='draw']:checked) .card-item:not([data-g='draw']),
.cards-wrap:has(input[value='trick']:checked) .card-item:not([data-g='trick']),
.cards-wrap:has(input[value='guard']:checked) .card-item:not([data-g='guard']),
.cards-wrap:has(input[value='info']:checked) .card-item:not([data-g='info']),
.cards-wrap:has(input[value='break']:checked) .card-item:not([data-g='break']),
.cards-wrap:has(input[value='win']:checked) .card-item:not([data-g='win']) { display: none; }
.cards-wrap .note { margin-top: 28px; }

/* ---------- 誘導・フッタ ---------- */
.cta {
  padding: 88px 20px; text-align: center;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(10, 12, 24, 0.55) 40%, rgba(10, 12, 24, 0.7) 100%),
    url('/img/eclipse.webp') center / cover no-repeat;
}
.cta h2 { margin-bottom: 28px; font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: 0.14em; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9); }

.site-footer { padding: 40px 20px 32px; border-top: 1px solid var(--line); background: #070810; text-align: center; }
.footer-logo { width: 200px; margin: 0 auto 8px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 16px; }
.footer-nav a { font-size: 0.85rem; color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--gold-bright); text-decoration: underline; }
.copyright { margin: 0; font-size: 0.75rem; color: var(--muted); }

/* ---------- 狭い画面 ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; gap: 34px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .card-list { grid-template-columns: 1fr; }
  .seats { grid-template-columns: repeat(6, 1fr); }
  .chara-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  :root { --header-h: 84px; }
  .brand-sub { display: none; }
  .site-header { flex-wrap: wrap; gap: 0 10px; padding: 8px 14px 0; align-content: center; }
  .header-actions { margin-left: auto; gap: 10px; }
  .site-nav { order: 3; width: 100%; margin: 4px 0 0; justify-content: space-between; }
  .site-nav a { padding: 4px 6px; font-size: 0.88rem; }
  .brand-name { font-size: 1.15rem; }
  .section { padding: 52px 0; }
  .hero { padding: 28px 16px 48px; min-height: calc(100svh - var(--header-h)); }
  .btn-large { padding: 14px 30px; font-size: 1.08rem; }
  .hero-catch { font-size: 1.35rem; letter-spacing: 0.05em; }
  .chara-row { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .chara-full { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .chara-full .chara-art { width: 62%; margin-inline: auto; }
  .seats { grid-template-columns: repeat(4, 1fr); }
  .modes { grid-template-columns: 1fr; }
  .card-item { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; }
  .card-name { font-size: 1.2rem; }
  .card-en { display: block; margin: 0; }
  .tag { margin-left: 0; }
  .lore { padding-left: 0; }
  .lore::before { display: none; }
  .lore-num { position: static; margin-bottom: 8px; width: 38px; height: 38px; }
  .rules div { grid-template-columns: 1fr; }
  .rules dt { padding: 6px 14px; font-size: 0.88rem; }
  .rules dd { padding: 10px 14px; }
  .filters { gap: 6px; }
  .filters span { padding: 3px 12px; font-size: 0.82rem; }
  .page-head { padding: 56px 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==========================================================================
   作り込みと演出（2026-11-12）。JavaScript が無いとき・動きを減らす設定のときは、
   どれも止まって最初から全部見える
   ========================================================================== */

/* ---------- 地: 星と薄い光 ---------- */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 62%, rgba(243, 223, 168, 0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 28%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 74%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 12%, rgba(243, 223, 168, 0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 88%, rgba(255, 255, 255, 0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 44%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 92%, rgba(243, 223, 168, 0.4) 50%, transparent 51%);
  background-size: 520px 520px;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(74, 62, 140, 0.16), transparent 70%),
    radial-gradient(50% 40% at 100% 60%, rgba(216, 181, 106, 0.07), transparent 70%);
}
::selection { background: rgba(216, 181, 106, 0.45); color: #fff; }

/* ---------- 読み進みの線 ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 30; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #b48a3c, #f6e3ad); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
}
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- ページの切り替え ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.25s ease both; }
::view-transition-new(root) { animation: vt-in 0.35s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- ヘッダ ---------- */
.site-header { transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; }
.js .has-hero .site-header:not(.scrolled) { background: linear-gradient(180deg, rgba(10, 12, 24, 0.7), transparent); border-bottom-color: transparent; backdrop-filter: none; }
.has-hero .hero { margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + 48px); min-height: min(820px, 100svh); }
.site-nav a { position: relative; border-bottom: 0; }
.site-nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: 50% 50%; transition: transform 0.25s;
}
.site-nav a:hover::after, .site-nav a[aria-current='page']::after { transform: scaleX(1); }

/* ---------- ボタンの光沢 ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn:hover::after { animation: sheen 0.7s ease; }
.btn-large::after { animation: sheen 4.5s ease 2.2s infinite; }
@keyframes sheen { 0% { left: -60%; } 22%, 100% { left: 130%; } }
.btn:active { transform: translateY(1px); }

/* ---------- ヒーロー ---------- */
.hero { overflow: hidden; }
.hero-bg {
  inset: -3%;
  transform: translate(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -12px)) scale(1.02);
  transition: transform 0.6s ease-out;
  animation: hero-zoom 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes hero-zoom { from { scale: 1.14; filter: brightness(0.4) blur(6px); } to { scale: 1; filter: none; } }
.hero-inner { position: relative; }
.hero-logo { position: relative; animation: logo-in 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
  translate: calc(var(--px, 0) * 10px) calc(var(--py, 0) * 6px); transition: translate 0.6s ease-out; }
@keyframes logo-in { from { opacity: 0; transform: scale(1.12); filter: blur(12px) drop-shadow(0 6px 24px rgba(0, 0, 0, 0.7)); } }
.logo-shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url('/img/logo.webp') center / contain no-repeat; mask: url('/img/logo.webp') center / contain no-repeat;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.9) 50%, transparent 58%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0;
  animation: logo-shine 6s ease-in-out 1.9s infinite; mix-blend-mode: screen;
}
@keyframes logo-shine { 0% { background-position: 160% 0; } 28%, 100% { background-position: -60% 0; } }
.hero-catch span { display: inline-block; animation: char-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(1.2s + var(--c) * 55ms); }
@keyframes char-in { from { opacity: 0; transform: translateY(0.6em); filter: blur(6px); } }
.hero-lead, .hero .btn, .hero-note { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-lead { animation-delay: 2s; }
.hero .btn { animation-name: rise, none; animation-delay: 2.2s; }
.hero .btn::after { animation-delay: 4s; }
.hero-note { animation-delay: 2.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.dust i {
  position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #fff3c8 0%, rgba(243, 223, 168, 0.6) 40%, transparent 70%);
  opacity: 0; animation: dust var(--d) linear var(--w) infinite;
}
@keyframes dust {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 0.9; }
  80% { opacity: 0.5; }
  100% { transform: translate(var(--x), -86vh); opacity: 0; }
}
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 1px; height: 46px; background: linear-gradient(180deg, transparent, var(--gold)); overflow: hidden; animation: rise 1s 3s both; }
.scroll-cue::after { content: ''; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: #fff; animation: cue 2s ease-in-out infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- 現れる要素（site.js の SELECTOR と同じ並び） ---------- */
.js :is(.section-title, .sub-title, .section .lead, .features > li, .modes > li, .steps > li, .priority > li, .seats > li, .tips > li, .chara-link, .chara-full, .card-item, .lore, .shot, .rules, .section .link-more, .prose h2, .prose > p, .filters, .cta-inner > *) {
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rv-delay, 0ms), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rv-delay, 0ms), border-color 0.25s, box-shadow 0.25s;
}
.js :is(.section-title, .sub-title, .section .lead, .features > li, .modes > li, .steps > li, .priority > li, .seats > li, .tips > li, .chara-link, .chara-full, .card-item, .lore, .shot, .rules, .section .link-more, .prose h2, .prose > p, .filters, .cta-inner > *):not(.in) {
  opacity: 0; transform: translateY(26px);
}
.js .seats > li:not(.in) { transform: translateY(14px) rotateY(70deg); }
.js .steps > li:not(.in), .js .priority > li:not(.in), .js .tips > li:not(.in) { transform: translateX(-22px); }
.js .chara-full:nth-child(odd):not(.in) { transform: translateX(-36px); }
.js .chara-full:nth-child(even):not(.in) { transform: translateX(36px); }
.js .shot:not(.in) { transform: translateY(26px) scale(0.97); }

/* 見出しの飾り線は中央から伸びる */
.section-title::after { transition: clip-path 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s; clip-path: inset(0 0 0 0); }
.js .section-title:not(.in)::after { clip-path: inset(0 50% 0 50%); }
.js .section-title.left:not(.in)::after { clip-path: inset(0 100% 0 0); }
.js .section-title { transition-property: opacity, transform, letter-spacing; }
.js .section-title:not(.in) { letter-spacing: 0.32em; }

/* ---------- 枠（二重の線）と浮き上がり ---------- */
.features li, .chara-full, .card-item, .modes li, .steps li, .priority li {
  box-shadow: inset 0 0 0 4px rgba(10, 12, 24, 0.55), inset 0 0 0 5px rgba(216, 181, 106, 0.14), 0 10px 30px rgba(0, 0, 0, 0.3);
}
.features li:hover, .modes li:hover, .card-item:hover {
  border-color: rgba(243, 223, 168, 0.65);
  box-shadow: inset 0 0 0 4px rgba(10, 12, 24, 0.55), inset 0 0 0 5px rgba(216, 181, 106, 0.3), 0 16px 40px rgba(0, 0, 0, 0.5);
}
.js .features li.in:hover, .js .modes li.in:hover { transform: translateY(-4px); transition-delay: 0ms; }
.feature-num { transition: transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--rv-delay, 0ms) + 0.3s); }
.js .features li:not(.in) .feature-num { transform: translateX(-50%) scale(0) rotate(-180deg); }
.steps li::before { transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--rv-delay, 0ms) + 0.25s); }
.js .steps li:not(.in)::before { transform: translateY(-50%) scale(0); }

/* ---------- 札: 傾きと光沢 ---------- */
.card-art, .chara-art { position: relative; perspective: 700px; }
.card-art img, .chara-art img {
  transform: rotateY(calc(var(--tx, 0) * 16deg)) rotateX(calc(var(--ty, 0) * -16deg));
  transition: transform 0.25s ease-out, box-shadow 0.25s;
}
.card-art::after, .chara-art::after {
  content: ''; position: absolute; inset: 0; border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(circle at calc(50% + var(--tx, 0) * 100%) calc(50% + var(--ty, 0) * 100%), rgba(255, 255, 255, 0.35), transparent 55%);
  mix-blend-mode: screen;
}
.card-art:hover::after, .chara-art:hover::after { opacity: 1; }
.card-art:hover img, .chara-art:hover img { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7); }
.card-item:target { animation: target-pulse 1.6s ease 0.3s 2; }
@keyframes target-pulse { 50% { box-shadow: 0 0 0 2px var(--gold-bright), 0 0 44px rgba(216, 181, 106, 0.45); } }
.roman { background: linear-gradient(180deg, #fff3c8, #d8b56a 60%, #a7801f); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 札の扇: 伏せた束から広がって、めくれる ---------- */
.fan-stage { position: relative; margin: 26px auto 10px; }
.fan-ring {
  position: absolute; left: 50%; top: 50%; width: min(620px, 120vw); aspect-ratio: 1; z-index: -1;
  background: url('/img/zodiac.webp') center / contain no-repeat; opacity: 0.32;
  translate: -50% -46%; animation: spin 140s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 55%, transparent 72%); mask: radial-gradient(circle, #000 55%, transparent 72%);
}
@keyframes spin { to { rotate: 360deg; } }
.fan { perspective: 1200px; }
.fan a { transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--n) * 70ms), margin 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--n) * 70ms); }
.fan a:hover { transition-duration: 0.2s; transition-delay: 0ms; }
.fan .flip { display: block; position: relative; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.3, 0.7, 0.2, 1) calc(0.55s + var(--n) * 110ms); }
.fan .face, .fan .back { display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fan .back { position: absolute; inset: 0; transform: rotateY(180deg); }
.fan .back img { height: 100%; object-fit: cover; }
.js .fan-stage:not(.in) .fan a { transform: rotate(0deg) translateY(0); margin: 0 clamp(-80px, -6.6vw, -40px); }
.js .fan-stage:not(.in) .flip { transform: rotateY(180deg); }
.js .fan-stage { transition: opacity 0.6s; }
.js .fan-stage:not(.in) { opacity: 0; }

/* ---------- 化身 ---------- */
.chara-link .chara-art { overflow: hidden; border-radius: 8px; }
.chara-link .chara-name { display: inline; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size 0.35s; padding-bottom: 2px; }
.chara-link:hover .chara-name { background-size: 100% 1px; }
.chara-link .chara-quote { margin-top: 10px; }

.chara-full { grid-template-columns: 300px 1fr; gap: 44px; padding: 36px; position: relative; }
.chara-full:nth-child(even) { grid-template-columns: 1fr 300px; }
.chara-full:nth-child(even) .chara-art { order: 2; }
.chara-full .chara-art::before {
  content: ''; position: absolute; inset: 0; border: 1px solid var(--gold); border-radius: 8px; opacity: 0.55;
  transform: translate(12px, 12px); z-index: -1; transition: transform 0.4s;
}
.chara-full:nth-child(even) .chara-art::before { transform: translate(-12px, 12px); }
.chara-full .chara-art { isolation: isolate; }
.chara-full:hover .chara-art::before { transform: translate(6px, 6px); }
.chara-full:nth-child(even):hover .chara-art::before { transform: translate(-6px, 6px); }
.chara-full .chara-name { font-size: 1.9rem; letter-spacing: 0.06em; }
.chara-full .chara-quote { font-size: 1.15rem; line-height: 1.9; }
.chara-full .chara-body::before {
  content: attr(data-roman); position: absolute; right: 28px; bottom: 10px; font-family: var(--display); font-weight: 700;
  font-size: 7rem; line-height: 1; color: rgba(216, 181, 106, 0.09); pointer-events: none;
}
.chara-full:nth-child(even) .chara-body::before { right: auto; left: 28px; }
.chara-full:nth-child(even) .chara-body { text-align: left; }

/* ---------- 下層ページの見出し ---------- */
.page-head { overflow: hidden; padding: 110px 0 84px; isolation: isolate; }
.head-ring {
  position: absolute; left: 50%; top: 50%; width: min(560px, 110vw); aspect-ratio: 1; z-index: -1;
  background: url('/img/zodiac.webp') center / contain no-repeat; opacity: 0.16;
  translate: -50% -50%; animation: spin 160s linear infinite;
}
.page-head h1 { animation: head-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
@keyframes head-in { from { opacity: 0; letter-spacing: 0.5em; filter: blur(8px); } }
.page-head .lead { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both; }
.page-head h1::after {
  content: ''; display: block; width: 160px; height: 9px; margin: 14px auto 0;
  background:
    linear-gradient(45deg, transparent 42%, var(--gold) 42%, var(--gold) 58%, transparent 58%) center / 9px 9px no-repeat,
    linear-gradient(90deg, transparent, var(--gold) 30%, transparent 46%, transparent 54%, var(--gold) 70%, transparent) center / 100% 1px no-repeat;
}

/* ---------- 世界観 ---------- */
.lore::before { transform-origin: 50% 0; transition: transform 1.2s ease 0.4s; }
.js .lore:not(.in)::before { transform: scaleY(0); }
.lore-num { transition: transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 0.2s; background: var(--bg); }
.js .lore:not(.in) .lore-num { transform: scale(0) rotate(-90deg); }
.seats { perspective: 900px; }
.seats a img { transition: box-shadow 0.25s, border-color 0.25s; }
.seats a:hover img { border-color: var(--gold-bright); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6); }

/* ---------- 誘導 ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta-ring {
  position: absolute; left: 50%; top: 50%; width: min(700px, 140vw); aspect-ratio: 1; z-index: -1;
  background: url('/img/zodiac.webp') center / contain no-repeat; opacity: 0.2;
  translate: -50% -50%; animation: spin 180s linear infinite reverse;
}
.footer-nav a { position: relative; }

@media (max-width: 900px) {
  .chara-full, .chara-full:nth-child(even) { grid-template-columns: 220px 1fr; gap: 28px; padding: 26px; }
  .chara-full:nth-child(even) .chara-art { order: 0; }
  .chara-full:nth-child(even) .chara-art::before { transform: translate(12px, 12px); }
  .chara-full:nth-child(even) .chara-body::before { left: auto; right: 28px; }
}
@media (max-width: 640px) {
  .has-hero .hero { padding-top: calc(var(--header-h) + 28px); min-height: 100svh; }
  .chara-full, .chara-full:nth-child(even) { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .chara-full .chara-name { font-size: 1.5rem; }
  .chara-full .chara-quote { font-size: 1.02rem; }
  .chara-full .chara-body::before { font-size: 4.5rem; right: 18px; bottom: 8px; }
  .page-head { padding: 72px 0 52px; }
  .js .chara-full:nth-child(odd):not(.in), .js .chara-full:nth-child(even):not(.in) { transform: translateY(26px); }
  .site-nav a::after { left: 6px; right: 6px; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .dust, .scroll-cue, .logo-shine { display: none; }
}

/* ==========================================================================
   派手な演出（2026-11-12 その2）
   ========================================================================== */
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
:root { --t0: 0s; }
.intro-on { --t0: 1.55s; }

/* ---------- 空（粒と流れ星の canvas）と、マウスの火花 ---------- */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.spark {
  position: fixed; z-index: 90; width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2); pointer-events: none;
  background: radial-gradient(circle, #fff 0%, #f6e3ad 35%, rgba(216, 181, 106, 0) 70%);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: spark 0.75s ease-out forwards;
}
@keyframes spark { from { opacity: 1; transform: scale(1.3) rotate(0deg); } to { opacity: 0; transform: translate(var(--dx), 34px) scale(0.2) rotate(140deg); } }

/* ---------- 開幕: 魔法陣 → 閃光 → 扉が左右に開く ---------- */
.intro { display: none; position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
.intro-on .intro { display: block; }
.intro-door { position: absolute; top: 0; bottom: 0; width: 50.2%; background: #05060d; animation: door 1s cubic-bezier(0.7, 0, 0.2, 1) 1.25s forwards; }
.intro-door.left { left: 0; border-right: 1px solid var(--gold); box-shadow: 8px 0 40px rgba(246, 227, 173, 0.35); --to: -102%; }
.intro-door.right { right: 0; border-left: 1px solid var(--gold); box-shadow: -8px 0 40px rgba(246, 227, 173, 0.35); --to: 102%; }
@keyframes door { to { transform: translateX(var(--to)); } }
.intro-ring {
  position: absolute; left: 50%; top: 50%; width: min(70vmin, 520px); aspect-ratio: 1; translate: -50% -50%;
  background: url('/img/zodiac.webp') center / contain no-repeat;
  animation: intro-ring 1.9s cubic-bezier(0.3, 0.7, 0.2, 1) forwards;
}
@keyframes intro-ring {
  0% { opacity: 0; transform: scale(0.3) rotate(-120deg); filter: brightness(1); }
  45% { opacity: 1; transform: scale(1) rotate(0deg); filter: brightness(1.4); }
  66% { opacity: 1; transform: scale(1.05) rotate(20deg); filter: brightness(2.2); }
  100% { opacity: 0; transform: scale(3.4) rotate(70deg); filter: brightness(2.2); }
}
.intro-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #fff 0%, rgba(246, 227, 173, 0.9) 18%, rgba(246, 227, 173, 0) 60%); opacity: 0; animation: intro-flash 1s ease-out 1.05s forwards; }
@keyframes intro-flash { 0% { opacity: 0; transform: scale(0.2); } 30% { opacity: 1; transform: scale(1.4); } 100% { opacity: 0; transform: scale(2.6); } }

/* ---------- 光の筋 ---------- */
.rays {
  position: absolute; left: 50%; top: 34%; width: 190vmax; aspect-ratio: 1; z-index: -1; pointer-events: none;
  translate: -50% -50%; mix-blend-mode: screen;
  background: repeating-conic-gradient(from 0deg, rgba(255, 232, 170, 0.16) 0deg 3deg, transparent 3deg 11deg, rgba(255, 232, 170, 0.08) 11deg 13deg, transparent 13deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.5) 22%, transparent 46%); mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.5) 22%, transparent 46%);
  animation: spin 70s linear infinite, rays-in 2.4s ease calc(var(--t0) + 0.4s) both;
}
@keyframes rays-in { from { opacity: 0; } }
.page-head .rays { top: 50%; opacity: 0.7; }
.cta .rays { top: 50%; }

/* ---------- ヒーロー ---------- */
.hero-bg { animation: hero-zoom 3s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--t0) - 0.3s) both; }
@keyframes hero-zoom { from { scale: 1.3; filter: brightness(0.3) blur(8px); } to { scale: 1; filter: none; } }
.hero-ring {
  position: absolute; left: 50%; top: 50%; width: 132%; aspect-ratio: 1; z-index: -1; translate: -50% -50%;
  background: url('/img/zodiac.webp') center / contain no-repeat; opacity: 0.4;
  animation: spin 90s linear infinite, ring-in 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--t0) + 0.2s) both;
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 44%, #000 62%, transparent 71%); mask: radial-gradient(circle, transparent 30%, #000 44%, #000 62%, transparent 71%);
}
@keyframes ring-in { from { opacity: 0; scale: 0.4; } }
.hero-logo { animation: logo-in 1.3s cubic-bezier(0.2, 0.9, 0.2, 1) calc(var(--t0) + 0.35s) both; }
@keyframes logo-in {
  0% { opacity: 0; transform: scale(2.4); filter: blur(18px) brightness(3); }
  60% { opacity: 1; transform: scale(0.96); filter: blur(0) brightness(1.6) drop-shadow(0 6px 24px rgba(0, 0, 0, 0.7)); }
  100% { transform: scale(1); filter: brightness(1) drop-shadow(0 6px 24px rgba(0, 0, 0, 0.7)); }
}
.hero-logo img { animation: logo-halo 3.6s ease-in-out calc(var(--t0) + 2s) infinite alternate; }
@keyframes logo-halo { from { filter: drop-shadow(0 0 0 rgba(255, 214, 130, 0)); } to { filter: drop-shadow(0 0 26px rgba(255, 214, 130, 0.6)); } }
.logo-burst {
  position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 226, 150, 0.7) 22%, rgba(255, 226, 150, 0) 62%);
  opacity: 0; animation: burst 1.3s ease-out calc(var(--t0) + 0.95s) both; mix-blend-mode: screen;
}
@keyframes burst { 0% { opacity: 0; transform: scale(0.1); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(2.2); } }
.logo-shine { animation: logo-shine 4.5s ease-in-out calc(var(--t0) + 1.9s) infinite; }
.hero-catch { font-size: clamp(1.6rem, 5vw, 2.8rem); }
.hero-catch span {
  animation: char-in 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) calc(var(--t0) + 1.2s + var(--c) * 60ms) both,
    char-glint 5s ease-in-out calc(var(--t0) + 3.2s + var(--c) * 90ms) infinite;
}
@keyframes char-in { from { opacity: 0; transform: translateY(0.9em) scale(1.6) rotate(8deg); filter: blur(8px); color: #ffe7a8; } }
@keyframes char-glint { 0%, 16%, 100% { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9); } 8% { color: #ffe9b0; text-shadow: 0 0 18px rgba(255, 220, 140, 0.95), 0 2px 16px rgba(0, 0, 0, 0.9); } }
.hero-lead { animation-delay: calc(var(--t0) + 2s); }
.hero .btn { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--t0) + 2.2s) both, pulse 2.4s ease-out calc(var(--t0) + 3.4s) infinite; }
.hero-note { animation-delay: calc(var(--t0) + 2.4s); }
.scroll-cue { animation-delay: calc(var(--t0) + 3s); }
.cta .btn-large { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 2px 0 #6f5320, 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(246, 227, 173, 0.75); }
  100% { box-shadow: 0 2px 0 #6f5320, 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 26px rgba(246, 227, 173, 0); }
}
.btn-large { font-size: 1.3rem; padding: 18px 56px; }
.dust i { animation-delay: calc(var(--t0) + var(--w)); }

/* ---------- 札の川 ---------- */
.river { position: relative; padding: 26px 0 34px; overflow: hidden; perspective: 900px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.river-track { display: flex; gap: 18px; width: max-content; animation: river 70s linear infinite; transform-style: preserve-3d; rotate: x 14deg; }
.river:hover .river-track { animation-play-state: paused; }
@keyframes river { to { transform: translateX(calc(-50% - 9px)); } }
.river a { flex: none; width: clamp(92px, 11vw, 150px); transition: transform 0.25s, filter 0.25s; }
.river a:nth-child(odd) { translate: 0 10px; }
.river a:hover { transform: translateY(-14px) scale(1.12); filter: brightness(1.15); z-index: 2; }
.river img { width: 100%; border-radius: 7px; border: 1px solid rgba(243, 223, 168, 0.5); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6); }
.js .river { transition: opacity 1.2s ease 0.2s; }
.js .river:not(.in) { opacity: 0; }

/* ---------- 見出し: 金の文字に光が流れる ---------- */
.section-title, .page-head h1 {
  background: linear-gradient(100deg, #d8b56a 0%, #f3dfa8 30%, #fff 45%, #f3dfa8 60%, #d8b56a 100%) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: title-shimmer 5s linear infinite;
}
.page-head h1 { animation: head-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both, title-shimmer 5s linear infinite; text-shadow: none; filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.9)); }
@keyframes title-shimmer { from { background-position: 110% 0; } to { background-position: -110% 0; } }
.section-title::after, .page-head h1::after { filter: drop-shadow(0 0 6px rgba(246, 227, 173, 0.7)); }

/* ---------- 枠を金の光が回る ---------- */
.features li::before, .chara-full::before, .card-item::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--a), transparent 0 68%, #f6e3ad 84%, #fff 88%, #f6e3ad 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: border-run 5s linear infinite;
}
.features li:nth-child(2)::before { animation-delay: -1.6s; }
.features li:nth-child(3)::before { animation-delay: -3.2s; }
.card-item { position: relative; }
.card-item::before { opacity: 0; transition: opacity 0.3s; }
.card-item:hover::before, .card-item:target::before { opacity: 1; }
@keyframes border-run { to { --a: 360deg; } }

/* ---------- 現れ方を大きく ---------- */
.js .features > li:not(.in) { transform: translateY(60px) scale(0.9) rotateX(24deg); transform-origin: 50% 100%; }
.features { perspective: 1000px; }
.js .chara-link:not(.in) { transform: translateY(70px) scale(0.86) rotate(-5deg); }
.js .chara-link:nth-child(even):not(.in) { transform: translateY(70px) scale(0.86) rotate(5deg); }
.js .modes > li:not(.in) { transform: translateY(40px) scale(0.92); }
.chara-link:hover { transform: translateY(-10px) scale(1.04); }
.chara-link .chara-art img { transition: transform 0.4s, box-shadow 0.3s, filter 0.3s; }
.chara-link:hover .chara-art img { box-shadow: 0 0 0 1px var(--gold-bright), 0 18px 44px rgba(0, 0, 0, 0.7), 0 0 34px rgba(246, 227, 173, 0.35); filter: brightness(1.08); }

/* 化身の絵: 斜めの光の刃で切り開かれて現れる */
.chara-full .chara-art img { transition: clip-path 1.1s cubic-bezier(0.6, 0, 0.2, 1) 0.25s, transform 0.25s ease-out, box-shadow 0.25s; clip-path: polygon(-40% 0, 140% 0, 100% 100%, -80% 100%); }
.js .chara-full:not(.in) .chara-art img { clip-path: polygon(-40% 0, -40% 0, -80% 100%, -80% 100%); }
.chara-full .chara-art::after { transition: opacity 0.3s; }
.chara-full .chara-name { background: linear-gradient(100deg, #fff 0%, #fff 40%, #f6e3ad 50%, #fff 60%, #fff 100%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: title-shimmer 6s linear infinite; }
.chara-full .chara-quote { transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s; }
.js .chara-full:not(.in) .chara-quote { opacity: 0; transform: translateX(-18px); }

/* ---------- カード一覧: 伏せた札がめくれて、光が走る ---------- */
.card-art .flipper { display: block; position: relative; transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(0.3, 0.7, 0.2, 1) calc(var(--rv-delay, 0ms) + 0.2s); }
.card-art .face, .card-art .back { display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-art .back { position: absolute; inset: 0; transform: rotateY(180deg); }
.card-art .back img { height: 100%; object-fit: cover; }
.js .card-item:not(.in) .flipper { transform: rotateY(180deg); }
.card-art .face { position: relative; overflow: hidden; border-radius: 6px; }
.card-art .face::after, .fan .face::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -80%; width: 50%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-18deg);
}
.card-item.in .card-art .face::after { animation: glint-once 0.9s ease calc(var(--rv-delay, 0ms) + 1s) both; }
@keyframes glint-once { from { left: -80%; } to { left: 150%; } }

/* ---------- 札の扇: 閃光と、流れ続ける光沢 ---------- */
.fan-ring { opacity: 0.5; width: min(680px, 130vw); }
.fan-stage::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: min(760px, 140vw); aspect-ratio: 1; translate: -50% -50%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 200, 0.75) 0%, rgba(246, 227, 173, 0.3) 28%, transparent 62%); opacity: 0; mix-blend-mode: screen;
}
.fan-stage.in::before { animation: burst 1.6s ease-out 0.9s both; }
.fan-stage::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: min(520px, 100vw); aspect-ratio: 1; translate: -50% -46%; z-index: -1; pointer-events: none;
  background: url('/img/zodiac.webp') center / contain no-repeat; opacity: 0.22; animation: spin 90s linear infinite reverse;
  -webkit-mask: radial-gradient(circle, #000 40%, transparent 58%); mask: radial-gradient(circle, #000 40%, transparent 58%);
}
.fan .face { position: relative; overflow: hidden; border-radius: 7px; }
.fan-stage.in .face::after { animation: glint-loop 4.8s ease-in-out calc(2s + var(--n) * 0.16s) infinite; }
@keyframes glint-loop { 0% { left: -80%; } 22%, 100% { left: 150%; } }
.fan a:hover { transform: rotate(calc(var(--i) * 5deg)) translateY(calc(var(--i) * var(--i) * 5px - 34px)) scale(1.12); }
.fan a:hover img { box-shadow: 0 0 0 1px #fff3c8, 0 20px 44px rgba(0, 0, 0, 0.7), 0 0 36px rgba(246, 227, 173, 0.5); }
.js .fan-stage:not(.in) .fan a { transform: translateY(120px) rotate(0deg) scale(0.7); }

/* 22の座: 波のようにめくれて並ぶ */
.js .seats > li:not(.in) { transform: translateY(30px) rotateY(180deg) scale(0.6); }
.seats a:hover { transform: translateY(-8px) scale(1.1); }

/* ---------- 誘導 ---------- */
.cta { padding: 120px 20px; }
.cta-ring { opacity: 0.34; animation-duration: 120s; }
.cta-ring.inner { width: min(420px, 90vw); opacity: 0.28; animation-direction: normal; animation-duration: 70s; }
.cta h2 { background: linear-gradient(100deg, #fff 0%, #fff 38%, #ffe9b0 50%, #fff 62%, #fff 100%) 0 0 / 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: title-shimmer 4.5s linear infinite; text-shadow: none; filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.9)); font-size: clamp(1.7rem, 4.6vw, 2.6rem); }

@media (max-width: 640px) {
  .btn-large { font-size: 1.12rem; padding: 15px 32px; }
  .hero-catch { font-size: 1.4rem; }
  .hero-ring { width: 150%; }
  .river a { width: 86px; }
  .river-track { gap: 12px; animation-duration: 55s; }
  .cta { padding: 84px 16px; }
  .js .fan-stage:not(.in) .fan a { margin: 0 -34px; }
}
@media (prefers-reduced-motion: reduce) {
  .sky, .rays, .intro, .logo-burst { display: none !important; }
}
