/* ===========================================================
   ポンコツエルフ防衛隊 公式サイト
   配色・書体はゲーム本体（css/base.css 等）のタイトル画面に合わせている
   =========================================================== */

:root {
  --forest-950: #06150e;
  --forest-900: #0c2619;
  --forest-700: #1d4a33;
  --leaf: #3f8f5a;
  --leaf-light: #8fd19e;
  --gold: #e7b94c;
  --gold-light: #ffe08a;
  --gold-deep: #a9761f;
  --cream: #fbf6e7;
  --paper: #f3ead2;
  --ink: #22302a;
  --ink-soft: #5b6b62;
  --line: rgba(169, 118, 31, .35);

  --hc: #4fb6a0; /* 選択中ヒロインの色（JSで上書き） */

  --f-round: "M PLUS Rounded 1c", "Zen Kaku Gothic New", sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --f-en: "Cinzel", serif;

  --header-h: 64px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h2, h3, .story__lead, .chara__quote { word-break: auto-phrase; text-wrap: balance; } /* 日本語見出しを文節で折り返す */
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- ローディング ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; justify-items: center; gap: 24px;
  background: radial-gradient(ellipse at 50% 40%, #fffaf0 0%, #f6edd3 60%, #e9dcb4 100%);
  transition: opacity .7s ease, visibility .7s;
}
.loader__title { width: min(380px, 70vw); animation: float 2.4s ease-in-out infinite; }
.loader__chibis { width: min(320px, 60vw); animation: hop .6s steps(2) infinite alternate; }
.loader__bar { width: min(260px, 50vw); height: 6px; border-radius: 99px; background: rgba(169, 118, 31, .2); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--leaf), var(--gold)); transition: width .3s ease; }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }

