/* ==========================================================
   空耳草紙（そらみみそうし）公式サイト
   墨紺×生成×結晶の青緑×金 — 和風・霧の演出
   ========================================================== */

:root {
  --ink: #141a26;            /* 墨紺ベース */
  --ink-deep: #0d121c;
  --ink-light: #1c2434;
  --paper: #ece6d9;          /* 生成色テキスト */
  --paper-dim: rgba(236, 230, 217, 0.72);
  --crystal: #5ec8c0;        /* 結晶の青緑 */
  --crystal-dim: rgba(94, 200, 192, 0.35);
  --gold: #c9a24b;           /* 金 */
  --gold-light: #e8cf8e;
  --vermilion: #b73a3a;      /* 朱（ごく少量） */
  --serif: "Noto Serif JP", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --serif-head: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background-color: var(--ink);
  color: var(--paper);
  line-height: 2;
  font-size: 16px;
  overflow-x: hidden;
  /* 和紙質感：ごく薄いSVGノイズ */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

section { position: relative; padding: 140px 24px; }

/* ---------- 撮影モード（?shots=1）: 100vh依存を固定値に ---------- */
.shots .hero { height: 800px; min-height: 0; }

/* ---------- フェードイン演出 ---------- */
.fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01s !important; }
}

/* ---------- セクション見出し ---------- */
.sec-head { text-align: center; margin-bottom: 72px; }
.sec-head__en {
  font-size: 13px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sec-head__ja {
  font-family: var(--serif-head);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 60%, #a8823a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}
.sec-head__rule {
  position: relative;
  width: min(320px, 70%);
  margin: 22px auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 75, 0.6), transparent);
}
.sec-head__dia {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 12px;
  background-color: var(--ink);
  padding: 0 10px;
  line-height: 1;
}

