/* =========================================================
   Thousands of Heroes - Official Site Styles
   Section index:
     1. Tokens / Reset / Base
     2. Utility (container, ornaments, section-title, buttons)
     3. Header & Navigation
     4. Hero
     5. Story
     6. Cooperation
     7. Features
     8. Spirits
     9. Gallery
    10. CTA & Footer
    11. Reveal / Motion utilities
    12. Responsive
   ========================================================= */

/* ----- 1. Tokens / Reset / Base ------------------------- */
:root {
  /* Surface */
  --bg: #050a12;
  --bg-soft: #0a111d;
  --panel: rgba(10, 17, 29, 0.92);
  --panel-2: rgba(15, 24, 39, 0.94);

  /* Lines */
  --line: rgba(207, 169, 87, 0.65);
  --line-soft: rgba(207, 169, 87, 0.28);

  /* Gold / Text */
  --gold: #e0c179;
  --gold-strong: #f2d58e;
  --gold-faint: rgba(224, 193, 121, 0.18);
  --text: #f5f0e3;
  --muted: #ccbfa5;
  --muted-2: #9c937e;

  /* CTA */
  --accent: #b83a47;
  --accent-2: #d35e58;
  --accent-strong: #e7727a;

  /* Element / Attribute colors */
  --fire: #ef5a3a;
  --water: #3a8ccf;
  --wind: #5ab86b;
  --earth: #c98b3a;
  --light: #ead24a;
  --dark: #8a52c8;

  /* Shape & Shadow */
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.32);

  /* Layout */
  --max: 1440px;
  --gutter: 48px;

  /* Type */
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(77, 78, 133, 0.22), transparent 60%),
    radial-gradient(900px 600px at 10% 18%, rgba(181, 73, 55, 0.16), transparent 60%),
    radial-gradient(900px 600px at 92% 22%, rgba(37, 115, 167, 0.20), transparent 60%),
    var(--bg);
  font-family: var(--font-serif);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(224, 193, 121, 0.32);
  color: #fff5d8;
}

/* Skip-link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold-strong);
  color: #1a1208;
  border-radius: 8px;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ----- 2. Utility -------------------------------------- */
.container {
  width: min(calc(100% - var(--gutter)), var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 9vw, 120px) 0;
  position: relative;
}

