/*
Theme Name: PLUS ALPHA IDOL
Theme URI: https://example.com/
Author: Chubby Inc.
Description: アイドルグループ向けアニメーション特化の汎用テーマ。グループ名・配色・全コンテンツを管理画面だけで変更でき、どのグループにもそのまま横展開できます(コード編集不要)。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: plus-alpha-idol
*/

/* ============================================================
   0. 変数(テーマカラーはカスタマイザーから上書きされます)
   ============================================================ */
:root {
  --c-main: #2bb3f7;        /* メインカラー(水色) */
  --c-sub: #7ce0ff;         /* サブカラー(ライトスカイ) */
  --c-accent: #ff9dc6;      /* アクセント(ソフトピンク) */
  --c-yellow: #ffd93d;
  --c-dark: #eaf8ff;        /* 淡いブルー背景(旧ダーク) */
  --c-dark2: #f9feff;
  --c-text: #1e3a4c;
  --c-white: #ffffff;
  --grad-main: linear-gradient(135deg, var(--c-main) 0%, var(--c-sub) 60%, var(--c-accent) 120%);
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Montserrat", "Arial Black", sans-serif;
  --ease-bounce: cubic-bezier(.68,-0.55,.27,1.55);
  --ease-smooth: cubic-bezier(.22,1,.36,1);
}

/* ============================================================
   1. リセット・ベース
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-jp);
  color: var(--c-text);
  background: #f7fcff;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.en { font-family: var(--font-en); }

::selection { background: var(--c-main); color: #fff; }

/* スクロールバー */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #e8f6ff; }
::-webkit-scrollbar-thumb { background: var(--grad-main); border-radius: 5px; }

/* ============================================================
   2. オープニングローダー
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #ffffff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
  transition: opacity .8s ease, visibility .8s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__logo {
  font-family: var(--font-en);
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: .12em;
  display: flex;
}
.loader__logo span {
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: loaderJump 1.2s var(--ease-bounce) infinite;
  animation-delay: calc(var(--i) * 0.07s);
}
@keyframes loaderJump {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-22px) scale(1.15); }
}
.loader__bar {
  width: min(260px, 60vw); height: 4px; border-radius: 2px;
  background: #dbf2ff; overflow: hidden;
}
.loader__bar::after {
  content: ""; display: block; height: 100%;
  background: var(--grad-main);
  animation: loaderBar 1.6s var(--ease-smooth) forwards;
}
@keyframes loaderBar { from { width: 0; } to { width: 100%; } }

/* ============================================================
   3. ヘッダー
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5vw;
  transition: background .4s, padding .4s, box-shadow .4s;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  padding: 10px 5vw;
  box-shadow: 0 4px 30px rgba(43,179,247,.14);
}
.site-header__logo {
  font-family: var(--font-en); font-weight: 900;
  font-size: 22px; letter-spacing: .08em;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform .3s var(--ease-bounce);
}
.site-header__logo:hover { transform: scale(1.06) rotate(-2deg); }

.global-nav ul { display: flex; gap: 6px; }
.global-nav a {
  position: relative; display: block;
  padding: 8px 14px;
  font-family: var(--font-en); font-weight: 700; font-size: 13px;
  letter-spacing: .1em;
  transition: color .3s;
}
.site-header:not(.is-scrolled) .global-nav a { color: var(--c-text); }
.global-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 3px; border-radius: 2px;
  background: var(--grad-main);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-smooth);
}
.global-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.global-nav a:hover { color: var(--c-main); }

/* ハンバーガー */
.menu-toggle {
  display: none;
  width: 46px; height: 46px; border: none; cursor: pointer;
  background: var(--grad-main); border-radius: 50%;
  position: relative; z-index: 1102;
  box-shadow: 0 4px 16px rgba(43,179,247,.4);
  transition: transform .3s var(--ease-bounce);
}
.menu-toggle:hover { transform: scale(1.1) rotate(90deg); }
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2.5px;
  background: #fff; border-radius: 2px;
  transition: transform .35s var(--ease-bounce), opacity .2s, top .35s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }

  /* ▼重要▼ メニューを開いている間はヘッダーの backdrop-filter を切ります。
     backdrop-filter が効いているとヘッダーが position:fixed の子要素の基準枠になり、
     全画面のはずのメニュー背景がヘッダーの高さぶん(帯状)にしか描かれず、
     文字だけが下にはみ出してページと重なって見えてしまうためです。 */
  body.nav-open .site-header {
    background: transparent; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  body.nav-open { overflow: hidden; }

  .global-nav {
    position: fixed; inset: 0; z-index: 1100;
    background: linear-gradient(160deg, var(--c-main) 0%, var(--c-sub) 100%);
    display: flex; overflow-y: auto; overscroll-behavior: contain;
    padding: 88px 24px 48px;
    clip-path: circle(0 at calc(100% - 41px) 41px);
    transition: clip-path .6s var(--ease-smooth);
  }
  .global-nav.is-open { clip-path: circle(150% at calc(100% - 41px) 41px); }
  .global-nav ul {
    flex-direction: column; gap: 10px; text-align: center;
    margin: auto; width: min(78vw, 340px);
  }
  .global-nav a {
    color: #fff !important; font-size: 20px; text-shadow: none !important;
    opacity: 0; transform: translateY(20px);
    /* メニュー1つずつに帯(背景)を敷いて、下のページと重なっても読めるようにします */
    display: block; padding: 15px 18px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
  }
  .global-nav a::after { display: none; }
  .global-nav.is-open a { opacity: 1; transform: none; transition: opacity .4s, transform .4s var(--ease-bounce); transition-delay: calc(var(--i) * .06s + .2s); }
}

