/* =========================================================================
 * style.css — DayDream Plus 公式サイト
 * -------------------------------------------------------------------------
 * 世界観：夜空 × 夢 × きらめき
 *   黒ベース／青→藍→紫のグラデーション／ガラス（glassmorphism）／星空
 *
 * 目次
 *   1. デザイントークン（変数）
 *   2. ベース / リセット
 *   3. 背景（オーロラ・星空）
 *   4. ナビゲーション
 *   5. 共通パーツ
 *   6. ヒーロー
 *   7. ホーム内ブロック
 *   8. メンバー（写真＋名前カード）
 *   9. ライブ
 *  10. お知らせ
 *  11. お問い合わせ
 *  12. フッター
 *  13. アニメーション
 *  14. レスポンシブ
 *  15. サイト設定（見出し＆本文：フォント／サイズ／グラデ／絵文字／SNS）
 *  16. メンバー詳細モーダル
 * ========================================================================= */

/* ------------------------------------------------------------------ */
/* 1. デザイントークン                                                 */
/* ------------------------------------------------------------------ */
:root {
  --grad-start: #3b82f6;
  --grad-mid:   #6366f1;
  --grad-end:   #a855f7;
  --brand-gradient: linear-gradient(135deg, var(--grad-start), var(--grad-mid), var(--grad-end));

  --accent:      #7c8bff;
  --accent-soft: rgba(124, 139, 255, 0.16);
  --danger:      #ff5d73;
  --success:     #34d399;

  --bg-0: #05060d;
  --bg-1: #0a0c18;
  --text-1: #f3f5ff;
  --text-2: #aab0d4;
  --text-3: #6e74a0;

  --glass-bg:     rgba(255, 255, 255, 0.05);
  --glass-bg-2:   rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-hover:  rgba(255, 255, 255, 0.10);

  --radius:    20px;
  --radius-sm: 14px;
  --radius-xs: 9px;
  --shadow-glass: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft:  0 6px 22px rgba(0, 0, 0, 0.3);

  --t-fast: 0.18s ease;
  --t-mid:  0.32s cubic-bezier(0.22, 1, 0.36, 1);

  --maxw: 1120px;
  --nav-h: 70px;

  /* サイト設定で上書きされる変数 */
  --heading-scale: 1;
  --heading-font: "Poppins", sans-serif;
  --body-scale: 1;
  --body-font: "Zen Kaku Gothic New", sans-serif;
}

/* ------------------------------------------------------------------ */
/* 2. ベース / リセット                                                */
/* ------------------------------------------------------------------ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Zen Kaku Gothic New", "Poppins", system-ui, sans-serif;
  color: var(--text-1);
  background: var(--bg-0);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
body.modal-lock { overflow: hidden; }

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

::selection { background: var(--accent-soft); }

.container {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

.eyebrow {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

/* ------------------------------------------------------------------ */
/* 3. 背景（オーロラ・星空）                                            */
/* ------------------------------------------------------------------ */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(59, 130, 246, 0.30), transparent 60%),
    radial-gradient(55% 45% at 90% 10%, rgba(168, 85, 247, 0.26), transparent 60%),
    radial-gradient(70% 60% at 60% 100%, rgba(99, 102, 241, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 60%, var(--bg-0));
}
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.stars span {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.7;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
  animation-name: twinkle;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

/* ------------------------------------------------------------------ */
/* 4. ナビゲーション                                                   */
/* ------------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 10, 22, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}
.brand b { color: var(--accent); font-weight: 800; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}
.nav-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 9px 15px;
  border-radius: 999px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-menu a:hover { color: var(--text-1); background: var(--glass-bg); }
.nav-menu a[aria-current="page"] { color: var(--text-1); background: var(--accent-soft); }
.nav-menu a.nav-cta {
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}
.nav-menu a.nav-cta:hover { filter: brightness(1.08); background: var(--brand-gradient); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border-radius: 12px;
  font-size: 1.2rem;
  color: var(--text-1);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

/* ------------------------------------------------------------------ */
/* 5. 共通パーツ                                                       */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.97rem;
  transition: transform var(--t-fast), filter var(--t-fast), background var(--t-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.45);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-1);
}
.btn-ghost:hover { background: var(--glass-hover); }