.section-title {
  display: grid;
  gap: 12px;
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
  justify-items: center;
}
.section-title .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  letter-spacing: .24em;
  font-size: 13px;
  text-transform: uppercase;
  font-family: var(--font-sans);
}
.section-title .eyebrow::before,
.section-title .eyebrow::after {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.section-title .eyebrow::after {
  background: linear-gradient(90deg, var(--line), transparent);
}
.section-title h2 {
  margin: 0;
  color: var(--gold-strong);
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.2;
  letter-spacing: .06em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.section-title p {
  margin: 0 auto;
  max-width: 920px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
}

.ornament-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin-inline: auto;
  width: min(calc(100% - var(--gutter)), 1080px);
}

.ornament-diamond {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-inline: auto;
  width: min(calc(100% - var(--gutter)), 1080px);
  color: var(--gold);
  opacity: .8;
}
.ornament-diamond::before,
.ornament-diamond::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.ornament-diamond span {
  font-size: 10px;
  letter-spacing: .3em;
  font-family: var(--font-sans);
}

/* Buttons */
.btn {
  --btn-bg: rgba(8, 12, 22, .82);
  --btn-color: var(--gold-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 225, 167, 0.62);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .05em;
  font-size: 15px;
  cursor: pointer;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    background .22s ease,
    filter .22s ease;
  text-align: center;
}
.btn--primary {
  --btn-bg: linear-gradient(135deg, #8d2535 0%, #c54a55 55%, #df6f74 100%);
  --btn-color: #fff;
  border-color: rgba(255, 200, 168, 0.68);
  box-shadow:
    0 16px 38px rgba(168, 46, 62, .32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--primary::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 12c4.97 0 9 4.03 9 9 0-4.97 4.03-9 9-9-4.97 0-9-4.03-9-9 0 4.97-4.03 9-9 9z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 12c4.97 0 9 4.03 9 9 0-4.97 4.03-9 9-9-4.97 0-9-4.03-9-9 0 4.97-4.03 9-9 9z'/></svg>") center/contain no-repeat;
  opacity: .92;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, .44),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  filter: brightness(1.06);
}

/* ----- 3. Header & Navigation -------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(3, 7, 13, 0.72);
  border-bottom: 1px solid rgba(224, 193, 121, 0.22);
  transition: background .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  background: rgba(3, 7, 13, 0.92);
  border-bottom-color: rgba(224, 193, 121, 0.38);
}
.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo-link {
  display: inline-flex;
  align-items: center;
}
.header-logo {
  width: 124px;
  height: auto;
  aspect-ratio: 126 / 74;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .55));
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: .08em;
}
.nav a {
  position: relative;
  color: #efe6d2;
  opacity: .92;
  padding: 8px 0;
  transition: opacity .2s ease, color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-strong);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav a:hover,
.nav a:focus-visible { color: var(--gold-strong); opacity: 1; }
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }

.header-cta {
  font-size: 14px;
  min-height: 48px;
  padding: 0 22px;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(224, 193, 121, 0.42);
  border-radius: 12px;
  background: rgba(8, 12, 22, 0.6);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  margin-left: -11px;
  background: var(--gold-strong);
  border-radius: 2px;
  transition: transform .25s ease, top .25s ease, opacity .2s ease;
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile menu panel */
/* デフォルトは block (div) のまま。hidden 属性が付いている時のみ非表示。
   JS で hidden を外すと表示される。base に display:none を付けると
   hidden を外しても見えなくなるため注意 */
.mobile-menu {
  position: fixed;
  inset: 88px 0 0 0;
  z-index: 99;
  background: rgba(3, 7, 13, 0.96);
  backdrop-filter: blur(20px);
  padding: 32px 24px 48px;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav {
  display: grid;
  gap: 4px;
  font-family: var(--font-sans);
}
.mobile-menu nav a {
  padding: 16px 18px;
  border-radius: 12px;
  color: #efe6d2;
  font-size: 17px;
  letter-spacing: .08em;
  border: 1px solid rgba(224, 193, 121, 0.18);
  background: rgba(10, 17, 29, 0.6);
  transition: background .2s ease, color .2s ease;
}
.mobile-menu nav a:hover,
.mobile-menu nav a:focus-visible {
  color: var(--gold-strong);
  background: rgba(20, 30, 45, 0.85);
}
.mobile-menu .btn--primary { margin-top: 18px; width: 100%; }

/* ----- 4. Hero (top_image.webp 1枚ベース) --------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(224, 193, 121, .18);
  isolation: isolate;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(77, 78, 133, 0.22), transparent 70%),
    radial-gradient(900px 600px at 10% 30%, rgba(181, 73, 55, 0.14), transparent 70%),
    radial-gradient(900px 600px at 92% 30%, rgba(37, 115, 167, 0.18), transparent 70%),
    var(--bg);
}
/* Visually-hidden (SEO用h1のため) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(36px, 5vw, 72px) 0 clamp(72px, 8vw, 110px);
}

/* キッカー (画像上部にオーバーレイ) */
.hero-kicker {
  margin: 0;
  font-family: var(--font-serif);
  color: #fdf2d6;
  font-size: clamp(22px, 3.1vw, 42px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .08em;
  /* 縁取りと外周の影で帯なしでも視認性を確保 */
  text-shadow:
    0 0 1px rgba(0, 0, 0, 1),
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 18px rgba(0, 0, 0, 0.85);
}
.hero-kicker strong {
  display: inline-block;
  color: #ffd877;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 1),
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.92),
    0 0 16px rgba(255, 199, 90, 0.45);
}

/* メインビジュアル領域 (テキストをオーバーレイするスタッキングコンテキスト)
   .container(1440px)の幅制限を打ち破り、ビューポート幅まで広げて約1.5倍に拡大。
   親 .hero-inner が flex; align-items:center なので、幅が親より大きくても中央寄せされる */
.hero-visual-wrap {
  position: relative;
  width: min(1920px, calc(100vw - 32px));
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
.hero-visual-wrap::before {
  content: "";
  position: absolute;
  inset: 6%;
  background: radial-gradient(ellipse at center, rgba(224, 193, 121, 0.18) 0%, transparent 65%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .55));
}

/* オーバーレイ共通 (帯ではなく、テキスト裏の楕円ソフトシャドウで浮かせる) */
.hero-kicker--overlay,
.hero-description--overlay {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 880px);
  text-align: center;
  z-index: 2;
  pointer-events: none;
}
/* テキスト裏に自然に消える楕円のダークグロー */
.hero-kicker--overlay::before,
.hero-description--overlay::before {
  content: "";
  position: absolute;
  inset: -22% -12%;
  background:
    radial-gradient(ellipse at center,
      rgba(0, 0, 0, 0.70) 0%,
      rgba(0, 0, 0, 0.45) 28%,
      rgba(0, 0, 0, 0.22) 52%,
      transparent 76%);
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
}
.hero-kicker--overlay {
  top: clamp(12px, 4%, 40px);
}
.hero-description--overlay {
  bottom: clamp(12px, 4%, 40px);
}

/* 説明文 (画像下部にオーバーレイ) */
.hero-description {
  margin: 0;
  width: min(880px, 100%);
  color: #f6ecd7;
  font-size: clamp(15px, 1.6vw, 21px);
  letter-spacing: .04em;
  line-height: 1.8;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 1),
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 16px rgba(0, 0, 0, 0.85);
}
.hero-description b {
  color: var(--gold-strong);
  font-weight: 700;
}

/* CTA */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Scroll indicator */
.hero-scroll {
  position: relative;
  z-index: 2;
  margin: 4px auto 28px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, var(--gold-strong), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%   { transform: scaleY(0.2); transform-origin: top; opacity: 0.4; }
  50%  { transform: scaleY(1);   transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.4; }
}
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ----- 5. Story ---------------------------------------- */
.story-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(440px, 1.1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
}
.story-visual,
.panel,
.feature-card,
.spirit-card,
.gallery-card,
.flow-card,
.mini-flow {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(16, 24, 39, .94), rgba(7, 12, 23, .92));
  box-shadow: var(--shadow);
}
.story-visual {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: end center;
  padding-bottom: 18px;
  background:
    radial-gradient(circle at 55% 30%, rgba(165, 88, 138, .28), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(224, 193, 121, .18), transparent 28%),
    rgba(10, 17, 29, .92);
}
/* Magic circle ring */
.story-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 30%, rgba(224, 193, 121, .14) 30.2% 30.6%, transparent 31%),
    radial-gradient(circle at 50% 42%, transparent 0 35%, rgba(224, 193, 121, .10) 35.2% 35.6%, transparent 36%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .36));
}
.story-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  height: auto;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .55));
}
.panel { padding: clamp(28px, 4vw, 48px); }
.story-copy h3 {
  margin: 0 0 18px;
  color: var(--gold-strong);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.4;
}
.story-copy p {
  margin: 0 0 18px;
  color: #efe5d4;
  font-size: 17px;
}
.quote {
  margin-top: 28px;
  padding: 22px 26px;
  border-left: 4px solid var(--gold);
  background: rgba(224, 193, 121, .08);
  color: #fff1cb;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: .1em;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  position: relative;
}
.quote::before {
  content: "“";
  position: absolute;
  left: 12px;
  top: -6px;
  font-size: 56px;
  color: var(--gold);
  opacity: .35;
  line-height: 1;
}