/* ---------- 霧レイヤー（セクション境界共通） ---------- */
.mist-band {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.6;
}
.mist-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background:
    radial-gradient(ellipse 40% 60% at 20% 50%, rgba(236, 230, 217, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 70% at 55% 40%, rgba(94, 200, 192, 0.05), transparent 70%),
    radial-gradient(ellipse 35% 55% at 85% 60%, rgba(236, 230, 217, 0.06), transparent 70%);
  animation: mistDrift 90s linear infinite;
}
@keyframes mistDrift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================
   0. NAV
   ========================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  background: linear-gradient(180deg, rgba(13, 18, 28, 0.92) 0%, rgba(13, 18, 28, 0.75) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.22);
}
.nav__brand {
  font-family: var(--serif-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  text-decoration: none;
  white-space: nowrap;
}
.nav__links {
  display: flex;
  gap: clamp(10px, 2.2vw, 26px);
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-decoration: none;
  white-space: nowrap;
  padding: 2px 2px;
}
.nav__ja {
  font-family: var(--serif-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--paper);
  transition: color 0.25s ease;
}
.nav__en {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: rgba(201, 162, 75, 0.75);
}
.nav__links a:hover .nav__ja { color: var(--gold-light); }
.nav__cta {
  flex: 0 0 auto;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #221b0d;
  text-decoration: none;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 70%, #a8823a 100%);
  border-radius: 3px;
  border: 1px solid rgba(232, 207, 142, 0.7);
  box-shadow: 0 2px 12px rgba(201, 162, 75, 0.35);
  transition: filter 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.nav__cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ==========================================================
   1. HERO
   ========================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -12% 0;
  /* 輪の中心（画像の61.4%）ができるだけ画面上方に来るよう下端合わせ */
  background: url("../img/hero_bg.jpg") center 100% / cover no-repeat;
  will-change: transform;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 18, 28, 0.55) 0%, rgba(13, 18, 28, 0.25) 40%, rgba(20, 26, 38, 0.92) 100%);
}
.hero__mist {
  position: absolute;
  left: 0;
  width: 200%;
  height: 55%;
  pointer-events: none;
  z-index: 1;
}
.hero__mist--a {
  bottom: 0;
  background:
    radial-gradient(ellipse 45% 70% at 25% 70%, rgba(236, 230, 217, 0.10), transparent 70%),
    radial-gradient(ellipse 55% 80% at 65% 60%, rgba(94, 200, 192, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 60% at 90% 75%, rgba(236, 230, 217, 0.08), transparent 70%);
  animation: mistDrift 80s linear infinite;
}
.hero__mist--b {
  bottom: 10%;
  height: 40%;
  background:
    radial-gradient(ellipse 50% 70% at 40% 50%, rgba(236, 230, 217, 0.06), transparent 70%),
    radial-gradient(ellipse 45% 65% at 80% 55%, rgba(94, 200, 192, 0.05), transparent 70%);
  animation: mistDrift 120s linear infinite reverse;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 72px 24px 0;
}
.hero__lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__logo {
  width: min(560px, 82vw);
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.55));
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__btn {
  display: inline-block;
  padding: 13px 34px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  border-radius: 3px;
  transition: filter 0.25s ease, transform 0.25s ease;
}
.hero__btn--gold {
  color: #221b0d;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 70%, #a8823a 100%);
  border: 1px solid rgba(232, 207, 142, 0.7);
  box-shadow: 0 4px 18px rgba(201, 162, 75, 0.4);
}
.hero__btn--gold:hover { filter: brightness(1.1); transform: translateY(-2px); }
.hero__catch {
  writing-mode: vertical-rl;
  font-family: var(--serif-head);
  font-size: clamp(19px, 2.8vw, 26px);
  font-weight: 700;
  letter-spacing: 0.32em;
  height: 8.6em;
  margin: 28px auto 20px;
  color: var(--paper);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
/* 「誰かの声が聞こえる。」を途中で折り返さない */
.hero__catch-nb { display: inline-block; }
.hero__sub {
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--paper-dim);
  margin-bottom: 26px;
}
.hero__badge {
  display: inline-block;
  padding: 10px 38px;
  border: 1px solid rgba(183, 58, 58, 0.85);
  color: #e6c8c8;
  background: rgba(183, 58, 58, 0.22);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  border-radius: 2px;
}
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--crystal);
  border-bottom: 2px solid var(--crystal);
  transform: rotate(45deg);
  animation: arrowBound 1.8s ease-in-out infinite;
}
@keyframes arrowBound {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.9; }
  50%      { transform: rotate(45deg) translate(6px, 6px); opacity: 0.4; }
}
.hero__credit {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(236, 230, 217, 0.55);
}

/* ==========================================================
   2. NEWS
   ========================================================== */
.news { background-color: var(--ink); }
.news__list {
  list-style: none;
  max-width: 780px;
  margin: 0 auto;
}
.news__item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 8px;
  border-bottom: 1px solid rgba(236, 230, 217, 0.1);
}
.news__item:first-child { border-top: 1px solid rgba(236, 230, 217, 0.1); }
.news__date {
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.news__tag {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--crystal);
  border: 1px solid var(--crystal-dim);
  border-radius: 2px;
  padding: 2px 10px;
  white-space: nowrap;
}
.news__text {
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
}

/* ==========================================================
   2. INTRO
   ========================================================== */
.intro { text-align: center; background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%); }
.intro__inner { max-width: 720px; margin: 0 auto; }
.intro__line {
  font-size: clamp(15px, 2.2vw, 18px);
  letter-spacing: 0.14em;
  margin-bottom: 56px;
  color: var(--paper-dim);
}
.intro__theme {
  font-family: var(--serif-head);
  font-size: clamp(24px, 4.4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.16em;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, #a8823a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}

/* ==========================================================
   3. STORY
   ========================================================== */
.story { background-color: var(--ink-deep); }
.story__inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}
.story__kakera {
  width: 96px;
  margin: 0 auto 48px;
  filter: drop-shadow(0 0 18px rgba(94, 200, 192, 0.45));
  animation: kakeraFloat 5s ease-in-out infinite;
}
@keyframes kakeraFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}
.story__text p {
  font-size: clamp(15px, 2.1vw, 17px);
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  text-align: center;
}
.story__quote {
  font-family: var(--serif-head);
  font-weight: 700;
  font-size: 1.2em;
  color: var(--crystal);
}