.section {
  padding-block: clamp(56px, 9vw, 104px);
}
.section-head {
  margin-bottom: 38px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.section-title .accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub { color: var(--text-2); max-width: 40ch; }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glass);
}

.empty {
  text-align: center;
  color: var(--text-3);
  padding: 46px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty i { font-size: 2.2rem; opacity: 0.5; }

/* ------------------------------------------------------------------ */
/* 6. ヒーロー                                                         */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 88px) clamp(40px, 6vw, 72px);
  text-align: center;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-shadow: 0 6px 40px rgba(99, 102, 241, 0.4);
}
.hero-title span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--text-2);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  max-width: 36ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-banner {
  margin-top: clamp(28px, 5vw, 52px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  position: relative;
}
.hero-banner::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(5, 6, 13, 0.55));
}
.hero-banner img { width: 100%; height: auto; }

/* ------------------------------------------------------------------ */
/* 7. ホーム内ブロック                                                 */
/* ------------------------------------------------------------------ */
.home-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: start;
}
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.block-head h2 {
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.block-head h2 i { color: var(--accent); }
.block-more {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-fast);
}
.block-more:hover { gap: 10px; }

.mini-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}
.mini-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: transform var(--t-mid), background var(--t-fast);
  text-align: center;
  width: 100%;
}
.mini-member:hover { transform: translateY(-4px); background: var(--glass-hover); }
.mini-photo {
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--glass-border);
}
.mini-photo img { width: 100%; height: 100%; object-fit: cover; }
.mini-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.mini-member b { font-size: 0.98rem; }
.mini-member small { color: var(--text-3); font-size: 0.78rem; }

/* ------------------------------------------------------------------ */
/* 8. メンバー（写真＋名前カード／クリックで詳細モーダル）              */
/* ------------------------------------------------------------------ */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.member-card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
  cursor: pointer;
}
.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(99, 102, 241, 0.3);
  border-color: rgba(124, 139, 255, 0.4);
}
.member-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.member-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, rgba(99,102,241,0.18), rgba(168,85,247,0.12));
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--accent); font-size: 3rem; opacity: 0.5;
}
.member-cap {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.member-name { font-size: 1.5rem; font-weight: 700; }
.member-role {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 12px;
  border-radius: 999px;
}
.member-more {
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t-fast), gap var(--t-fast);
}
.member-card:hover .member-more { color: var(--accent); gap: 9px; }

