/* =========================================================
   Farland History — Teaser Site
   Palette: Stylish Blue (game-aligned)
   Brand exception: Title uses Gold (matches in-game title)
   ========================================================= */

:root {
  /* Base */
  --c-bg:           #0E1726;   /* ミッドナイトネイビー (0.055, 0.090, 0.149) */
  --c-bg-alt:       #0A111F;   /* さらに沈ませた下地 */
  --c-panel:        #1E2A40;   /* ディープスチール (0.118, 0.165, 0.251) */
  --c-divider:      #3B5C8C;   /* スチールブルー (0.231, 0.361, 0.549) */
  --c-divider-soft: rgba(59, 92, 140, 0.35);

  /* Text */
  --c-text:         #E8F0FF;   /* アイスホワイト (0.910, 0.941, 1.000) */
  --c-text-sub:     #7FA0D4;   /* ペールブルー (0.498, 0.627, 0.831) */
  --c-text-tert:    #A8C5F0;   /* ライトブルー  (0.659, 0.773, 0.941) */

  /* Accent */
  --c-cobalt:       #1561BE;   /* ディープコバルト (0.082, 0.380, 0.745) */
  --c-cobalt-glow:  rgba(21, 97, 190, 0.55);

  /* Brand exception: gold for title only */
  --c-gold:         #D19E1A;   /* Gold (0.82, 0.62, 0.10) */
  --c-gold-soft:    #E8C257;

  /* Type */
  --ff-serif:  "Cinzel", "Noto Serif JP", serif;
  --ff-sans:   "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  /* Layout */
  --max-w: 1200px;
  --section-pad-y: 120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-sans);
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(
    to bottom,
    rgba(14, 23, 38, 0.92) 0%,
    rgba(14, 23, 38, 0.55) 70%,
    rgba(14, 23, 38, 0) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-serif);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-text);
  font-size: 16px;
}
.brand-mark { color: var(--c-gold); font-size: 18px; line-height: 1; }
.brand-name { white-space: nowrap; }

.nav {
  display: flex;
  gap: 32px;
  font-family: var(--ff-serif);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--c-text-sub);
}
.nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -4px;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--c-text);
  transition: width 0.3s ease;
}
.nav a:hover { color: var(--c-text); }
.nav a:hover::after { width: 100%; }

@media (max-width: 720px) {
  .nav { display: none; }
  .header-inner { padding: 14px 20px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  isolation: isolate;
}

/* layered background */
.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 30%, #1A2A47 0%, #0E1726 55%, #07101F 100%);
}

.hero-bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(59, 92, 140, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 92, 140, 0.10) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
}

.hero-bg__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(21, 97, 190, 0.18) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 60%, var(--c-bg) 100%);
  pointer-events: none;
}

/* 5 国を象徴する遠景 SVG (山稜 + 光柱) */
.hero-bg__skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 62%;
  display: block;
  pointer-events: none;
}
.hero-beams rect {
  filter: drop-shadow(0 0 6px currentColor);
  animation: beamPulse 6s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.hero-beams rect:nth-child(1) { animation-delay: 0s; }
.hero-beams rect:nth-child(2) { animation-delay: 0.9s; }
.hero-beams rect:nth-child(3) { animation-delay: 1.8s; }
.hero-beams rect:nth-child(4) { animation-delay: 2.7s; }
.hero-beams rect:nth-child(5) { animation-delay: 3.6s; }
.hero-beams circle {
  filter: drop-shadow(0 0 8px currentColor);
  animation: starTwinkle 4s ease-in-out infinite;
}
.hero-beams circle:nth-of-type(2) { animation-delay: 0.8s; }
.hero-beams circle:nth-of-type(3) { animation-delay: 1.6s; }
.hero-beams circle:nth-of-type(4) { animation-delay: 2.4s; }
.hero-beams circle:nth-of-type(5) { animation-delay: 3.2s; }

@keyframes beamPulse {
  0%, 100% { opacity: 0.55; transform: scaleY(0.96); }
  50%      { opacity: 1;    transform: scaleY(1.04); }
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* drifting stars */
.hero-bg__stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 14% 22%, rgba(232,240,255,0.85), transparent 60%),
    radial-gradient(1px 1px at 32% 78%, rgba(168,197,240,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 12%, rgba(232,240,255,0.95), transparent 60%),
    radial-gradient(1px 1px at 72% 64%, rgba(168,197,240,0.6), transparent 60%),
    radial-gradient(1px 1px at 88% 30%, rgba(232,240,255,0.8), transparent 60%),
    radial-gradient(1.2px 1.2px at 22% 52%, rgba(232,240,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 46% 88%, rgba(168,197,240,0.55), transparent 60%);
  animation: drift 24s linear infinite;
  opacity: 0.9;
}

@keyframes drift {
  0%   { transform: translateY(0px); opacity: 0.85; }
  50%  { opacity: 1; }
  100% { transform: translateY(-20px); opacity: 0.85; }
}

/* content */
.hero-inner {
  max-width: 980px;
  width: 100%;
  position: relative;
}

/* "あの CGI ブラウザゲームが還ってくる" — hero comeback banner */
.hero-comeback {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  padding: 10px 22px 10px 14px;
  border: 1px solid var(--c-divider);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(21, 97, 190, 0.18) 0%,
    rgba(30, 42, 64, 0.6) 100%
  );
  box-shadow:
    0 0 0 1px rgba(232, 240, 255, 0.04) inset,
    0 8px 28px rgba(0, 0, 0, 0.45);
  animation: fadeUp 1.1s ease backwards;
}
.hero-comeback__pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--c-gold);
  color: #1A1208;
  font-family: var(--ff-serif);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.hero-comeback__text {
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--c-text);
}
.hero-comeback__text em {
  font-style: normal;
  color: var(--c-gold-soft);
  font-weight: 700;
}