/* ============================================================
   4. ヒーロー(ロゴ+リンク付きスライドショー)
   ============================================================ */
.hero-top {
  position: relative; overflow: hidden;
  background: #fff;
  padding: 130px 5vw 26px;
  text-align: center;
}
.hero-top__sub {
  font-family: var(--font-en); font-weight: 700;
  letter-spacing: .5em; font-size: clamp(10px, 1.4vw, 13px);
  color: var(--c-accent);
  margin-bottom: 10px; position: relative; z-index: 2;
  animation: fadeDown 1s .3s var(--ease-smooth) both;
}
.hero-top__logo {
  position: relative; z-index: 2;
  font-family: var(--font-en); font-weight: 900;
  font-size: clamp(38px, 8vw, 84px);
  line-height: 1.05; letter-spacing: .04em;
  display: flex; flex-wrap: wrap; justify-content: center;
}
.hero-top__logo .char {
  display: inline-block;
  background: linear-gradient(180deg, var(--c-main) 20%, var(--c-sub) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: charPop .8s var(--ease-bounce) both;
  animation-delay: calc(var(--i) * 0.055s + .4s);
}
.hero-top__logo .char:hover {
  animation: charWave .5s var(--ease-bounce);
  -webkit-text-fill-color: var(--c-accent);
}
@keyframes charPop {
  0% { opacity: 0; transform: translateY(60px) rotate(12deg) scale(.5); }
  100% { opacity: 1; transform: none; }
}
@keyframes charWave {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-18px) scale(1.2); }
}

/* ---------- スライドショー(中央スライド+左右チラ見せ) ---------- */
.hero-slider {
  position: relative; overflow: hidden;
  background: #fff;
  padding: 18px 0 20px;
}
.hero-slider__track {
  display: flex; align-items: center;
  gap: clamp(12px, 2vw, 28px);
  will-change: transform;
  transition: transform .75s var(--ease-smooth);
}
.hero-slide {
  flex: 0 0 min(74vw, 1040px);
  aspect-ratio: 16 / 9;
  border-radius: 20px; overflow: hidden;
  position: relative; display: block;
  box-shadow: 0 16px 44px rgba(43,179,247,.22);
  transform: scale(.93); opacity: .5;
  transition: transform .6s var(--ease-smooth), opacity .6s;
}
.hero-slide.is-active { transform: scale(1); opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide--sample {
  display: grid; place-content: center; text-align: center;
  background: linear-gradient(135deg, var(--sc1, #2bb3f7), var(--sc2, #7ce0ff));
  color: #fff;
}
.hero-slide--sample strong {
  font-family: var(--font-en); font-weight: 900;
  font-size: clamp(22px, 4vw, 44px); letter-spacing: .08em;
  text-shadow: 0 4px 18px rgba(0,60,110,.25);
}
.hero-slide--sample small { font-size: 12px; letter-spacing: .2em; opacity: .9; }

.hero-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 52px; height: 52px; border: none; cursor: pointer;
  border-radius: 50%; background: rgba(255,255,255,.95);
  color: var(--c-main); font-size: 20px; font-weight: 900;
  box-shadow: 0 6px 20px rgba(43,179,247,.3);
  transition: transform .3s var(--ease-bounce), background .3s, color .3s;
}
.hero-slider__arrow:hover { background: var(--c-main); color: #fff; transform: translateY(-50%) scale(1.12); }
.hero-slider__arrow--prev { left: max(2vw, 12px); }
.hero-slider__arrow--next { right: max(2vw, 12px); }

.hero-slider__dots {
  display: flex; justify-content: center; gap: 10px;
  padding: 18px 0 6px;
}
.hero-slider__dots button {
  width: 10px; height: 10px; border-radius: 999px; border: none; cursor: pointer;
  background: #cfeaf8; padding: 0;
  transition: width .35s var(--ease-smooth), background .35s;
}
.hero-slider__dots button.is-active { width: 30px; background: var(--grad-main); }

/* 旧フルスクリーンヒーロー(下層で使用する装飾のため残置) */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-content: center; text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #eaf8ff 0%, #ffffff 55%, #dcf4ff 100%);
  color: var(--c-text);
  padding: 100px 5vw 120px;
}

/* 動くグラデーションブロブ */
.hero__blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .55; pointer-events: none;
  animation: blobFloat 12s ease-in-out infinite alternate;
}
.hero__blob--1 { width: 45vw; height: 45vw; background: var(--c-main); top: -10%; left: -10%; }
.hero__blob--2 { width: 38vw; height: 38vw; background: var(--c-sub); bottom: -15%; right: -8%; animation-delay: -4s; }
.hero__blob--3 { width: 26vw; height: 26vw; background: var(--c-accent); top: 30%; right: 20%; animation-delay: -8s; opacity: .35; }
@keyframes blobFloat {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(6vw,-4vh) scale(1.15); }
  100% { transform: translate(-4vw,5vh) scale(.95); }
}