@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes hop { to { transform: translateY(-4px); } }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 40px);
  transition: background .4s, box-shadow .4s;
}
.header::before { /* ファーストビュー上でもナビが読めるよう、上端に薄い帯を敷く */
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(251, 246, 231, .85) 0%, rgba(251, 246, 231, .6) 60%, rgba(251, 246, 231, 0) 100%);
  transition: opacity .4s;
}
.header.is-scrolled::before { opacity: 0; }
.header.is-scrolled {
  background: rgba(251, 246, 231, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.header__logo {
  font-family: var(--f-round); font-weight: 900; font-size: 20px; line-height: 1;
  text-decoration: none; color: var(--forest-700);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .4s, transform .4s;
}
.header.is-scrolled .header__logo { opacity: 1; transform: none; }
.header__logo-sub { color: var(--gold-deep); font-size: .72em; margin-right: .2em; }

.gnav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.gnav ul { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.gnav ul a {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.3;
  color: var(--forest-900);
  text-shadow: 0 0 6px rgba(255, 255, 255, .9), 0 0 2px #fff;
  transition: color .2s;
}
.gnav__en { font-family: var(--f-en); font-weight: 800; font-size: 10px; letter-spacing: .15em; color: #8a5d12; }
.gnav ul a:hover { color: var(--leaf); }

.header__menu { display: none; }

/* ---------- ボタン ---------- */
.btn-play {
  --h: 72px;
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 280px; height: var(--h); padding: 0 40px;
  font-family: var(--f-round); font-weight: 900; font-size: 24px; line-height: 1.1; letter-spacing: .08em;
  text-decoration: none; color: #fff;
  background: linear-gradient(180deg, #5cb776 0%, #2f7a4a 55%, #1d5a36 100%);
  border: 2px solid var(--gold-light);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(169, 118, 31, .55), 0 10px 24px rgba(12, 38, 25, .35), inset 0 2px 0 rgba(255, 255, 255, .35);
  text-shadow: 0 2px 0 rgba(12, 38, 25, .45);
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.btn-play::after { /* 光の帯 */
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite;
}
.btn-play:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 0 4px var(--gold), 0 16px 30px rgba(12, 38, 25, .4), inset 0 2px 0 rgba(255, 255, 255, .35); }
.btn-play__small { font-size: 12px; letter-spacing: .15em; color: var(--gold-light); margin-bottom: 4px; }
.btn-play--sm { --h: 40px; min-width: 0; padding: 0 22px; font-size: 15px; box-shadow: 0 0 0 3px rgba(169, 118, 31, .5), 0 4px 10px rgba(12, 38, 25, .25); }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* ---------- ファーストビュー ---------- */
.hero {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: -2%; z-index: -3;
  background: url("../assets/bg/title.jpg") left center / cover no-repeat;
  animation: kenburns 24s ease-in-out infinite alternate;
}
.hero__light { /* 右側の白い霞、左の文字下の陰、下のフェード */
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 70% at 75% 55%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(ellipse 40% 45% at 18% 55%, rgba(12, 38, 25, .35), transparent 70%),
    linear-gradient(180deg, transparent 70%, var(--cream) 100%);
}
.hero__leaves { /* 舞う光の粒 */
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 244, 200, .9) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 255, 255, .8) 0 1.5px, transparent 2.5px),
    radial-gradient(circle, rgba(200, 255, 210, .7) 0 2px, transparent 3px);
  background-size: 180px 220px, 260px 300px, 340px 280px;
  background-position: 0 0, 60px 90px, 130px 40px;
  animation: drift 30s linear infinite;
  opacity: .8;
}
@keyframes kenburns { to { transform: scale(1.08) translateX(-1.5%); } }
@keyframes drift { to { background-position: 180px 660px, 320px 990px, 470px 880px; } }

/* 立ち絵：奥（セレナ・ノエル）と手前（リリカ・ミネルヴァ）の2列で重ねる。
   left は .hero__stands の幅に対する%。立ち絵を差し替えたらここを調整する */
.hero__stands {
  position: absolute; right: 5vw; bottom: 0; z-index: 0;
  width: 55vw; height: 100%;
}
.hero__stand {
  position: absolute; bottom: 0;
  width: auto; max-width: none;
  filter: drop-shadow(0 12px 24px rgba(12, 38, 25, .25));
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}
.hero__stand--lyrica { height: 86%; left: -10%; z-index: 1; }
.hero__stand--noel { height: 72%; left: 27%; z-index: 2; }
.hero__stand--serena { height: 74%; left: 55%; z-index: 2; }
.hero__stand--minerva { height: 86%; left: 41%; z-index: 3; }
.is-ready .hero__stand { opacity: 1; transform: none; }
.is-ready .hero__stand--minerva { transition-delay: .2s; }
.is-ready .hero__stand--lyrica { transition-delay: .35s; }
.is-ready .hero__stand--serena { transition-delay: .5s; }
.is-ready .hero__stand--noel { transition-delay: .65s; }

.hero__inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--header-h) 0 0 clamp(20px, 7vw, 120px);
  max-width: 48vw;
}
.logo { width: min(620px, 100%); }
.logo img { width: 100%; height: auto; filter: drop-shadow(0 6px 14px rgba(12, 38, 25, .35)); }
.hero__cta { margin-top: clamp(28px, 5vh, 56px); }
.hero__note { margin-top: 12px; font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(12, 38, 25, .8); padding-left: 1.2em; }

/* 表示アニメ */
.logo, .hero__cta { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.logo { transform: scale(.92); }
.is-ready .logo, .is-ready .hero__cta { opacity: 1; transform: none; }
.is-ready .logo { transition-delay: .6s; }
.is-ready .hero__cta { transition-delay: 1.1s; }

.hero__copy {
  position: absolute; z-index: 5; right: clamp(16px, 3vw, 48px); top: calc(var(--header-h) + 5vh);
  writing-mode: vertical-rl;
  font-family: var(--f-round); font-weight: 900; font-size: clamp(20px, 2vw, 32px); letter-spacing: .2em; line-height: 1.6;
  color: var(--forest-700);
  text-shadow: 0 0 10px #fff, 0 0 4px #fff, 0 0 2px #fff;
  opacity: 0; transition: opacity 1.4s ease 1.6s;
}
.is-ready .hero__copy { opacity: 1; }

.hero__scroll {
  position: absolute; z-index: 5; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--f-en); font-size: 11px; letter-spacing: .3em; text-decoration: none; color: var(--forest-700);
}
.hero__scroll::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(var(--forest-700) 50%, transparent 50%) 0 0 / 1px 88px;
  animation: scrollline 1.8s ease-in-out infinite;
}
@keyframes scrollline { from { background-position: 0 -44px; } to { background-position: 0 44px; } }