/* ==========================================================
   4. OKITE（迷宮の掟）
   ========================================================== */
.okite { background-color: var(--ink); }
.okite__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
}
.okite-card {
  position: relative;
  background: var(--ink-light);
  border: 1px solid rgba(94, 200, 192, 0.16);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.35s ease, filter 0.35s ease, border-color 0.35s ease;
}
.okite-card:hover {
  transform: scale(1.03);
  filter: brightness(1.12);
  border-color: rgba(94, 200, 192, 0.4);
}
.okite-card__num {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 1;
  font-family: var(--serif-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  background: rgba(13, 18, 28, 0.82);
  border: 1px solid rgba(201, 162, 75, 0.5);
  border-radius: 2px;
  padding: 4px 12px;
}
.okite-card__fig { aspect-ratio: 16 / 9; overflow: hidden; }
.okite-card__fig img { width: 100%; height: 100%; object-fit: cover; }
.okite-card__title {
  font-family: var(--serif-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  padding: 22px 24px 0;
}
.okite-card__body {
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  padding: 12px 24px 28px;
}

/* ---------- STORY 問答 ---------- */
.story__qa {
  max-width: 640px;
  margin: 64px auto 0;
  border-top: 1px solid rgba(201, 162, 75, 0.3);
}
.story__qa-item {
  padding: 26px 8px;
  border-bottom: 1px solid rgba(201, 162, 75, 0.3);
}
.story__qa-item dt {
  font-family: var(--serif-head);
  font-size: clamp(16px, 2.4vw, 19px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.story__qa-item dd {
  font-size: 14.5px;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
  margin: 0;
}

/* ---------- 登場人物・追記 ---------- */
.chara__more {
  text-align: center;
  margin-top: 40px;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  color: var(--paper-dim);
}

/* ---------- 迷宮・前文 ---------- */
.world__lede {
  text-align: center;
  margin: -32px auto 48px;
  font-size: 14.5px;
  letter-spacing: 0.14em;
  color: var(--paper-dim);
}

/* ==========================================================
   5. CHARACTER
   ========================================================== */
.chara { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%); }
.chara__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 6vw, 80px);
  max-width: 900px;
  margin: 0 auto 48px;
  min-height: 420px;
}
.chara__portrait {
  flex: 0 0 auto;
  width: min(320px, 42vw);
  display: flex;
  justify-content: center;
}
.chara__portrait img {
  max-height: 440px;
  width: auto;
  max-width: 100%;
  padding: 14px;
  background: #f6f2e7;
  border: 1px solid rgba(201, 162, 75, 0.6);
  outline: 1px solid rgba(201, 162, 75, 0.25);
  outline-offset: 6px;
  border-radius: 3px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  transition: opacity 0.3s ease;
}
.chara__info {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 28px;
}
.chara__meta { display: block; max-width: 340px; }
.chara__desc {
  margin-top: 20px;
  font-size: 14px;
  line-height: 2.1;
  color: var(--paper-dim);
  text-align: left;
}
.chara__role {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--crystal);
  border-bottom: 1px solid var(--crystal-dim);
  padding-bottom: 4px;
  margin-bottom: 12px;
}
.chara__name {
  font-family: var(--serif-head);
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--paper);
  line-height: 1.4;
}
.chara__kana { font-size: 0.38em; color: var(--paper-dim); letter-spacing: 0.2em; margin-left: 8px; }
.chara__quote {
  writing-mode: vertical-rl;
  font-family: var(--serif-head);
  font-size: clamp(15px, 2vw, 18px);
  letter-spacing: 0.26em;
  line-height: 2.4;
  max-height: 460px;
  color: var(--paper-dim);
  margin-top: 8px;
}
.chara__tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.chara__tab {
  appearance: none;
  background: var(--ink-light);
  border: 1px solid rgba(236, 230, 217, 0.15);
  border-radius: 6px;
  width: 96px;
  padding: 10px 8px 8px;
  cursor: pointer;
  color: var(--paper-dim);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  transition: transform 0.3s ease, filter 0.3s ease, border-color 0.3s ease;
}
.chara__tab img { height: 72px; width: auto; margin: 0 auto 6px; object-fit: contain; }
.chara__tab:hover { transform: scale(1.03); filter: brightness(1.15); }
.chara__tab.is-active {
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 14px rgba(201, 162, 75, 0.25);
}