.member-meta { display: flex; gap: 22px; flex-wrap: wrap; }
.member-meta div { display: flex; flex-direction: column; }
.member-meta dt { font-size: 0.72rem; color: var(--text-3); letter-spacing: 0.06em; }
.member-meta dd { font-size: 0.95rem; font-weight: 600; }
.member-profile { color: var(--text-2); font-size: 0.93rem; }
.member-sns { display: flex; gap: 10px; margin-top: 4px; }
.member-sns a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-2);
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.member-sns a:hover { color: #fff; background: var(--brand-gradient); transform: translateY(-2px); }

/* ------------------------------------------------------------------ */
/* 9. ライブ                                                           */
/* ------------------------------------------------------------------ */
.lives-list { display: flex; flex-direction: column; gap: 18px; }
.live-card {
  display: flex;
  gap: 22px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-mid), border-color var(--t-mid);
}
.live-card:hover { transform: translateY(-3px); border-color: rgba(124, 139, 255, 0.35); }
.live-card.featured {
  border-color: rgba(124, 139, 255, 0.5);
  background: linear-gradient(135deg, rgba(99,102,241,0.16), var(--glass-bg));
}
.live-thumb {
  flex: 0 0 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  align-self: flex-start;
}
.live-thumb img { width: 100%; height: auto; object-fit: contain; display: block; }
.live-main { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 0; }
.live-date { display: flex; align-items: baseline; gap: 10px; }
.live-md {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.live-md i { font-style: normal; opacity: 0.5; margin-inline: 1px; }
.live-wd { color: var(--text-2); font-size: 0.92rem; font-weight: 600; }
.live-title { font-size: 1.28rem; font-weight: 700; }
.live-venue {
  color: var(--text-2);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}
.live-venue i { color: var(--accent); }
.live-venue span { color: var(--text-3); font-size: 0.85rem; }
.live-desc { color: var(--text-2); font-size: 0.92rem; }
.live-map {
  align-self: flex-start;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 2px;
}
.live-map:hover { text-decoration: underline; }

.past-toggle { margin-top: 56px; }

/* ------------------------------------------------------------------ */
/* 10. お知らせ                                                        */
/* ------------------------------------------------------------------ */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-bottom: 34px;
}
.chip {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: color var(--t-fast), background var(--t-fast);
}
.chip:hover { color: var(--text-1); background: var(--glass-hover); }
.chip.active { color: #fff; background: var(--brand-gradient); border-color: transparent; }

.news-list { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-inline: auto; }
.news-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.news-item:hover { transform: translateX(4px); border-color: rgba(124, 139, 255, 0.3); }
.news-thumb {
  flex: 0 0 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.news-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-cat {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  color: #fff;
}
.news-cat.info  { background: #5b8def; }
.news-cat.live  { background: #8b5cf6; }
.news-cat.media { background: #06b6d4; }
.news-cat.goods { background: #ec4899; }
.news-cat.imp   { background: var(--danger); }
.news-imp { font-size: 0.74rem; font-weight: 700; color: var(--danger); }
.news-date { font-size: 0.8rem; color: var(--text-3); margin-left: auto; font-family: "Poppins", sans-serif; }
.news-title { font-size: 1.12rem; font-weight: 700; }
.news-text { color: var(--text-2); font-size: 0.93rem; }

/* ------------------------------------------------------------------ */
/* 11. お問い合わせ                                                    */
/* ------------------------------------------------------------------ */
.contact-wrap { max-width: 620px; margin-inline: auto; }
.form-card { padding: clamp(24px, 4vw, 40px); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--danger); margin-left: 4px; }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-1);
  font-family: inherit;
  font-size: 0.97rem;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.09);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }

.form-status {
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-status.info    { background: var(--accent-soft); color: var(--accent); }
.form-status.success { background: rgba(52, 211, 153, 0.16); color: var(--success); }
.form-status.error   { background: rgba(255, 93, 115, 0.16); color: var(--danger); }

.form-actions { display: flex; justify-content: flex-end; }
.contact-note {
  text-align: center;
  color: var(--text-3);
  font-size: 0.85rem;
  margin-top: 18px;
}

/* ------------------------------------------------------------------ */
/* 12. フッター                                                        */
/* ------------------------------------------------------------------ */
.footer {
  margin-top: clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--glass-border);
  background: rgba(8, 10, 22, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.footer-inner {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
  padding-block: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer .brand { font-size: 1.3rem; }
.footer-note { color: var(--text-2); font-size: 0.95rem; }
.footer-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: var(--text-2);
  font-size: 0.9rem;
  padding: 6px 13px;
  border-radius: 999px;
  transition: color var(--t-fast), background var(--t-fast);
}
.footer-links a:hover { color: var(--text-1); background: var(--glass-bg); }
.copy { color: var(--text-3); font-size: 0.8rem; font-family: "Poppins", sans-serif; }

/* ------------------------------------------------------------------ */
/* 12.5 画像保護（透かし・ドラッグ抑制）                                */
/* ------------------------------------------------------------------ */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
.protect { position: relative; }
.protect::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27300%27%20height%3D%27160%27%3E%3Ctext%20x%3D%276%27%20y%3D%2786%27%20transform%3D%27rotate%28-30%20150%2080%29%27%20font-family%3D%27Arial%2C%20Helvetica%2C%20sans-serif%27%20font-weight%3D%27bold%27%20font-size%3D%2716%27%20fill%3D%27rgba%28255%2C255%2C255%2C0.18%29%27%3EDayDream%20Plus%20Official%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ------------------------------------------------------------------ */
/* 13. アニメーション                                                  */
/* ------------------------------------------------------------------ */
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50%      { opacity: 0.95; transform: scale(1.15); }
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------------ */
/* 14. レスポンシブ                                                    */
/* ------------------------------------------------------------------ */
@media (max-width: 880px) {
  .home-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 22px;
    background: rgba(8, 10, 22, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-fast), transform var(--t-fast);
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 13px 16px; border-radius: var(--radius-xs); }

  .live-card { flex-direction: column; gap: 16px; }
  .live-thumb { flex-basis: auto; width: 100%; }
  .news-item { flex-direction: column; }
  .news-thumb { flex-basis: auto; width: 100%; height: 160px; }
  .news-date { margin-left: 0; }
}

/* ------------------------------------------------------------------ */
/* 15. サイト設定の反映（管理画面から）                                  */
/*     見出し・本文ともに：フォント種類／サイズ倍率／グラデーション       */
/* ------------------------------------------------------------------ */

/* ── 見出しサイズ（--heading-scale 倍率。既定 1 で元サイズ）── */
.hero-title    { font-size: calc(clamp(2.8rem, 9vw, 5.6rem) * var(--heading-scale)); }
.section-title { font-size: calc(clamp(1.7rem, 4vw, 2.5rem) * var(--heading-scale)); }
.block-head h2 { font-size: calc(1.3rem  * var(--heading-scale)); }
.live-title    { font-size: calc(1.28rem * var(--heading-scale)); }
.news-title    { font-size: calc(1.12rem * var(--heading-scale)); }
.member-name   { font-size: calc(1.5rem  * var(--heading-scale)); }

/* ── 見出しフォント差し替え（cust-font のときだけ）── */
body.cust-font .hero-title,
body.cust-font .section-title,
body.cust-font .block-head h2,
body.cust-font .live-title,
body.cust-font .news-title,
body.cust-font .member-name { font-family: var(--heading-font); }

/* ── 見出し全体グラデーション（cust-grad のときだけ）── */
body.cust-grad .hero-title,
body.cust-grad .section-title,
body.cust-grad .block-head h2,
body.cust-grad .live-title,
body.cust-grad .news-title,
body.cust-grad .member-name {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
body.cust-grad .block-head h2 i {
  -webkit-text-fill-color: initial;
  color: var(--accent);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

/* ── 本文サイズ（--body-scale 倍率。既定 1 で元サイズ）── */
.hero-sub      { font-size: calc(clamp(1rem, 2.4vw, 1.18rem) * var(--body-scale)); }
.section-sub   { font-size: calc(1rem    * var(--body-scale)); }
.live-desc     { font-size: calc(0.92rem * var(--body-scale)); }
.live-venue    { font-size: calc(0.95rem * var(--body-scale)); }
.news-text     { font-size: calc(0.93rem * var(--body-scale)); }
.member-profile{ font-size: calc(0.93rem * var(--body-scale)); }

/* ── 本文フォント差し替え（cust-bodyfont のときだけ）── */
body.cust-bodyfont .hero-sub,
body.cust-bodyfont .section-sub,
body.cust-bodyfont .live-desc,
body.cust-bodyfont .live-venue,
body.cust-bodyfont .news-text,
body.cust-bodyfont .member-profile,
body.cust-bodyfont .member-meta dd { font-family: var(--body-font); }

/* ── 本文グラデーション（cust-bodygrad のときだけ）── */
body.cust-bodygrad .hero-sub,
body.cust-bodygrad .section-sub,
body.cust-bodygrad .live-desc,
body.cust-bodygrad .news-text,
body.cust-bodygrad .member-profile {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── ヒーローの絵文字（グラデのクリップを解除して通常色で表示）── */
.hero-title .hero-emoji {
  -webkit-text-fill-color: initial;
  background: none;
  color: initial;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: none;
  margin-inline: 0.18em;
}

/* ── フッターの SNS アイコン ── */
.footer-sns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.footer-sns a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  font-size: 1.1rem;
  color: var(--text-2);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.footer-sns a:hover { color: var(--text-1); background: var(--glass-hover); transform: translateY(-2px); }

/* ------------------------------------------------------------------ */
/* 16. メンバー詳細モーダル                                             */
/* ------------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100% - 0px, 760px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px;
  animation: modalIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 999px;
  font-size: 1.1rem;
  color: var(--text-2);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: color var(--t-fast), background var(--t-fast);
  z-index: 2;
}
.modal-close:hover { color: var(--text-1); background: var(--glass-hover); }
.modal-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  align-items: start;
}
.modal-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, rgba(99,102,241,0.18), rgba(168,85,247,0.12));
}
.modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.modal-info .member-name { font-size: 1.9rem; }
.modal-info .member-role { align-self: flex-start; }
.modal-info .member-meta { gap: 26px; }
.modal-info .member-profile { color: var(--text-2); font-size: 0.96rem; line-height: 1.9; }

@media (max-width: 640px) {
  .modal-body { grid-template-columns: 1fr; gap: 18px; }
  .modal-photo { max-width: 220px; margin-inline: auto; }
  .modal-info { text-align: center; align-items: center; }
  .modal-info .member-meta { justify-content: center; }
}

/* ------------------------------------------------------------------ */
/* 17. メンバー立方体（3D CUBE）                                        */
/*     ページを開くと同時に、6人のメンバーが立方体になって回転します。  */
/* ------------------------------------------------------------------ */
.cube-stage {
  --cube-size: clamp(168px, 30vw, 260px);
  --cube-half: calc(var(--cube-size) / 2);
  position: relative;
  margin-top: clamp(30px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

/* 背後のぼんやり光 */
.cube-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--cube-size) * 2.4);
  height: calc(var(--cube-size) * 2.4);
  transform: translate(-50%, -60%);
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(124, 139, 255, 0.28), transparent 70%),
    radial-gradient(closest-side, rgba(168, 85, 247, 0.20), transparent 72%);
  filter: blur(8px);
  animation: cube-glow-pulse 6s ease-in-out infinite;
}
@keyframes cube-glow-pulse {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -60%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -60%) scale(1.08); }
}

/* 3D の舞台（遠近感） */
.cube-scene {
  width: var(--cube-size);
  height: var(--cube-size);
  perspective: 1000px;
  perspective-origin: 50% 45%;
  cursor: grab;
  z-index: 1;
}
.cube-scene.grabbing { cursor: grabbing; }

/* 立方体本体（回転は JS が制御） */
.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

/* 6つの面 */
.cube-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(160deg, rgba(30, 34, 68, 0.92), rgba(12, 14, 30, 0.92));
  box-shadow: 0 0 0 1px rgba(124, 139, 255, 0.18) inset, 0 14px 42px rgba(0, 0, 0, 0.5);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.cube-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* 写真がないときの代替 */
.cube-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.35);
  background: var(--brand-gradient);
  opacity: 0.55;
}
/* 面の下部に名前 */
.cube-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 10px 10px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 13, 0.88));
  pointer-events: none;
}
.cube-cap b {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.cube-cap small {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  color: var(--text-2);
}
/* 面のツヤ */
.cube-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%);
  mix-blend-mode: screen;
}