/* キラキラ */
.hero__sparkle {
  position: absolute; width: 8px; height: 8px; pointer-events: none;
  background: #7fd4ff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: sparkle 3s ease-in-out infinite;
  opacity: 0;
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: .9; transform: scale(1.4) rotate(180deg); }
}

.hero__inner { position: relative; z-index: 2; }
.hero__sub {
  font-family: var(--font-en); font-weight: 700;
  letter-spacing: .5em; font-size: clamp(11px, 1.6vw, 14px);
  color: var(--c-accent);
  margin-bottom: 18px;
  animation: fadeDown 1s .3s var(--ease-smooth) both;
}
.hero__title {
  font-family: var(--font-en); font-weight: 900;
  font-size: clamp(44px, 11vw, 120px);
  line-height: 1.05; letter-spacing: .02em;
  display: flex; flex-wrap: wrap; justify-content: center;
}
.hero__title .char {
  display: inline-block;
  background: linear-gradient(180deg, #fff 30%, #ffd6e4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: charPop .8s var(--ease-bounce) both;
  animation-delay: calc(var(--i) * 0.055s + .5s);
  text-shadow: none;
}
.hero__title .char:hover {
  animation: charWave .5s var(--ease-bounce);
  -webkit-text-fill-color: var(--c-yellow);
}
@keyframes charPop {
  0% { opacity: 0; transform: translateY(60px) rotate(12deg) scale(.5); }
  100% { opacity: 1; transform: none; }
}
@keyframes charWave {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-18px) scale(1.2); }
}
.hero__catch {
  margin-top: 26px;
  font-size: clamp(14px, 2.4vw, 19px); font-weight: 700;
  letter-spacing: .18em;
  animation: fadeUp 1s 1.4s var(--ease-smooth) both;
}
.hero__catch strong { color: var(--c-yellow); }
.hero__cta {
  margin-top: 40px;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 1s 1.7s var(--ease-smooth) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }

/* スクロールダウン */
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-en); font-size: 10px; letter-spacing: .3em; color: #fff;
  opacity: .8; z-index: 2;
}
.hero__scroll::after {
  content: ""; display: block; width: 1px; height: 46px;
  margin: 8px auto 0;
  background: linear-gradient(to bottom, #fff, transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   5. マーキー(流れるテキスト帯)
   ============================================================ */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: var(--grad-main);
  padding: 14px 0;
  transform: rotate(-1.2deg) scale(1.02);
  box-shadow: 0 8px 30px rgba(43,179,247,.3);
  position: relative; z-index: 3;
}
.marquee--footer { transform: rotate(0); margin-top: 0; }
.marquee__track { display: inline-flex; animation: marquee 22s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-en); font-weight: 900; font-size: 20px;
  letter-spacing: .15em; color: #fff; padding: 0 28px;
}
.marquee__track span:nth-child(even) {
  -webkit-text-stroke: 1.5px #fff; -webkit-text-fill-color: transparent;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   6. セクション共通
   ============================================================ */
.section { padding: 110px 5vw; position: relative; }
.section--dark { background: linear-gradient(160deg, var(--c-dark), var(--c-dark2)); color: var(--c-text); }
.section__inner { max-width: 1120px; margin: 0 auto; }
.section__head { text-align: center; margin-bottom: 60px; }
.section__title-en {
  font-family: var(--font-en); font-weight: 900;
  font-size: clamp(34px, 6vw, 60px); letter-spacing: .04em;
  line-height: 1.1;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section__title-jp {
  display: inline-block; margin-top: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .3em;
  color: var(--c-main);
}
.section--dark .section__title-jp { color: var(--c-accent); }
.section__title-jp::before, .section__title-jp::after {
  content: "─"; margin: 0 10px; opacity: .5;
}

/* セクションタイトル: 1文字ずつ回転しながら飛び出す */
.section__title-en .char {
  display: inline-block;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(70px) rotate(20deg) scale(.5);
  filter: blur(8px);
  transition: opacity .7s var(--ease-smooth), transform .7s var(--ease-bounce), filter .7s var(--ease-smooth);
  transition-delay: calc(var(--i) * 0.05s);
}
.section__head.is-visible .section__title-en .char {
  opacity: 1; transform: none; filter: blur(0);
}

/* 巨大アウトライン文字(スクロールと連動して横に流れる) */
.has-bgtext { overflow: hidden; }
.section__bg-text {
  position: absolute; top: 26px; left: 0; z-index: 0;
  white-space: nowrap; pointer-events: none; user-select: none;
  font-family: var(--font-en); font-weight: 900; line-height: 1;
  font-size: clamp(90px, 17vw, 220px); letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(43,179,247,.12);
  will-change: transform;
}
.section--dark .section__bg-text { -webkit-text-stroke: 2px rgba(43,179,247,.12); }
.section__inner { position: relative; z-index: 1; }

/* スクロールプログレスバー */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 2000;
  width: 100%; height: 4px;
  background: var(--grad-main);
  box-shadow: 0 0 14px rgba(43,179,247,.7);
  transform: scaleX(0); transform-origin: left;
  will-change: transform;
}

/* 浮遊デコレーション(星・ハートのパララックスレイヤー) */
.deco-layer {
  position: fixed; inset: 0; z-index: 600;
  pointer-events: none; overflow: hidden;
}
.deco-layer i {
  position: absolute; top: 0; font-style: normal;
  opacity: .45; will-change: transform;
  text-shadow: 0 0 14px currentColor;
}
.deco-layer i span {
  display: inline-block;
  animation: decoSway 3.4s ease-in-out infinite alternate;
}
@keyframes decoSway {
  from { transform: translateX(-8px) rotate(-14deg) scale(.92); }
  to   { transform: translateX(8px) rotate(14deg) scale(1.08); }
}

/* マーキーのベロシティスキュー(スクロール速度で歪む) */
.marquee { transform: rotate(-1.2deg) scale(1.02) skewX(var(--skew, 0deg)); will-change: transform; }
.marquee--footer { transform: skewX(var(--skew, 0deg)); }

/* ============================================================
   スクロールで膨らむハートバルーン
   (各セクション背景でパステルハートが膨張→ふわっと消える)
   ============================================================ */
.section__balloon {
  position: absolute; top: 50%; left: 50%; z-index: 0;
  width: min(64vw, 560px); aspect-ratio: 1;
  pointer-events: none;
  transform: translate(-50%, -55%) scale(var(--bs, .15));
  opacity: var(--bo, 0);
  filter: drop-shadow(0 0 70px var(--bc, #ffd1dd)) blur(1px);
  will-change: transform, opacity;
}
.section__balloon i {
  position: absolute; inset: 18%;
  background: radial-gradient(circle at 35% 30%, #fff6, transparent 55%), var(--bc, #ffd1dd);
  transform: rotate(45deg);
}
.section__balloon i::before, .section__balloon i::after {
  content: ""; position: absolute; width: 100%; height: 100%;
  border-radius: 50%; background: inherit;
}
.section__balloon i::before { top: -50%; left: 0; }
.section__balloon i::after { left: -50%; top: 0; }

/* ============================================================
   ハートゲージ(左下・スクロール量でハートが満ちる)
   ============================================================ */
.heart-gauge {
  position: fixed; left: 22px; bottom: 22px; z-index: 900;
  width: 52px; height: 47px; pointer-events: none;
  filter: drop-shadow(0 4px 16px rgba(43,179,247,.5));
  animation: gaugePulse 1.6s ease-in-out infinite;
}
@keyframes gaugePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.09); }
}
.heart-gauge.is-full { animation: gaugeParty .5s var(--ease-bounce) infinite alternate; }
@keyframes gaugeParty {
  from { transform: scale(1) rotate(-6deg); }
  to   { transform: scale(1.25) rotate(6deg); }
}
.heart-gauge svg { width: 100%; height: 100%; overflow: visible; }

/* ============================================================
   紙吹雪バースト(見出し出現時・ゲージ満タン時)
   ============================================================ */
.section__head { position: relative; }
.burst {
  position: absolute; left: 50%; top: 50%; z-index: 6;
  pointer-events: none;
}
.burst i {
  position: absolute; font-style: normal;
  font-size: var(--fs, 18px);
  animation: burstFly .95s var(--ease-smooth) forwards;
}
@keyframes burstFly {
  0%   { opacity: 1; transform: translate(0, 0) scale(.3) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.15) rotate(var(--rr)); }
}