/* ----- 6. Cooperation ---------------------------------- */
.coop-intro {
  max-width: 1080px;
  margin: 0 auto clamp(28px, 4vw, 40px);
  text-align: center;
  color: #efe5d4;
  font-size: clamp(15px, 1.4vw, 18px);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  /* <ol>のデフォルト番号(1. 2. 3.)を非表示にする */
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow-card {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  background: rgba(9, 15, 26, .96);
}
.flow-card__step {
  position: absolute;
  top: -18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2a1e0f, #463418);
  border: 1px solid var(--line);
  color: var(--gold-strong);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .2em;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
}
.flow-card__img,
.mini-flow__img,
.gallery-card img,
.feature-card__img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(224, 193, 121, .24);
  background: rgba(0, 0, 0, .35);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.flow-card h3 {
  margin: 14px 0 8px;
  color: var(--gold-strong);
  font-size: 19px;
  line-height: 1.45;
}
.flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
/* 4ステップカード間の右向き三角形 (▶)
   width:0/height:0 + 左の border-color だけ金、上下 border は transparent */
.flow-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 18px solid var(--gold-strong);
  transform: translateY(-50%);
  filter: drop-shadow(0 0 8px rgba(224, 193, 121, 0.75));
  pointer-events: none;
}

.mini-flow-wrap {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.mini-flow {
  padding: 28px;
  border-radius: 24px;
  background: rgba(9, 15, 26, .82);
}
.mini-flow h3 {
  margin: 0 0 18px;
  color: var(--gold-strong);
  font-size: clamp(20px, 2vw, 24px);
  display: flex;
  align-items: center;
  gap: 12px;
}
.mini-flow h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(224, 193, 121, .8);
}
.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* figcaptionの行数が違っても画像トップを揃える */
  align-items: start;
  gap: 28px;
}
.mini-flow__img { aspect-ratio: 16 / 9; }