/* 面の配置（translateZ は立方体の半分） */
.f-front  { transform: translateZ(var(--cube-half)); }
.f-back   { transform: rotateY(180deg) translateZ(var(--cube-half)); }
.f-right  { transform: rotateY(90deg)  translateZ(var(--cube-half)); }
.f-left   { transform: rotateY(-90deg) translateZ(var(--cube-half)); }
.f-top    { transform: rotateX(90deg)  translateZ(var(--cube-half)); }
.f-bottom { transform: rotateX(-90deg) translateZ(var(--cube-half)); }

/* 床の映り込み */
.cube-floor {
  width: calc(var(--cube-size) * 1.15);
  height: 22px;
  margin-top: -6px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 139, 255, 0.42), transparent 72%);
  filter: blur(6px);
  animation: cube-floor-breathe 4.5s ease-in-out infinite;
}
@keyframes cube-floor-breathe {
  0%, 100% { transform: scaleX(1);    opacity: 0.85; }
  50%      { transform: scaleX(0.86); opacity: 0.55; }
}

.cube-hint {
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.03em;
}
.cube-hint i { margin-right: 6px; color: var(--accent); }

/* 登場アニメーション（読み込み直後） */
.cube-stage .cube-scene,
.cube-stage .cube-hint,
.cube-stage .cube-floor {
  opacity: 0;
  transform: translateY(18px) scale(0.82);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.cube-stage .cube-hint  { transition-delay: 0.5s; }
.cube-stage .cube-floor { transition-delay: 0.25s; }
.cube-stage.in .cube-scene,
.cube-stage.in .cube-hint,
.cube-stage.in .cube-floor {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 立方体は端末設定にかかわらず回します（速度は JS 側で調整） */

/* スマホ */
@media (max-width: 640px) {
  .cube-stage { --cube-size: clamp(150px, 52vw, 220px); }
  .cube-hint  { font-size: 0.72rem; }
}

/* ------------------------------------------------------------------ */
/* 18. メンバーバナー 自動演出                                          */
/*     10秒アニメーション → 10秒静止 を繰り返します。                   */
/*     動くたびに演出（fx-1〜fx-6）が切り替わります。                   */
/* ------------------------------------------------------------------ */
.hero-banner .banner-frame {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  line-height: 0;
  isolation: isolate;
}
.hero-banner .banner-frame img {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: 50% 50%;
  will-change: transform, filter;
  -webkit-user-drag: none;
}

/* --- 重ねる演出レイヤー --- */
.banner-shine,
.banner-sweep,
.banner-sparkles,
.banner-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
/* うっすら光沢 */
.banner-shine {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 38%, transparent 62%, rgba(168, 85, 247, 0.20));
  mix-blend-mode: screen;
}
/* 斜めに走る光の帯 */
.banner-sweep {
  background: linear-gradient(
    100deg,
    transparent 38%,
    rgba(255, 255, 255, 0.42) 47%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.42) 53%,
    transparent 62%
  );
  mix-blend-mode: screen;
  transform: translateX(-120%);
}
/* きらきら粒 */
.banner-sparkles {
  background-image:
    radial-gradient(2px 2px at 12% 26%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(2px 2px at 34% 68%, rgba(198, 220, 255, 0.9), transparent 60%),
    radial-gradient(1.6px 1.6px at 58% 22%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(2.2px 2.2px at 76% 58%, rgba(255, 236, 180, 0.95), transparent 60%),
    radial-gradient(1.8px 1.8px at 88% 32%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(2px 2px at 47% 84%, rgba(216, 190, 255, 0.9), transparent 60%);
  mix-blend-mode: screen;
}
/* 周辺の締め */
.banner-vignette {
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(5, 6, 13, 0.55));
}

/* --- 静止中：ほんのり呼吸だけ --- */
.hero-banner .banner-frame img { transition: transform 1.2s ease, filter 1.2s ease; }

/* ===================== 演出 1：Ken Burns（寄り引き） ================ */
.hero-banner.fx-1 img {
  animation: fx-kenburns 10s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes fx-kenburns {
  0%   { transform: scale(1)    translate(0, 0); }
  50%  { transform: scale(1.20) translate(-4%, -2.5%); }
  100% { transform: scale(1)    translate(0, 0); }
}
.hero-banner.fx-1 .banner-vignette { opacity: 0.9; }

/* ===================== 演出 2：横スライド＋光の帯 =================== */
.hero-banner.fx-2 img {
  animation: fx-pan 10s cubic-bezier(0.45, 0, 0.25, 1) both;
}
@keyframes fx-pan {
  0%   { transform: scale(1.22) translateX(7%); }
  100% { transform: scale(1.22) translateX(-7%); }
}
.hero-banner.fx-2 .banner-sweep {
  opacity: 1;
  animation: fx-sweep 3.2s ease-in-out 0.8s 2 both;
}
@keyframes fx-sweep {
  0%   { transform: translateX(-120%) skewX(-12deg); }
  100% { transform: translateX(120%)  skewX(-12deg); }
}

/* ===================== 演出 3：ズームイン＋きらめき ================= */
.hero-banner.fx-3 img {
  animation: fx-zoomglow 10s ease-in-out both;
}
@keyframes fx-zoomglow {
  0%   { transform: scale(1);    filter: brightness(1)    saturate(1); }
  45%  { transform: scale(1.17); filter: brightness(1.20) saturate(1.30); }
  100% { transform: scale(1);    filter: brightness(1)    saturate(1); }
}
.hero-banner.fx-3 .banner-sparkles {
  opacity: 1;
  animation: fx-twinkle 2.4s ease-in-out infinite;
}
@keyframes fx-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.04); }
}