/* ---------- セクション共通 ---------- */
.sec { position: relative; padding: clamp(80px, 12vw, 140px) 0; }
.sec__inner { width: min(1120px, 100% - 32px); margin: 0 auto; }

.sec-title { display: flex; flex-direction: column; align-items: center; line-height: 1.2; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-title__en {
  font-family: var(--f-en); font-weight: 800; font-size: clamp(36px, 5vw, 60px); letter-spacing: .12em;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(12, 38, 25, .25));
}
.sec-title__ja { display: flex; align-items: center; gap: 12px; font-family: var(--f-round); font-weight: 800; font-size: 15px; letter-spacing: .2em; color: var(--forest-700); }
.sec-title__ja::before, .sec-title__ja::after { content: ""; width: 28px; height: 1px; background: var(--gold-deep); }
.sec-title--left { align-items: flex-start; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- ニュース ---------- */
.sec--news {
  background:
    linear-gradient(rgba(251, 246, 231, .88), rgba(251, 246, 231, .94)),
    url("../assets/bg/home.jpg") center / cover fixed;
}
.news {
  max-width: 900px; margin: 0 auto;
  background: rgba(255, 253, 246, .9);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 0 0 6px rgba(255, 253, 246, .6), 0 20px 40px rgba(12, 38, 25, .08);
  overflow: hidden;
}
.news__tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.news__tab {
  flex: 1 1 auto; padding: 16px 12px; border: 0; background: none;
  font-family: var(--f-round); font-weight: 800; font-size: 14px; color: var(--ink-soft);
  position: relative; transition: color .2s, background .2s;
}
.news__tab::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--leaf); transform: scaleX(0); transition: transform .3s var(--ease-out); }
.news__tab:hover { color: var(--forest-700); background: rgba(63, 143, 90, .06); }
.news__tab[aria-selected="true"] { color: var(--forest-700); }
.news__tab[aria-selected="true"]::after { transform: scaleX(1); }