/* 3画像ステップ (画像 + 説明) */
.mini-step {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini-step__media {
  position: relative;
  width: 100%;
}
.mini-step figcaption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  padding: 0 4px;
}
/* 画像ボックスの右端中央に金色の右向き三角形 (▶) を配置
   figcaption の行数に影響されない */
.mini-step:not(:last-child) .mini-step__media::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 14px solid var(--gold-strong);
  transform: translate(calc(100% + 8px), -50%);
  filter: drop-shadow(0 0 8px rgba(224, 193, 121, 0.75));
  pointer-events: none;
  z-index: 2;
}

/* ----- 7. Features ------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.feature-card {
  overflow: hidden;
  padding: 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 193, 121, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}
.feature-card__index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .26em;
  margin: 6px 4px 10px;
}
.feature-card__index::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}
.feature-card h3 {
  margin: 12px 4px 8px;
  color: var(--gold-strong);
  font-size: 19px;
  line-height: 1.45;
}
.feature-card p {
  margin: 0 4px 6px;
  color: var(--muted);
  font-size: 15px;
}

/* ----- 8. Spirits -------------------------------------- */
.spirits-intro {
  text-align: center;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
  margin: -20px auto clamp(28px, 4vw, 44px);
  max-width: 760px;
}
.spirit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.spirit-card {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 22px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.spirit-card::after {
  /* Element color glow */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 36%, var(--spirit-color, rgba(224, 193, 121, 0.18)), transparent 56%);
  opacity: .55;
  pointer-events: none;
}
.spirit-card:hover {
  transform: translateY(-4px);
  border-color: var(--spirit-color, var(--gold));
}
.spirit-card[data-element="fire"]  { --spirit-color: rgba(239, 90, 58, 0.45); }
.spirit-card[data-element="water"] { --spirit-color: rgba(58, 140, 207, 0.45); }
.spirit-card[data-element="wind"]  { --spirit-color: rgba(90, 184, 107, 0.45); }
.spirit-card[data-element="earth"] { --spirit-color: rgba(201, 139, 58, 0.45); }
.spirit-card[data-element="light"] { --spirit-color: rgba(234, 210, 74, 0.5); }
.spirit-card[data-element="dark"]  { --spirit-color: rgba(138, 82, 200, 0.45); }