.sm-only { display: none; }
@media (max-width: 540px) {
  .sm-only { display: inline; }
  .hero-comeback {
    padding: 12px 18px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
    border-radius: 14px;
  }
  .hero-comeback__text { font-size: 13px; }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 40px;
  font-family: var(--ff-serif);
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--c-text-sub);
  animation: fadeUp 1.1s ease 0.1s backwards;
}
.hero-eyebrow__line {
  flex: 0 1 140px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--c-divider) 50%,
    transparent 100%
  );
}

.hero-title {
  margin: 0 0 12px;
  font-family: var(--ff-serif);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 108px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--c-gold);
  text-shadow:
    0 0 24px rgba(209, 158, 26, 0.32),
    0 0 60px rgba(209, 158, 26, 0.18),
    0 2px 0 rgba(0,0,0,0.4);
  animation: titleIn 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s backwards;
}
.hero-title__main {
  background: linear-gradient(
    180deg,
    #F2D27A 0%,
    var(--c-gold-soft) 38%,
    var(--c-gold) 60%,
    #A57A14 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 14px;
  display: inline-block;
}
.hero-title__deco {
  color: var(--c-gold);
  -webkit-text-fill-color: var(--c-gold);
  font-size: 0.42em;
  vertical-align: middle;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.hero-subtitle {
  margin: 0 0 36px;
  font-family: var(--ff-sans);
  font-weight: 500;
  letter-spacing: 0.55em;
  font-size: 16px;
  color: var(--c-text-sub);
  animation: fadeUp 1.1s ease 0.5s backwards;
}

.hero-tagline {
  margin: 0 0 24px;
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.7;
  letter-spacing: 0.12em;
  color: var(--c-text);
  text-shadow: 0 2px 18px rgba(14, 23, 38, 0.9);
  animation: fadeUp 1.1s ease 0.7s backwards;
}

.hero-lead {
  margin: 0 auto 56px;
  max-width: 640px;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.08em;
  color: var(--c-text-tert);
  animation: fadeUp 1.1s ease 0.85s backwards;
}

/* CTA badges */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  animation: fadeUp 1.1s ease 1s backwards;
}

.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 200px;
  padding: 12px 28px;
  border: 1px solid var(--c-divider);
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(30, 42, 64, 0.95) 0%,
    rgba(14, 23, 38, 0.95) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 12px 32px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: not-allowed;
  user-select: none;
}
.badge:hover {
  transform: translateY(-2px);
  border-color: var(--c-cobalt);
  box-shadow:
    0 0 0 1px rgba(21, 97, 190, 0.4) inset,
    0 16px 40px rgba(0,0,0,0.5),
    0 0 28px var(--c-cobalt-glow);
}
.badge__small {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--c-text-sub);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.badge__large {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-text);
}

/* social row */
.hero-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 64px;
  animation: fadeUp 1.1s ease 1.15s backwards;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: var(--c-cobalt);
  border: 1px solid var(--c-cobalt);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: #FFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 24px var(--c-cobalt-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.social:hover {
  transform: translateY(-1px);
  background: #1E72D4;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 36px var(--c-cobalt-glow);
}
.social__icon {
  font-size: 16px;
  line-height: 1;
  color: #FFF;
}