.news__list { max-height: 360px; overflow-y: auto; padding: 8px 28px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.news__item a {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px 20px;
  padding: 18px 4px; border-bottom: 1px dashed var(--line);
  text-decoration: none; transition: color .2s, padding .2s;
}
.news__item:last-child a { border-bottom: 0; }
.news__item a:hover { color: var(--leaf); padding-left: 10px; }
.news__date { font-family: var(--f-en); font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.news__cat { min-width: 96px; padding: 2px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; text-align: center; color: #fff; background: var(--leaf); }
.news__cat--update { background: #3b82b8; }
.news__cat--event { background: #e0669e; }
.news__cat--maintenance { background: #8a8f8c; }
.news__title { font-weight: 700; }
.news__item.is-hidden { display: none; }

/* ニュース詳細（ポップアップ） */
.news-modal {
  width: min(720px, 100% - 32px); max-height: min(86vh, 900px);
  padding: 0; border: 0; border-radius: 18px;
  background: #fffdf6; color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 8px rgba(255, 253, 246, .5), 0 30px 60px rgba(6, 21, 14, .45);
  overscroll-behavior: contain;
}
.news-modal::backdrop { background: rgba(6, 21, 14, .6); backdrop-filter: blur(3px); }
.news-modal[open] { animation: modal-in .35s var(--ease-out); }
.news-modal[open]::backdrop { animation: fade-in .3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
body:has(.news-modal[open]) { overflow: hidden; }

.news-modal__inner { position: relative; padding: clamp(28px, 5vw, 48px); }
.news-modal__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; transition: background .2s;
}
.news-modal__close::before, .news-modal__close::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 2px; background: var(--forest-700); transform: rotate(45deg);
}
.news-modal__close::after { transform: rotate(-45deg); }
.news-modal__close:hover { background: rgba(63, 143, 90, .1); }
.news-modal__meta { display: flex; align-items: center; gap: 14px; }
.news-modal__title {
  margin: 12px 0 24px; padding-bottom: 18px; border-bottom: 2px solid var(--gold);
  font-family: var(--f-round); font-weight: 900; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.5; color: var(--forest-700);
}
.news-modal__image { width: 100%; max-height: 380px; object-fit: contain; margin-bottom: 24px; border-radius: 10px; background: var(--paper); }
.news-modal__body > * + * { margin-top: 1em; }
.news-modal__body h4 { font-family: var(--f-round); font-weight: 800; font-size: 17px; color: var(--forest-700); padding-left: 12px; border-left: 4px solid var(--leaf); margin-top: 1.6em; }
.news-modal__body ul { padding-left: 1.4em; list-style: disc; }
.news-modal__body a { color: var(--leaf); font-weight: 700; }
.news-modal__body strong { color: var(--forest-700); background: linear-gradient(transparent 60%, rgba(231, 185, 76, .35) 60%); }
.news-modal__body img { border-radius: 10px; }
.news-modal__foot { margin-top: 36px; text-align: center; }
.news-modal__back {
  min-width: 200px; padding: 12px 32px; border-radius: 99px;
  border: 2px solid var(--leaf); background: #fff;
  font-family: var(--f-round); font-weight: 800; color: var(--forest-700);
  transition: background .2s, color .2s;
}
.news-modal__back:hover { background: var(--leaf); color: #fff; }

/* ---------- ストーリー ---------- */
.sec--story {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(143, 209, 158, .25), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--paper));
}
.story { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story__visual { position: relative; }
.story__visual img {
  width: 100%; aspect-ratio: 512 / 748; object-fit: cover;
  border-radius: 200px 200px 16px 16px; /* 窓のような形 */
  border: 6px solid #fffdf6;
  box-shadow: 0 0 0 1px var(--gold-deep), 0 24px 48px rgba(12, 38, 25, .2);
}
.story__visual::before { /* 背後の金の枠 */
  content: ""; position: absolute; inset: -14px 14px 14px -14px; z-index: -1;
  border: 1px solid var(--gold); border-radius: 200px 200px 16px 16px;
}
.story__body > p { margin-bottom: 1.1em; }
.story__lead {
  font-family: var(--f-round); font-weight: 900; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.5;
  color: var(--forest-700); margin-bottom: .9em !important;
}
.story__talk { display: grid; gap: 14px; margin-top: 28px; }
.talk {
  --c: var(--leaf);
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 12px 20px 12px 12px; background: #fff; border-radius: 18px;
  border: 2px solid color-mix(in srgb, var(--c) 45%, white);
  font-weight: 700; font-size: 15px; line-height: 1.6;
}
.talk img { width: 52px; height: 52px; object-fit: cover; object-position: top; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--c) 20%, white); }
.talk--lyrica { --c: #ffb429; }
.talk--noel { --c: #9b8cff; margin-left: clamp(0px, 4vw, 48px); }

/* ---------- キャラクター ---------- */
.sec--chara {
  color: #fff; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 35% 55%, color-mix(in srgb, var(--hc) 45%, transparent), transparent 70%),
    linear-gradient(180deg, var(--forest-900), var(--forest-950));
  transition: background .6s;
}
.sec--chara::before { /* 背景の拠点絵をうっすら */
  content: ""; position: absolute; inset: 0;
  background: url("../assets/bg/home.jpg") center / cover;
  opacity: .12; mix-blend-mode: luminosity;
}
.sec--chara .sec__inner { position: relative; }
.sec--chara .sec-title__ja { color: #fff; }

.chara {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "visual info" "visual tabs";
  gap: 24px clamp(24px, 5vw, 64px); align-items: center;
}
.chara__visual { grid-area: visual; position: relative; height: clamp(480px, 62vw, 720px); display: grid; place-items: end center; }
.chara__video { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: opacity .35s, transform .5s var(--ease-out); }
.chara__ring { /* 足元の魔法陣風の円 */
  position: absolute; z-index: 1; bottom: 2%; left: 50%; width: 80%; aspect-ratio: 3 / 1; transform: translateX(-50%);
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--hc) 70%, white);
  box-shadow: 0 0 30px var(--hc), inset 0 0 30px var(--hc);
  opacity: .7;
}
.chara__ring::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--hc) 60%, white); }
.chara__bigname {
  position: absolute; z-index: 0; top: 4%; left: 0;
  font-family: var(--f-en); font-weight: 800; font-size: clamp(64px, 11vw, 150px); line-height: 1; letter-spacing: .05em; white-space: nowrap;
  color: color-mix(in srgb, var(--hc) 10%, transparent); -webkit-text-stroke: 1.5px color-mix(in srgb, var(--hc) 75%, transparent);
  writing-mode: vertical-rl; height: 92%; text-align: center;
}

.chara__info { grid-area: info; align-self: end; }
.chara__title {
  display: inline-block; padding: 4px 16px; border-radius: 99px;
  font-family: var(--f-round); font-weight: 800; font-size: 14px; letter-spacing: .1em;
  color: var(--forest-950); background: var(--hc);
}
.chara__name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin: 14px 0 4px; line-height: 1.2; }
.chara__name-ja { font-family: var(--f-round); font-weight: 900; font-size: clamp(44px, 5vw, 64px); text-shadow: 0 3px 0 color-mix(in srgb, var(--hc) 60%, black); }
.chara__name-en { font-family: var(--f-en); font-weight: 600; font-size: 16px; letter-spacing: .3em; color: var(--hc); }
.chara__quote {
  position: relative; margin: 24px 0 20px; padding: 18px 22px;
  font-family: var(--f-round); font-weight: 800; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6;
  background: rgba(255, 255, 255, .08); border-left: 4px solid var(--hc); border-radius: 0 12px 12px 0;
}
.chara__text { color: rgba(255, 255, 255, .88); }
.chara__info > * { transition: opacity .35s, transform .45s var(--ease-out); }
.chara.is-switching .chara__info > *, .chara.is-switching .chara__video, .chara.is-switching .chara__outfit-img { opacity: 0; transform: translateX(16px); }