/* スクロール出現アニメーション */
.reveal { opacity: 0; transform: translateY(46px); transition: opacity .9s var(--ease-smooth), transform .9s var(--ease-smooth); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-60px); }
.reveal--right { transform: translateX(60px); }
.reveal--zoom { transform: scale(.8); }
.reveal--left.is-visible, .reveal--right.is-visible, .reveal--zoom.is-visible { transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(50px) scale(.92) rotate(2.5deg); filter: blur(5px); transition: opacity .8s var(--ease-smooth), transform .8s var(--ease-bounce), filter .8s var(--ease-smooth); }
[data-stagger].is-visible > * { opacity: 1; transform: none; filter: blur(0); }

/* NEWSリストだけは左右から交互にスライドイン */
.news-list[data-stagger] > *:nth-child(odd) { transform: translateX(-120px) rotate(-2deg) scale(.95); }
.news-list[data-stagger] > *:nth-child(even) { transform: translateX(120px) rotate(2deg) scale(.95); }
.news-list[data-stagger].is-visible > * { transform: none; }
[data-stagger].is-visible > *:nth-child(1) { transition-delay: .05s; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: .15s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: .25s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: .35s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: .45s; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: .55s; }
[data-stagger].is-visible > *:nth-child(7) { transition-delay: .65s; }
[data-stagger].is-visible > *:nth-child(8) { transition-delay: .75s; }

/* ボタン */
.btn {
  position: relative; display: inline-block;
  padding: 15px 42px; border-radius: 999px;
  font-family: var(--font-en); font-weight: 700; font-size: 14px;
  letter-spacing: .12em; color: #fff;
  background: var(--grad-main); background-size: 200% 200%;
  box-shadow: 0 8px 24px rgba(43,179,247,.4);
  overflow: hidden;
  transition: transform .3s var(--ease-bounce), box-shadow .3s;
  animation: gradShift 5s ease infinite;
  border: none; cursor: pointer;
}
@keyframes gradShift { 0%,100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
.btn:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 14px 34px rgba(43,179,247,.55); }
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg);
  transition: left .6s;
}
.btn:hover::after { left: 130%; }
.btn--ghost {
  background: transparent;
  border: 2px solid var(--c-main);
  color: var(--c-main);
  box-shadow: none; animation: none;
}
.btn--ghost:hover { background: rgba(43,179,247,.1); box-shadow: none; }

/* ============================================================
   7. NEWS
   ============================================================ */
.news-list { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.news-item {
  display: flex; align-items: center; gap: 22px;
  background: #fff; border-radius: 18px;
  padding: 20px 28px;
  box-shadow: 0 4px 20px rgba(43,179,247,.1);
  transition: transform .35s var(--ease-bounce), box-shadow .35s;
  position: relative; overflow: hidden;
}
.news-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--grad-main);
  transform: scaleY(0); transition: transform .35s var(--ease-smooth);
}
.news-item:hover { transform: translateX(10px); box-shadow: 0 10px 32px rgba(43,179,247,.25); }
.news-item:hover::before { transform: scaleY(1); }
.news-item__date {
  font-family: var(--font-en); font-weight: 700; font-size: 13px;
  color: var(--c-sub); min-width: 88px;
}
.news-item__cat {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: #fff; background: var(--c-main);
  border-radius: 999px; padding: 3px 12px; white-space: nowrap;
}
.news-item__title {
  font-weight: 700; font-size: 15px; flex: 1;
  line-height: 1.75;
  /* 単語や「」の途中で不自然に折り返さないようにします */
  overflow-wrap: anywhere; line-break: strict;
}
.news-item__arrow { color: var(--c-main); font-weight: 900; transition: transform .3s; }
.news-item:hover .news-item__arrow { transform: translateX(6px); }
.section__more { text-align: center; margin-top: 44px; }

/* スマホ: 日付・カテゴリを上段、タイトルを下段の横幅いっぱいに置いて読みやすくします */
@media (max-width: 700px) {
  .news-list { gap: 12px; }
  .news-item {
    flex-wrap: wrap; align-items: center;
    gap: 8px 12px; padding: 16px 18px;
  }
  .news-item__date { min-width: 0; font-size: 12px; }
  .news-item__cat { font-size: 9px; padding: 3px 10px; }
  .news-item__arrow { margin-left: auto; }
  .news-item__title {
    order: 9; flex: 1 0 100%;
    font-size: 15px; line-height: 1.8;
  }
  .news-item:hover { transform: none; }
}

/* ============================================================
   8. MEMBER
   ============================================================ */