.release-cta {
  margin-top: 28px;
}

/* scroll indicator */
.hero-scroll {
  font-family: var(--ff-serif);
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--c-text-sub);
  opacity: 0.6;
  animation: bobScroll 2.4s ease-in-out infinite;
  margin: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes titleIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); letter-spacing: 0.18em; }
  to   { opacity: 1; transform: translateY(0) scale(1);       letter-spacing: 0.04em; }
}
@keyframes bobScroll {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50%      { transform: translateY(6px); opacity: 0.85; }
}

/* =========================================================
   SECTIONS (LP)
   ========================================================= */
.section {
  position: relative;
  padding: var(--section-pad-y) 24px;
  background: var(--c-bg);
}
.section--alt { background: var(--c-bg-alt); }
.section + .section { border-top: 1px solid var(--c-divider-soft); }

.section-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.section-eyebrow {
  font-family: var(--ff-serif);
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--c-text-sub);
  margin: 0 0 16px;
}

.section-title {
  font-family: var(--ff-sans);
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: 0.1em;
  color: var(--c-text);
  margin: 0 0 28px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--c-divider) 50%,
    transparent 100%
  );
}

.section-lead {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.08em;
  color: var(--c-text-tert);
  margin: 0 auto 36px;
  max-width: 720px;
}

.placeholder {
  display: inline-block;
  padding: 16px 36px;
  border: 1px dashed var(--c-divider-soft);
  border-radius: 6px;
  color: var(--c-text-sub);
  font-family: var(--ff-serif);
  font-size: 13px;
  letter-spacing: 0.32em;
}

/* =========================================================
   REBORN section (return + evolution)
   ========================================================= */
.reborn .reborn-title {
  color: var(--c-gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(209, 158, 26, 0.22);
}

.reborn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 24px auto 48px;
  text-align: left;
  max-width: 960px;
}
@media (max-width: 780px) {
  .reborn-grid { grid-template-columns: 1fr; gap: 20px; }
}

.reborn-card {
  position: relative;
  padding: 32px 30px 28px;
  background: linear-gradient(
    180deg,
    rgba(30, 42, 64, 0.85) 0%,
    rgba(14, 23, 38, 0.92) 100%
  );
  border: 1px solid var(--c-divider);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.reborn-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--c-cobalt) 30%,
    var(--c-gold-soft) 70%,
    transparent 100%
  );
  opacity: 0.7;
}

.reborn-card__tag {
  margin: 0 0 12px;
  font-family: var(--ff-serif);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--c-text-sub);
}

.reborn-card__title {
  margin: 0 0 16px;
  font-family: var(--ff-sans);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--c-text);
}

.reborn-card__body {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--c-text-tert);
}
.reborn-card__body em {
  font-style: normal;
  color: var(--c-text);
  border-bottom: 1px dashed var(--c-divider);
  padding-bottom: 1px;
}

.reborn-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--c-divider-soft);
  padding-top: 16px;
}
.reborn-card__bullets li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--c-text-sub);
}
.reborn-card__bullets li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: var(--c-cobalt);
  font-size: 12px;
  top: 9px;
}

.reborn-foot {
  margin: 0 auto;
  max-width: 520px;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.12em;
  color: var(--c-text-sub);
}

/* =========================================================
   WORLD — 5 国カード
   ========================================================= */
.nations {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 36px auto 28px;
  max-width: 1200px;
}
@media (max-width: 1100px) { .nations { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .nations { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .nations { grid-template-columns: 1fr; } }

.nation {
  --n-color: var(--c-cobalt);
  --n-glow:  rgba(21, 97, 190, 0.35);
  position: relative;
  padding: 28px 18px 22px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(30, 42, 64, 0.85) 0%,
    rgba(14, 23, 38, 0.95) 100%
  );
  border: 1px solid var(--c-divider);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nation::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--n-color) 50%,
    transparent 100%
  );
  opacity: 0.85;
}
.nation::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, var(--n-glow) 0%, transparent 55%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.nation:hover {
  transform: translateY(-4px);
  border-color: var(--n-color);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.45),
    0 0 24px var(--n-glow);
}
.nation:hover::after { opacity: 1; }

.nation__sigil {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 4px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--n-glow) 0%, transparent 70%),
    rgba(14, 23, 38, 0.8);
  border: 1px solid var(--n-color);
  box-shadow: 0 0 18px var(--n-glow);
}
.nation__sigil span {
  font-size: 26px;
  line-height: 1;
  color: var(--n-color);
  text-shadow: 0 0 12px var(--n-color);
}