/* 衣装の静止画（選択中は待機動画の代わりに表示） */
.chara__outfit-img {
  position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom;
  transition: opacity .35s, transform .5s var(--ease-out);
}
.chara.is-outfit .chara__video { visibility: hidden; }

.chara__profile { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 20px 0 0; font-size: 14px; }
.chara__profile dt { color: var(--hc); font-weight: 700; }
.chara__profile dd { margin: 0; color: rgba(255, 255, 255, .85); }

.chara__label { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 10px; font-family: var(--f-en); font-weight: 800; font-size: 13px; letter-spacing: .2em; color: var(--hc); }
.chara__label span { font-family: var(--f-body); font-weight: 500; font-size: 11px; letter-spacing: .05em; color: rgba(255, 255, 255, .55); }

.chara__voice-list { display: grid; gap: 8px; }
.voice-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px 8px 8px; text-align: left;
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 99px; background: rgba(255, 255, 255, .06);
  font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .9);
  transition: background .2s, border-color .2s;
}
.voice-btn:hover { background: rgba(255, 255, 255, .12); border-color: var(--hc); }
.voice-btn__icon {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--hc);
}
.voice-btn__icon::before { /* 再生の三角 */
  content: ""; position: absolute; inset: 0; margin: auto; transform: translateX(2px);
  width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--forest-950);
}
.voice-btn.is-playing .voice-btn__icon::before { /* 停止の四角 */
  transform: none; width: 10px; height: 10px; border: 0; background: var(--forest-950);
}
.voice-btn.is-playing { border-color: var(--hc); background: color-mix(in srgb, var(--hc) 18%, transparent); }
.voice-btn__kind { flex: none; font-weight: 700; color: var(--hc); }

.chara__outfit-list { display: flex; gap: 10px; }
.outfit-btn {
  width: 64px; height: 80px; padding: 0; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .2); border-radius: 10px; background: rgba(255, 255, 255, .06);
  transition: border-color .2s, transform .2s;
}
.outfit-btn img { width: 100%; height: 170%; object-fit: cover; object-position: top; }
.outfit-btn:hover { transform: translateY(-3px); }
.outfit-btn[aria-pressed="true"] { border-color: var(--hc); box-shadow: 0 0 12px var(--hc); }

.chara__tabs { grid-area: tabs; align-self: start; display: flex; gap: 14px; flex-wrap: wrap; }
.chara__tab {
  --c: var(--leaf);
  position: relative; width: 84px; height: 84px; padding: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 30%, var(--forest-900));
  border: 3px solid rgba(255, 255, 255, .25);
  overflow: hidden;
  transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s;
}
.chara__tab img { width: 100%; height: 130%; object-fit: cover; object-position: top; filter: saturate(.6) brightness(.85); transition: filter .25s; }
.chara__tab:hover { transform: translateY(-4px); }
.chara__tab:hover img, .chara__tab[aria-selected="true"] img { filter: none; }
.chara__tab[aria-selected="true"] { border-color: var(--c); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 24px var(--c); }