/* ==========================================================
   6. WORLD
   ========================================================== */
.world { background-color: var(--ink-deep); }
.world__wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.world__gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--crystal-dim) transparent;
}
.world__item {
  flex: 0 0 min(640px, 82vw);
  scroll-snap-align: center;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-light);
  border: 1px solid rgba(94, 200, 192, 0.14);
  transition: transform 0.35s ease, filter 0.35s ease;
}
.world__item:hover { transform: scale(1.03); filter: brightness(1.1); }
.world__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.world__item figcaption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 18px;
}
.world__item figcaption strong {
  font-family: var(--serif-head);
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--gold-light);
}
.world__item figcaption span {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
}
.world__nav {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--crystal-dim);
  background: rgba(20, 26, 38, 0.8);
  color: var(--crystal);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 1;
}
.world__nav:hover { background: rgba(94, 200, 192, 0.18); transform: scale(1.06); }

/* ==========================================================
   7. BOSS
   ========================================================== */
.boss { background-color: var(--ink); }
.boss__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto 88px;
}
.boss-card {
  text-align: center;
  background: linear-gradient(180deg, var(--ink-light) 0%, rgba(28, 36, 52, 0.4) 100%);
  border: 1px solid rgba(201, 162, 75, 0.18);
  border-radius: 6px;
  padding: 32px 24px 30px;
  transition: transform 0.35s ease, filter 0.35s ease, border-color 0.35s ease;
}
.boss-card:hover {
  transform: scale(1.03);
  filter: brightness(1.12);
  border-color: rgba(201, 162, 75, 0.45);
}
.boss-card__fig {
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 20px;
}
.boss-card__fig img {
  max-height: 100%;
  width: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55));
}
.boss-card__floor {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--crystal);
  margin-bottom: 6px;
}
.boss-card__name {
  font-family: var(--serif-head);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.boss-card__desc {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
}
.boss__minions { text-align: center; max-width: 900px; margin: 0 auto; }
.boss__minions-note {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--paper-dim);
  margin-bottom: 24px;
}
.boss__minions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.boss__minions-row img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.boss__minions-row img:hover { transform: scale(1.12); filter: brightness(1.2); }

/* ==========================================================
   8. SPEC
   ========================================================== */
.spec { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%); }
.spec__table {
  width: min(680px, 100%);
  margin: 0 auto;
  border-collapse: collapse;
}
.spec__table th,
.spec__table td {
  border-bottom: 1px solid rgba(236, 230, 217, 0.12);
  padding: 18px 16px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-align: left;
  font-weight: 400;
}
.spec__table th {
  width: 32%;
  color: var(--gold);
  white-space: nowrap;
}

/* ==========================================================
   8.5 ASOBI（遊び処・普請中）
   ========================================================== */
.asobi { background-color: var(--ink); }
.asobi__box {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  border: 1px dashed rgba(201, 162, 75, 0.4);
  border-radius: 6px;
  padding: 56px 28px;
  background: rgba(28, 36, 52, 0.35);
}
.asobi__fusin {
  display: inline-block;
  font-family: var(--serif-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--vermilion);
  border: 1px solid rgba(183, 58, 58, 0.6);
  border-radius: 2px;
  padding: 6px 18px;
  margin-bottom: 22px;
}
.asobi__text {
  font-size: 14.5px;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
}

/* ==========================================================
   11. GOYO（御用板 / FiNANCiE CNG）
   ========================================================== */