.nation__attr {
  margin: 0 0 8px;
  font-family: var(--ff-serif);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--c-text-sub);
}

.nation__name {
  margin: 0 0 2px;
  font-family: var(--ff-sans);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--c-text);
}

.nation__roman {
  margin: 0 0 14px;
  font-family: var(--ff-serif);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--n-color);
  opacity: 0.85;
}

.nation__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--c-text-tert);
  text-align: left;
  border-top: 1px solid var(--c-divider-soft);
  padding-top: 12px;
}

.nations-foot {
  margin: 12px auto 0;
  max-width: 720px;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--c-text-sub);
}

/* =========================================================
   CHARACTERS — 2 枚並びの宿命的構図
   ========================================================= */
.characters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin: 36px auto 28px;
  max-width: 980px;
  position: relative;
}
.characters::before {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: var(--c-gold);
  text-shadow: 0 0 14px rgba(209, 158, 26, 0.55);
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 720px) {
  .characters { grid-template-columns: 1fr; gap: 24px; }
  .characters::before { display: none; }
}

.character {
  --ch-color: var(--c-cobalt);
  --ch-glow:  rgba(21, 97, 190, 0.35);
  position: relative;
  padding: 32px 28px 26px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(30, 42, 64, 0.9) 0%,
    rgba(14, 23, 38, 0.95) 100%
  );
  border: 1px solid var(--c-divider);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 40px rgba(0, 0, 0, 0.5);
}
.character--protagonist { --ch-color: #5B8AC8; --ch-glow: rgba(91, 138, 200, 0.40); }
.character--aria        { --ch-color: #B57AE6; --ch-glow: rgba(181, 122, 230, 0.45); }

.character::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--ch-color) 50%,
    transparent 100%
  );
  opacity: 0.9;
}
.character::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--ch-glow) 0%, transparent 55%);
  pointer-events: none;
  opacity: 0.55;
}

/* 円形ポートレート枠 */
.character__portrait {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, var(--ch-glow) 0%, transparent 60%),
    radial-gradient(circle at 50% 70%, rgba(14, 23, 38, 0.9) 0%, transparent 70%),
    #0B1422;
  border: 1px solid var(--ch-color);
  box-shadow:
    0 0 28px var(--ch-glow),
    0 0 0 4px rgba(14, 23, 38, 0.95),
    0 0 0 5px var(--c-divider);
}
.character__rings {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(232, 240, 255, 0.12);
  animation: ringSpin 24s linear infinite;
  pointer-events: none;
}
.character--aria .character__rings { animation-direction: reverse; }
@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.character__silhouette {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  display: block;
}

/* 実画像ポートレート (アリア等) */
.character__portrait--photo {
  width: 200px;
  height: 200px;
}
.character__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;   /* 顔をやや上寄せでクロップ */
  display: block;
  /* 白背景を闇テーマに馴染ませる: 軽い色味補正 + 影縁取り */
  filter:
    contrast(1.05)
    saturate(1.05)
    brightness(0.92);
}
/* 画像の四方を背景へフェードさせるヴィネット */
.character__photo-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 45%,
      transparent 0%,
      transparent 55%,
      rgba(14, 23, 38, 0.55) 80%,
      rgba(11, 20, 34, 0.95) 100%
    ),
    linear-gradient(
      to bottom,
      transparent 60%,
      rgba(11, 20, 34, 0.7) 100%
    );
  mix-blend-mode: multiply;
}

.character__sigil {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-serif);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--ch-color);
  text-shadow: 0 0 10px var(--ch-glow);
  background: rgba(11, 20, 34, 0.7);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--ch-color);
  z-index: 2;
}

.character__role {
  margin: 0 0 6px;
  font-family: var(--ff-serif);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--c-text-sub);
}

.character__name {
  margin: 0 0 14px;
  font-family: var(--ff-sans);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 0.22em;
  color: var(--c-text);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.character__attr {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--c-text-sub);
  border-top: 1px solid var(--c-divider-soft);
  border-bottom: 1px solid var(--c-divider-soft);
  padding: 10px 0;
}
.character__attr em {
  font-style: normal;
  color: var(--ch-color);
  margin: 0 4px;
  letter-spacing: 0.2em;
}

.character__bio {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--c-text-tert);
}