/* ===================== 演出 4：3Dチルト（立体回転） ================= */
.hero-banner.fx-4 { perspective: 1200px; }
.hero-banner.fx-4 .banner-frame {
  animation: fx-tilt 10s cubic-bezier(0.4, 0, 0.2, 1) both;
  transform-style: preserve-3d;
}
@keyframes fx-tilt {
  0%   { transform: rotateY(-13deg) rotateX(6deg)  scale(0.96); }
  35%  { transform: rotateY(11deg)  rotateX(-6deg) scale(1.04); }
  70%  { transform: rotateY(-7deg)  rotateX(4deg)  scale(1.02); }
  100% { transform: rotateY(0deg)  rotateX(0deg) scale(1); }
}
.hero-banner.fx-4 .banner-shine {
  opacity: 1;
  animation: fx-shine-move 5s ease-in-out 2 alternate;
}
@keyframes fx-shine-move {
  0%   { transform: translateX(-8%); opacity: 0.5; }
  100% { transform: translateX(8%);  opacity: 1; }
}

/* ===================== 演出 5：ゆらぎフロート＋色相 ================= */
.hero-banner.fx-5 img {
  animation: fx-float 5s ease-in-out 2 both;
}
@keyframes fx-float {
  0%   { transform: translateY(0)     scale(1.06) rotate(-0.6deg); filter: hue-rotate(0deg); }
  50%  { transform: translateY(-3.4%) scale(1.13) rotate(0.6deg);  filter: hue-rotate(22deg) saturate(1.15); }
  100% { transform: translateY(0)     scale(1.06) rotate(-0.6deg); filter: hue-rotate(0deg); }
}
.hero-banner.fx-5 .banner-sparkles { opacity: 0.85; animation: fx-twinkle 3s ease-in-out infinite; }