.goyo { background-color: var(--ink-deep); }
.goyo__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(28, 36, 52, 0.65) 0%, rgba(20, 26, 38, 0.9) 100%);
  padding: 56px 32px 44px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.goyo__token {
  width: 108px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 0 22px rgba(201, 162, 75, 0.5));
  animation: kakeraFloat 5s ease-in-out infinite;
}
.goyo__lede {
  font-size: clamp(15px, 2.2vw, 17px);
  letter-spacing: 0.12em;
  margin-bottom: 44px;
}
.goyo__lede strong { color: var(--gold-light); font-weight: 700; }
.goyo__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.goyo__step {
  border: 1px solid rgba(94, 200, 192, 0.2);
  border-radius: 6px;
  background: rgba(13, 18, 28, 0.55);
  padding: 22px 14px;
}
.goyo__step-num {
  font-family: var(--serif-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--crystal);
  margin-bottom: 10px;
}
.goyo__step-text {
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  line-height: 1.9;
}
.goyo__btn {
  display: inline-block;
  padding: 15px 44px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: #221b0d;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 70%, #a8823a 100%);
  border: 1px solid rgba(232, 207, 142, 0.7);
  border-radius: 3px;
  box-shadow: 0 6px 22px rgba(201, 162, 75, 0.45);
  transition: filter 0.25s ease, transform 0.25s ease;
  margin-bottom: 30px;
}
.goyo__btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.goyo__btn-note { font-size: 0.72em; margin-left: 6px; opacity: 0.75; }
.goyo__notes {
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(236, 230, 217, 0.55);
  line-height: 2.1;
}

/* ==========================================================
   9. FOOTER
   ========================================================== */
.footer {
  text-align: center;
  padding: 110px 24px 40px;
  background: var(--ink-deep);
}
.footer__badge {
  display: inline-block;
  padding: 12px 46px;
  border: 1px solid rgba(183, 58, 58, 0.85);
  color: #e6c8c8;
  background: rgba(183, 58, 58, 0.22);
  font-size: 15px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  border-radius: 2px;
  margin-bottom: 20px;
}
.footer__msg {
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
  margin-bottom: 28px;
}
.footer__link {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 75, 0.5);
  padding-bottom: 2px;
  margin-bottom: 72px;
  transition: filter 0.25s ease;
}
.footer__link:hover { filter: brightness(1.2); }
.footer__legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 28px 20px 8px;
}
.footer__legal a {
  color: var(--paper-dim);
  font-size: 13px;
  text-underline-offset: 4px;
}
.footer__legal a:hover { color: var(--gold-light); }
.footer__copy {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(236, 230, 217, 0.45);
}

/* ==========================================================
   レスポンシブ（〜768px）
   ========================================================== */
@media (max-width: 768px) {
  section { padding: 120px 18px; }

  .nav { gap: 12px; padding: 8px 14px; }
  .nav__brand { font-size: 16px; }
  .nav__ja { font-size: 12px; }
  .nav__en { display: none; }
  .nav__cta { padding: 7px 12px; font-size: 12px; }

  .hero__bg { background-position: center 40%; }
  .hero__inner { padding-top: 88px; }
  .hero__catch { height: 8.6em; font-size: 17px; margin: 18px auto 14px; }
  .hero__logo { width: min(400px, 84vw); }

  .news__item { flex-wrap: wrap; gap: 10px; }
  .news__text { flex-basis: 100%; }

  .okite__grid,
  .boss__grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }

  .goyo__steps { grid-template-columns: 1fr; }
  .goyo__inner { padding: 44px 20px 36px; }

  .chara__stage {
    flex-direction: column;
    gap: 24px;
    min-height: 0;
  }
  .chara__portrait { width: min(260px, 64vw); }
  .chara__portrait img { max-height: 320px; }
  .chara__info { flex-direction: column-reverse; align-items: center; text-align: center; gap: 16px; }
  .chara__desc { text-align: center; }
  .chara__quote { max-height: 220px; margin-top: 0; }

  .world__nav { display: none; }
  .world__wrap { gap: 0; }
  .world__item { flex: 0 0 86vw; }

  .spec__table th { width: 38%; }
}

/* ==========================================================
   入口演出 #9 マスク解放（2026-08-25・本人指定）
   墨紺の覆い中央に結晶のカケラ＋金の円窓 → 円の穴が広がり本編が現れる
   型の正本= AI_company/.../knowledge/entry-effects/09_mask-reveal.md
   ========================================================== */