.character__quote {
  margin: 0;
  padding: 14px 18px;
  border-left: 2px solid var(--ch-color);
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: var(--c-text);
  text-align: left;
  background: rgba(14, 23, 38, 0.6);
  border-radius: 0 6px 6px 0;
}

.characters-foot {
  margin: 16px auto 0;
  max-width: 640px;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--c-text-sub);
  position: relative;
  padding-top: 24px;
}
.characters-foot::before {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  margin: 0 auto 24px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--c-divider) 50%,
    transparent 100%
  );
}

/* =========================================================
   STORY — 八章タイムライン
   ========================================================= */
.chapters {
  list-style: none;
  padding: 0;
  margin: 48px auto 36px;
  max-width: 760px;
  position: relative;
  text-align: left;
}
/* 縦の系譜線 */
.chapters::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 38px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--c-divider-soft) 0%,
    var(--c-divider) 30%,
    var(--c-divider) 70%,
    var(--c-divider-soft) 100%
  );
}

.chapter {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 20px 0;
}

/* 章番号バッジ */
.chapter__no {
  --no-color: var(--c-cobalt);
  --no-glow:  rgba(21, 97, 190, 0.45);
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, var(--no-glow) 0%, transparent 65%),
    rgba(11, 20, 34, 0.95);
  border: 1px solid var(--no-color);
  box-shadow: 0 0 20px var(--no-glow);
  font-family: var(--ff-serif);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--c-text);
  z-index: 2;
  position: relative;
}
.chapter--act1 .chapter__no { --no-color: #5B8AC8; --no-glow: rgba(91, 138, 200, 0.35); }
.chapter--act2 .chapter__no { --no-color: #1561BE; --no-glow: rgba(21, 97, 190, 0.45); }
.chapter--act3 .chapter__no { --no-color: #8B5DC8; --no-glow: rgba(139, 93, 200, 0.45); }
.chapter--final .chapter__no {
  --no-color: var(--c-gold);
  --no-glow:  rgba(209, 158, 26, 0.5);
  color: var(--c-gold);
}

.chapter__body {
  flex: 1;
  padding: 4px 0 6px;
  min-width: 0;
}

.chapter__act {
  margin: 0 0 4px;
  font-family: var(--ff-serif);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--c-text-sub);
}

.chapter__title {
  margin: 0 0 10px;
  font-family: var(--ff-sans);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--c-text);
}

.chapter__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--c-text-tert);
}

.chapter__unlock {
  margin: 12px 0 0;
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--c-divider);
  border-radius: 999px;
  background: rgba(21, 97, 190, 0.12);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--c-text);
}

.chapter__unlock--final {
  border-color: var(--c-gold);
  background: rgba(209, 158, 26, 0.14);
  box-shadow: 0 0 18px rgba(209, 158, 26, 0.25);
  color: var(--c-gold-soft);
}
.chapter__unlock--final em {
  font-style: normal;
  color: var(--c-gold);
  font-weight: 700;
  letter-spacing: 0.16em;
}

/* 第7章: スポイラー封印 */
.chapter--spoiler .chapter__title { color: var(--c-text-sub); }
.chapter__redacted {
  margin-top: 6px;
  padding: 14px 18px;
  border: 1px dashed rgba(139, 93, 200, 0.55);
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(11, 20, 34, 0.0) 0 8px,
      rgba(139, 93, 200, 0.06) 8px 16px
    ),
    rgba(11, 20, 34, 0.7);
  position: relative;
}
.chapter__redacted-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(139, 93, 200, 0.25);
  border: 1px solid rgba(139, 93, 200, 0.55);
  font-family: var(--ff-serif);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: #E0CCFF;
}
.chapter__redacted .chapter__text {
  font-style: italic;
  color: var(--c-text-sub);
}

/* タイムライン末尾の案内 */
.chapters-foot {
  margin: 24px auto 0;
  max-width: 600px;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: 0.1em;
  color: var(--c-text-sub);
  text-align: center;
  padding-top: 28px;
  position: relative;
}
.chapters-foot::before {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  margin: 0 auto 24px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--c-divider) 50%,
    transparent 100%
  );
}
.chapters-foot__arrow {
  color: var(--c-cobalt);
  font-style: normal;
}

@media (max-width: 600px) {
  .chapters::before { left: 28px; }
  .chapter { gap: 18px; }
  .chapter__no { width: 56px; height: 56px; font-size: 20px; }
  .chapter__title { font-size: 18px; }
}

/* =========================================================
   BATTLE SHOWCASE — 実機スクリーン (battle.png)
   ========================================================= */