.spirit-card__art {
  position: absolute;
  inset: 16px 16px auto;
  height: 410px;
  width: calc(100% - 32px);
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .55));
  z-index: 1;
}
.spirit-card__placeholder {
  position: absolute;
  inset: 16px 16px auto;
  height: 410px;
  border-radius: 22px;
  border: 1px dashed rgba(224, 193, 121, .42);
  display: grid;
  place-items: center;
  color: rgba(255, 236, 193, .72);
  text-align: center;
  padding: 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: .08em;
  background:
    radial-gradient(circle at center, rgba(224, 193, 121, .12), transparent 46%),
    rgba(0, 0, 0, .14);
  z-index: 1;
}
.spirit-card__placeholder strong {
  display: block;
  color: var(--gold-strong);
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: .14em;
}

.spirit-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(4, 8, 16, .86);
  border: 1px solid rgba(224, 193, 121, .32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.spirit-head img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.spirit-head .label {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.spirit-head h3 {
  margin: 4px 0 0;
  font-size: 23px;
  color: var(--gold-strong);
  line-height: 1.35;
}

/* ----- 9. Gallery -------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-card {
  padding: 14px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.gallery-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-card:hover {
  border-color: rgba(224, 193, 121, 0.95);
}
.gallery-card:hover img { transform: scale(1.04); }
.gallery-card p {
  margin: 12px 6px 4px;
  color: var(--muted);
  font-size: 15px;
}

/* ----- 10. Game Info & Press Kit ----------------------- */
.info-panel,
.press-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(155deg, rgba(18, 22, 37, .98), rgba(7, 11, 20, .96));
  box-shadow: var(--shadow);
}
.info-panel::before,
.press-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(224, 193, 121, .18);
  border-radius: 20px;
  pointer-events: none;
}
.info-panel > *,
.press-panel > * {
  position: relative;
  z-index: 1;
}
.info-panel {
  width: min(100%, 50%);
  max-width: 720px;
  margin-inline: auto;
}
.info-panel__lead {
  margin: 0 0 24px;
  text-align: center;
  color: var(--gold-strong);
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: .06em;
}
.info-spec {
  margin: 0;
  display: grid;
  gap: 0;
}
.info-spec__row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 16px 28px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid rgba(224, 193, 121, .16);
}
.info-spec__row:last-child {
  padding-bottom: 0;
}
.info-spec dt {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}
.info-spec dd {
  margin: 0;
  color: #efe4d0;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
}
.section--press .section-title p {
  text-align: left;
}
.press-panel {
  display: grid;
  gap: 32px;
  justify-items: center;
  text-align: center;
}
.press-panel__cta {
  min-width: min(100%, 420px);
}
.press-notes {
  width: 100%;
  max-width: 860px;
  text-align: left;
  border-top: 1px solid rgba(224, 193, 121, .16);
  padding-top: 28px;
}
.press-notes h3 {
  margin: 0 0 16px;
  color: var(--gold-strong);
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: .06em;
}
.press-notes ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.8;
}
.press-notes a {
  color: var(--gold-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.press-notes a:hover,
.press-notes a:focus-visible {
  color: var(--gold-soft);
}

/* ----- 11. CTA & Footer -------------------------------- */
.cta { padding: clamp(72px, 8vw, 110px) 0; }
.cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: clamp(32px, 5vw, 68px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 74, 85, .26), transparent 36%),
    linear-gradient(155deg, rgba(18, 22, 37, .98), rgba(7, 11, 20, .96));
  box-shadow: var(--shadow);
}
.cta-panel::before,
.cta-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.cta-panel::before {
  inset: 14px;
  border: 1px solid rgba(224, 193, 121, .22);
  border-radius: 26px;
}
.cta-panel::after {
  width: 360px;
  height: 360px;
  left: 50%;
  top: -180px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 193, 121, .18), transparent 60%);
  filter: blur(20px);
}
.cta-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: var(--gold-strong);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.3;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
}
.cta-panel p {
  position: relative;
  z-index: 1;
  margin: 0 auto 28px;
  max-width: 860px;
  color: #efe4d0;
  font-size: clamp(15px, 1.6vw, 19px);
}
.cta-panel .btn { position: relative; z-index: 1; }