body.pre .hero__lead > *,
body.pre .nav { opacity: 0; transform: translateY(16px); }
body.in .hero__lead > *,
body.in .nav {
  opacity: 1; transform: none;
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1),
              transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}
body.in .hero__catch { transition-delay: 0.12s; }
body.in .hero__sub { transition-delay: 0.24s; }
body.in .hero__actions { transition-delay: 0.36s; }
body.in .nav { transition-delay: 0.5s; }

#entry { position: fixed; inset: 0; z-index: 2147483000; overflow: hidden; }
#entry.off { display: none; }
#entry .skip {
  position: absolute; right: 22px; top: 18px; z-index: 5;
  font: inherit; font-size: 0.74rem; letter-spacing: 0.16em;
  color: var(--paper-dim); background: none;
  border: 1px solid rgba(201, 162, 75, 0.4); border-radius: 999px;
  padding: 6px 14px; cursor: pointer;
  opacity: 0; transition: opacity 0.5s 0.9s;
}
#entry.go .skip { opacity: 0.85; }
@media (prefers-reduced-motion: reduce) {
  #entry { display: none; }
  body.pre * { opacity: 1 !important; transform: none !important; }
}

/* 覆いに mask で円の「穴」を開け、JSで穴の半径を広げる */
#entry.mask {
  background: var(--ink-deep);
  --hole: 0%;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent calc(var(--hole) - 1%), #000 var(--hole));
  mask: radial-gradient(circle at 50% 50%, transparent calc(var(--hole) - 1%), #000 var(--hole));
}
#entry.mask .crest {
  position: absolute; left: 50%; top: 50%;
  width: clamp(110px, 18vw, 168px); height: clamp(110px, 18vw, 168px);
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
}
#entry.mask.go .crest { opacity: 1; }
#entry.mask.opening .crest { opacity: 0; transition: opacity 0.3s; }
#entry.mask .crest svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#entry.mask .crest img {
  position: absolute; left: 50%; top: 50%; width: 44%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 20px rgba(94, 200, 192, 0.55));
}

/* ==========================================================
   2026-08-25 追加: 実機映像 / 物語の場面 / CNPパートナー /
   空耳の帳 / ミニゲーム「空耳ききわけ」
   ========================================================== */

/* ---------- 実機映像（特徴セクション冒頭） ---------- */
.okite__movie {
  max-width: 880px;
  margin: 0 auto 64px;
}
.okite__movie video {
  width: 100%;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(201, 162, 75, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.okite__movie figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--paper-dim);
}

/* ---------- 物語の場面3枚 ---------- */
.story__scenes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 56px auto 0;
}
.story__scene img {
  border-radius: 4px;
  border: 1px solid rgba(236, 230, 217, 0.12);
  filter: saturate(0.92);
}
.story__scene figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--paper-dim);
}
@media (max-width: 680px) {
  .story__scenes { grid-template-columns: 1fr; max-width: 420px; }
}

/* ---------- CNPパートナー ---------- */
.partner { max-width: 980px; margin: 72px auto 0; text-align: center; }
.partner__lede {
  font-family: var(--serif-head);
  font-size: clamp(17px, 2.6vw, 21px);
  letter-spacing: 0.14em;
  line-height: 2.2;
  margin-bottom: 40px;
  color: var(--paper);
}
.partner__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.partner__item {
  background: linear-gradient(180deg, rgba(28, 36, 52, 0.85), rgba(13, 18, 28, 0.9));
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: 6px;
  padding: 22px 12px 18px;
}
.partner__item img {
  width: 110px;
  height: 110px;
  margin: 0 auto 12px;
  image-rendering: pixelated;
}
.partner__item figcaption strong {
  display: block;
  font-family: var(--serif-head);
  font-size: 17px;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.partner__item figcaption span {
  display: block;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--paper-dim);
}
@media (max-width: 680px) {
  .partner__row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ---------- 空耳の帳 ---------- */
.soramimi { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 55%, var(--ink) 100%); }
.soramimi__lede {
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.soramimi__note {
  text-align: center;
  font-size: 12.5px;
  color: var(--paper-dim);
  margin-bottom: 44px;
}
.soramimi__list {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid rgba(201, 162, 75, 0.25);
}
.soramimi__row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 10px;
  border-bottom: 1px solid rgba(236, 230, 217, 0.1);
}
.soramimi__floor {
  flex: 0 0 3.4em;
  font-family: var(--serif-head);
  color: var(--gold);
  letter-spacing: 0.08em;
  text-align: right;
}
.soramimi__name {
  flex: 1;
  font-family: var(--serif-head);
  font-size: 16.5px;
  letter-spacing: 0.12em;
}
.soramimi__name small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
  font-family: var(--serif);
}
.soramimi__play {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--crystal-dim);
  background: rgba(94, 200, 192, 0.08);
  color: var(--crystal);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}