.battle-showcase {
  margin: 32px auto 28px;
  max-width: 780px;
}

.battle-showcase__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  min-height: 540px;
}

/* スマホ筐体風フレーム */
.battle-showcase__phone {
  position: relative;
  width: 280px;
  border: 2px solid var(--c-divider);
  border-radius: 28px;
  padding: 10px;
  background:
    linear-gradient(180deg, #1A2A40 0%, #0B1422 100%);
  box-shadow:
    0 0 0 1px rgba(232, 240, 255, 0.05) inset,
    0 28px 64px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(21, 97, 190, 0.25);
  isolation: isolate;
  z-index: 2;
}
.battle-showcase__notch {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 14px;
  border-radius: 0 0 12px 12px;
  background: #050A14;
  border: 1px solid var(--c-divider-soft);
  z-index: 3;
}
.battle-showcase__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #050A14;
}
/* 画面ガラスの照り返し */
.battle-showcase__glare {
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(232, 240, 255, 0.08) 0%,
    rgba(232, 240, 255, 0) 25%,
    rgba(232, 240, 255, 0) 75%,
    rgba(232, 240, 255, 0.04) 100%
  );
  mix-blend-mode: screen;
}

/* 周囲の浮かぶ解説タグ */
.battle-tag {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--c-divider);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(30, 42, 64, 0.92), rgba(14, 23, 38, 0.92));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 1;
  animation: tagFloat 5s ease-in-out infinite;
}
.battle-tag::before {
  /* タグから phone 方向に伸びる細い接続線の起点 */
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-cobalt);
  box-shadow: 0 0 8px var(--c-cobalt-glow);
}
.battle-tag__label {
  font-family: var(--ff-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--c-text);
}
.battle-tag__hint {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-text-sub);
}

.battle-tag--tl {
  top: 8%;
  left: 4%;
  animation-delay: 0s;
}
.battle-tag--tl::before { right: -14px; top: 50%; transform: translateY(-50%); }

.battle-tag--tr {
  top: 28%;
  right: 4%;
  animation-delay: 1s;
}
.battle-tag--tr::before { left: -14px; top: 50%; transform: translateY(-50%); }

.battle-tag--br {
  bottom: 8%;
  right: 6%;
  animation-delay: 2s;
}
.battle-tag--br::before { left: -14px; top: 50%; transform: translateY(-50%); }

@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* キャプション */
.battle-showcase__cap {
  margin: 12px auto 0;
  text-align: center;
  font-family: var(--ff-sans);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--c-text-tert);
  line-height: 2;
}
.battle-showcase__sub {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(127, 160, 212, 0.7);
}

/* 属性チップ (インライン) */
.elem-chip {
  display: inline-block;
  padding: 1px 8px;
  margin: 0 2px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  vertical-align: 1px;
}
.elem-chip--fire { background: rgba(224, 74, 58, 0.25); color: #FFB890; border: 1px solid #E04A3A; }
.elem-chip--wind { background: rgba(94, 231, 168, 0.20); color: #C8F4DC; border: 1px solid #5EE7A8; }
.elem-chip--dark { background: rgba(181, 122, 230, 0.25); color: #E0C8F8; border: 1px solid #B57AE6; }

@media (max-width: 720px) {
  .battle-showcase__frame { padding: 16px 0; min-height: 0; }
  .battle-showcase__phone { width: 240px; padding: 8px; border-radius: 24px; }
  .battle-showcase__notch { width: 70px; height: 12px; }
  .battle-tag { position: static; width: 100%; max-width: 280px; margin: 8px auto 0; animation: none; }
  .battle-tag::before { display: none; }
  .battle-showcase__frame {
    flex-direction: column;
  }
  /* モバイル時はタグを画像下に縦並びで配置 */
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-divider-soft);
  padding: 40px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-brand {
  font-family: var(--ff-serif);
  letter-spacing: 0.2em;
  color: var(--c-text-sub);
  font-size: 13px;
  margin: 0;
}
.footer-copy {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--c-text-sub);
  margin: 0;
}

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 600px) {
  .hero { padding-top: 100px; }
  .hero-eyebrow { gap: 10px; font-size: 11px; letter-spacing: 0.32em; }
  .hero-eyebrow__line { flex-basis: 40px; }
  .hero-lead { font-size: 15px; }
  .badge { min-width: 0; flex: 1 1 45%; padding: 10px 18px; }
  .badge__large { font-size: 18px; }
  :root { --section-pad-y: 80px; }
}

/* =========================================================
   Reveal on scroll (set by script.js)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