/* ===================== 演出 6：フェード＋ぼかし戻し ================= */
.hero-banner.fx-6 img {
  animation: fx-focus 10s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes fx-focus {
  0%   { transform: scale(1.16); filter: blur(7px)   brightness(1.25); opacity: 0.55; }
  30%  { transform: scale(1.06); filter: blur(0px)   brightness(1.06); opacity: 1; }
  75%  { transform: scale(1.03); filter: blur(0px)   brightness(1); }
  100% { transform: scale(1);    filter: blur(0px)   brightness(1); }
}
.hero-banner.fx-6 .banner-sweep {
  opacity: 1;
  animation: fx-sweep 2.6s ease-in-out 4.2s 1 both;
}

/* 静止中はレイヤーをそっと消します */
.hero-banner.fx-rest .banner-shine,
.hero-banner.fx-rest .banner-sweep,
.hero-banner.fx-rest .banner-sparkles { opacity: 0; }
.hero-banner.fx-rest .banner-vignette { opacity: 0.35; }

/* 動きを減らす設定のとき：止めずに、ゆっくり控えめに動かします
   （Windows の「アニメーション効果オフ」でも演出が消えないようにするため） */
.hero-banner.fx-soft img,
.hero-banner.fx-soft .banner-frame { animation-duration: 14s !important; }
.hero-banner.fx-soft .banner-sweep,
.hero-banner.fx-soft .banner-sparkles { opacity: 0.5 !important; }

/* ------------------------------------------------------------------ */
/* 19. 宇宙の背景アニメーション（星雲・星の視差・流れ星）               */
/*     ※ 要素は app.js が自動で差し込みます                            */
/* ------------------------------------------------------------------ */
.space {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* --- 星雲（ゆっくり流れて色が変わります） --- */
.space .neb {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.space .neb-1 {
  width: 58vw; height: 58vw; left: -12vw; top: -14vw;
  background: radial-gradient(closest-side, rgba(88, 132, 255, 0.40), transparent 70%);
  animation: neb-drift-1 42s ease-in-out infinite alternate;
}
.space .neb-2 {
  width: 52vw; height: 52vw; right: -14vw; top: 6vh;
  background: radial-gradient(closest-side, rgba(186, 92, 255, 0.36), transparent 70%);
  animation: neb-drift-2 55s ease-in-out infinite alternate;
}
.space .neb-3 {
  width: 66vw; height: 66vw; left: 18vw; bottom: -26vw;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.26), transparent 70%);
  animation: neb-drift-3 68s ease-in-out infinite alternate;
}
@keyframes neb-drift-1 {
  0%   { transform: translate3d(0, 0, 0) scale(1);      opacity: 0.75; }
  100% { transform: translate3d(9vw, 7vh, 0) scale(1.2); opacity: 1; }
}
@keyframes neb-drift-2 {
  0%   { transform: translate3d(0, 0, 0) scale(1.1);     opacity: 0.6; }
  100% { transform: translate3d(-11vw, 12vh, 0) scale(1); opacity: 0.95; }
}
@keyframes neb-drift-3 {
  0%   { transform: translate3d(0, 0, 0) scale(1);        opacity: 0.5; }
  100% { transform: translate3d(-8vw, -10vh, 0) scale(1.25); opacity: 0.85; }
}

/* --- 渦巻銀河（ゆっくり回転します） --- */
.space .galaxy {
  position: absolute;
  left: 50%; top: 34%;
  width: 90vw; height: 90vw;
  transform: translate(-50%, -50%);
  background:
    conic-gradient(from 0deg,
      rgba(255, 255, 255, 0.055) 0deg,
      transparent 55deg,
      rgba(168, 85, 247, 0.075) 130deg,
      transparent 200deg,
      rgba(99, 160, 255, 0.075) 280deg,
      transparent 350deg);
  border-radius: 50%;
  filter: blur(26px);
  mix-blend-mode: screen;
  animation: galaxy-spin 150s linear infinite;
}
@keyframes galaxy-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- 星（遠景・中景。スクロールで視差移動します） --- */
.space .star-far,
.space .star-mid {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}
.space .star-far i,
.space .star-mid i {
  position: absolute;
  display: block;
  background: #fff;
  border-radius: 50%;
  animation-name: space-twinkle;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.space .star-mid i {
  box-shadow: 0 0 8px rgba(190, 215, 255, 0.9);
}
@keyframes space-twinkle {
  0%, 100% { opacity: 0.18; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.18); }
}
/* 星全体がゆっくり流れます（宇宙を進んでいる感じ） */
.space .star-far { animation: star-flow 190s linear infinite; }
.space .star-mid { animation: star-flow 120s linear infinite reverse; }
@keyframes star-flow {
  from { background-position: 0 0; }
  to   { background-position: 0 0; }
}

/* --- 流れ星 --- */
.space .shoot-layer { position: absolute; inset: 0; }
.space .shoot-layer b {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  transform-origin: right center;
  background: linear-gradient(90deg, transparent, rgba(190, 220, 255, 0.9), #fff);
  box-shadow: 0 0 12px rgba(160, 200, 255, 0.9);
}

/* オーロラ層もゆっくり色が動きます */
.aurora { animation: aurora-shift 34s ease-in-out infinite alternate; }
@keyframes aurora-shift {
  0%   { filter: hue-rotate(0deg)  saturate(1);    }
  50%  { filter: hue-rotate(14deg) saturate(1.12); }
  100% { filter: hue-rotate(-10deg) saturate(1.06); }
}

/* 端末が非力なとき（極小画面）は星の数の負荷を軽く */
@media (max-width: 480px) {
  .space .neb { filter: blur(32px); }
  .space .galaxy { display: none; }
}

/* ------------------------------------------------------------------ */
/* 20. 立方体の写真表示を修正（顔が切れないように）                     */
/*     ・写真は全体を収める（contain）                                  */
/*     ・余白は同じ写真をぼかして敷き詰め、自然な見た目に                */
/* ------------------------------------------------------------------ */
.cube-face .cube-bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  filter: blur(16px) brightness(0.5) saturate(1.25);
  transform: scale(1.12);
  z-index: 0;
}
.cube-face .cube-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;         /* 顔が切れません */
  object-position: 50% 38%;    /* 少し上寄せ（名前帯に重ならないように） */
  padding: 6px 6px 30px;       /* 下の名前帯ぶんの余白 */
  z-index: 1;
}
.cube-face .cube-cap { z-index: 2; }
.cube-face::after { z-index: 3; }