.soramimi__play:hover { background: rgba(94, 200, 192, 0.18); transform: scale(1.06); }
.soramimi__play.is-playing {
  background: rgba(94, 200, 192, 0.25);
  box-shadow: 0 0 18px rgba(94, 200, 192, 0.35);
}
.soramimi__mark {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
}
.soramimi__row--boss .soramimi__name,
.soramimi__row--boss .soramimi__floor { color: rgba(183, 58, 58, 0.9); }
.soramimi__row--boss .soramimi__name small { color: rgba(183, 58, 58, 0.55); }
.soramimi__row--locked .soramimi__name { color: var(--crystal); letter-spacing: 0.3em; }
.soramimi__row--locked .soramimi__mark { color: var(--crystal-dim); }
@media (max-width: 560px) {
  .soramimi__row { gap: 10px; padding: 12px 4px; }
  .soramimi__mark { flex-basis: 100%; }
  .soramimi__row--boss, .soramimi__row--locked { flex-wrap: wrap; }
}

/* BGM試聴 */
.soramimi__bgm { max-width: 720px; margin: 64px auto 0; text-align: center; }
.soramimi__bgm-title {
  font-family: var(--serif-head);
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  margin-bottom: 26px;
}
.soramimi__bgm-row {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}
.soramimi__bgm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: 40px;
  background: rgba(28, 36, 52, 0.6);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.soramimi__bgm-note { margin-top: 20px; font-size: 12px; color: var(--paper-dim); }

/* ---------- ミニゲーム ---------- */
.asobi__title {
  font-family: var(--serif-head);
  font-size: clamp(22px, 3.4vw, 28px);
  letter-spacing: 0.22em;
  color: var(--crystal);
  margin-bottom: 18px;
}
.quiz__stage { margin-top: 34px; }
.quiz__start {
  font-family: var(--serif-head);
  font-size: 17px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--ink-deep);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border: none;
  border-radius: 40px;
  padding: 14px 52px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease;
}
.quiz__start:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201, 162, 75, 0.35); }
.quiz__progress {
  font-family: var(--serif-head);
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
}
.quiz__replay {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--crystal);
  background: rgba(94, 200, 192, 0.08);
  border: 1px solid var(--crystal-dim);
  border-radius: 30px;
  padding: 8px 22px;
  cursor: pointer;
  margin-bottom: 24px;
}
.quiz__replay:hover { background: rgba(94, 200, 192, 0.18); }
.quiz__choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}
.quiz__choice {
  font-family: var(--serif-head);
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: rgba(28, 36, 52, 0.85);
  border: 1px solid rgba(236, 230, 217, 0.2);
  border-radius: 4px;
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.quiz__choice:hover { border-color: var(--crystal); background: rgba(94, 200, 192, 0.1); }
.quiz__choice.is-right { border-color: var(--crystal); background: rgba(94, 200, 192, 0.22); color: var(--crystal); }
.quiz__choice.is-wrong { border-color: var(--vermilion); background: rgba(183, 58, 58, 0.18); color: #e2908f; }
.quiz__verdict { margin-top: 20px; min-height: 2em; letter-spacing: 0.1em; }
.quiz__score {
  font-family: var(--serif-head);
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: 0.16em;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.quiz__comment { margin-bottom: 28px; letter-spacing: 0.1em; }