/* ---------- ゲームシステム ---------- */
.sec--system { background: linear-gradient(180deg, var(--cream), #fff 40%, var(--cream)); }
.slider { position: relative; }
.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 20px;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide {
  scroll-snap-align: start;
  display: grid; grid-template-columns: 7fr 5fr; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4vw, 48px);
  background: #fffdf6; border: 1px solid var(--line); border-radius: 20px;
}
.slide__media { position: relative; min-height: 360px; display: grid; place-items: center; }
.slide__media--wide img, .slide__media--wide video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; box-shadow: 0 16px 32px rgba(12, 38, 25, .18); }
.slide__media--cards { perspective: 1200px; }
.slide__media--cards img {
  position: absolute; width: clamp(120px, 16vw, 190px); aspect-ratio: 512 / 748; object-fit: cover;
  border-radius: 10px; border: 3px solid #fff;
  box-shadow: 0 12px 24px rgba(12, 38, 25, .25);
  transform: translateX(calc(var(--o) * clamp(70px, 9vw, 120px))) rotate(calc(var(--o) * 8deg)) translateY(calc(var(--a) * 18px));
  transition: transform .4s var(--ease-out);
}
.slide__media--cards img:hover { transform: translateX(calc(var(--o) * clamp(70px, 9vw, 120px))) rotate(0) translateY(-24px) scale(1.06); z-index: 5; }
.slide__label { font-family: var(--f-en); font-weight: 800; letter-spacing: .2em; font-size: 13px; color: var(--gold-deep); }
.slide__title { margin: 8px 0 16px; font-family: var(--f-round); font-weight: 900; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; color: var(--forest-700); }
.slide__num { font-family: var(--f-en); font-weight: 800; font-size: 56px; line-height: 1; color: rgba(63, 143, 90, .18); }

.slider__nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 28px; }
.slider__arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold);
  background: #fff; position: relative; transition: background .2s, transform .2s;
}
.slider__arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; border: solid var(--forest-700); border-width: 3px 3px 0 0; transform: translateX(-2px) rotate(45deg); }
.slider__arrow--prev::before { transform: translateX(2px) rotate(-135deg); }
.slider__arrow:hover { background: var(--gold-light); transform: scale(1.06); }
.slider__dots { display: flex; gap: 10px; }
.slider__dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid var(--gold-deep); background: transparent; transition: background .2s, transform .2s; }
.slider__dot[aria-current="true"] { background: var(--gold); transform: scale(1.25); }

/* ---------- プレイ導線 ---------- */
.entry {
  position: relative; padding: clamp(80px, 10vw, 120px) 16px; text-align: center; overflow: hidden;
  background: linear-gradient(rgba(12, 38, 25, .35), rgba(12, 38, 25, .55)), url("../assets/bg/sortie.jpg") center / cover;
}
.entry__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.entry__chibis { width: min(360px, 80vw); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .3)); animation: float 3s ease-in-out infinite; }
.entry__text { font-family: var(--f-round); font-weight: 800; font-size: clamp(18px, 2vw, 24px); color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }

/* ---------- フッター ---------- */
.footer { padding: 48px 16px 32px; text-align: center; background: var(--forest-950); color: rgba(255, 255, 255, .75); font-size: 13px; }
.footer__logo { font-family: var(--f-round); font-weight: 900; font-size: 26px; color: #fff; margin-bottom: 20px; }
.footer__logo .header__logo-sub { color: var(--gold); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-bottom: 24px; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--gold-light); }
.footer__credit { margin-bottom: 4px; }
.footer__credit--ai { font-size: 12px; color: rgba(255, 255, 255, .55); margin-bottom: 12px; }
.footer__copy { font-size: 12px; color: rgba(255, 255, 255, .5); }

.pagetop {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--leaf) url("../assets/ui/gem.png") center / 60% no-repeat;
  border: 3px solid var(--gold-light); box-shadow: 0 6px 16px rgba(12, 38, 25, .3);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s;
}
.pagetop.is-show { opacity: 1; visibility: visible; transform: none; }
.pagetop:hover { transform: translateY(-4px); }