.member-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.member-card {
  --m-color: var(--c-main);
  background: #fff;
  border: 1px solid rgba(43,179,247,.18);
  border-radius: 24px; overflow: hidden;
  transition: transform .4s var(--ease-bounce), box-shadow .4s, border-color .4s;
  position: relative;
  box-shadow: 0 6px 24px rgba(43,179,247,.08);
}
.member-card:hover {
  transform: translateY(-12px) rotate(-1deg);
  border-color: var(--m-color);
  box-shadow: 0 20px 44px color-mix(in srgb, var(--m-color) 45%, transparent);
}
.member-card__photo {
  aspect-ratio: 3 / 3.6; position: relative; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--m-color) 70%, #fff), var(--m-color));
  display: grid; place-content: center;
}
.member-card__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-smooth);
}
.member-card:hover .member-card__photo img { transform: scale(1.08); }
.member-card__initial {
  font-family: var(--font-en); font-weight: 900; font-size: 84px;
  color: rgba(255,255,255,.85); text-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.member-card__color-tag {
  position: absolute; top: 14px; left: 14px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--m-color);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  animation: pulseTag 2s ease-in-out infinite;
}
@keyframes pulseTag { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.member-card__body { padding: 20px 22px 26px; text-align: center; }
.member-card__role {
  font-family: var(--font-en); font-size: 10px; font-weight: 700;
  letter-spacing: .25em; color: var(--m-color);
}
.member-card__name { font-size: 21px; font-weight: 900; margin-top: 4px; }
.member-card__name-en {
  font-family: var(--font-en); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; opacity: .55; margin-top: 2px;
}
.member-card__catch {
  margin-top: 12px; font-size: 12.5px; line-height: 1.7; opacity: .8;
}

/* ============================================================
   9. SCHEDULE
   ============================================================ */
.schedule-list { max-width: 780px; margin: 0 auto; position: relative; padding-left: 34px; }
.schedule-embed { max-width: 780px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(43,179,247,.15); }
.schedule-embed iframe { display: block; width: 100%; min-height: 700px; border: 0; }
@media (max-width: 700px) { .schedule-embed iframe { min-height: 560px; } }
.schedule-empty { padding-left: 0; opacity: .6; font-size: 14px; }
.schedule-list::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 2px; background: var(--grad-main);
}
.schedule-item { position: relative; padding: 0 0 34px 24px; }
.schedule-item::before {
  content: ""; position: absolute; left: -32px; top: 6px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #fff; border: 4px solid var(--c-main);
  box-shadow: 0 0 0 5px rgba(43,179,247,.18);
  animation: pulseTag 2.4s ease-in-out infinite;
}
.schedule-item__date {
  font-family: var(--font-en); font-weight: 900; font-size: 18px;
  color: var(--c-sub);
}
.schedule-item__date small { font-size: 11px; letter-spacing: .1em; margin-left: 8px; color: var(--c-main); }
.schedule-item__title { font-size: 17px; font-weight: 700; margin-top: 2px; }
.schedule-item__place { font-size: 13px; opacity: .65; margin-top: 2px; }
.schedule-item__link {
  display: inline-block; margin-top: 8px;
  font-size: 12px; font-weight: 700; color: var(--c-main);
  border-bottom: 2px solid currentColor;
  transition: opacity .3s;
}
.schedule-item__link:hover { opacity: .6; }
.schedule-item__link--cal { margin-left: 16px; color: var(--c-accent); }

/* ============================================================
   10. DISCOGRAPHY
   ============================================================ */
.disco-grid {
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.disco-card { perspective: 800px; text-align: center; }
.disco-card__jacket {
  aspect-ratio: 1; border-radius: 16px; overflow: hidden; position: relative;
  background: var(--grad-main);
  display: grid; place-content: center;
  box-shadow: 0 12px 34px rgba(43,179,247,.28);
  transition: transform .5s var(--ease-smooth), box-shadow .5s;
  transform-style: preserve-3d;
}
.disco-card:hover .disco-card__jacket {
  transform: rotateY(12deg) rotateX(6deg) scale(1.05);
  box-shadow: 0 24px 54px rgba(43,179,247,.45);
}
.disco-card__jacket img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.disco-card__jacket-text {
  font-family: var(--font-en); font-weight: 900; font-size: 22px;
  color: #fff; padding: 12px; text-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.disco-card__type {
  display: inline-block; margin-top: 16px;
  font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: .2em;
  color: var(--c-sub); border: 1.5px solid currentColor;
  border-radius: 999px; padding: 3px 14px;
}
.disco-card__title { font-size: 17px; font-weight: 900; margin-top: 8px; }
.disco-card__date { font-family: var(--font-en); font-size: 12px; opacity: .55; margin-top: 2px; }

/* GOODS(ディスコカードを流用) */
.goods-price {
  display: inline-block; margin-top: 6px;
  font-weight: 900; font-size: 15px;
  color: var(--c-main);
}

/* SNS埋め込み */
.sns-embeds {
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-items: center;
}
.sns-embeds__item {
  width: 100%; max-width: 480px;
  background: #fff;
  border: 1px solid rgba(43,179,247,.18);
  border-radius: 20px; padding: 18px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(43,179,247,.1);
}

/* ============================================================
   11. MOVIE
   ============================================================ */
.movie-grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  max-width: 1120px; margin: 0 auto;
}
.movie-wrap {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(43,179,247,.25);
  position: relative;
  background: var(--grad-main);
  padding: 3px;
  transition: transform .35s var(--ease-bounce), box-shadow .35s;
}
.movie-wrap:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(43,179,247,.4); }
.movie-wrap iframe, .movie-wrap .movie-placeholder {
  display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 17px;
}
.movie-placeholder {
  background: #eaf8ff;
  display: grid; place-content: center; text-align: center; color: var(--c-text);
  font-size: 12px;
}
.movie-placeholder__icon {
  width: 54px; height: 54px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--grad-main);
  display: grid; place-content: center;
  animation: pulseTag 2s ease-in-out infinite;
}
.movie-placeholder__icon::after {
  content: ""; display: block;
  border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  margin-left: 4px;
}