.footer {
  border-top: 1px solid rgba(224, 193, 121, .22);
  padding: 28px 0 48px;
  color: rgba(239, 228, 208, .72);
  font-family: var(--font-sans);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer-copy a {
  color: var(--gold-strong);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  transition: color .2s ease, border-color .2s ease;
}
.footer-copy a:hover,
.footer-copy a:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
}
.footer a:hover { color: var(--gold-strong); }

/* ----- 11. Reveal / Motion utilities ------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ----- 12. Responsive ---------------------------------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }

  .story-grid,
  .mini-flow-wrap { grid-template-columns: 1fr; }
  .story-visual { min-height: 520px; }

  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-card:not(:last-child)::after { display: none; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .spirit-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --gutter: 28px; }

  .header-inner { height: 76px; }
  .header-logo { width: 96px; }
  .header-cta { display: none; }
  .mobile-menu { inset: 76px 0 0 0; }

  .hero-inner {
    padding: 28px 0 56px;
    gap: 20px;
  }
  .hero-kicker { font-size: 20px; letter-spacing: .04em; line-height: 1.4; }
  .hero-description { font-size: 14px; line-height: 1.65; }
  .hero-visual { max-height: 80vh; }
  .hero-kicker--overlay { top: clamp(4px, 2%, 16px); width: 94%; }
  .hero-description--overlay { bottom: clamp(4px, 2%, 16px); width: 94%; }

  .section-title h2 { letter-spacing: .04em; }
  .quote { font-size: 18px; }

  .flow-card,
  .mini-flow { padding: 16px; }
  .flow-card__step { top: -16px; left: 14px; height: 30px; padding: 0 12px; font-size: 12px; }
  .flow-grid { grid-template-columns: 1fr; gap: 36px; }
  /* スマホ縦並び: Step01〜04 カードの間(カードの外=gap内)に
     下向き三角形 (▼) を絶対配置で表示。
     .flow-card は position: relative なのでこの絶対配置は親カード基準。
     上位 @media (max-width: 1180px) で display:none にしているのを上書き */
  .flow-card:not(:last-child)::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -27px;         /* gap 36px の中央に高さ18px の三角形を置く: -(((36-18)/2)+18) = -27 */
    left: 50%;
    top: auto;
    right: auto;
    transform: translateX(-50%);
    margin: 0;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 18px solid var(--gold-strong);
    border-bottom: none;
    filter: drop-shadow(0 0 8px rgba(224, 193, 121, 0.7));
    pointer-events: none;
  }
  .feature-grid { grid-template-columns: 1fr; }
  .spirit-grid { grid-template-columns: 1fr; }
  .spirit-card { min-height: 520px; }
  .spirit-card__art,
  .spirit-card__placeholder { height: 340px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .mini-gallery { grid-template-columns: 1fr; gap: 18px; }
  /* スマホ縦並び: ＞(横向きシェブロン) は非表示にして、代わりに
     figure 直下の中央に下向き三角形 (▼) を CSS だけで描画 */
  .mini-step:not(:last-child) .mini-step__media::after { display: none; }
  .mini-step:not(:last-child)::after {
    content: "";
    align-self: center;
    margin: 14px 0 4px;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 18px solid var(--gold-strong);
    filter: drop-shadow(0 0 8px rgba(224, 193, 121, 0.7));
  }

  .info-panel {
    width: min(100%, 92%);
    max-width: 520px;
  }
  .info-spec__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .footer-inner { justify-content: center; text-align: center; }
}

/* Tablet refinements (between phone and small desktop) */
@media (min-width: 761px) and (max-width: 1024px) {
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero::after { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