/* ---------- ムービー ---------- */
.sec--movie { background: linear-gradient(180deg, var(--cream), var(--paper)); overflow: hidden; }
.sec--movie .sec-title { margin-bottom: 12px; }
.movie__lead { text-align: center; font-family: var(--f-round); font-weight: 800; color: var(--forest-700); margin-bottom: clamp(28px, 4vw, 44px); }
/* 自動で横に流れるリスト（JSで scrollLeft を動かす。同じ並びを2周分置いてループさせる） */
.movie__list {
  display: flex; gap: 20px;
  overflow-x: auto; scrollbar-width: none;
  padding: 8px 0 24px;
  cursor: grab; user-select: none; -webkit-user-select: none;
  touch-action: pan-y; /* 縦スクロールはブラウザ、横ドラッグはJSで扱う */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.movie__list::-webkit-scrollbar { display: none; }
.movie__list.is-dragging { cursor: grabbing; }
.movie__list img, .movie__list video { -webkit-user-drag: none; pointer-events: none; }
.movie__item { flex: none; width: clamp(240px, 28vw, 400px); }
.movie__frame {
  --c: var(--leaf);
  position: relative; aspect-ratio: 896 / 608; overflow: hidden;
  border-radius: 14px; border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 12px 24px rgba(12, 38, 25, .15);
  background: var(--forest-900);
}
.movie__frame video { width: 100%; height: 100%; object-fit: cover; }
.movie__cap { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 700; font-size: 14px; }
.movie__cap img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: top; background: color-mix(in srgb, var(--c) 25%, white); }
.movie__cap-name { font-family: var(--f-round); font-weight: 800; color: var(--c); }

/* ---------- タブレット ---------- */
@media (max-width: 1024px) {
  .hero__stands { width: 64vw; right: 0; }
  .hero__inner { max-width: 60vw; }
  .gnav ul { gap: 18px; }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .header { background: rgba(251, 246, 231, .92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
  .header__logo { opacity: 1; transform: none; font-size: 18px; }
  .header__menu {
    display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none;
  }
  .header__menu span { display: block; width: 24px; height: 2px; background: var(--forest-700); transition: transform .3s, opacity .3s; }
  .header__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .header__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gnav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 24px; padding: 24px 16px 32px;
    background: rgba(251, 246, 231, .98); box-shadow: 0 12px 24px rgba(12, 38, 25, .15);
    transform: translateY(-110%); visibility: hidden; transition: transform .35s var(--ease-out), visibility .35s;
    z-index: -1;
  }
  .gnav.is-open { transform: none; visibility: visible; }
  .gnav ul { flex-direction: column; align-items: center; gap: 18px; }
  .gnav ul a { font-size: 16px; text-shadow: none; }

  .hero { min-height: 600px; max-height: none; }
  .hero__bg { background-position: 20% center; }
  .hero__stands { width: 104vw; right: -2vw; height: 58%; }
  .hero__stand--lyrica { left: -4%; }
  .hero__scroll { display: none; }
  .hero__inner { max-width: none; justify-content: flex-start; padding: calc(var(--header-h) + 28px) 16px 0; align-items: center; text-align: center; }
  .logo { width: min(340px, 90%); }
  .hero__cta { position: absolute; left: 0; right: 0; bottom: 64px; margin: 0; display: flex; flex-direction: column; align-items: center; }
  .hero__note { padding: 0; }
  .hero__copy { display: none; }
  .btn-play { --h: 64px; min-width: 240px; font-size: 21px; }

  .news__tab { flex: 1 1 33%; padding: 12px 6px; font-size: 13px; }
  .news__list { padding: 4px 16px; }
  .news__item a { grid-template-columns: auto 1fr; gap: 4px 12px; }
  .news__title { grid-column: 1 / -1; }

  .story { grid-template-columns: 1fr; }
  .story__visual { width: min(280px, 70%); margin: 0 auto; }
  .story__body .sec-title { align-items: center; }

  .chara { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "visual" "info"; }
  .chara__tabs { justify-content: center; }
  .chara__tab { width: 64px; height: 64px; }
  .chara__visual { height: 460px; overflow: hidden; }
  .chara__profile { grid-template-columns: 1fr; gap: 0; }
  .chara__profile dd { margin-bottom: 8px; }
  .chara__bigname { font-size: 56px; }

  .slide { grid-template-columns: 1fr; }
  .slide__media { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