/* ============================================================
   12. CONTACT
   ============================================================ */
.contact-box {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: #fff; border-radius: 28px;
  padding: 56px 40px;
  box-shadow: 0 16px 50px rgba(43,179,247,.16);
  position: relative; overflow: hidden;
}
.contact-box::before {
  content: ""; position: absolute; top: -40%; left: -20%;
  width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,179,247,.12), transparent 70%);
  animation: blobFloat 10s ease-in-out infinite alternate;
}
.contact-box p { margin-bottom: 28px; font-size: 14.5px; position: relative; }

/* Contact Form 7 をテーマの雰囲気に合わせる */
.contact-box--form { max-width: 720px; text-align: left; }
.contact-box--form > p { text-align: center; }
.contact-form { position: relative; }
.contact-form .wpcf7-form > p { margin: 0 0 18px; font-size: 14.5px; }
.contact-form label { display: block; font-weight: 700; font-size: 13.5px; color: var(--c-main); letter-spacing: .06em; }
.contact-form label .req { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #ff9dc6; color: #fff; font-size: 10.5px; letter-spacing: .1em; vertical-align: middle; }
.contact-form label > span.wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.contact-form .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%; box-sizing: border-box; padding: 14px 16px;
  border: 2px solid rgba(43,179,247,.25); border-radius: 14px;
  background: #f6fcff; color: #333; font-family: var(--font-jp); font-size: 15px; font-weight: 400;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form .wpcf7-form-control:not(.wpcf7-submit):focus {
  outline: none; border-color: var(--c-main); background: #fff; box-shadow: 0 0 0 4px rgba(43,179,247,.15);
}
.contact-form textarea.wpcf7-form-control { min-height: 180px; resize: vertical; }
.contact-form .wpcf7-submit {
  display: inline-block; padding: 15px 48px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font-en); font-weight: 700; font-size: 14px; letter-spacing: .12em; color: #fff;
  background: var(--grad-main); background-size: 200% 200%;
  box-shadow: 0 8px 24px rgba(43,179,247,.4); transition: transform .2s, box-shadow .2s;
}
.contact-form .wpcf7-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(43,179,247,.5); }
.contact-form .wpcf7-submit:disabled { opacity: .6; cursor: default; transform: none; }
.contact-form p:has(.wpcf7-submit) { text-align: center; margin-top: 8px; }
.contact-form .wpcf7-spinner { display: block; margin: 10px auto 0; }
.contact-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 12.5px; color: #ff5c8a; font-weight: 700; }
.contact-form .wpcf7-response-output {
  margin: 20px 0 0; padding: 14px 18px; border-radius: 14px; font-size: 14px; text-align: center;
  border: 2px solid rgba(43,179,247,.35) !important; background: #f6fcff;
}
.contact-form .wpcf7-form.invalid .wpcf7-response-output,
.contact-form .wpcf7-form.failed .wpcf7-response-output { border-color: #ff9dc6 !important; background: #fff5f9; }
.contact-form .wpcf7-form.sent .wpcf7-response-output { border-color: var(--c-main) !important; }
@media (max-width: 700px) { .contact-box--form { padding: 36px 20px; } }

/* ============================================================
   13. フッター
   ============================================================ */
.site-footer {
  background: linear-gradient(160deg, var(--c-main), var(--c-sub)); color: #fff;
  text-align: center; padding: 70px 5vw 30px;
  position: relative; overflow: hidden;
}
.site-footer__logo {
  font-family: var(--font-en); font-weight: 900; font-size: 30px; letter-spacing: .1em;
  color: #fff; text-shadow: 0 4px 18px rgba(0,80,140,.25);
}
.sns-links { display: flex; justify-content: center; gap: 18px; margin: 30px 0; }
.sns-links a {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-content: center;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  font-family: var(--font-en); font-weight: 900; font-size: 13px;
  transition: transform .35s var(--ease-bounce), background .35s, color .35s, box-shadow .35s;
}
.sns-links a:hover {
  transform: translateY(-8px) rotate(8deg) scale(1.1);
  background: #fff; color: var(--c-main);
  box-shadow: 0 10px 26px rgba(0,80,140,.3);
}
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-bottom: 34px; }
.site-footer__nav a { font-size: 12px; font-family: var(--font-en); letter-spacing: .12em; opacity: .85; transition: opacity .3s, color .3s; }
.site-footer__nav a:hover { opacity: 1; color: #fff; text-decoration: underline; }
.site-footer__copy { font-size: 11px; opacity: .7; letter-spacing: .08em; }

/* ページトップ */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--grad-main); color: #fff; border: none; cursor: pointer;
  font-size: 20px; font-weight: 900;
  box-shadow: 0 8px 24px rgba(43,179,247,.45);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .4s, transform .4s var(--ease-bounce), visibility .4s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-6px) scale(1.1); }

/* ============================================================
   14. 下層ページ(投稿・固定ページ)
   ============================================================ */
.page-hero {
  padding: 160px 5vw 70px; text-align: center;
  background: linear-gradient(160deg, #ffffff, var(--c-dark));
  color: var(--c-text); position: relative; overflow: hidden;
}
.page-hero .hero__blob { opacity: .3; }
.page-hero__title {
  position: relative; font-family: var(--font-en); font-weight: 900; font-size: clamp(30px,5vw,52px);
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero__sub { position: relative; font-size: 13px; letter-spacing: .3em; color: var(--c-accent); margin-top: 6px; }
/* お問い合わせ完了(サンクス)ページ */
.thanks-body { padding: 60px 5vw 120px; }
.thanks-card {
  max-width: 680px; margin: 0 auto; text-align: center;
  background: #fff; border-radius: 28px; padding: 56px 40px 48px;
  box-shadow: 0 16px 50px rgba(43,179,247,.16); position: relative; overflow: hidden;
}
.thanks-card::before {
  content: ""; position: absolute; top: -40%; right: -20%; width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,157,198,.18), transparent 70%);
  animation: blobFloat 10s ease-in-out infinite alternate;
}
.thanks-card > * { position: relative; }
.thanks-card__icon { color: var(--c-main); margin-bottom: 14px; }
.thanks-card__icon svg { display: inline-block; }
.thanks-card__check { stroke-dasharray: 60; stroke-dashoffset: 60; animation: thanksCheck .7s .4s ease forwards; }
@keyframes thanksCheck { to { stroke-dashoffset: 0; } }
.thanks-card__title { font-size: clamp(20px, 3vw, 26px); margin: 0 0 18px; font-weight: 900; }
.thanks-card__text { font-size: 14.5px; line-height: 2; margin: 0 0 30px; }
.thanks-card__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.thanks-card__follow { margin: 36px 0 12px; font-size: 12.5px; letter-spacing: .15em; color: var(--c-accent); font-weight: 700; }
.thanks-card__sns .sns-links { justify-content: center; }
@media (max-width: 700px) { .thanks-card { padding: 40px 22px 36px; } }

.entry-body { max-width: 760px; margin: 0 auto; padding: 70px 5vw 110px; }
.entry-body h2 {
  font-size: 24px; margin: 48px 0 20px; padding-bottom: 10px;
  border-bottom: 3px solid; border-image: var(--grad-main) 1;
}
.entry-body h3 { font-size: 19px; margin: 36px 0 14px; padding-left: 14px; border-left: 5px solid var(--c-main); }
.entry-body p { margin-bottom: 1.4em; }
.entry-body img { border-radius: 16px; margin: 24px 0; }
.entry-meta { text-align: center; margin-bottom: 40px; }

/* メンバー詳細 */
.member-detail { display: grid; gap: 50px; grid-template-columns: minmax(0,380px) 1fr; align-items: start; max-width: 980px; margin: 0 auto; padding: 70px 5vw 110px; }
@media (max-width: 760px) { .member-detail { grid-template-columns: 1fr; } }
.member-detail__photo { border-radius: 24px; overflow: hidden; box-shadow: 0 18px 44px rgba(123,47,247,.2); }
.member-detail__profile dt { font-weight: 900; color: var(--c-main); font-size: 12px; letter-spacing: .15em; margin-top: 18px; }
.member-detail__profile dd { font-size: 15px; }
.oshi-heart {
  display: inline-block; font-size: 34px; line-height: 1;
  filter: drop-shadow(0 2px 10px currentColor);
  animation: oshiBeat 1.6s ease-in-out infinite;
}
@keyframes oshiBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.25); }
  40% { transform: scale(1); }
  55% { transform: scale(1.18); }
}

/* ============================================================
   14.5 アニメーション「控えめ」モード
   (カスタマイザーで選択するとbodyに .pai-anim-light が付く)
   ============================================================ */
.pai-anim-light .deco-layer,
.pai-anim-light .section__balloon,
.pai-anim-light .section__bg-text,
.pai-anim-light .burst,
.pai-anim-light .hero__sparkle { display: none !important; }

/* ============================================================
   15. ユーティリティ・reduced motion
   ============================================================ */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

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