/* ============================================================
   Milli Orbis — ポップで遊び心のあるデザイン
   フチ・図形・波・リボンで「ミリサマー × イベントサイト」風に
   ============================================================ */

:root {
  --bg: #f6f1e9;
  --bg-soft: #fffdf8;
  --card: rgba(255, 255, 255, 0.94);
  --glass: rgba(255, 255, 255, 0.85);
  --border: rgba(0, 0, 0, 0.12);
  --text: #2a2118;
  --muted: #6f6250;
  --accent: #75b1c0;
  --accent-soft: #d8ecf2;
  --accent-deep: #3d7f92;
  --grad: linear-gradient(150deg, var(--accent-soft) 0%, #ffe8cc 55%, #ffd9b0 100%);
  --ink: #33291c;
  --radius: 20px;
  --shadow: 0 6px 0 rgba(90, 75, 55, 0.1), 0 12px 30px rgba(90, 75, 55, 0.12);
  --pop-shadow: 4px 5px 0 rgba(45, 35, 20, 0.24);
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 背景: ソフトグラデ + 浮遊する図形（丸・リング・星） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--grad);
  z-index: -2;
  transition: background 0.6s;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.75) 0 26px, transparent 27px),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.6) 0 12px, transparent 13px),
    radial-gradient(circle at 6% 78%, rgba(255, 255, 255, 0.5) 0 8px, transparent 9px),
    radial-gradient(circle at 94% 64%, rgba(255, 255, 255, 0.65) 0 18px, transparent 19px),
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.4) 0 4px, transparent 5px),
    radial-gradient(circle at 30% 92%, rgba(255, 255, 255, 0.45) 0 6px, transparent 7px);
  align-items: center;
  gap: 12px;
  color: var(--text);
}

/* ============ メンバー別 背景デコレーション ============ */
.page-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
header, .talent-tabs, main, footer { position: relative; z-index: 1; }

.d-f {
  position: absolute;
  color: var(--mc, var(--accent));
  opacity: 0.55;
  line-height: 0;
  animation: dDrift var(--dur, 14s) ease-in-out infinite alternate;
}
.d-f svg { width: 100%; height: 100%; display: block; }
@keyframes dDrift {
  from { transform: translateY(-16px) rotate(-8deg); }
  to { transform: translateY(16px) rotate(8deg); }
}

/* このみ: 肉球 */
.d-paw { position: absolute; width: 84px; height: 70px; opacity: 0.5; }
.d-paw::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 34px;
  width: 46px;
  height: 34px;
  transform: translateX(-50%);
  background: var(--mc, var(--accent));
  border-radius: 46% 46% 55% 55% / 60% 60% 42% 42%;
}
.d-paw i { position: absolute; width: 17px; height: 15px; background: var(--mc, var(--accent)); border-radius: 50%; }
.d-paw i:nth-child(1) { left: 10px; top: 2px; }
.d-paw i:nth-child(2) { left: 34px; top: 0; }
.d-paw i:nth-child(3) { left: 58px; top: 2px; }
.d-paw i:nth-child(4) { left: 23px; top: 23px; }

/* ゆら: 海の泡 */
.d-bub { position: absolute; width: 70px; height: 70px; opacity: 0.7; }
.d-bub::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--mc, var(--accent));
  border-radius: 50%;
  animation: dBub 4.2s ease-in infinite;
}
@keyframes dBub {
  0% { transform: translateY(20px) scale(0.35); opacity: 0; }
  18% { opacity: 0.85; }
  100% { transform: translateY(-150px) scale(1.3); opacity: 0; }
}

/* リズ: 雨と広がる水滴 */
.d-rain { position: absolute; width: 110px; height: 200px; opacity: 0.55; }
.d-rain::before, .d-rain::after {
  content: "";
  position: absolute;
  background: var(--mc, var(--accent));
  border-radius: 999px;
}
.d-rain::before { left: 14%; top: -12px; width: 4px; height: 66px; transform: rotate(15deg); animation: dFall 2.2s linear infinite; }
.d-rain::after { left: 66%; top: -34px; width: 4px; height: 54px; transform: rotate(15deg); animation: dFall 2.7s linear 0.8s infinite; }
@keyframes dFall {
  0% { transform: translateY(-40px) rotate(15deg); opacity: 0; }
  14% { opacity: 1; }
  100% { transform: translateY(220px) rotate(15deg); opacity: 0; }
}
.d-drop { position: absolute; width: 72px; height: 72px; opacity: 0.6; }
.d-drop::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--mc, var(--accent));
  animation: dRing 3.2s ease-out infinite;
}
.d-drop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 11px;
  height: 17px;
  margin-left: -5px;
  background: var(--mc, var(--accent));
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  transform: rotate(45deg);
}
@keyframes dRing {
  0% { transform: scale(0.3); opacity: 0.95; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* レイ: スナイパー照準 */
.d-cross {
  position: absolute;
  width: 122px;
  height: 122px;
  border: 3px solid var(--mc, var(--accent));
  border-radius: 50%;
  opacity: 0.55;
  box-shadow: inset 0 0 0 15px rgba(255, 255, 255, 0.3), inset 0 0 0 18px var(--mc, var(--accent));
}
.d-cross::before, .d-cross::after { content: ""; position: absolute; background: var(--mc, var(--accent)); }
.d-cross::before { left: 50%; top: -17px; bottom: -17px; width: 3px; transform: translateX(-50%); }
.d-cross::after { top: 50%; left: -17px; right: -17px; height: 3px; transform: translateY(-50%); }

/* ぬふ: 色相環 */
.d-wheel {
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  opacity: 0.55;
  background: conic-gradient(#ff6b6b, #ffd93d, #6bcb77, #4d96ff, #b980f0, #ff6b6b);
  filter: saturate(0.85);
  animation: dSpin 26s linear infinite;
}
@keyframes dSpin { to { transform: rotate(360deg); } }

/* ツクリ: ZZZ */
.d-zzz {
  position: absolute;
  font-weight: 900;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  color: var(--mc, var(--accent));
  opacity: 0.5;
  animation: dZz 3.4s ease-in-out infinite;
}
@keyframes dZz {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
  50% { transform: translateY(-14px) scale(1.15); opacity: 0.6; }
}

/* まほろ: 苺 */
.d-straw { position: absolute; width: 120px; height: 120px; opacity: 0.5; }
.d-straw svg { width: 100%; height: 100%; display: block; }

/* index（タレントページ以外）は背景デコを薄くして文字の可読性を確保 */
body:not([data-member]) .page-deco .d-f { opacity: 0.3; }
body:not([data-member]) .page-deco .d-paw,
body:not([data-member]) .page-deco .d-bub,
body:not([data-member]) .page-deco .d-rain,
body:not([data-member]) .page-deco .d-drop,
body:not([data-member]) .page-deco .d-cross,
body:not([data-member]) .page-deco .d-wheel,
body:not([data-member]) .page-deco .d-straw { opacity: 0.38; }

/* セクション見出しのアクセント（メンバー共通の図形をSVGマスクで描画） */
.section h3::before {
  content: "";
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: 8px;
  vertical-align: -0.18em;
  background-color: var(--mc, var(--accent));
}
body[data-member="konomi"] .section h3::before {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23000" d="M50,88 C28,66 12,50 12,34 C12,22 21,12 32,12 C41,12 48,18 50,24 C52,18 59,12 68,12 C79,12 88,22 88,34 C88,50 72,66 50,88 Z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23000" d="M50,88 C28,66 12,50 12,34 C12,22 21,12 32,12 C41,12 48,18 50,24 C52,18 59,12 68,12 C79,12 88,22 88,34 C88,50 72,66 50,88 Z"/></svg>') center/contain no-repeat;
}
body[data-member="nono"] .section h3::before {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="none" stroke="%23000" stroke-width="10" stroke-linecap="round"><path d="M37,79 L37,20 L83,8 L83,60"/><circle cx="23" cy="80" r="12"/><circle cx="70" cy="70" r="12"/></g></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="none" stroke="%23000" stroke-width="10" stroke-linecap="round"><path d="M37,79 L37,20 L83,8 L83,60"/><circle cx="23" cy="80" r="12"/><circle cx="70" cy="70" r="12"/></g></svg>') center/contain no-repeat;
}
body[data-member="akubi"] .section h3::before {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23000" d="M48,6 C28,24 16,36 16,52 C16,63 24,70 34,70 C40,70 45,67 48,63 L48,72 L36,72 L30,88 L70,88 L64,72 L52,72 L52,63 C55,67 60,70 66,70 C76,70 84,63 84,52 C84,36 72,24 52,6 Z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23000" d="M48,6 C28,24 16,36 16,52 C16,63 24,70 34,70 C40,70 45,67 48,63 L48,72 L36,72 L30,88 L70,88 L64,72 L52,72 L52,63 C55,67 60,70 66,70 C76,70 84,63 84,52 C84,36 72,24 52,6 Z"/></svg>') center/contain no-repeat;
}
body[data-member="raco"] .section h3::before {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23000" d="M14,52 A36,36 0 0 1 86,52 Z"/><path d="M50,54 L20,54 M50,54 L28,46 M50,54 L50,44 M50,54 L72,46 M50,54 L80,54" stroke="#fff" stroke-width="5" stroke-linecap="round"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23000" d="M14,52 A36,36 0 0 1 86,52 Z"/><path d="M50,54 L20,54 M50,54 L28,46 M50,54 L50,44 M50,54 L72,46 M50,54 L80,54" stroke="#fff" stroke-width="5" stroke-linecap="round"/></svg>') center/contain no-repeat;
}
body[data-member="yura"] .section h3::before {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="none" stroke="%23000" stroke-width="10" stroke-linecap="round"><circle cx="50" cy="50" r="28"/><path d="M36,36 C40,30 46,27 52,26"/></g></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="none" stroke="%23000" stroke-width="10" stroke-linecap="round"><circle cx="50" cy="50" r="28"/><path d="M36,36 C40,30 46,27 52,26"/></g></svg>') center/contain no-repeat;
}
body[data-member="koma"] .section h3::before {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23000" d="M50,6 L88,28 L88,72 L50,94 L12,72 L12,28 Z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23000" d="M50,6 L88,28 L88,72 L50,94 L12,72 L12,28 Z"/></svg>') center/contain no-repeat;
}
body[data-member="liz"] .section h3::before {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23000" d="M50,6 C60,20 74,28 74,46 C74,61 63,72 50,72 C37,72 26,61 26,46 C26,28 40,20 50,6 Z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23000" d="M50,6 C60,20 74,28 74,46 C74,61 63,72 50,72 C37,72 26,61 26,46 C26,28 40,20 50,6 Z"/></svg>') center/contain no-repeat;
}
body[data-member="tsukuri"] .section h3::before {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23000" d="M70,66 A16,16 0 0 0 68,34 A22,22 0 0 0 26,30 A15,15 0 0 0 28,66 Z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23000" d="M70,66 A16,16 0 0 0 68,34 A22,22 0 0 0 26,30 A15,15 0 0 0 28,66 Z"/></svg>') center/contain no-repeat;
}
body[data-member="nuhu"] .section h3::before {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="%23000"><circle cx="50" cy="52" r="32"/><circle cx="26" cy="34" r="7"/><circle cx="68" cy="28" r="7"/><circle cx="80" cy="54" r="7"/><circle cx="60" cy="76" r="7"/></g><circle cx="50" cy="58" r="8" fill="none" stroke="#fff" stroke-width="7"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="%23000"><circle cx="50" cy="52" r="32"/><circle cx="26" cy="34" r="7"/><circle cx="68" cy="28" r="7"/><circle cx="80" cy="54" r="7"/><circle cx="60" cy="76" r="7"/></g><circle cx="50" cy="58" r="8" fill="none" stroke="#fff" stroke-width="7"/></svg>') center/contain no-repeat;
}
body[data-member="rei"] .section h3::before {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="none" stroke="%23000" stroke-width="10"><circle cx="50" cy="50" r="34"/><circle cx="50" cy="50" r="7"/></g></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="none" stroke="%23000" stroke-width="10"><circle cx="50" cy="50" r="34"/><circle cx="50" cy="50" r="7"/></g></svg>') center/contain no-repeat;
}

@media (max-width: 640px) {
  .page-deco .d-f { width: 36px !important; height: 36px !important; opacity: 0.4; }
  .d-paw, .d-cross, .d-wheel { transform: scale(0.7); }
  .d-rain, .d-drop, .d-bub { transform: scale(0.75); }
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0 24px; position: relative; }

/* ---------- セクションタイトル（リボン＋図形） ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.section-title::before {
  content: "";
  width: 26px;
  height: 26px;
  background: var(--accent);
  border-radius: 9px 4px 9px 4px;
  transform: rotate(12deg);
  box-shadow: 2px 3px 0 rgba(60, 50, 40, 0.18);
  flex-shrink: 0;
}
.section-title::after {
  content: "";
  width: 60px;
  height: 8px;
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, var(--accent) 0 8px, transparent 8px 14px);
  opacity: 0.8;
}
.section-sub { color: var(--muted); margin-bottom: 24px; font-size: 0.92rem; padding-left: 38px; }
.lead { font-size: 1.05rem; }

/* ---------- 波セパレーター ---------- */
.wave {
  display: block;
  width: 100%;
  height: 42px;
  background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q 150 0 300 30 T 600 30 T 900 30 T 1200 30 V 60 H 0 Z' fill='%23ffffff' opacity='0.6'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
}
.wave.flip { transform: scaleY(-1); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 3px solid var(--text);
  background: var(--accent-deep);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 0.92rem;
  box-shadow: var(--pop-shadow);
  transition: transform 0.12s, box-shadow 0.12s;
  cursor: pointer;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 6px 0 rgba(45, 35, 20, 0.28); text-decoration: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(45, 35, 20, 0.24); }
.btn-ghost {
  background: #fff;
  color: var(--accent-deep);
  border: 3px dashed var(--accent-deep);
  box-shadow: none;
}

/* ---------- カード（ステッカー風の厚いフチ） ---------- */
.card {
  background: var(--card);
  border: 3px solid #fff;
  outline: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(90, 75, 55, 0.1), 0 16px 32px rgba(90, 75, 55, 0.16); }

.profile-card.card { padding: 24px; border-radius: 24px; }

/* 星型の飾り（CSS図形） */
.star { display: inline-block; width: 18px; height: 18px; background: var(--accent); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

/* ---------- ヘッダー ---------- */
#siteHeader {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid #fff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.06), 0 6px 18px rgba(90, 80, 70, 0.08);
  transition: background 0.4s;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.logo img { height: 34px; width: auto; }
.logo:hover { text-decoration: none; }

.nav { display: flex; gap: 5px; align-items: center; flex-wrap: nowrap; }
.nav a, .nav-drop-btn {
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-display);
  padding: 6px 11px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav a:hover, .nav-drop-btn:hover { background: var(--accent-soft); border-color: var(--accent); text-decoration: none; }
.nav .current { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }

/* Member Guide ドロップダウン */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  cursor: pointer;
}
.caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent-deep);
  transition: transform 0.15s;
}
.nav-drop.open .caret { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  max-height: min(70vh, 540px);
  overflow-y: auto;
  background: #fff;
  border: 3px solid #fff;
  outline: 2px solid var(--accent);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(45, 35, 20, 0.18);
  padding: 8px;
  display: none;
  z-index: 300;
}
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.nav-drop-menu a:hover { background: var(--accent-soft); text-decoration: none; }
.nav-drop-menu a.drop-top { color: var(--accent-deep); font-weight: 900; }
.nav-drop-menu .drop-sep {
  height: 2px;
  margin: 6px 4px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px);
}

.live-badge {
  display: none;
  align-items: center;
  gap: 6px;
  background: #ff4d4d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 2px 0 rgba(160, 30, 30, 0.35);
  animation: livePulse 1.6s infinite;
}
.live-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  animation: liveBlink 1s infinite alternate;
}
.live-badge.show { display: inline-flex; }
@keyframes livePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes liveBlink { from { opacity: 0.3; } to { opacity: 1; } }

.oshi-select {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--accent-deep);
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 7px 12px;
  min-width: 140px;
  max-width: 170px;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, color 0.15s;
}

.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 12px;
  cursor: pointer;
  padding: 8px 9px;
  line-height: 0;
  box-shadow: 0 2px 0 rgba(60, 50, 40, 0.12);
  transition: transform 0.15s, box-shadow 0.15s;
}
.hamburger:hover { transform: translateY(-1px); box-shadow: 0 4px 0 rgba(60, 50, 40, 0.14); }
.hamburger:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(60, 50, 40, 0.12); }
.hamburger svg { display: block; stroke: var(--accent-deep); }

.header-actions { display:flex; gap:10px; align-items:center; flex-shrink:0; margin-left:auto; }

/* ドロワー(旧 mobile-nav を流用) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 35, 20, 0.28);
  backdrop-filter: blur(2px);
  z-index: 199;
  display: none;
}
.drawer-backdrop.open { display: block; }
.mobile-nav {
  position: fixed;
  top: 62px;
  right: 0;
  width: 360px;
  max-width: 86vw;
  height: calc(100dvh - 62px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 3px solid #fff;
  outline: 2px solid var(--accent);
  box-shadow: -8px 12px 28px rgba(45, 35, 20, 0.18);
  padding: 10px 18px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
  border-top: none;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { padding: 10px 6px; font-weight: 700; border-bottom: 1px dashed var(--border); color: var(--text); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.mobile-sub {
  padding: 6px 6px 6px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-deep);
  border-bottom: 1px dashed var(--border);
}
.drawer-section-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 14px 6px 6px;
  border-bottom: 1px dashed var(--border);
  margin-top: 4px;
}
.drawer-section-label:first-child { margin-top: 0; padding-top: 6px; }
.drawer-settings {
  margin-top: 14px;
  padding: 12px;
  background: var(--card);
  border-radius: 12px;
  border: 2px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .nav { display: none !important; }
}
@media (max-width: 600px) {
  .mobile-nav { width: 100vw; max-width: 100vw; }
}

/* ---------- ヒーロー ---------- */
.hero {
  padding: 130px 20px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-shadow: 3px 3px 0 #fff, 6px 6px 0 rgba(0, 0, 0, 0.06);
}
.hero-logo { height: 88px; width: auto; margin-bottom: 6px; }
.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 10px;
  font-family: var(--font-display);
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hero-deco span {
  position: absolute;
  display: block;
  border-radius: 50%;
}
.hero-deco .h-ring {
  width: 230px;
  height: 230px;
  top: -70px;
  left: -60px;
  border: 5px solid var(--accent);
  opacity: 0.5;
  animation: spinSlow 26s linear infinite;
}
.hero-deco .h-ring2 {
  width: 300px;
  height: 300px;
  right: -90px;
  top: -40px;
  border: 3px dashed var(--accent-deep);
  opacity: 0.35;
  animation: spinSlow 40s linear infinite reverse;
}
.hero-deco .h-dot { width: 16px; height: 16px; right: 18%; bottom: 46px; background: var(--accent); animation: floatY 5s ease-in-out infinite; }
.hero-deco .h-dot2 { width: 10px; height: 10px; left: 22%; top: 30%; background: var(--accent); opacity: 0.7; animation: floatY 6s ease-in-out infinite 1s; }
.hero-deco .h-star {
  background: transparent;
  width: 26px;
  height: 26px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background-color: var(--accent);
  opacity: 0.55;
  right: 26%;
  top: 30%;
  animation: floatY 7s ease-in-out infinite;
}
.hero-deco .h-star2 {
  background: transparent;
  width: 14px;
  height: 14px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background-color: var(--accent);
  opacity: 0.5;
  left: 12%;
  bottom: 18%;
  animation: floatY 6s ease-in-out infinite 1.2s;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* 誕生日バナー */
.birthday-banner {
  display: none;
  margin: 0 auto 22px;
  max-width: 640px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 3px solid var(--accent-deep);
  background: linear-gradient(90deg, var(--accent-soft), #fff);
  font-weight: 900;
  color: var(--accent-deep);
  box-shadow: var(--pop-shadow);
  position: relative;
}
.birthday-banner::before {
  content: "";
  position: absolute;
  inset: -14px 8px;
  border: 2px dashed var(--accent);
  border-radius: 999px;
  pointer-events: none;
}
.birthday-banner.show { display: block; }

/* ---------- カウントダウン（メイン大＋横並び切替） ---------- */
.countdown-wrap { margin-top: 26px; }
.cd-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cd-head-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--accent-deep);
  background: #fff;
  border: 3px solid var(--accent-deep);
  border-radius: 999px;
  padding: 6px 18px;
  box-shadow: var(--pop-shadow);
  transform: rotate(-2deg);
}
.cd-styles { display: flex; gap: 8px; }
.cd-style-btn {
  padding: 7px 18px;
  border-radius: 999px;
  border: 3px solid var(--accent-deep);
  background: #fff;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
}
.cd-style-btn:hover { background: var(--accent-soft); }
.cd-style-btn.active { background: var(--accent-deep); color: #fff; box-shadow: var(--pop-shadow); }

.countdown { display: block; }
.cd-card {
  background: var(--card);
  border: 3px solid #fff;
  outline: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 20px 24px;
}
.cd-featured { max-width: 680px; margin: 0 auto; text-align: center; }
.cd-featured .cd-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: 0.04em;
}
.cd-when { font-size: 0.82rem; font-weight: 800; color: var(--accent-deep); margin-top: 2px; }
.cd-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; font-weight: 700; }
.cd-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 900;
  color: #fff;
  background: var(--accent-deep);
  border-radius: 999px;
  padding: 6px 18px;
  border: 2px solid #fff;
  box-shadow: 2px 3px 0 rgba(45, 35, 20, 0.2);
}
.cd-link:hover { text-decoration: none; transform: translateY(-1px); }

.cd-digits { display: flex; gap: 12px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cd-unit small { font-size: 0.78rem; font-weight: 900; color: var(--muted); }
.cd-num {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  min-width: 92px;
  text-align: center;
  padding: 12px 10px;
  border-radius: 18px;
  font-size: 1.9rem;
}

/* ポップ: 推しカラー系の丸カード */
.cd-pop .cd-num {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 3px solid #fff;
  outline: 2px dashed var(--accent);
  box-shadow: var(--pop-shadow);
}
.cd-pop.cd-featured .cd-num { font-size: 2.5rem; min-width: 118px; }

/* キャンディ: キャンディカラーのグラデーションカード */
.cd-candy .cd-num {
  color: #fff;
  border: 3px solid #fff;
  outline: 3px solid rgba(45, 35, 20, 0.25);
  box-shadow: var(--pop-shadow);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}
.cd-candy .cd-unit:nth-child(1) .cd-num { background: linear-gradient(160deg, #ff9db1, #f25e83); }
.cd-candy .cd-unit:nth-child(2) .cd-num { background: linear-gradient(160deg, #ffd166, #f5a11f); }
.cd-candy .cd-unit:nth-child(3) .cd-num { background: linear-gradient(160deg, #7fd8c0, #22a885); }
.cd-candy .cd-unit:nth-child(4) .cd-num { background: linear-gradient(160deg, #9db4ff, #5f7ae0); }
.cd-candy.cd-featured .cd-num { font-size: 2.5rem; min-width: 118px; }

/* シンプル: 公式サイト風のクリーンな白基調 */
.cd-simple {
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #fff;
  outline: none;
  box-shadow: 0 4px 0 rgba(90, 75, 55, 0.08), 0 10px 24px rgba(90, 75, 55, 0.08);
}
.cd-simple .cd-digits { gap: 8px; }
.cd-simple .cd-num {
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  color: var(--accent-deep);
  font-size: 2.1rem;
  min-width: 0;
  padding: 0;
  letter-spacing: 0.03em;
}
.cd-simple .cd-unit { position: relative; }
.cd-simple .cd-unit + .cd-unit::before {
  content: ":";
  position: absolute;
  left: -7px;
  top: 10px;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
}
.cd-simple .cd-unit small { color: var(--accent-deep); }

/* 特装カウントダウン（COUNTDOWN に featured: true を付けたイベント用） */
.cd-card.cd-special {
  position: relative;
  z-index: 0;
  border: 3px solid rgba(255, 215, 150, 0.9);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 225, 170, 0.4), 0 8px 36px rgba(255, 200, 110, 0.25);
}
.cd-card.cd-special::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 30px;
  background: linear-gradient(150deg, #ffe9c2, #ffd9e6 35%, #dce6ff 70%, #d9f2e8);
  opacity: 0.55;
  filter: blur(4px);
}
.cd-badge {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: #fff;
  background: linear-gradient(120deg, #f25e83, #f5a11f);
  border-radius: 999px;
  padding: 6px 18px;
  box-shadow: 0 3px 12px rgba(242, 94, 131, 0.45);
}
.cd-special .cd-label {
  font-size: 1.6rem;
  background: linear-gradient(120deg, #e8879f, #eaa84f, #8fa3dd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.cd-special .cd-when { color: #b26a00; font-weight: 900; }
.cd-special .cd-note { color: #8a5a00; }
.cd-special .cd-num {
  border: 3px solid #fff;
  outline: 3px solid rgba(255, 190, 80, 0.5);
  background: linear-gradient(160deg, #fff7e0, #ffe9b8);
  color: #b26a00;
  font-size: 3rem;
  min-width: 128px;
}
.cd-simple.cd-featured .cd-num { font-size: 3rem; }
.cd-simple .cd-label { color: var(--accent-deep); }

/* 横並びの切替レール */
.cd-rail-hint { text-align: center; font-size: 0.75rem; color: var(--muted); margin: 16px 0 10px; font-weight: 700; }
.cd-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.cd-rail-item {
  flex: 0 0 auto;
  min-width: 210px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  background: var(--card);
  border: 3px solid #fff;
  outline: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  box-shadow: 3px 4px 0 rgba(45, 35, 20, 0.18);
  padding: 12px 16px;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.12s;
}
.cd-rail-item:hover { transform: translateY(-2px); outline-color: var(--accent); }
.cd-rail-item.is-active { background: var(--accent-soft); outline: 3px solid var(--accent-deep); }
.cd-rail-item .cd-label { font-family: var(--font-display); font-weight: 900; font-size: 0.9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-rail-item .cd-diff { font-size: 0.82rem; font-weight: 900; color: var(--accent-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 配信予定・動画 ---------- */
.stream-list { display: flex; flex-direction: column; gap: 8px; }
.stream-group-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  margin: 18px 0 10px;
  color: var(--accent-deep);
}
.stream-group:first-child .stream-group-title { margin-top: 0; }
.stream-group-title::before {
  content: "";
  align-self: center;
  width: 0.6em;
  height: 0.6em;
  border-radius: 3px;
  background: var(--accent);
  flex-shrink: 0;
}
.stream-group-title .range { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.stream-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.stream-item { display: block; padding: 0; overflow: hidden; }
.stream-item:hover { text-decoration: none; }
.stream-item .video-thumb { width: auto; flex-shrink: 0; border-radius: 0 0 14px 14px; border: none; border-bottom: 3px solid #fff; }

.video-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid #fff;
  outline: 2px solid rgba(0, 0, 0, 0.1);
  aspect-ratio: 16 / 9;
  background: #eee;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-title { font-weight: 700; font-size: 0.92rem; line-height: 1.5; }
.video-meta { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.stream-count { font-weight: 900; color: var(--accent-deep); }
.video-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.62rem;
  font-weight: 900;
  color: #fff;
  background: #ff4d4d;
  border-radius: 999px;
  padding: 2px 8px;
  border: 2px solid #fff;
  vertical-align: 2px;
}

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.video-card { overflow: hidden; padding: 0; }
.video-card .video-thumb { border-radius: 0 0 14px 14px; border: none; border-bottom: 3px solid #fff; }
.video-body { padding: 12px 14px 14px; }

.placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border: 3px dashed var(--accent);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

/* ---------- ニュース・X ---------- */
.news-item { padding: 18px 20px; border-radius: 18px; }
.news-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.news-date { font-size: 0.75rem; font-weight: 800; color: var(--muted); }
.news-tag {
  font-size: 0.68rem;
  font-weight: 900;
  color: #fff;
  background: var(--accent-deep);
  border-radius: 999px;
  padding: 2px 10px;
}
.news-title { font-weight: 900; font-size: 1.02rem; font-family: var(--font-display); }
.news-desc { font-size: 0.88rem; color: var(--muted); margin: 6px 0 10px; }

.news-item.collapsed { display: none; }
.news-item.collapsed.show { display: block; animation: newsIn 0.35s ease both; }
@keyframes newsIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.news-toggle {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 2px dashed var(--accent);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.news-toggle:hover { background: var(--accent-soft); }
.news-toggle:active { transform: scale(0.98); }
.news-item .news-title,
.news-item .news-desc { cursor: pointer; }
.news-item { display:block; padding:14px 16px; }
.news-item.has-thumb { padding:0; overflow:hidden; }
.news-item.has-thumb .news-head, .news-item.has-thumb .news-text { padding:0 14px; }
.news-item.has-thumb .news-head { padding-top:12px; }
.news-thumb-wrap.wide { display:block; width:100%; height:auto; max-height:none; overflow:hidden; background:#fff; border-top:1px solid rgba(0,0,0,0.06); margin-top:10px; line-height:0; }
.news-thumb-wrap.wide .news-thumb { width:100%; height:auto; max-height:240px; object-fit:cover; display:block; }
.news-item .news-more { margin:10px 14px 12px; display:inline-block; }
.news-item.has-thumb .news-more { margin:8px 14px 12px; }
.news-text .news-title { margin-top:4px; }
.news-item .news-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item.desc-open .news-desc {
  display: block;
  -webkit-line-clamp: unset;
}
#news .grid.grid-2 { align-items:start; }
#newsList { align-content:start; }
@media (max-width: 720px) {
  #news .grid.grid-2 { gap:24px; }
}
@media (max-width: 600px) {
  .news-item.has-thumb .news-head, .news-item.has-thumb .news-text { padding:0 12px; }
  .news-thumb-wrap.wide .news-thumb { max-height:180px; }
}

.xpost-list { display: flex; flex-direction: column; gap: 12px; }
.xpost-card {
  background: #fff;
  border: 3px solid #fff;
  outline: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

/* ---------- 最新グッズ（カルーセル） ---------- */
.goods-carousel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 8px;
}
.car-viewport { overflow: hidden; flex: 1; border-radius: 20px; }
.car-track {
  display: flex;
  padding: 6px 0 12px;
  will-change: transform;
}
.goods-card {
  flex: 0 0 calc(100% / var(--pv, 3));
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
}
/* 一覧系カードの描画スキップ（スクロール連動・レイアウト保持） */
.goods-card-ext, .mine-card, .shop-card, .timeline-item {
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
}
.goods-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 3px solid #fff;
  outline: 2px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--gc) 24%, #fff), color-mix(in srgb, var(--gc) 9%, #fff));
  overflow: hidden;
}
.goods-tile img { width:100%; height:100%; object-fit:cover; display:block; border-radius:inherit; }
.goods-tile svg {
  width: 46%;
  height: 46%;
  color: var(--gc);
  opacity: 0.85;
  transition: transform 0.35s ease;
}
.goods-tile .tile-char {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--gc);
}
.goods-card:hover .goods-tile svg,
.goods-card:hover .goods-tile .tile-char { transform: scale(1.08); }
.goods-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 900;
  color: #fff;
  background: #ff5d7a;
  border-radius: 999px;
  padding: 2px 10px;
  box-shadow: 0 2px 6px rgba(255, 93, 122, 0.4);
}
.goods-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 4px 4px;
  flex: 1;
}
.goods-member {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--gc, var(--accent));
}
.goods-name {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
  font-family: var(--font-display);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.goods-price { font-size: 1.05rem; font-weight: 900; }
.goods-price s { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-right: 6px; }
.goods-card .btn { margin-top: auto; justify-content: center; }
.car-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: var(--card);
  color: var(--accent-deep);
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s, opacity 0.2s;
}
.car-btn:hover:not(:disabled) { transform: scale(1.1); }
.car-btn:disabled { opacity: 0.35; cursor: default; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.car-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: width 0.25s, border-radius 0.25s, background 0.25s;
}
.car-dot:hover { background: rgba(0, 0, 0, 0.32); }
.car-dot.active { width: 24px; border-radius: 999px; background: var(--accent); }
@keyframes countdownPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
.goods-countdown--soon{background:#fff3e0!important;border-color:#f5a623!important;color:#e67e22!important}
.goods-countdown--today{background:#ffeaea!important;border-color:#ff6b6b!important;color:#c0392b!important;animation:countdownPulse 1.2s ease-in-out infinite}

/* ---------- グッズフィルタ（オリジナルUI） ---------- */
.milli-search{display:flex;align-items:center;gap:8px;flex:1;min-width:220px;background:var(--card);border:3px solid #fff;outline:2px solid rgba(0,0,0,.12);border-radius:999px;padding:8px 14px;box-shadow:var(--shadow);transition:transform .12s}
.milli-search:focus-within{transform:translateY(-1px);box-shadow:0 8px 0 rgba(90,75,55,.08),0 14px 28px rgba(90,75,55,.14);outline-color:var(--accent)}
.milli-search svg{flex-shrink:0;color:var(--accent-deep);width:18px;height:18px}
.milli-search input{flex:1;border:none;outline:none;background:transparent;font-weight:800;font-family:var(--font-display);font-size:.88rem;color:var(--text)}
.milli-search input::placeholder{color:var(--muted);font-weight:700}
.milli-select-wrap{position:relative;display:inline-flex;align-items:center}
.milli-select{appearance:none;-webkit-appearance:none;background:var(--card);border:3px solid #fff;outline:2px solid rgba(0,0,0,.12);border-radius:999px;padding:9px 36px 9px 14px;font-weight:900;font-family:var(--font-display);font-size:.82rem;color:var(--text);box-shadow:var(--shadow);cursor:pointer;min-width:132px;transition:transform .12s}
.milli-select:hover{transform:translateY(-1px)}
.milli-select:focus{outline-color:var(--accent)}
.milli-select-arrow{position:absolute;right:12px;pointer-events:none;color:var(--accent-deep);display:flex;align-items:center}
.milli-check{position:relative;display:inline-flex;align-items:center;gap:8px;background:var(--card);border:3px solid #fff;outline:2px solid rgba(0,0,0,.12);border-radius:999px;padding:7px 14px;box-shadow:var(--shadow);font-weight:900;font-family:var(--font-display);font-size:.78rem;cursor:pointer;user-select:none}
.milli-check input{accent-color:var(--accent-deep);width:16px;height:16px}
.goods-filters{background:var(--card);border:3px solid #fff;outline:2px solid rgba(0,0,0,.08);border-radius:22px;box-shadow:var(--shadow);padding:14px}
/* 長押しメニューを邪魔しないようスマホではグッズカードのコピー/選択を禁止 */
.goods-card, .goods-card-ext, .mine-card, .shop-card{ -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
.goods-card a, .mine-card a{ -webkit-touch-callout:none; }
@media (pointer:coarse){
  .goods-card, .goods-card-ext, .mine-card{ touch-action:manipulation; }
}
/* スマホではグッズを2列表示（計画書の見やすさ向上） */
@media (max-width:640px){
  .goods-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .mine-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .shop-list, #list, #nearbyList{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .goods-card .goods-name{font-size:.8rem}
  .goods-card .goods-price{font-size:.92rem}
  .goods-card .goods-body{padding:8px 4px 4px}
}
@media (max-width:380px){
  .goods-grid{gap:8px!important}
  .mine-grid{gap:8px!important}
}

/* ---------- メンバーカード（画像メイン） ---------- */
.member-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 16px 18px;
  text-align: center;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
}
.member-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 90px;
  background: linear-gradient(180deg, var(--mc-soft, var(--accent-soft)), transparent);
  border-radius: 0 0 50% 50% / 0 0 24px 24px;
  pointer-events: none;
}

/* メンバーカードのメンバー別モチーフ背景（SVG・メンカラー・薄め） */
.card-deco { position: absolute; inset: 0; pointer-events: none; }
.card-deco svg { position: absolute; color: var(--mc, var(--accent)); opacity: 0.2; }
.card-deco .cd-main svg { width: 132px; height: 132px; right: -16px; top: -16px; }
.card-deco .cd-sub svg { width: 56px; height: 56px; left: -6px; bottom: -6px; opacity: 0.26; }
.member-card:hover { text-decoration: none; }
.member-mark {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  outline: 3px solid var(--mc, var(--accent));
  background: #fff;
  box-shadow: var(--pop-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
}
.member-mark img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-family: var(--font-display); font-weight: 900; font-size: 1.02rem; }
.member-gen { font-size: 0.7rem; color: var(--muted); font-weight: 700; }
.member-catch {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}
.member-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 6px; }
.member-tags span {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--mc, var(--accent-deep));
  background: var(--mc-soft, var(--accent-soft));
  border-radius: 999px;
  padding: 2px 8px;
}

/* ---------- グループ・期生まとめ ---------- */
.group-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.gp-card {
  padding: 18px;
  border-radius: 22px;
  position: relative;
}
.gp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.gp-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid #fff;
  outline: 2px solid rgba(0, 0, 0, 0.12);
  box-shadow: var(--pop-shadow);
  flex: none;
}
.gp-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.12rem;
  margin: 0;
  line-height: 1.3;
}
.gp-badge {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 900;
  color: var(--accent-deep, #c0392b);
  background: var(--accent-soft, #ffeaea);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.06em;
  flex: none;
}
.gp-desc {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 12px;
}
.gp-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  margin: 0 0 8px;
  letter-spacing: 0.05em;
}
.gp-members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gp-member {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--mc-soft, var(--accent-soft));
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gp-member:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--pop-shadow);
}
.gp-member-face {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gp-member-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gp-note {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}

@media (min-width: 760px) {
  .group-list { grid-template-columns: repeat(2, 1fr); }
  .gp-card { padding: 22px; }
}

/* ---------- ランチャー（図形バッジ） ---------- */
.launcher-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
}
.launcher-card:hover { text-decoration: none; }
.launcher-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #fff;
  outline: 2px solid rgba(0, 0, 0, 0.12);
  box-shadow: var(--pop-shadow);
  flex-shrink: 0;
  transform: rotate(-4deg);
  background: #fff;
}
.launcher-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shape-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px 8px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: var(--pop-shadow);
  flex-shrink: 0;
  transform: rotate(-4deg);
}
.prep-badge {
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--muted);
  border: 2px dashed var(--muted);
  border-radius: 999px;
  padding: 2px 10px;
}
.launcher-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 900; }
.launcher-card p { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* ---------- カレンダー ---------- */
.cal-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.cal-title { font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; min-width: 130px; text-align: center; }
.cal-list { display: flex; flex-direction: column; gap: 10px; }
.cal-item { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 18px; }
.cal-date-box {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 3px solid #fff;
  outline: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cal-date-box b { font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--accent-deep); }
.cal-date-box small { font-size: 0.62rem; color: var(--accent-deep); font-weight: 800; }
.cal-type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 900;
  color: #fff;
  background: var(--ec, var(--accent-deep));
  border-radius: 999px;
  padding: 2px 10px;
  border: 2px solid #fff;
}
.cal-title2 { font-weight: 900; font-family: var(--font-display); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-dow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--muted);
  padding: 6px 0;
}
.cal-dow.sunday { color: #d95454; }
.cal-dow.saturday { color: #5470d9; }
.cal-day {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 3px solid #fff;
  outline: 2px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  font-weight: 800;
  font-size: 0.9rem;
  position: relative;
  cursor: default;
  padding-top: 8px;
  overflow: hidden;
}
.cal-day > b { line-height: 1.2; }
.cal-day.today { outline-color: var(--accent); background: var(--accent-soft); }
.cal-day.empty { border-style: dashed; opacity: 0.45; background: none; }
.cal-day.has-event { cursor: pointer; outline-color: var(--accent); }
.cal-day.has-event:hover { transform: translateY(-2px); box-shadow: var(--pop-shadow); outline-width: 3px; }
.cal-ebadge {
  max-width: 96%;
  font-size: 0.56rem;
  font-weight: 900;
  color: #fff;
  background: var(--ec, var(--accent-deep));
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  display: block;
  border: 1px solid #fff;
}
.cal-more {
  font-size: 0.6rem;
  font-weight: 900;
  color: var(--accent-deep);
  background: #fff;
  border-radius: 999px;
  padding: 0 6px;
  border: 1px solid var(--accent);
  line-height: 1.5;
}
.cal-legend { margin-top: 14px; font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.cal-legend .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* イベント詳細モーダル */
.evm-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.evm-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; }
.evm-title { font-family: var(--font-display); font-weight: 900; }
.evm-desc { font-size: 0.85rem; color: var(--muted); }

/* ---------- ヒストリー（タイムライン） ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(180deg, var(--accent) 0 10px, transparent 10px 18px);
}
.timeline-item { position: relative; padding: 6px 0 20px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.timeline-date { font-size: 0.75rem; font-weight: 900; color: var(--accent-deep); }
.timeline-title { font-weight: 900; font-family: var(--font-display); }
.timeline-desc { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

/* ---------- リンク集 ---------- */
.link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 20px;
}
.link-card:hover { text-decoration: none; }
.link-name { font-family: var(--font-display); font-weight: 900; }
.link-desc { font-size: 0.8rem; color: var(--muted); }

/* ---------- フッター ---------- */
footer {
  margin-top: 60px;
  padding: 34px 20px 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  border-top: 3px solid #fff;
  box-shadow: 0 -3px 0 rgba(0, 0, 0, 0.06);
}
footer p { font-size: 0.78rem; color: var(--muted); margin: 4px 0; }
footer .disclaimer { font-weight: 700; color: #8a6d3b; }
.credits-btn { cursor: pointer; }
/* ============================================================
   タレントページ
   ============================================================ */

/* Apple風 タレント切替タブ */
.talent-tabs {
  position: sticky;
  top: 62px;
  z-index: 150;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 2px dashed var(--accent);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.talent-tabs::-webkit-scrollbar { display: none; }
.t-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: #f4f1ec;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}
.t-tab:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.t-tab.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
  box-shadow: 2px 3px 0 rgba(60, 50, 40, 0.12);
}
.t-tab img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  background: #fff;
}

/* パンくず */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--muted); padding: 18px 0 6px; flex-wrap: wrap; }
.breadcrumb a { font-weight: 700; color: var(--accent-deep); }
.breadcrumb a:hover { text-decoration: none; border-bottom: 2px dashed var(--accent); }
.breadcrumb span { font-weight: 900; color: var(--text); }

/* タレントヒーロー（画像メイン） */
.talent-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 4px solid #fff;
  outline: 3px solid var(--mc, var(--accent));
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.5) 0 60px, transparent 61px),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.4) 0 30px, transparent 31px),
    linear-gradient(160deg, var(--mc-soft, var(--accent-soft)), #ffffff 70%);
  box-shadow: 0 10px 0 rgba(90, 80, 70, 0.08), 0 18px 40px rgba(90, 80, 70, 0.12);
  margin-top: 14px;
  padding: 40px 28px;
  text-align: center;
}
.heroSweep {
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-18deg);
  animation: sweep 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep {
  0% { left: -60%; }
  55%, 100% { left: 130%; }
}
.talent-hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.talent-hero-logo { height: 44px; width: auto; margin-bottom: 12px; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.12)); }
.talent-hero-art {
  width: min(230px, 42vw);
  border-radius: 50%;
  border: 5px solid #fff;
  outline: 4px solid var(--mc, var(--accent));
  box-shadow: 0 8px 0 rgba(90, 80, 70, 0.1), 0 14px 26px rgba(90, 80, 70, 0.16);
  background: #fff;
  margin: 4px 0 16px;
}
.talent-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  text-shadow: 2px 2px 0 #fff;
}
.talent-name-en { font-size: 0.9rem; font-weight: 800; color: var(--mc, var(--accent-deep)); letter-spacing: 0.18em; }
.talent-catch {
  margin-top: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.85);
  border: 2px dashed var(--mc, var(--accent));
  border-radius: 999px;
  padding: 8px 22px;
  box-shadow: var(--pop-shadow);
  color: var(--text);
}
.talent-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 14px; }
.talent-tags span {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid var(--mc, var(--accent));
  border-radius: 999px;
  padding: 4px 12px;
}

/* グループアイコン（所属グループのバッジ） */
.group-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: -4px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.member-gen .group-icon,
.cmp-table td .group-icon { width: 18px; height: 18px; }

/* タレント本文レイアウト */
.talent-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.profile-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.profile-table th {
  width: 110px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--accent-deep);
  vertical-align: top;
  padding: 8px 10px 8px 0;
}
.profile-table td { font-size: 0.9rem; padding: 8px 0; border-bottom: 2px dashed var(--border); }
.profile-table tr:last-child td { border-bottom: none; }

/* 語録 */
.phrase-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.phrase-card {
  background: var(--accent-soft);
  border: 3px solid #fff;
  outline: 2px solid var(--accent);
  border-radius: 16px;
  padding: 10px 18px;
  font-weight: 900;
  color: var(--text);
  position: relative;
  box-shadow: var(--pop-shadow);
}
.phrase-card::before {
  content: "“";
  position: absolute;
  left: 6px;
  top: -14px;
  font-size: 2.2rem;
  color: var(--accent);
  font-family: Georgia, serif;
}

/* ハッシュタグ */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tag-btn {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
  background: #fff;
  border: 3px solid var(--accent);
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: 2px 3px 0 rgba(60, 50, 40, 0.14);
  transition: all 0.12s;
}
.tag-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 4px 0 rgba(60, 50, 40, 0.2); text-decoration: none; }

/* SNSボタン */
.sns-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sns-btn {
  font-size: 0.85rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: #fff;
  background: var(--accent-deep);
  border: 3px solid #fff;
  border-radius: 999px;
  padding: 7px 20px;
  box-shadow: var(--pop-shadow);
}
.sns-btn:hover { transform: translate(-1px, -1px); color: #fff; text-decoration: none; }

/* 挨拶ボイス */
.voice-box { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  box-shadow: var(--pop-shadow);
  transition: all 0.12s;
}
.voice-btn:hover { transform: translate(-1px, -1px); }
.voice-btn.playing { background: var(--accent-deep); }
.voice-note { font-size: 0.78rem; color: var(--muted); flex: 1; min-width: 200px; }

.back-to-guide { text-align: center; margin: 40px 0 10px; }
.back-to-guide a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--accent-deep);
  border: 3px dashed var(--accent);
  border-radius: 999px;
  padding: 10px 24px;
  background: #fff;
}
.back-to-guide a::before { content: ""; width: 10px; height: 10px; border-left: 3px solid var(--accent-deep); border-bottom: 3px solid var(--accent-deep); transform: rotate(45deg); }
.back-to-guide a:hover { text-decoration: none; background: var(--accent-soft); }

/* ============================================================
   全画面イントロ（タレント紹介アニメーション）
   ============================================================ */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.55) 0 180px, transparent 181px),
    linear-gradient(160deg, var(--accent-soft) 0%, var(--accent) 55%, var(--accent-deep) 100%);
  transition: transform 0.9s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.9s cubic-bezier(0.7, 0, 0.3, 1);
  overflow: hidden;
}
.intro-overlay.show { display: flex; }
.intro-overlay.close {
  transform: translateY(-108%);
  opacity: 0;
  pointer-events: none;
}
.intro-stage {
  position: relative;
  text-align: center;
  padding: 30px 24px;
  max-width: 640px;
  width: 100%;
}

/* 回転するリングの図形装飾 */
.intro-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.intro-ring.r1 {
  inset: -90px auto auto -90px;
  width: 260px;
  height: 260px;
  border: 6px dashed rgba(255, 255, 255, 0.5);
  animation: spinSlow 30s linear infinite;
}
.intro-ring.r2 {
  inset: auto -110px -110px auto;
  width: 300px;
  height: 300px;
  border: 10px solid rgba(255, 255, 255, 0.3);
  animation: spinSlow 45s linear infinite reverse;
}
.intro-ring.r3 {
  inset: 12% 6% auto auto;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px 4px 12px 4px;
  transform: rotate(18deg);
  animation: floatY 5s ease-in-out infinite;
}
.intro-ring.r4 {
  inset: auto auto 14% 8%;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.6);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: floatY 7s ease-in-out infinite 1s;
}
.intro-ring.r5 {
  inset: 20% auto auto 10%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.8;
  animation: floatY 6s ease-in-out infinite 0.5s;
}

.intro-logo { height: 52px; width: auto; opacity: 0; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.2)); }
.intro-overlay.play .intro-logo { animation: introDrop 0.7s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes introDrop { from { opacity: 0; transform: translateY(-70px) scale(0.7); } to { opacity: 1; transform: none; } }

.intro-art {
  width: min(220px, 40vw);
  border-radius: 50%;
  border: 6px solid #fff;
  outline: 4px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.08), 0 24px 48px rgba(0, 0, 0, 0.22);
  margin: 20px 0 6px;
  opacity: 0;
}
.intro-overlay.play .intro-art { animation: introPop 0.8s 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes introPop { 0% { opacity: 0; transform: scale(0.3) rotate(-12deg); } 60% { transform: scale(1.08) rotate(2deg); } 100% { opacity: 1; transform: none; } }

.intro-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: #fff;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.18);
  opacity: 0;
  margin-top: 8px;
}
.intro-overlay.play .intro-name { animation: introUp 0.6s 1.4s ease-out forwards; }
@keyframes introUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.intro-catch {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.05rem, 3.4vw, 1.45rem);
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #fff;
  border-radius: 999px;
  padding: 12px 26px;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.14);
  display: inline-block;
  max-width: 100%;
  line-height: 1.6;
}
.intro-catch .c-char { display: inline-block; opacity: 0; transform: translateY(12px); animation-delay: var(--cd, 0s); }
.intro-overlay.play .intro-catch .c-char { animation: introUp 0.45s ease-out forwards; }

/* 挨拶のリプレイボタン（キャッチコピーの下に後から出現） */
.intro-voice-btn {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  opacity: 0;
  animation: introUp 0.45s ease-out 2.2s forwards;
}
.intro-voice-btn:hover { background: rgba(0, 0, 0, 0.45); }

.intro-skip {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 7px 18px;
  cursor: pointer;
  font-family: var(--font-display);
}
.intro-skip:hover { background: rgba(0, 0, 0, 0.35); }

/* 自動再生ブロック時の「タップで再生」ボタン */
.intro-start {
  position: absolute;
  left: 50%;
  bottom: 15vh;
  transform: translateX(-50%);
  display: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 12px 30px;
  cursor: pointer;
  animation: fxStandbyPulse 1.6s ease-in-out infinite;
}
.intro-overlay.standby .intro-start { display: block; }
@keyframes fxStandbyPulse { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }

/* フロートアクション（Xシェア・トップへ） */
.float-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.share-x {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  color: #fff;
  background: #000;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.share-x:hover { background: #1d1d1f; }
.to-top {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--accent-deep);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: none;
}
.to-top.show { display: block; }
.to-top:hover { filter: brightness(1.15); }

/* イントロプレビューボタン（タレントヒーロー） */
.intro-btn {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--accent-deep);
  background: #fff;
  border: 3px dashed var(--accent);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(60, 50, 40, 0.12);
  transition: all 0.12s;
}
.intro-btn:hover { transform: translate(-1px, -1px); background: var(--accent-soft); }

/* ============================================================
   タレント別 イントロFX演出（data.js の fx → gen-pages.js が生成）
   ============================================================ */
.intro-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.intro-fx svg { display: block; }
@media (prefers-reduced-motion: reduce) { .intro-fx { display: none; } }

/* --- 共通: ハート / スパーク --- */
.fx-heart { position: absolute; width: 14px; height: 13px; animation: fxRise 6s ease-in infinite, fxBeat 1.6s ease-in-out infinite; }
.fx-heart::before, .fx-heart::after { content: ""; position: absolute; top: 0; width: 9px; height: 13px; border-radius: 9px 9px 0 0; background: rgba(255, 255, 255, 0.92); }
.fx-heart::before { left: 7px; transform: rotate(-45deg); transform-origin: 0 100%; }
.fx-heart::after { left: 0; transform: rotate(45deg); transform-origin: 100% 100%; }
@keyframes fxRise {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.7; }
  100% { transform: translateY(-42vh) scale(1.15) rotate(14deg); opacity: 0; }
}
@keyframes fxBeat { 0%, 100% { scale: 1; } 50% { scale: 1.18; } }
.fx-spark {
  position: absolute;
  width: 16px;
  height: 16px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: #fff;
  opacity: 0;
  animation: fxTwinkle 2.8s ease-in-out infinite;
}
@keyframes fxTwinkle { 0%, 100% { opacity: 0; transform: scale(0.4) rotate(0); } 50% { opacity: 0.9; transform: scale(1.1) rotate(40deg); } }

/* --- このみ: チョコレート --- */
.fx-chip {
  position: absolute;
  top: -34px;
  width: 26px;
  height: 24px;
  background: linear-gradient(135deg, #7a4a26, #573117);
  border-radius: 26% 58% 34% 62% / 60% 38% 66% 42%;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.25), inset 3px 3px 0 rgba(255, 255, 255, 0.22);
  animation: fxChipFall 6.5s linear infinite;
}
.fx-chip::after {
  content: "";
  position: absolute;
  left: 20%;
  top: 18%;
  width: 38%;
  height: 26%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
@keyframes fxChipFall {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  8% { opacity: 0.95; }
  100% { transform: translateY(108vh) rotate(260deg); opacity: 0.15; }
}

/* --- のの: 音符 --- */
.fx-note-i {
  position: absolute;
  bottom: -70px;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  animation: fxNoteRise 7s linear infinite;
}
@keyframes fxNoteRise {
  0% { transform: translateY(0) rotate(-8deg); opacity: 0; }
  12% { opacity: 0.9; }
  80% { opacity: 0.6; }
  100% { transform: translateY(-118vh) rotate(14deg); opacity: 0; }
}
.fx-note-gem { position: absolute; width: 14px; height: 14px; background: rgba(255, 255, 255, 0.9); transform: rotate(45deg); animation: fxTwinkle 3s ease-in-out infinite; }

/* --- あくび: 悪魔（蝙蝠と業火） --- */
.fx-bat { position: absolute; left: -16%; width: 110px; opacity: 0.85; animation: fxBatFly 10s linear infinite; color: #1c0a15; }
.fx-bat svg { width: 100%; height: auto; filter: drop-shadow(0 0 7px rgba(255, 120, 120, 0.3)); }
.fx-wing { transform-box: fill-box; transform-origin: 55% 40%; }
.fx-wl { animation: fxFlapL 0.8s ease-in-out infinite; }
.fx-wr { animation: fxFlapR 0.8s ease-in-out infinite; }
@keyframes fxBatFly {
  0% { transform: translateX(0) translateY(0); }
  30% { transform: translateX(38vw) translateY(-24px); }
  55% { transform: translateX(70vw) translateY(10px); }
  100% { transform: translateX(120vw) translateY(-14px); }
}
@keyframes fxFlapL { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-40deg); } }
@keyframes fxFlapR { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(40deg); } }
.fx-flame {
  position: absolute;
  width: 64px;
  height: 78px;
  background: radial-gradient(circle at 50% 78%, #ffd27a 0 12%, #ff7a3c 34%, rgba(194, 36, 46, 0.9) 62%, transparent 72%);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  transform-origin: 50% 100%;
  animation: fxFlameF 1.4s ease-in-out infinite;
}
.fx-flame::after {
  content: "";
  position: absolute;
  left: 26%;
  top: 14%;
  width: 46%;
  height: 46%;
  background: radial-gradient(circle at 50% 60%, rgba(255, 236, 190, 0.95) 0 40%, transparent 41%);
  border-radius: 50%;
  animation: fxFlameF 1s ease-in-out infinite reverse;
}
@keyframes fxFlameF { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.16) rotate(4deg); } }

/* --- らこ: 海・海岸・貝 --- */
.fx-sun {
  position: absolute;
  left: 50%;
  top: -60px;
  width: 340px;
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 244, 214, 0.85) 0 40px, rgba(255, 244, 214, 0.35) 90px, transparent 130px);
  animation: fxSunPulse 4s ease-in-out infinite;
}
@keyframes fxSunPulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
.fx-bub2 { position: absolute; width: 26px; height: 26px; opacity: 0; animation: fxBub 5.5s ease-in infinite; }
.fx-bub2::before { content: ""; position: absolute; inset: 0; border: 3px solid rgba(255, 255, 255, 0.85); border-radius: 50%; }
.fx-bub2::after { content: ""; position: absolute; left: 22%; top: 16%; width: 7px; height: 7px; background: rgba(255, 255, 255, 0.9); border-radius: 50%; }
@keyframes fxBub {
  0% { transform: translateY(0) scale(0.4); opacity: 0; }
  15% { opacity: 0.85; }
  100% { transform: translateY(-52vh) scale(1.25); opacity: 0; }
}
.fx-shell { position: absolute; left: 20%; top: 22%; width: 46px; opacity: 0.8; color: rgba(255, 255, 255, 0.9); animation: fxBob 6s ease-in-out infinite; }
@keyframes fxBob { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-18px) rotate(10deg); } }
.fx-wave-svg { position: absolute; left: 0; bottom: 0; width: 150%; height: 88px; animation: fxWaveBob 5s ease-in-out infinite; }
.fx-wave-svg + .fx-wave-svg { bottom: -34px; animation-delay: 1s; animation-duration: 6s; }
@keyframes fxWaveBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* --- ゆら: 深海・泡・光 --- */
[data-member="yura"] .intro-overlay {
  background:
    radial-gradient(circle at 50% 30%, rgba(200, 240, 255, 0.4) 0 170px, transparent 172px),
    linear-gradient(180deg, #1374a8 0%, #2aa3d8 55%, #0e5f8e 100%);
}
[data-member="yura"] .intro-ring { opacity: 0.3; }
.fx-ray {
  position: absolute;
  top: -25%;
  width: 130px;
  height: 150%;
  transform: rotate(14deg);
  background: linear-gradient(90deg, transparent, rgba(190, 235, 255, 0.12) 45%, transparent);
  animation: fxRay 4.5s ease-in-out infinite;
}
@keyframes fxRay { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.fx-bub3 { position: absolute; width: 20px; height: 20px; opacity: 0; animation: fxBub 7s ease-in infinite; }
.fx-bub3::before { content: ""; position: absolute; inset: 0; border: 2px solid rgba(170, 220, 255, 0.8); border-radius: 50%; }
.fx-glowdot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bde9ff;
  box-shadow: 0 0 12px 4px rgba(160, 220, 255, 0.5);
  opacity: 0;
  animation: fxTwinkle 3.6s ease-in-out infinite;
}

/* --- こま: 独楽・だるま落とし・和風 --- */
.fx-koma-spin { position: absolute; opacity: 0.85; color: #e05252; animation: fxBob 5s ease-in-out infinite; }
.fx-koma-spin svg { width: 100%; animation: fxSpin 2.2s linear infinite; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25)); }
@keyframes fxSpin { to { transform: rotate(360deg); } }
.fx-daruma { position: absolute; width: 74px; text-align: center; }
.fx-d-h {
  display: block;
  width: 40px;
  height: 34px;
  margin: 0 auto 4px;
  background: #fff;
  border-radius: 50% 50% 42% 42%;
  border: 3px solid #e05252;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}
.fx-d-h::after { content: ""; display: block; width: 10px; height: 10px; margin: 7px auto 0; background: #e05252; border-radius: 50%; }
.fx-d-b {
  display: block;
  height: 24px;
  margin-bottom: 3px;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  animation: fxSlide 3s ease-in-out infinite;
  animation-delay: calc(var(--i, 1) * 0.4s);
}
.fx-d-b:nth-child(2) { background: #e05252; --dx: 16px; }
.fx-d-b:nth-child(3) { background: #f2c94c; --dx: -18px; }
.fx-d-b:nth-child(4) { background: #fff; --dx: 14px; }
.fx-d-b:nth-child(5) { background: #4a4a5a; --dx: -12px; }
@keyframes fxSlide {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(var(--dx)); }
  50% { transform: translateX(0); }
  75% { transform: translateX(calc(var(--dx) * -0.6)); }
}
.fx-seigaiha {
  position: absolute;
  opacity: 0.5;
  background: repeating-radial-gradient(circle at 50% 130%, transparent 0 15px, rgba(255, 255, 255, 0.3) 15px 16px);
  animation: fxSpin 30s linear infinite;
}

/* --- ツクリ: 眠い雲 --- */
.fx-cloud {
  position: absolute;
  left: -30%;
  width: 200px;
  color: rgba(255, 255, 255, 0.85);
  animation: fxCloud 30s linear infinite;
}
.fx-cloud svg { width: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18)); }
@keyframes fxCloud {
  0% { transform: translateX(0); opacity: 0; }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { transform: translateX(158vw); opacity: 0; }
}
.fx-moon { position: absolute; right: 15%; top: 12%; width: 76px; opacity: 0.9; animation: fxMoonBob 7s ease-in-out infinite; }
.fx-moon svg { width: 100%; filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.65)); }
@keyframes fxMoonBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
.fx-zzz {
  position: absolute;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-style: italic;
  font-size: 2.1rem;
  color: rgba(255, 255, 255, 0.85);
  animation: fxZz 4s ease-in infinite;
}
@keyframes fxZz {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  20% { opacity: 0.9; }
  100% { transform: translateY(-30vh) scale(1.2); opacity: 0; }
}

/* --- リズ: 雨・水滴・波紋 --- */
.fx-rain-s {
  position: absolute;
  top: -90px;
  width: 3px;
  height: 74px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.35));
  animation: fxRainFall 1.6s linear infinite;
}
@keyframes fxRainFall {
  0% { transform: translateY(0) rotate(15deg); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translateY(110vh) rotate(15deg); opacity: 0; }
}
.fx-rip { position: absolute; width: 74px; height: 74px; opacity: 0.7; }
.fx-rip::before { content: ""; position: absolute; inset: 0; border: 3px solid rgba(255, 255, 255, 0.75); border-radius: 50%; animation: dRing 2.8s ease-out infinite; }
.fx-rip::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; background: #fff; border-radius: 50%; }
.fx-puddle {
  position: absolute;
  width: 150px;
  height: 30px;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.5) 0 30%, rgba(255, 255, 255, 0.15) 55%, transparent 72%);
  border-radius: 50%;
  animation: fxPuddle 3.4s ease-in-out infinite;
}
@keyframes fxPuddle { 0%, 100% { transform: scaleX(1); opacity: 0.7; } 50% { transform: scaleX(1.12); opacity: 1; } }

/* --- ぬふ: 虹・ペイント --- */
.fx-rainbow-svg {
  position: absolute;
  left: -4%;
  bottom: -14%;
  width: 360px;
  max-width: 70vw;
  transform-origin: 50% 100%;
  animation: fxRainbowPop 3.4s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.15));
}
@keyframes fxRainbowPop { 0%, 100% { transform: scale(0.9); opacity: 0.75; } 50% { transform: scale(1.05); opacity: 1; } }
.fx-splat {
  position: absolute;
  width: 58px;
  height: 52px;
  border-radius: 62% 38% 55% 45% / 45% 60% 40% 55%;
  opacity: 0.85;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.18), inset 4px 4px 0 rgba(255, 255, 255, 0.35);
  animation: fxSplat 5s ease-in-out infinite;
}
.fx-splat::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: -6px;
  width: 16px;
  height: 14px;
  background: inherit;
  border-radius: 50% 60% 55% 45%;
}
@keyframes fxSplat {
  0%, 100% { transform: rotate(-8deg) translateY(0) scale(1); }
  30% { transform: rotate(6deg) translateY(-10px) scale(1.06); }
  60% { transform: rotate(-4deg) translateY(-4px) scale(0.97); }
}
.fx-drip {
  position: absolute;
  top: -34px;
  width: 16px;
  height: 28px;
  border-radius: 50% 50% 50% 50% / 68% 68% 32% 32%;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.18);
  animation: fxDrip 5s ease-in infinite;
}
@keyframes fxDrip {
  0% { transform: translateY(0) scaleY(0.9); opacity: 0; }
  10% { opacity: 0.95; }
  100% { transform: translateY(112vh) scaleY(1); opacity: 0.2; }
}

/* --- レイ: ロックオン / 狙撃スコープ（最重点） --- */
[data-member="rei"] .intro-overlay {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 70, 70, 0.14) 0 190px, transparent 191px),
    radial-gradient(circle at 50% 118%, rgba(255, 70, 70, 0.12) 0 320px, transparent 322px),
    linear-gradient(180deg, #070b13 0%, #0c1322 55%, #060a12 100%);
}
[data-member="rei"] .intro-ring { display: none; }
[data-member="rei"] .intro-art { box-shadow: 0 16px 0 rgba(0, 0, 0, 0.08), 0 0 60px rgba(255, 90, 90, 0.45), 0 24px 48px rgba(0, 0, 0, 0.4); }
.fx-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 210, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 210, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  animation: fxGridPan 7s linear infinite;
}
@keyframes fxGridPan { to { background-position: 46px 46px; } }
.fx-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -6%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(140, 255, 190, 0.85), transparent);
  box-shadow: 0 0 18px 2px rgba(140, 255, 190, 0.5);
  opacity: 0;
  animation: fxScan 3.4s ease-in-out infinite;
}
@keyframes fxScan {
  0% { top: -6%; opacity: 0; }
  8% { opacity: 0.95; }
  50% { top: 104%; opacity: 0.7; }
  55%, 100% { opacity: 0; }
}
.fx-corner { position: absolute; width: 44px; height: 44px; opacity: 0.9; }
.fx-corner::before, .fx-corner::after { content: ""; position: absolute; background: #ff5f5f; box-shadow: 0 0 8px rgba(255, 95, 95, 0.8); }
.fx-corner::before { width: 100%; height: 3px; }
.fx-corner::after { width: 3px; height: 100%; }
.fx-corner.c1 { left: 26px; top: 26px; }
.fx-corner.c1::before { top: 0; left: 0; }
.fx-corner.c1::after { top: 0; left: 0; }
.fx-corner.c2 { right: 26px; top: 26px; }
.fx-corner.c2::before { top: 0; right: 0; }
.fx-corner.c2::after { top: 0; right: 0; }
.fx-corner.c3 { left: 26px; bottom: 26px; }
.fx-corner.c3::before { bottom: 0; left: 0; }
.fx-corner.c3::after { bottom: 0; left: 0; }
.fx-corner.c4 { right: 26px; bottom: 26px; }
.fx-corner.c4::before { bottom: 0; right: 0; }
.fx-corner.c4::after { bottom: 0; right: 0; }
.fx-hud-top, .fx-hud-bot, .fx-code, .fx-clock {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  color: #9fd8ff;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  text-shadow: 0 0 8px rgba(120, 200, 255, 0.7);
}
.fx-hud-top {
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 18, 30, 0.6);
  border: 1px solid rgba(120, 210, 255, 0.35);
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.fx-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5f5f; box-shadow: 0 0 10px 2px rgba(255, 95, 95, 0.8); animation: fxBlink 1s steps(2) infinite; }
@keyframes fxBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
.fx-hud-bot { bottom: 26px; left: 50%; transform: translateX(-50%); color: #ffb0b0; font-size: 0.8rem; animation: fxBlink 1.4s steps(2) infinite; }
.fx-code { bottom: 26px; left: 30px; color: rgba(159, 216, 255, 0.75); }
.fx-clock { top: 26px; right: 30px; color: rgba(159, 216, 255, 0.75); }
.fx-plus { position: absolute; width: 12px; height: 12px; opacity: 0; animation: fxBlink 2.4s steps(2) infinite; }
.fx-plus::before, .fx-plus::after { content: ""; position: absolute; background: rgba(255, 95, 95, 0.9); }
.fx-plus::before { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.fx-plus::after { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.fx-reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  height: 320px;
  max-width: 84vw;
  max-height: 84vw;
  opacity: 0;
  animation: fxLockSeq 3s ease-in-out forwards;
}
@keyframes fxLockSeq {
  0% { transform: translate(-50%, -50%) scale(0.55); opacity: 0; }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(0.55); }
  42% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
  58% { transform: translate(-50%, -50%) scale(0.96); }
  72% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
}
.fx-reticle::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 90, 90, 0.9) 0 3deg, transparent 3deg 12deg);
  -webkit-mask: radial-gradient(circle, transparent 0 68%, #000 69% 74%, transparent 75%);
  mask: radial-gradient(circle, transparent 0 68%, #000 69% 74%, transparent 75%);
  animation: fxSpin 6s linear infinite;
}
.fx-reticle::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 90, 90, 0.4), transparent 70deg);
  animation: fxSpin 2.6s linear infinite;
}
.fx-r-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 90, 90, 0.85);
  box-shadow: 0 0 22px rgba(255, 90, 90, 0.5), inset 0 0 22px rgba(255, 90, 90, 0.25);
  animation: fxLockPulse 1.8s ease-in-out 2.4s infinite;
}
@keyframes fxLockPulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.06); opacity: 0.6; } }
.fx-lock { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; transform: translate(-50%, -50%); }
.fx-lock2 { position: absolute; inset: 0; }
.fx-lock::before, .fx-lock::after, .fx-lock2::before, .fx-lock2::after {
  content: "";
  position: absolute;
  background: rgba(255, 90, 90, 0.95);
  box-shadow: 0 0 10px rgba(255, 90, 90, 0.7);
}
.fx-lock::before { left: 50%; top: 0; bottom: 40%; width: 2.5px; transform: translateX(-50%); }
.fx-lock::after { top: 50%; left: 0; right: 40%; height: 2.5px; transform: translateY(-50%); }
.fx-lock2::before { left: 50%; top: 40%; bottom: 0; width: 2.5px; transform: translateX(-50%); }
.fx-lock2::after { top: 50%; left: 40%; right: 0; height: 2.5px; transform: translateY(-50%); }
.fx-locktext {
  position: absolute;
  left: 50%;
  top: 63%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.22em;
  color: #ff6a5a;
  text-shadow: 0 0 16px rgba(255, 90, 90, 0.9), 0 0 34px rgba(255, 90, 90, 0.5);
  opacity: 0;
  animation: fxLockText 1.6s ease-in-out 2.3s forwards;
}
@keyframes fxLockText {
  0%, 92%, 95%, 97%, 100% { opacity: 1; }
  93%, 96% { opacity: 0.15; }
}
.fx-lockflash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(255, 90, 90, 0.55), rgba(255, 60, 60, 0.25) 40%, transparent 65%);
  opacity: 0;
  animation: fxLockFlash 0.8s ease-out 2.05s;
}
@keyframes fxLockFlash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

/* ============================================================
   タレント別 イントロ演出の拡張（シーン背景＋クライマックス）
   ============================================================ */

/* 共通: クライマックス（画面フラッシュ＆決め文字） */
.fx-flash { position: absolute; inset: 0; opacity: 0; pointer-events: none; animation: fxFlashK 0.9s ease-out 1.9s; }
@keyframes fxFlashK { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.fx-fin {
  position: absolute;
  left: 50%;
  top: 73%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.7), 0 0 44px rgba(255, 255, 255, 0.35);
  opacity: 0;
  animation: fxFinK 2.2s ease-in-out 2.15s forwards;
}
@keyframes fxFinK {
  0% { opacity: 0; letter-spacing: 0.5em; filter: blur(10px); transform: translateX(-50%) scale(0.92); }
  30% { opacity: 1; }
  100% { opacity: 1; letter-spacing: 0.18em; filter: blur(0); transform: translateX(-50%) scale(1); }
}

/* --- このみ: チョコレート & ウルフ --- */
[data-member="konomi"] .intro-overlay {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.55) 0 190px, transparent 191px),
    linear-gradient(160deg, #d8ecf2 0%, #5f97a4 58%, #37697a 100%);
}
[data-member="konomi"] .intro-ring { opacity: 0.35; }

/* ミリちゃん: 薄紫 → 紫がかった薄いピンク（このみの水色系と区別） */
[data-member="milchan"] .intro-overlay {
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.6) 0 180px, transparent 181px),
    linear-gradient(160deg, #e3d9f6 0%, #cdbcf0 50%, #eac9de 100%);
}
[data-member="milchan"] .intro-ring { opacity: 0.4; }

/* ぬふ: 虹テーマの明るいパステルピンク（右下が暗くならないように明色のみ） */
[data-member="nuhu"] .intro-overlay {
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.6) 0 180px, transparent 181px),
    linear-gradient(160deg, #ffedf3 0%, #ffd0e0 50%, #f5b9d1 100%);
}
[data-member="nuhu"] .intro-ring { opacity: 0.4; }
.fx-ears {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 92px;
  opacity: 0;
  animation: fxEarsIn 0.8s ease-out 1s forwards;
}
.fx-ears i {
  width: 40px;
  height: 54px;
  background: linear-gradient(180deg, #5f97a4, #37697a);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.18));
}
@keyframes fxEarsIn { from { opacity: 0; transform: translateX(-50%) translateY(14px); } to { opacity: 1; transform: translateX(-50%); } }
.fx-paw { position: absolute; width: 30px; height: 30px; opacity: 0; animation: fxPawIn 0.9s ease-out forwards; }
.fx-paw::before, .fx-paw::after { content: ""; position: absolute; background: rgba(255, 255, 255, 0.75); border-radius: 50%; }
.fx-paw::before { width: 12px; height: 12px; left: 2px; top: 1px; }
.fx-paw::after { width: 13px; height: 12px; right: 2px; top: 0; }
.fx-paw b { position: absolute; left: 4px; top: 10px; width: 22px; height: 17px; border-radius: 50% 50% 58% 58%; background: rgba(255, 255, 255, 0.75); }
@keyframes fxPawIn { from { opacity: 0; } to { opacity: 1; } }
.fx-choco .fx-flash { background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.6), rgba(214, 238, 246, 0.4) 40%, transparent 65%); }

/* --- まほろ: 苺 --- */
.fx-straw {
  position: absolute;
  bottom: -60px;
  width: 30px;
  height: 30px;
  color: #ff5d7e;
  filter: drop-shadow(0 2px 6px rgba(140, 20, 50, 0.3));
  animation: fxStrawRise 7s linear infinite;
}
.fx-straw svg { width: 100%; height: 100%; display: block; }
@keyframes fxStrawRise {
  0% { transform: translateY(0) rotate(-10deg); opacity: 0; }
  12% { opacity: 0.95; }
  80% { opacity: 0.6; }
  100% { transform: translateY(-118vh) rotate(16deg); opacity: 0; }
}
.fx-antler {
  position: absolute;
  width: 96px;
  height: 96px;
  color: rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 2px 6px rgba(140, 20, 50, 0.25));
  animation: fxAntlerBob 6s ease-in-out infinite;
}
.fx-antler svg { width: 100%; height: 100%; display: block; }
@keyframes fxAntlerBob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}
[data-member="mahoro"] .intro-overlay {
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.6) 0 190px, transparent 191px),
    linear-gradient(160deg, #ffe4ec 0%, #ffb6c9 55%, #ff8fa8 100%);
}
[data-member="mahoro"] .intro-ring { opacity: 0.4; }

/* --- のの: ステージ & ダイヤ --- */
[data-member="nono"] .intro-overlay {
  background:
    radial-gradient(circle at 50% 125%, rgba(130, 95, 230, 0.4) 0 340px, transparent 342px),
    linear-gradient(180deg, #171233 0%, #251a4b 55%, #120e28 100%);
}
[data-member="nono"] .intro-art { box-shadow: 0 16px 0 rgba(0, 0, 0, 0.08), 0 0 70px rgba(175, 145, 255, 0.55), 0 24px 48px rgba(0, 0, 0, 0.4); }
.fx-spot {
  position: absolute;
  left: 50%;
  top: -16%;
  width: 44vw;
  height: 62vh;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.05) 72%, transparent);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  animation: fxSpotK 5s ease-in-out infinite;
}
@keyframes fxSpotK { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.85; } }
.fx-vinyl {
  position: absolute;
  left: 10%;
  top: 9%;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 9px solid #2a2145;
  background: repeating-radial-gradient(circle at 50% 50%, #18122a 0 6px, #262040 6px 9px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  animation: fxSpin 8s linear infinite;
}
.fx-vinyl::before {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd166 0 9%, #c98a2e 30%, #7a2141 31% 100%);
}
.fx-vinyl::after { content: ""; position: absolute; inset: 42px; border-radius: 50%; background: radial-gradient(#f4e9ff 0 20%, transparent 21%); }
.fx-eq { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 9px; }
.fx-eq i {
  width: 10px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #cdbcff, #6d609d);
  box-shadow: 0 0 12px rgba(160, 130, 255, 0.6);
  animation: fxEqK 1.2s ease-in-out infinite;
}
@keyframes fxEqK { 0%, 100% { height: 20px; } 50% { height: 74px; } }
.fx-note .fx-flash { background: radial-gradient(circle at 50% 46%, rgba(215, 185, 255, 0.55), rgba(155, 115, 255, 0.3) 40%, transparent 65%); }
.fx-note .fx-fin { color: #e2ccff; text-shadow: 0 0 18px rgba(195, 155, 255, 0.9), 0 0 44px rgba(150, 110, 255, 0.5); }

/* --- あくび: 魔界の門 --- */
[data-member="akubi"] .intro-overlay {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 150, 140, 0.35) 0 210px, transparent 211px),
    linear-gradient(180deg, #a3222f 0%, #d93a4e 55%, #801620 100%);
}
[data-member="akubi"] .intro-ring { display: none; }
[data-member="akubi"] .intro-art { box-shadow: 0 16px 0 rgba(0, 0, 0, 0.08), 0 0 60px rgba(255, 60, 50, 0.5), 0 24px 48px rgba(0, 0, 0, 0.4); }
.fx-penta {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: radial-gradient(circle, rgba(255, 60, 50, 0.5), rgba(255, 40, 40, 0.16) 58%, transparent 60%);
  opacity: 0;
  animation: fxPentaK 2.6s ease-in-out 1.2s infinite;
}
.fx-penta::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 85, 60, 0.65);
  animation: fxSpin 16s linear infinite;
}
@keyframes fxPentaK {
  0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.86) rotate(-8deg); }
  50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.04) rotate(8deg); }
}
.fx-flame2 {
  position: absolute;
  width: 90px;
  height: 110px;
  background: radial-gradient(circle at 50% 80%, #c9b6ff 0 10%, #7a5ae0 40%, rgba(60, 20, 110, 0.9) 68%, transparent 74%);
  border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  transform-origin: 50% 100%;
  animation: fxFlameF 1.6s ease-in-out infinite;
}
.fx-flame2::after {
  content: "";
  position: absolute;
  left: 30%;
  top: 18%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle at 50% 60%, rgba(255, 245, 255, 0.9) 0 42%, transparent 43%);
  border-radius: 50%;
  animation: fxFlameF 1.1s ease-in-out infinite reverse;
}
.fx-demon .fx-flash { background: radial-gradient(circle at 50% 46%, rgba(255, 85, 60, 0.55), rgba(200, 30, 40, 0.3) 40%, transparent 65%); }

/* --- こま: お祭りの夜 --- */
[data-member="koma"] .intro-overlay {
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 224, 160, 0.5) 0 230px, transparent 231px),
    linear-gradient(180deg, #6a4bb0 0%, #d98a9f 48%, #f6b877 84%, #8a5a24 100%);
}
[data-member="koma"] .intro-ring { opacity: 0.35; }
.fx-lantern { position: absolute; width: 22px; animation: fxFloat 6s ease-in-out infinite; }
.fx-lantern::before {
  content: "";
  display: block;
  width: 22px;
  height: 27px;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 40%, #ffd9a0, #f28a2e 80%);
  box-shadow: 0 0 24px rgba(255, 170, 90, 0.65);
}
.fx-lantern::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 2px auto 0;
  border-radius: 50%;
  position: relative;
  top: -2px;
  background: #7a4a1e;
}
.fx-hanabi { position: absolute; width: 126px; height: 126px; opacity: 0; animation: fxHana 3.4s ease-out infinite; }
.fx-hanabi::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 224, 150, 0.95) 0 5%, transparent 6%),
    repeating-conic-gradient(rgba(255, 205, 110, 0.85) 0 4deg, transparent 4deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 0 11%, transparent 40%);
  mask: radial-gradient(circle, #000 0 11%, transparent 40%);
}
.fx-hana2::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 225, 240, 0.95) 0 5%, transparent 6%),
    repeating-conic-gradient(rgba(255, 160, 208, 0.85) 0 4deg, transparent 4deg 14deg);
}
@keyframes fxHana {
  0% { transform: scale(0.2); opacity: 0; }
  12% { opacity: 1; }
  45% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}
.fx-koma .fx-flash { background: radial-gradient(circle at 50% 46%, rgba(255, 222, 140, 0.6), rgba(255, 170, 70, 0.35) 40%, transparent 65%); }

/* --- らこ: ビーチDJ --- */
[data-member="raco"] .intro-overlay {
  background:
    radial-gradient(circle at 50% 122%, rgba(255, 255, 255, 0.55) 0 330px, transparent 332px),
    linear-gradient(180deg, #ffe79a 0%, #ffce54 45%, #ffb62e 100%);
}
[data-member="raco"] .intro-ring { opacity: 0.4; }
.fx-ball {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 18%, #ffc94d 40%, #e88a1e 100%);
  box-shadow: 0 0 30px rgba(255, 200, 90, 0.55), inset -8px -10px 0 rgba(0, 0, 0, 0.18);
  animation: fxBallK 2.2s ease-in-out infinite;
}
@keyframes fxBallK {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-86px) rotate(150deg); }
  55% { transform: translateY(0) rotate(300deg); }
  75% { transform: translateY(-24px) rotate(380deg); }
}
.fx-deck { position: absolute; right: 7%; bottom: 4%; display: flex; align-items: flex-end; gap: 9px; }
.fx-plate {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #262030 0 5px, #3b3447 5px 7px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45), inset 0 0 0 3px #0f0d14;
  animation: fxSpin 6s linear infinite;
}
.fx-plate::after { content: ""; position: absolute; inset: 25px; border-radius: 50%; background: #ffd166; box-shadow: 0 0 12px rgba(255, 209, 102, 0.7); }
.fx-fader { position: relative; width: 56px; }
.fx-fader::before {
  content: "";
  display: block;
  width: 10px;
  height: 62px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a3450, #241f2e);
}
.fx-fader::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 34px;
  height: 13px;
  border-radius: 999px;
  background: #ffd166;
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.6);
  animation: fxFaderK 2.6s ease-in-out infinite;
}
@keyframes fxFaderK { 0%, 100% { top: 49px; } 50% { top: 6px; } }
.fx-beat { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; transform: translate(-50%, -50%); }
.fx-beat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 209, 102, 0.85);
  animation: fxBeatRing 1.9s ease-out infinite;
}
@keyframes fxBeatRing { 0% { transform: scale(0.35); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.fx-sea .fx-flash { background: radial-gradient(circle at 50% 46%, rgba(255, 240, 190, 0.6), rgba(255, 200, 120, 0.35) 40%, transparent 65%); }

/* --- ゆら: 深海のクラゲ --- */
.fx-jelly { position: absolute; width: 90px; opacity: 0.92; animation: fxJellyDrift 10s ease-in-out infinite; }
.fx-jelly .j-dome {
  display: block;
  width: 100%;
  height: 58px;
  border-radius: 50% 50% 42% 42%;
  background: radial-gradient(circle at 34% 26%, rgba(215, 242, 255, 0.95), rgba(150, 205, 255, 0.55) 70%, rgba(95, 165, 240, 0.4));
  box-shadow: 0 0 34px rgba(150, 220, 255, 0.65);
}
.fx-jelly .j-dome::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translateX(-50%);
  width: 44%;
  height: 8px;
  border-radius: 50%;
  background: rgba(195, 238, 255, 0.85);
}
.fx-jelly .j-t {
  position: absolute;
  top: 56%;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(160, 215, 255, 0.95), rgba(150, 205, 255, 0.25));
  transform-origin: 50% 0;
  animation: fxTent 2.6s ease-in-out infinite;
}
@keyframes fxTent {
  0%, 100% { transform: translateX(-50%) rotate(-12deg) scaleY(1); }
  50% { transform: translateX(-50%) rotate(14deg) scaleY(1.1); }
}
@keyframes fxJellyDrift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }
.fx-deep .fx-flash { background: radial-gradient(circle at 50% 46%, rgba(185, 232, 255, 0.42), rgba(125, 195, 255, 0.22) 40%, transparent 65%); }

/* --- ぬふ: 虹が描かれていく --- */
.fx-rainbow-svg { animation: none; }
.fx-rainbow-svg path {
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: fxDraw 1.5s ease-out forwards;
}
.fx-rainbow-svg path:nth-child(2) { animation-delay: 0.22s; }
.fx-rainbow-svg path:nth-child(3) { animation-delay: 0.44s; }
.fx-rainbow-svg path:nth-child(4) { animation-delay: 0.66s; }
.fx-rainbow-svg path:nth-child(5) { animation-delay: 0.88s; }
@keyframes fxDraw { to { stroke-dashoffset: 0; } }
.fx-blob {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  opacity: 0;
  animation: fxBlobK 2.6s ease-out infinite;
}
@keyframes fxBlobK {
  0% { transform: scale(0); opacity: 0; }
  14% { transform: scale(1.15); opacity: 1; }
  34% { transform: scale(1); }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px) scale(0.85); }
}
.fx-paint .fx-flash { background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.6), rgba(255, 190, 225, 0.35) 40%, transparent 65%); }

/* --- ツクリ: 星夜 --- */
[data-member="tsukuri"] .intro-overlay {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 235, 0.35) 0 140px, transparent 141px),
    linear-gradient(180deg, #4a5cae 0%, #6378c9 55%, #3b4d99 100%);
}
[data-member="tsukuri"] .intro-ring { opacity: 0.3; }
.fx-star-shoot {
  position: absolute;
  width: 110px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff, transparent);
  opacity: 0;
  animation: fxShoot 5.2s linear infinite;
  transform: rotate(-28deg);
}
@keyframes fxShoot {
  0% { left: 4%; top: -5%; opacity: 0; }
  4% { opacity: 0.95; }
  13% { left: 58%; top: 22%; opacity: 0; }
  100% { left: 58%; top: 22%; opacity: 0; }
}
.fx-pillow {
  position: absolute;
  left: 11%;
  bottom: 8%;
  width: 116px;
  height: 54px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f4f6ff, #cdd5ea);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35), inset 0 4px 0 rgba(255, 255, 255, 0.85);
  animation: fxPillowK 2.6s ease-in-out infinite;
}
.fx-pillow::before {
  content: "";
  position: absolute;
  inset: 10px 8px;
  border-radius: 13px;
  border: 2px solid rgba(150, 160, 195, 0.45);
}
@keyframes fxPillowK { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
.fx-sleep .fx-flash { background: radial-gradient(circle at 50% 46%, rgba(225, 228, 255, 0.5), rgba(165, 175, 255, 0.28) 40%, transparent 65%); }

/* --- リズ: 雷雨の夜 --- */
[data-member="liz"] .intro-overlay {
  background:
    radial-gradient(circle at 50% 26%, rgba(180, 220, 255, 0.14) 0 200px, transparent 201px),
    linear-gradient(180deg, #0d1524 0%, #15243c 55%, #090f1a 100%);
}
[data-member="liz"] .intro-ring { opacity: 0.35; }
.fx-umbrella { position: absolute; right: 10%; top: 7%; width: 150px; height: 138px; animation: fxUmbrellaK 3.4s ease-in-out infinite; }
.fx-umbrella svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5)); }
@keyframes fxUmbrellaK { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(7deg); } }
.fx-bolt { position: absolute; left: 50%; top: -12%; transform: translateX(-50%); opacity: 0; animation: fxBoltK 3.6s ease-out infinite; filter: drop-shadow(0 0 18px rgba(255, 242, 200, 0.9)); }
.fx-bolt svg { display: block; }
@keyframes fxBoltK {
  0% { opacity: 0; }
  3% { opacity: 1; }
  6% { opacity: 0.12; }
  9% { opacity: 0.9; }
  15% { opacity: 0; }
  100% { opacity: 0; }
}
.fx-flash2 { position: absolute; inset: 0; opacity: 0; pointer-events: none; animation: fxBoltK 3.6s ease-out infinite; background: radial-gradient(circle at 50% 40%, rgba(215, 235, 255, 0.5), rgba(150, 200, 255, 0.25) 45%, transparent 70%); }

/* タレントページ以外（index）は FX を出さない */
body:not([data-member]) .intro-fx { display: none; }

/* プロフィール内ファンマーク画像 */
.fanmark-img {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  outline: 2px solid var(--accent);
  vertical-align: -7px;
  margin-right: 6px;
  background: #fff;
}
.fanmark-img img { width: 100%; height: 100%; object-fit: cover; }
.profile-table td svg { vertical-align: -3px; }

/* ============================================================
   推し選択オンボーディング
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(40, 30, 25, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
}
.modal-overlay.open { display: flex; padding-top: 80px; align-items: flex-start; }
@media (max-width:600px){
  .modal-overlay.open { padding-top: 76px; }
}
.modal {
  background: #fff;
  border: 4px solid #fff;
  outline: 3px solid var(--accent);
  border-radius: 28px;
  padding: 30px 26px;
  max-width: 560px;
  width: 100%;
  max-height: 84vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: introPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal h2 { font-family: var(--font-display); font-weight: 900; text-align: center; }
.modal-sub { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 8px 0 18px; }
.credits-list { display: grid; gap: 14px; margin-top: 6px; }
.credits-item { border: 3px solid #fff; outline: 2px solid rgba(0, 0, 0, 0.12); border-radius: 16px; padding: 14px 16px; background: var(--card); }
.credits-name { font-weight: 900; font-size: 1.05rem; }
.credits-role { color: var(--muted); font-size: 0.82rem; margin: 2px 0 10px; }
.credits-links { display: flex; flex-wrap: wrap; gap: 8px; }
.credits-link {
  display: inline-block;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.credits-link:hover { background: var(--accent); color: #fff; }
.oshi-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.oshi-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 3px solid var(--mc, var(--accent));
  border-radius: 16px;
  background: #fff;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.12s;
}
.oshi-option:hover { transform: translateY(-2px); box-shadow: var(--pop-shadow); }
.oshi-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  outline: 2px solid var(--mc, var(--accent));
  flex-shrink: 0;
  background: #fff;
}
.oshi-mark img { width: 100%; height: 100%; object-fit: cover; }
.skip {
  display: block;
  margin: 18px auto 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
}

/* ============================================================
   404ページ
   ============================================================ */
.page-404 { background: var(--grad); }
.nf-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  position: relative;
}
.nf-mark {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 5px solid #fff;
  outline: 4px solid var(--accent);
  box-shadow: 0 10px 0 rgba(90, 80, 70, 0.1);
  overflow: hidden;
  background: #fff;
  animation: floatY 4s ease-in-out infinite;
}
.nf-mark img { width: 100%; height: 100%; object-fit: cover; }
.nf-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 900;
  color: var(--accent-deep);
  text-shadow: 4px 4px 0 #fff;
  line-height: 1.1;
}
.nf-text { color: var(--muted); font-weight: 700; margin: 8px 0 24px; line-height: 2; }
.nf-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   スクロールリビール・その他
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

.video-embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 3px solid #fff; outline: 2px solid rgba(0, 0, 0, 0.1); border-radius: 16px; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .talent-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 720px) {
  .hero { padding-top: 110px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .talent-hero { padding: 28px 16px; }
  .talent-hero-art { width: min(180px, 44vw); }
  .oshi-list { grid-template-columns: 1fr; }
  .profile-table th { width: 84px; }
}
@media (max-width: 480px) {
  .section-title { font-size: 1.35rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-grid { gap: 5px; }
  .cal-day { border-radius: 10px; font-size: 0.8rem; }
  .hero-logo { height: 64px; }
  .goods-carousel { gap: 6px; }
  .car-btn { width: 34px; height: 34px; font-size: 0.8rem; }
  .goods-name { font-size: 0.82rem; }
}

/* ============================================================
   ダークモード・テーマ切替
   ============================================================ */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--glass);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 0 rgba(60, 50, 40, 0.12);
  transition: transform 0.15s;
}
.theme-toggle:hover { transform: translateY(-1px); }

/* 言語切替ボタン（JA/EN） */
.lang-toggle {
  width: 44px;
  height: 40px;
  border-radius: 20px;
  border: 2px solid var(--accent);
  background: var(--glass);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 0 rgba(60, 50, 40, 0.12);
  transition: transform 0.15s;
}
.lang-toggle:hover { transform: translateY(-1px); }

:root[data-theme="dark"] {
  --bg: #15121c;
  --bg-soft: #1e1a28;
  --card: rgba(30, 26, 40, 0.96);
  --glass: rgba(21, 18, 28, 0.92);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f4efe7;
  --muted: #b8ac9b;
  --accent: #8fcbdc;
  --accent-soft: #26383f;
  --accent-deep: #b5e0ec;
  --grad: linear-gradient(150deg, #1a1c2e 0%, #241c2b 55%, #2b1e24 100%);
  --ink: #f4efe7;
  --shadow: 0 6px 0 rgba(0, 0, 0, 0.4), 0 12px 30px rgba(0, 0, 0, 0.45);
  --pop-shadow: 4px 5px 0 rgba(0, 0, 0, 0.55);
}
:root[data-theme="dark"] body::after {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.05) 0 26px, transparent 27px),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.04) 0 12px, transparent 13px),
    radial-gradient(circle at 6% 78%, rgba(255, 255, 255, 0.03) 0 8px, transparent 9px),
    radial-gradient(circle at 94% 64%, rgba(255, 255, 255, 0.04) 0 18px, transparent 19px),
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.03) 0 4px, transparent 5px),
    radial-gradient(circle at 30% 92%, rgba(255, 255, 255, 0.03) 0 6px, transparent 7px);
}
/* 白フチの枠線を暗色に統一 */
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .cd-card,
:root[data-theme="dark"] .cd-rail-item,
:root[data-theme="dark"] .phrase-card,
:root[data-theme="dark"] .talent-hero,
:root[data-theme="dark"] .talent-hero-art,
:root[data-theme="dark"] .cd-pop .cd-num,
:root[data-theme="dark"] .cd-candy .cd-num,
:root[data-theme="dark"] .cd-special .cd-num,
:root[data-theme="dark"] .cd-link { border-color: #2c2838; }
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .cd-card,
:root[data-theme="dark"] .cd-rail-item { outline-color: rgba(255, 255, 255, 0.1); }
/* 白背景の要素を暗色に統一 */
:root[data-theme="dark"] .nav-drop-menu,
:root[data-theme="dark"] .mobile-nav,
:root[data-theme="dark"] .modal,
:root[data-theme="dark"] .oshi-option,
:root[data-theme="dark"] .oshi-mark,
:root[data-theme="dark"] .xpost-card,
:root[data-theme="dark"] .btn-ghost,
:root[data-theme="dark"] .cd-style-btn,
:root[data-theme="dark"] .cd-head-title,
:root[data-theme="dark"] .oshi-select,
:root[data-theme="dark"] .hamburger,
:root[data-theme="dark"] .cal-more,
:root[data-theme="dark"] .member-mark,
:root[data-theme="dark"] .member-catch,
:root[data-theme="dark"] .t-tab img,
:root[data-theme="dark"] .timeline-item::before,
:root[data-theme="dark"] .intro-btn { background: #1e1a28; border-color: #2c2838; }
:root[data-theme="dark"] .t-tab { background: #1e1a28; }
:root[data-theme="dark"] #siteHeader { border-bottom-color: #2c2838; }
:root[data-theme="dark"] .talent-tabs { background: rgba(21, 18, 28, 0.92); border-bottom-color: #26383f; }
:root[data-theme="dark"] .talent-hero {
  border-color: #2c2838;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.06) 0 60px, transparent 61px),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.04) 0 30px, transparent 31px),
    linear-gradient(160deg, color-mix(in srgb, var(--mc-soft, var(--accent-soft)) 65%, #1e1a28), #1e1a28 72%);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35), 0 18px 40px rgba(0, 0, 0, 0.4);
}
:root[data-theme="dark"] .talent-hero h1 { text-shadow: 2px 2px 0 #1e1a28; }
:root[data-theme="dark"] .talent-catch,
:root[data-theme="dark"] .talent-tags span { background: rgba(30, 26, 40, 0.88); }
:root[data-theme="dark"] .heroSweep { background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.12), transparent); }
:root[data-theme="dark"] .cal-day { background: rgba(255, 255, 255, 0.06); border-color: #2c2838; outline-color: rgba(255, 255, 255, 0.08); }
:root[data-theme="dark"] .placeholder { background: rgba(255, 255, 255, 0.06); }
:root[data-theme="dark"] .cd-simple { background: rgba(30, 26, 40, 0.94); border-color: #2c2838; }
:root[data-theme="dark"] .goods-tile {
  border-color: #2c2838;
  background: linear-gradient(160deg, color-mix(in srgb, var(--gc) 24%, #1e1a28), color-mix(in srgb, var(--gc) 8%, #1e1a28));
}
:root[data-theme="dark"] .video-thumb { border-color: #2c2838; outline-color: rgba(255, 255, 255, 0.08); background: #221e30; }
:root[data-theme="dark"] .video-card .video-thumb,
:root[data-theme="dark"] .stream-item .video-thumb { border-bottom-color: #2c2838; }
:root[data-theme="dark"] .wave { filter: brightness(0.4); }
:root[data-theme="dark"] .birthday-banner { background: linear-gradient(90deg, var(--accent-soft), #1e1a28); }
:root[data-theme="dark"] footer { background: rgba(255, 255, 255, 0.04); border-top-color: #2c2838; box-shadow: 0 -3px 0 rgba(0, 0, 0, 0.35); }
:root[data-theme="dark"] footer .disclaimer { color: #c9a35e; }
:root[data-theme="dark"] .cd-special .cd-num {
  outline-color: rgba(255, 190, 80, 0.35);
  background: linear-gradient(160deg, #3a3322, #322c1d);
  color: #f5c96b;
}
:root[data-theme="dark"] .cd-special .cd-label {
  background: linear-gradient(120deg, #f0a2b5, #f0b36a, #a9c4f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root[data-theme="dark"] .cd-special .cd-when { color: #e0a64d; }
:root[data-theme="dark"] .cd-special .cd-note { color: #c9a35e; }
:root[data-theme="dark"] .stream-count,
:root[data-theme="dark"] .cd-when { color: var(--accent-deep); }
:root[data-theme="dark"] .car-btn { border-color: rgba(255, 255, 255, 0.14); }
/* イントロは通常と同じ表示のまま、画面の明るさだけ少し下げる */
:root[data-theme="dark"] .intro-overlay { filter: brightness(0.82); }

/* ============================================================
   配信予定: リマインド・カレンダー追加
   ============================================================ */
.stream-item { position: relative; }
.stream-main { display: block; min-width: 0; }
.stream-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px 16px;
  border-top: 2px dashed var(--border);
}
.stream-cal,
.stream-remind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--accent-deep);
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
  transition: all 0.15s;
}
.stream-cal:hover { text-decoration: none; transform: translateY(-1px); }
.stream-remind:hover { transform: translateY(-1px); }
.stream-remind.is-active {
  background: var(--accent-deep);
  color: #fff;
  border-color: var(--accent-deep);
}
.stream-cal { text-decoration: none; }
:root[data-theme="dark"] .stream-cal,
:root[data-theme="dark"] .stream-remind { background: #1e1a28; }

/* ============================================================
   Milli Games ゲーム紹介枠（ホーム）
   ============================================================ */
.game-feature-section { margin-top: 8px; display: flex; flex-direction: column; gap: 20px; }
.game-feature {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  border-radius: 26px;
  border: 3px solid #fff;
  outline: 2px solid var(--accent);
  background: var(--card);
  box-shadow: var(--shadow);
}
.game-feature-icon {
  width: 170px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #fff;
  outline: 3px solid var(--accent);
  box-shadow: var(--pop-shadow);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-feature-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.game-feature-body { flex: 1; min-width: 0; }
.game-feature-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #fff;
  background: var(--accent-deep);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 8px;
}
.game-feature-game {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.4;
}
.game-feature-desc { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }
.game-feature-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.84rem;
  font-weight: 900;
  color: #fff;
  background: var(--accent-deep);
  border-radius: 999px;
  padding: 8px 20px;
  border: 2px solid #fff;
  box-shadow: 2px 3px 0 rgba(45, 35, 20, 0.2);
}
.game-feature-link:hover { text-decoration: none; transform: translateY(-1px); }
.game-feature-link.is-disabled { background: var(--muted); pointer-events: none; }
.game-feature-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; font-weight: 700; }
@media (max-width: 620px) {
  .game-feature { flex-direction: column; text-align: center; padding: 22px 16px; }
  .game-feature-icon { width: 150px; height: 68px; }
}

/* カウントダウンカード: カレンダー追加リンク */
.cd-actions { margin-top: 12px; display: flex; justify-content: center; }
.cd-cal {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--accent-deep);
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 5px 16px;
  box-shadow: 2px 3px 0 rgba(45, 35, 20, 0.16);
}
.cd-cal:hover { text-decoration: none; transform: translateY(-1px); }
:root[data-theme="dark"] .cd-cal { background: #1e1a28; }

/* 配信予定: アクション行・注記 */
.stream-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin: -6px 0 12px;
}

/* トースト（初回リマインド案内など） */
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 24px);
  max-width: min(92vw, 480px);
  background: var(--card);
  border: 3px solid #fff;
  outline: 2px solid var(--accent);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
:root[data-theme="dark"] .toast { border-color: #2c2838; }
.toast-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}

/* イベントカレンダー: 通知・カレンダー追加アクション行 */
.cal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-left: auto;
  justify-content: flex-end;
}
.evm-item .cal-actions { margin-left: 0; justify-content: flex-start; }
@media (max-width: 620px) {
  .cal-actions { width: 100%; margin-left: 0; }
}

/* ============================================================
   モバイル改善（ヘッダー圧縮・カウントダウン収まり・余白調整）
   ============================================================ */
.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
section[id]:not(#home) { scroll-margin-top: 76px; }

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 0 20px; }
  .hero { padding-top: 100px; }
  .section-sub { padding-left: 32px; }
  .talent-tabs { padding: 8px 10px; }
  .t-tab { font-size: 0.78rem; padding: 4px 10px 4px 5px; gap: 5px; }
  .t-tab img { width: 24px; height: 24px; }
  .talent-hero { padding: 26px 14px; }
  .talent-catch { font-size: 0.95rem; padding: 7px 16px; }
  .voice-btn { padding: 10px 18px; font-size: 0.88rem; }
  .voice-note { min-width: 100%; }
  .profile-table td { font-size: 0.85rem; }
  .birthday-banner { padding: 12px 16px; border-radius: 22px; }
  .cal-title { min-width: 0; font-size: 1.05rem; }
  .cal-item { gap: 10px; padding: 12px; }
  .cal-date-box { width: 54px; height: 54px; }
  .modal { padding: 24px 18px; }
  .float-actions { right: 10px; bottom: 12px; gap: 8px; }
  .share-x { padding: 8px 14px; font-size: 0.8rem; }
  .to-top { width: 42px; height: 42px; }
  .xpost-card { padding: 10px 12px; }
  .news-item { padding: 14px 16px; }
  .cd-rail-item { min-width: 180px; }
  .breadcrumb { font-size: 0.76rem; }
  .intro-catch { padding: 10px 20px; }
  .intro-skip { top: 12px; right: 12px; padding: 6px 14px; font-size: 0.72rem; }
  .intro-stage { padding: 20px 14px; }
  .intro-stage {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .intro-stage::-webkit-scrollbar { display: none; }
  .profile-card.card { padding: 18px; }
}

@media (max-width: 600px) {
  .header-inner { height: 56px; padding: 0 12px; gap: 8px; }
  .talent-tabs { top: 56px; }
  .logo { font-size: 1.05rem; gap: 6px; }
  .logo img { height: 26px; }
  .live-badge { font-size: 0.62rem; padding: 4px 9px; }
  .oshi-select { font-size: 0.76rem; padding: 4px 8px; max-width: 100px; min-width: 0; }
  .theme-toggle { width: 36px; height: 36px; font-size: 0.95rem; }
  .lang-toggle { width: 38px; height: 36px; font-size: 0.78rem; }
  .hamburger { padding: 6px 7px; }
  .hamburger svg { width: 24px; height: 18px; }
  .header-actions { gap: 8px; }
  .mobile-nav { padding: 8px 14px 12px; }
  .mobile-nav a { padding: 9px 4px; font-size: 0.92rem; }
  .hero { padding-top: 92px; }
  .hero-logo { height: 52px; }
  .hero-sub { font-size: 0.92rem; }
  .cd-head { gap: 10px; }
  .cd-head-title { font-size: 0.88rem; padding: 5px 14px; }
  .cd-style-btn { padding: 5px 12px; font-size: 0.8rem; }
  .cd-rail-hint { font-size: 0.7rem; }
  .cd-card { padding: 16px; }
  .cd-featured .cd-label { font-size: 1.15rem; }
  .cd-special .cd-label { font-size: 1.35rem; }
  .cd-digits { gap: 6px; }
  .cd-num { min-width: 60px; font-size: 1.35rem; padding: 8px 6px; border-radius: 12px; }
  .cd-pop.cd-featured .cd-num,
  .cd-candy.cd-featured .cd-num { font-size: 1.6rem; min-width: 66px; }
  .cd-special .cd-num { font-size: 2rem; min-width: 72px; }
  .cd-simple .cd-num { font-size: 1.6rem; }
  .cd-simple.cd-featured .cd-num { font-size: 2.1rem; }
  .cd-simple .cd-unit + .cd-unit::before { font-size: 1.4rem; top: 8px; left: -5px; }
  .stream-actions { padding: 8px 10px 12px; gap: 8px; }
  .stream-cal, .stream-remind { font-size: 0.68rem; padding: 4px 10px; }
  .goods-carousel { gap: 8px; }
  .goods-price { font-size: 0.95rem; }
  .cal-actions { gap: 6px; }
  .evm-item { padding: 12px; }
  .evm-desc { font-size: 0.8rem; }
  .cd-cal { font-size: 0.72rem; padding: 4px 12px; }
  .toast { bottom: 76px; max-width: calc(100vw - 28px); padding: 12px 14px; font-size: 0.8rem; }
  .intro-logo { height: 38px; }
  .intro-art { width: min(140px, 34vw); margin: 12px 0 4px; border-width: 4px; outline-width: 3px; box-shadow: 0 10px 0 rgba(0, 0, 0, 0.08), 0 16px 32px rgba(0, 0, 0, 0.2); }
  .intro-name { font-size: clamp(1.3rem, 5.4vw, 1.7rem); margin-top: 6px; }
  .intro-catch { padding: 10px 16px; border-radius: 18px; line-height: 1.55; }
  .intro-voice-btn { margin-top: 14px; padding: 7px 15px; font-size: 0.78rem; }
  .intro-start { bottom: 9vh; padding: 10px 24px; font-size: 0.9rem; }
}

/* スマホ横持ち・画面が低い場合のイントロ圧縮 */
@media (orientation: landscape) and (max-height: 540px) {
  .intro-stage { padding: 8px 14px; }
  .intro-logo { height: 30px; }
  .intro-art { width: min(110px, 26vh); margin: 6px 0 2px; }
  .intro-name { font-size: 1.2rem; margin-top: 4px; }
  .intro-catch { margin-top: 10px; font-size: 0.85rem; padding: 8px 14px; }
  .intro-voice-btn { margin-top: 10px; padding: 6px 14px; }
  .intro-start { bottom: 6vh; padding: 8px 20px; font-size: 0.85rem; }
}

@media (max-width: 400px) {
  .oshi-select { display: none; }
}

@media (max-width: 480px) {
  .hero { padding-top: 88px; }
  .hero-logo { height: 44px; }
  .header-actions {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .header-actions::-webkit-scrollbar { display: none; }
  .logo { font-size: 0.95rem; gap: 5px; }
  .lang-toggle { width: 32px; height: 32px; font-size: 0.7rem; }
  .theme-toggle { width: 34px; height: 34px; font-size: 0.92rem; }
  .notif-bell { width: 28px; height: 28px; font-size: 0.85rem; }
  .profile-btn { width: 32px; height: 32px; }
  .oshi-select { max-width: 56px; }
  .section-title { gap: 10px; }
  .section-title::before { width: 22px; height: 22px; }
  .section-title::after { width: 40px; }
  .section-sub { padding-left: 32px; }
  .member-card { padding: 16px 10px 14px; }
  .member-mark { width: 92px; height: 92px; }
  .member-name { font-size: 0.92rem; }
  .member-catch { font-size: 0.72rem; }
  .talent-hero-art { width: min(150px, 40vw); }
  .talent-hero h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .intro-art { width: min(130px, 34vw); }
  .intro-name { font-size: clamp(1.2rem, 5.2vw, 1.55rem); }
  .intro-catch { font-size: clamp(0.85rem, 3.4vw, 1rem); }
  .oshi-list { gap: 8px; }
  .oshi-option { padding: 8px 10px; font-size: 0.82rem; gap: 8px; }
  .oshi-mark { width: 36px; height: 36px; }
  .modal { padding: 20px 16px; }
  .cal-tools { gap: 6px; }
  .cal-tools .btn-ghost { padding: 7px 14px; font-size: 0.82rem; }
  .timeline { padding-left: 26px; }
  .timeline-item::before { left: -22px; width: 15px; height: 15px; }
}

/* ============================================================
   アカウント連携（Milli Games / Unishare / Chronicle 共有）
   ============================================================ */
.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-deep);
  background: #fff;
  border: 2px solid var(--accent);
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s;
  flex-shrink: 0;
}
.profile-btn:hover { transform: translateY(-1px); box-shadow: var(--pop-shadow); }
.profile-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  border: 2px solid #fff;
  font-size: 0.9rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
:root[data-theme="dark"] .profile-btn { background: #1e1a28; }
:root[data-theme="dark"] .profile-icon { background: #26383f; }

/* プロフィール編集（名前・アイコン） */
.mp-edit { margin-top: 16px; border-top: 2px dashed var(--accent-soft); padding-top: 14px; }
.mp-edit-sep { font-family: var(--font-display); font-weight: 900; font-size: 0.95rem; color: var(--accent-deep); margin-bottom: 10px; }
.mp-edit-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.mp-edit-label { font-size: 0.82rem; font-weight: 800; color: var(--muted); min-width: 52px; }
.mp-edit-row .mp-input { flex: 1; min-width: 180px; }
.mp-edit-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  border: 2px solid #fff;
  font-size: 1.3rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mp-edit-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-edit-upload { cursor: pointer; font-size: 0.82rem; padding: 8px 14px; }
.mp-emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 4px 0 10px; }
.mp-emoji-btn {
  font-size: 1.15rem;
  padding: 6px 0;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  line-height: 1;
  transition: all 0.12s;
}
.mp-emoji-btn:hover { border-color: var(--accent); }
.mp-emoji-btn.active { border-color: var(--accent-deep); background: var(--accent-soft); }
.mp-edit-note { font-size: 0.75rem; color: var(--muted); margin-bottom: 10px; }
.mp-edit-locked { font-size: 0.8rem; color: var(--muted); margin-top: 14px; border-top: 2px dashed var(--accent-soft); padding-top: 12px; }

/* パスワード再設定ダイアログ（Millipro Chronicle 共通仕様） */
.mp-forgot-btn { display: block; margin: 6px auto 0; background: none; border: none; color: var(--accent); font-size: 0.78rem; text-decoration: underline; cursor: pointer; }
.password-reset-dialog {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, 0.55);
  display: flex; justify-content: center; align-items: center; padding: 16px;
}
.password-reset-dialog.hidden { display: none; }
.password-reset-box {
  position: relative; width: 90%; max-width: 360px; box-sizing: border-box;
  background: #fff; border-radius: 14px; padding: 20px 18px 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.password-reset-close {
  position: absolute; top: 8px; right: 10px; background: none; border: none;
  font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--muted);
}
.password-reset-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.password-reset-sub { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.password-reset-box .mp-input { width: 100%; box-sizing: border-box; margin-bottom: 10px; }
.password-reset-box .mp-submit { width: 100%; }
.password-reset-box .mp-msg { margin-top: 8px; }
:root[data-theme="dark"] .password-reset-box { background: #1e1a28; border-color: #2c2838; }
:root[data-theme="dark"] .password-reset-close { color: #b8ac9b; }

/* 通知ベル */
.notif-bell {
  width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 2px solid var(--accent);
  background: #fff; font-size: 1.05rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.notif-bell.is-on { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
:root[data-theme="dark"] .notif-bell { background: #1e1a28; border-color: #2c2838; }

/* 新着カバー曲 NEW バッジ */
.song-card { position: relative; }
.song-new {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: #ff4d6d; color: #fff; font-size: 0.66rem; font-weight: 800;
  padding: 3px 8px; border-radius: 999px; letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* メンバー比較表（members.html） */
.member-compare { max-width: 960px; margin: 0 auto; }
.cmp-disclaimer { color: var(--muted); font-size: 0.8rem; margin: 10px 0 0; }
.cmp-head { text-align: center; margin-bottom: 18px; }
.cmp-head h2 { font-size: 1.5rem; margin: 0 0 6px; }
.cmp-head p { color: var(--muted); font-size: 0.85rem; margin: 0; }
.cmp-scroll { overflow-x: auto; border-radius: 12px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08); }
.cmp-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; font-size: 0.85rem; }
.cmp-table th {
  background: #f4efe6; color: #4a3f33; padding: 10px 12px; text-align: left;
  font-size: 0.78rem; letter-spacing: 0.03em; border-bottom: 2px solid var(--accent);
  white-space: nowrap;
}
.cmp-table td { padding: 10px 12px; border-bottom: 1px solid #efe9dd; vertical-align: middle; }
.cmp-table tbody tr:hover { background: #faf6ee; }
.cmp-table tbody tr.is-oshi { background: color-mix(in srgb, var(--mc) 12%, #fff); box-shadow: inset 3px 0 0 var(--mc); }
.cmp-name { font-weight: 800; white-space: nowrap; }
.cmp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }
.cmp-sub { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.cmp-catch { color: var(--muted); max-width: 300px; }
:root[data-theme="dark"] .cmp-table { background: #1e1a28; }
:root[data-theme="dark"] .cmp-table th { background: #2c2838; color: #e6e0d2; }
:root[data-theme="dark"] .cmp-table td { border-bottom-color: #2c2838; }
:root[data-theme="dark"] .cmp-table tbody tr:hover { background: #262130; }
:root[data-theme="dark"] .cmp-table tbody tr.is-oshi { background: color-mix(in srgb, var(--mc) 22%, #1e1a28); }

/* 検定 記録・復習 */
.quiz-stats { margin-top: 18px; text-align: left; }
#quizReviewBtn { margin-top: 14px; }
.quiz-stats-row {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 12px;
}
.quiz-stats-row span {
  background: var(--accent-soft); border-radius: 999px; padding: 6px 14px;
  font-size: 0.8rem; font-weight: 700;
}
.quiz-stats-row b { font-size: 0.92rem; }
.quiz-stats-list { background: #faf6ee; border-radius: 12px; padding: 12px 14px; }
.quiz-stats-title { font-size: 0.78rem; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.quiz-stats-item {
  display: flex; gap: 10px; align-items: center; font-size: 0.82rem;
  padding: 5px 0; border-bottom: 1px dashed #e5ddcc;
}
.quiz-stats-item:last-child { border-bottom: none; }
.quiz-stats-item span:first-child { font-weight: 700; width: 52px; }
.quiz-stats-item span:nth-child(2) { color: var(--muted); flex: 1; }
.quiz-stats-item b { min-width: 52px; text-align: right; }
:root[data-theme="dark"] .quiz-stats-list { background: #262130; }
:root[data-theme="dark"] .quiz-stats-item { border-bottom-color: #2c2838; }
:root[data-theme="dark"] .mp-emoji-btn { background: #2c2838; border-color: #3d3850; }
:root[data-theme="dark"] .mp-emoji-btn:hover { border-color: var(--accent); }
:root[data-theme="dark"] .mp-emoji-btn.active { border-color: var(--accent); background: #3a3348; }
:root[data-theme="dark"] .mp-edit-icon { background: #26383f; }
@media (max-width: 440px) {
  .mp-emoji-grid { grid-template-columns: repeat(4, 1fr); }
}

.mp-welcome {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: calc(100vw - 24px);
  padding: 10px 18px;
  border-radius: 999px;
  border: 3px solid var(--accent-deep);
  background: linear-gradient(90deg, var(--accent-soft), #fff);
  box-shadow: var(--pop-shadow);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  pointer-events: none;
  opacity: 0;
}
.mp-welcome.show {
  display: flex;
  animation: mpWelcomeLife 4.5s ease forwards;
}
@keyframes mpWelcomeLife {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-18px); }
  7%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  80%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-40px); }
}
.mp-w-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  border: 2px solid #fff;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mp-w-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-w-text { line-height: 1.6; }
:root[data-theme="dark"] .mp-welcome { background: linear-gradient(90deg, var(--accent-soft), #1e1a28); }

.login-popup {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(40, 30, 25, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-popup.open { display: flex; }
.login-popup-card {
  background: #fff;
  border: 4px solid #fff;
  outline: 3px solid var(--accent);
  border-radius: 28px;
  width: 100%;
  max-width: 440px;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: introPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.login-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px;
}
.login-popup-title { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; }
.login-popup-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.login-popup-body { padding: 4px 20px 22px; }
.login-popup-desc { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; line-height: 1.7; }

.mp-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.mp-tab {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent-deep);
  background: #fff;
  border: 3px solid var(--accent-deep);
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.mp-tab.active { background: var(--accent-deep); color: #fff; box-shadow: var(--pop-shadow); }

.mp-input {
  width: 100%;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 8px;
  outline: none;
}
.mp-input:focus { outline: 3px solid var(--accent-soft); }
.mp-pass-row { position: relative; }
.mp-pass-row .mp-input { padding-right: 44px; }
.mp-eye {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
}
.mp-submit { width: 100%; justify-content: center; margin-top: 2px; }
.mp-msg { font-size: 0.8rem; font-weight: 700; color: #d95454; min-height: 1.2em; margin-top: 8px; }
.mp-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 14px 0 10px;
}
.mp-sep::before, .mp-sep::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 10px); }
.mp-row { font-size: 0.88rem; font-weight: 700; margin-bottom: 8px; }
.mp-row b { color: var(--accent-deep); }
.mp-row-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.mp-setid-row { display: flex; gap: 8px; align-items: center; }
.mp-setid-row .mp-input { margin-bottom: 0; }
.mp-setid-row .btn { flex-shrink: 0; padding: 8px 16px; }
.mp-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mp-oauth-row { display:flex; gap:8px; margin-bottom:12px; }
.mp-oauth-btn { flex:1; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:10px 12px; border-radius:999px; font-size:0.86rem; font-weight:800; cursor:pointer; transition:all 0.15s; border:2px solid transparent; font-family:var(--font-display); }
.mp-oauth-google { background:#fff; color:#3c4043; border-color:#dadce0; box-shadow:0 2px 6px rgba(0,0,0,0.08); }
.mp-oauth-google:hover { background:#f8f9fa; border-color:#c4c4c4; }
.mp-oauth-x { background:#000; color:#fff; border-color:#000; }
.mp-oauth-x:hover { background:#222; }
.mp-link-providers { margin-top:10px; padding:10px 12px; background:rgba(255,255,255,0.7); border:2px dashed var(--accent); border-radius:16px; }
.mp-link-title { font-size:0.82rem; font-weight:900; margin-bottom:6px; }
.mp-link-desc { font-size:0.72rem; color:var(--muted); margin-bottom:10px; line-height:1.5; }
.mp-provider-row { display:flex; align-items:center; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--border); font-size:0.84rem; font-weight:700; }
.mp-provider-row:last-child { border-bottom:none; }
.mp-badge { padding:3px 10px; border-radius:999px; font-size:0.72rem; font-weight:900; background:#eee; color:var(--muted); }
.mp-badge.on { background:var(--accent-soft); color:var(--accent-deep); border:1px solid var(--accent); }
.mp-link-btn { padding:5px 14px; border-radius:999px; border:2px solid var(--accent-deep); background:#fff; color:var(--accent-deep); font-size:0.78rem; font-weight:800; cursor:pointer; }
.mp-link-btn:hover { background:var(--accent-soft); }
.mp-unlink-btn { padding:4px 10px; border-radius:999px; border:1px solid var(--border); background:#fff; color:var(--muted); font-size:0.72rem; cursor:pointer; }
.mp-unlink-btn:hover { border-color:#d95454; color:#d95454; }
:root[data-theme="dark"] .mp-link-providers { background:#1e1a28; }
:root[data-theme="dark"] .login-popup-card { background: #1e1a28; }
:root[data-theme="dark"] .mp-tab { background: #1e1a28; }
:root[data-theme="dark"] .mp-input { background: #15121c; color: var(--text); }
:root[data-theme="dark"] .mp-msg { color: #ff8a8a; }

@media (max-width: 600px) {
  .profile-btn { font-size: 0.74rem; padding: 4px 10px; gap: 5px; }
  .profile-icon { width: 18px; height: 18px; }
  .profile-label { max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .login-popup { padding: 14px; }
  .login-popup-card { border-radius: 22px; }
  .login-popup-body { padding: 2px 16px 18px; }
  .mp-welcome { border-radius: 20px; padding: 9px 14px; font-size: 0.84rem; }
}

/* ============ Milli Unishare 参考: アカウント連携ポップアップ (acct-overlay) ============ */
.acct-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 30, 25, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 950;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.acct-overlay.open { display: flex; animation: fadeUp 0.22s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.acct-box {
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 3px solid #fff;
  outline: 2px solid var(--accent);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(59, 68, 104, 0.32);
  overflow: hidden;
  position: relative;
  overflow-y: auto;
}
.acct-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 18px 22px 12px;
  font-size: 16px;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--text);
}
.acct-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(122, 131, 168, 0.12);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.acct-close:hover { background: rgba(122, 131, 168, 0.22); }
.acct-box input {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  box-sizing: border-box;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.acct-box input:focus { border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-soft); }
.acct-box button {
  border: none;
  background: var(--accent-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  font-family: var(--font-display);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 4px 14px rgba(90, 75, 55, 0.2);
}
.acct-box button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(90, 75, 55, 0.25); }
.acct-box button:active { transform: none; }
.acct-box button.btn-ghost,
.acct-box button[style*="background:#999"] {
  background: #fff !important;
  color: var(--accent-deep) !important;
  border: 2px solid var(--accent) !important;
  box-shadow: none !important;
}
.acct-msg { font-size: 12.5px; color: #c25282; margin: 8px 0 0; min-height: 1em; font-weight: 700; }
.acct-msg.ok { color: #2b7fb0; }
.acct-hint { font-size: 11.5px; color: var(--muted); margin: 8px 0 10px; line-height: 1.6; }
.acct-row { display: flex; gap: 8px; margin-bottom: 10px; }
.acct-row button { flex: 1; }
.acct-pw-wrap { position: relative; margin-bottom: 8px; }
.acct-pw-wrap input { margin-bottom: 0; padding-right: 40px; }
.acct-pw-wrap .acct-pw-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  color: #888;
  box-shadow: none;
}
.acct-pw-wrap .acct-pw-btn:hover { opacity: 0.7; transform: translateY(-50%); }
.acct-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--border);
}
.acct-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  font-size: 26px;
  line-height: 1;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #fff;
  outline: 2px solid var(--accent);
}
.acct-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
#mp-profile-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  font-size: 26px;
  line-height: 1;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #fff;
  outline: 2px solid var(--accent);
}
#mp-profile-icon img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.acct-picon-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.acct-picon-row .acct-avatar { flex-shrink: 0; }
.acct-picon-row input { flex: 1; margin-bottom: 0; }
/* 旧 login-popup との互換: 中身を acct-box 風に寄せる */
.login-popup .mp-edit, .login-popup .mp-emoji-grid, .login-popup .mp-edit-row { display: none; }
:root[data-theme="dark"] .acct-box { background: #1e1a28; border-color: #2c2838; box-shadow: 0 24px 70px rgba(0,0,0,0.5); }
:root[data-theme="dark"] .acct-box input { background: #15121c; color: var(--text); border-color: #2c2838; }
:root[data-theme="dark"] .acct-box h3 { color: var(--text); }
/* パスワードリセットを acct-overlay と同スタイルに */
.password-reset-dialog {
  position: fixed;
  inset: 0;
  background: rgba(40, 30, 25, 0.42);
  backdrop-filter: blur(6px);
  z-index: 960;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.password-reset-dialog.open, .password-reset-dialog:not(.hidden) { display: flex; }
.password-reset-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 3px solid #fff;
  outline: 2px solid var(--accent);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(59,68,104,0.32);
  padding: 22px;
  position: relative;
}
:root[data-theme="dark"] .password-reset-box { background: #1e1a28; }

/* ============================================================
   今日のミリプロボックス＋一括リマインド
   ============================================================ */
.today-box {
  display: none;
  max-width: 640px;
  margin: 22px auto 0;
  padding: 14px 20px 16px;
  text-align: left;
  border-radius: 20px;
  border: 3px dashed var(--accent-deep);
  background: var(--card);
  box-shadow: var(--shadow);
}
.today-box-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.today-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.today-list li { font-size: 0.88rem; line-height: 1.6; color: var(--text); }
.today-list li a { font-weight: 700; }
.today-list li a:hover { text-decoration: underline; }
:root[data-theme="dark"] .today-box { border-color: var(--accent); }

.stream-tools { margin-bottom: 12px; }

.cal-subscribe {
  margin: 6px 0 20px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}
.cal-subscribe a { font-weight: 700; color: var(--accent-deep); }
.cal-subscribe a:hover { text-decoration: underline; }
.cal-subscribe code {
  background: var(--tag-bg, rgba(45, 35, 20, 0.07));
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.78rem;
  word-break: break-all;
}
:root[data-theme="dark"] .cal-subscribe a { color: var(--accent); }
:root[data-theme="dark"] .cal-subscribe code { background: rgba(255, 255, 255, 0.08); }

.goods-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
@media (max-width: 480px) {
  .goods-tools { justify-content: flex-start; }
}
.remind-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  background: var(--accent-deep);
  border: 2px solid #fff;
  outline: 2px solid var(--accent);
  border-radius: 999px;
  padding: 7px 18px;
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(45, 35, 20, 0.2);
  transition: transform 0.15s;
}
.remind-all:hover { transform: translateY(-1px); }
:root[data-theme="dark"] .remind-all { border-color: #2c2838; }
@media (max-width: 480px) {
  .today-box { padding: 12px 14px 14px; margin-top: 16px; }
  .today-list li { font-size: 0.84rem; }
  .remind-all { font-size: 0.75rem; padding: 6px 14px; }
}

/* ============================================================
   サブページ（検定・楽曲一覧）
   ============================================================ */
.subpage-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border: 3px solid #fff;
  outline: 2px solid var(--accent);
  border-radius: 30px;
  padding: 34px 30px;
  margin: 18px 0 34px;
  text-align: center;
}
.subpage-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.9rem;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.subpage-hero p { font-size: 0.92rem; color: var(--muted); }

/* 曲データベース: Milli Unishare への導線 CTA */
.unishare-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 8px 18px 8px 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.unishare-cta:hover {
  text-decoration: none;
  border-color: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(60, 90, 100, 0.18);
}
.unishare-cta img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
}

/* Millivibe CTA: サブスク風サイトへの導線（unishare-cta の下に並ぶ） */
.millivibe-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  margin-left: 8px;
  background: linear-gradient(135deg, #e0f7fa, #f3e5f5 55%, #fce4ec);
  border: 2px solid #b48cf2;
  border-radius: 999px;
  padding: 8px 18px 8px 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.millivibe-cta:hover {
  text-decoration: none;
  border-color: #7c4dff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 77, 255, 0.22);
}
.millivibe-cta img {
  height: 22px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  flex: none;
}
.mv-badge {
  position: absolute;
  top: -8px;
  left: 10px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(120deg, #4fc3f7, #b48cf2, #f78fc0);
  border-radius: 999px;
  padding: 1px 8px;
  border: 1px solid #fff;
  box-shadow: 0 2px 6px rgba(183, 140, 242, 0.35);
  line-height: 1.6;
}
@media (max-width: 600px) {
  .millivibe-cta { font-size: 0.82rem; padding: 7px 14px 7px 8px; margin-left: 0; }
  .millivibe-cta img { height: 18px; max-width: 90px; }
}
@media (max-width: 600px) {
  .unishare-cta { font-size: 0.82rem; padding: 7px 14px 7px 8px; }
}
:root[data-theme="dark"] .subpage-hero { background: linear-gradient(135deg, #2c2838, #242030); }
@media (max-width: 600px) {
  .subpage-hero { padding: 24px 16px; border-radius: 22px; }
  .subpage-hero h1 { font-size: 1.4rem; }
}

/* 極小画面（~340px未満）: ヘッダーが収まらないためロゴを縮小・LIVE バッジを隠す */
@media (max-width: 340px) {
  .live-badge.show { display: none; }
  .header-inner { padding: 0 8px; gap: 6px; }
  .logo { font-size: 0; gap: 0; }
  .logo img { height: 20px; }
  .header-actions { gap: 6px; }
  .lang-toggle { width: 28px; height: 28px; font-size: 0.68rem; }
  .theme-toggle { width: 30px; height: 30px; font-size: 0.85rem; }
  .notif-bell { width: 26px; height: 26px; font-size: 0.8rem; }
  .profile-btn { width: 30px; height: 30px; }
  .hamburger { padding: 4px 5px; }
  .hamburger svg { width: 22px; height: 16px; }
  .cd-rail-wrap { flex: 0 1 auto; min-width: 0; }
}

/* ---- ミリプロ検定 ---- */
.quiz-section { display: flex; justify-content: center; }
.quiz-card {
  width: 100%;
  max-width: 620px;
  padding: 30px 32px;
  text-align: center;
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.quiz-card h2 { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; color: var(--accent-deep); margin-bottom: 10px; }
.quiz-card > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 6px; }
.quiz-note { font-size: 0.78rem !important; opacity: 0.85; }
.quiz-big-btn { font-size: 1rem; padding: 14px 36px; margin-top: 12px; }
.quiz-progress-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.quiz-progress { font-family: var(--font-display); font-weight: 900; color: var(--accent-deep); }
.quiz-q { font-size: 1.12rem !important; line-height: 1.6; margin-bottom: 20px; }
.quiz-opts { display: flex; flex-direction: column; gap: 12px; }
.quiz-opt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  color: var(--text);
  background: #fff;
  border: 2px solid var(--accent-soft);
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.is-correct { border-color: #2f9e5f; background: #e9f7ef; box-shadow: none; }
.quiz-opt.is-wrong { border-color: #d05555; background: #fbeaea; box-shadow: none; }
:root[data-theme="dark"] .quiz-opt { background: #2c2838; border-color: #3d3850; }
:root[data-theme="dark"] .quiz-opt.is-correct { background: #1f3d2e; border-color: #4cc47f; }
:root[data-theme="dark"] .quiz-opt.is-wrong { background: #43262b; border-color: #e07a7a; }
.quiz-explain {
  display: block;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  line-height: 1.7;
}
.quiz-explain p { font-weight: 400; margin-top: 6px; color: var(--muted); }
:root[data-theme="dark"] .quiz-explain { background: #3a3348; }
.quiz-next { margin-top: 18px; font-size: 0.95rem; }
.quiz-result-score { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; color: var(--accent-deep); margin-bottom: 16px; }
.quiz-rank-icon { font-size: 2.6rem; }
.quiz-rank-label { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; color: var(--text); margin: 8px 0 6px; }
.quiz-rank-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.quiz-btn-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.quiz-mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.quiz-mode-card { border: 1px solid var(--border); border-radius: 14px; padding: 18px 16px; text-align: center; background: var(--bg-soft); }
.quiz-mode-label { display: inline-block; font-family: var(--font-display); font-weight: 900; color: var(--accent-deep); font-size: 1.05rem; margin-bottom: 6px; }
.quiz-mode-card p { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.quiz-mode-card .quiz-big-btn { margin-top: 0; padding: 11px 18px; font-size: 0.92rem; }
.quiz-teaser .quiz-q { font-size: 1.02rem !important; }
.quiz-teaser-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.quiz-teaser-head h3 { font-family: var(--font-display); font-weight: 900; color: var(--accent-deep); }
.quiz-teaser-badge { font-size: 0.72rem; font-weight: 700; color: var(--accent-deep); border: 1px solid var(--accent-deep); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.quiz-teaser-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.quiz-teaser-actions .btn { padding: 9px 16px; font-size: 0.88rem; }
.quiz-teaser-explain { margin-top: 14px; }
::root[data-theme="dark"] .quiz-mode-card { background: #2c2838; }

/* ---- 楽曲一覧 ---- */
.song-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.song-modes { display: flex; gap: 8px; margin-bottom: 16px; }
.song-mode {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.song-mode:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.song-mode.active {
  color: #fff;
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.song-search {
  flex: 1;
  min-width: 220px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 11px 16px;
  border-radius: 999px;
  border: 2px solid var(--accent-soft);
  background: var(--card);
  color: var(--text);
  outline: none;
}
.song-search:focus { border-color: var(--accent-deep); }
:root[data-theme="dark"] .song-search { background: #2c2838; }
.song-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.song-tab {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--card);
  border: 2px solid var(--accent-soft);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.15s;
}
.song-tab.active { color: #fff; background: var(--accent-deep); border-color: var(--accent-deep); }
.song-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.song-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--card);
  border: 2px solid var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.song-chip.active { color: #fff; background: var(--mc, var(--accent-deep)); border-color: var(--mc, var(--accent-deep)); }
.song-tab-label { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; color: var(--accent-deep); margin-bottom: 12px; }
.song-note { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; line-height: 1.7; }
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 14px; }
.song-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 18px; }
.song-card .btn { margin-top: auto; align-self: flex-start; }
.song-title { font-weight: 800; font-size: 0.94rem; line-height: 1.55; }
.song-meta { font-size: 0.76rem; color: var(--muted); }
.song-members { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.song-member-chip {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--mc);
  border: 2px solid var(--mc);
  border-radius: 999px;
  padding: 4px 12px;
  background: #fff;
  transition: transform 0.15s;
}
.song-member-chip:hover { transform: translateY(-1px); }
:root[data-theme="dark"] .song-member-chip { background: #2c2838; }
@media (max-width: 600px) {
  .quiz-card { padding: 24px 18px; }
  .quiz-q { font-size: 1rem !important; }
  .quiz-mode-row { grid-template-columns: 1fr; }
  .song-grid { grid-template-columns: minmax(0, 1fr); }
}

.song-collab {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  color: #fff;
  background: linear-gradient(135deg, #f2a93b, #ef6a8d);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---- 楽曲サムネイル・カードタップ・おすすめ・検定リンク ---- */
.song-thumb-wrap { position: relative; cursor: pointer; }
.song-thumb-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  display: block;
  background: #000;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  pointer-events: none;
}
.play-overlay svg {
  width: 26px;
  height: 26px;
  padding: 12px;
  box-sizing: content-box;
  background: rgba(15, 10, 25, 0.42);
  border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: transform 0.15s, background 0.15s;
}
.song-thumb-wrap:hover .play-overlay svg { transform: scale(1.12); background: rgba(15, 10, 25, 0.6); }

mark.song-hl {
  background: color-mix(in srgb, var(--hlc, var(--accent-deep)) 22%, transparent);
  color: var(--hlc, var(--accent-deep));
  font-weight: 800;
  border-radius: 4px;
  padding: 0 2px;
}

/* ---- お気に入り☆・ブックマークボタン（SVG・絵文字不使用） ---- */
.fav-star, .bm-btn {
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: #9aa0a6;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s, color 0.15s, background 0.15s;
  flex: none;
  padding: 0;
}
.fav-star:hover, .bm-btn:hover { transform: scale(1.12); color: #f5a623; }
.fav-star svg, .bm-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  width: 16px;
  height: 16px;
}
.bm-btn svg { width: 14px; height: 14px; }
.fav-star.on, .bm-btn.on { color: #f5a623; background: #fff; }
.fav-star.on svg, .bm-btn.on svg { fill: #f5a623; stroke: #f5a623; }
:root[data-theme="dark"] .fav-star, :root[data-theme="dark"] .bm-btn { background: rgba(35, 30, 45, 0.9); }

/* 曲・動画カード: サムネ右上に重ねる ☆ */
.song-card { position: relative; }
.song-card .fav-star { position: absolute; top: 14px; right: 14px; z-index: 6; }
.sm-card .sm-fav-star { position: absolute; top: 14px; right: 14px; z-index: 6; }

/* カウントダウンレール */
.cd-rail-wrap { position: relative; flex: none; }
.cd-rail-wrap .bm-btn { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; z-index: 2; }
.cd-rail-wrap .bm-btn svg { width: 12px; height: 12px; }

/* カレンダーアクション行 */
.cal-actions .bm-btn { width: 28px; height: 28px; }

/* お知らせヘッダー */
.news-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-head .bm-btn { width: 26px; height: 26px; margin-left: auto; }
.news-head .bm-btn svg { width: 12px; height: 12px; }

/* タレントヒーロー */
.talent-hero-inner { position: relative; }
.talent-hero-bm { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; z-index: 3; }

/* ---- ホーム: お気に入り（今日のミリプロの下） ---- */
.fav-box { margin-top: 18px; }
.fav-sec { margin-bottom: 14px; }
.fav-sec-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--accent-deep);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.fav-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.fav-card {
  position: relative;
  flex: 0 0 auto;
  width: 236px;
  background: var(--glass);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.fav-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60, 50, 40, 0.14); }
.fav-thumb-wrap { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; }
.fav-thumb-wrap .song-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fav-thumb-wrap iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.fav-card .fav-star { position: absolute; top: 18px; right: 18px; z-index: 5; }
.fav-jacket {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}
.fav-jacket img { width: 100%; height: 100%; object-fit: cover; }
.fav-jacket-none { color: var(--accent-deep); font-size: 2rem; }
.fav-title {
  font-weight: 900;
  font-size: 0.88rem;
  color: var(--text);
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fav-sub {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-kitem.song-shazam .song-kname { color: var(--accent-deep); }
.song-shazam-artist { font-size: 0.78em; color: var(--muted); font-weight: 600; }
.song-shazam-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 6px;
  vertical-align: middle;
}
.song-shazam-divider {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding: 6px 2px 2px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}

/* ---- マイページ（account.html） ---- */
.acct-status { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.acct-status-line { flex: 1; min-width: 200px; font-size: 0.92rem; }
.acct-status-line.ok { color: var(--accent-deep); font-weight: 700; }
.acct-oshi { margin-bottom: 20px; }
.acct-oshi-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.acct-oshi-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.acct-oshi-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--mc-soft, var(--accent-soft));
  color: var(--text);
}
.acct-oshi-chip.is-ult { outline: 2px solid var(--mc, var(--accent)); }
.acct-oshi-note { color: var(--muted); font-size: 0.78rem; }
.acct-block-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent-deep);
  margin: 26px 0 10px;
  letter-spacing: 0.04em;
}
.acct-sec { margin-bottom: 18px; }
.acct-sec-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}
.acct-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.acct-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.acct-item-body { flex: 1; min-width: 0; }
.acct-item-title { font-weight: 800; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-item-sub { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.acct-item-link { flex: none; }
.acct-remove {
  flex: none;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.76rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.acct-remove:hover { color: #e05a5a; border-color: #e05a5a; }
.song-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: var(--accent-soft);
}
.song-card { position: relative; }
.song-ytbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
}
.song-member-more {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--muted);
  border: 2px solid var(--accent-soft);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---- 曲中心表示（原曲アーティスト・バージョン一覧・歌枠） ---- */
.song-artist {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: -4px;
}
.song-versions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.song-version {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}
.song-kind {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 999px;
}
.song-kind-karaoke {
  background: rgba(246, 93, 129, 0.16);
  color: #f65d81;
}
.song-kind-official {
  background: rgba(117, 177, 192, 0.18);
  color: #4e93a5;
}
.song-ts { font-variant-numeric: tabular-nums; }
.song-vdate { margin-left: auto; }
.song-klist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}
.song-krest {
  display: none;
  flex-direction: column;
  gap: 4px;
}
.song-krest.show {
  display: flex;
  animation: songKrestIn 0.3s ease both;
}
@keyframes songKrestIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.song-setlist-toggle {
  margin-top: 4px;
  padding: 8px 10px;
  border: 1.5px dashed var(--accent);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s;
}
.song-setlist-toggle:hover { background: var(--accent-soft); }
.song-setlist-toggle .song-setlist-less { display: none; }
.song-setlist-toggle.open .song-setlist-more { display: none; }
.song-setlist-toggle.open .song-setlist-less { display: inline; }
.song-kitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.song-kitem:hover { background: var(--bg-soft); }
.song-kitem:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.song-kext {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  opacity: 0.75;
  transition: opacity 0.15s, color 0.15s;
  text-decoration: none;
}
.song-kext:hover { opacity: 1; color: var(--accent-deep); }
.song-kidx {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-deep);
  font-size: 0.8rem;
}
.song-kname {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- 曲まとめページ（元曲から探す） ---- */
.sm-disclaimer {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #8a6d3b;
  background: #fdf6e3;
  border: 2px solid #f0e0b0;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 10px;
}
:root[data-theme="dark"] .sm-disclaimer {
  color: #e8cf9a;
  background: #3a3223;
  border-color: #5c4f33;
}
.sm-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 12px;
}
.sm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.sm-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.sm-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sm-card.open { border-color: var(--accent-deep); }
.sm-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sm-jacket-wrap {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--accent-soft);
}
.sm-player {
  display: none;
  width: 100%;
}
.sm-player.open { display: block; }
.sm-player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  display: block;
  background: #000;
}
.sm-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  cursor: pointer;
  flex: none;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.sm-play svg { fill: var(--accent-deep); width: 14px; height: 14px; margin-left: 2px; }
.sm-play:hover { background: var(--accent); }
.sm-play:hover svg { fill: #fff; }
.sm-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sm-jacket {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sm-jacket-none {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--muted);
  opacity: 0.55;
}
.sm-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sm-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.98rem;
  line-height: 1.35;
}
.sm-artist {
  font-size: 0.78rem;
  color: var(--muted);
}
.sm-members {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.sm-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.sm-expand-btn:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.sm-expand-btn::after {
  content: "";
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.sm-card.open .sm-expand-btn::after { transform: rotate(-135deg); }
.sm-detail {
  display: none;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 12px 14px;
}
.sm-card.open .sm-detail { display: block; }
.sm-detail-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}
.sm-versions {
  display: flex;
  flex-direction: column;
}
.sm-version {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 2px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}
.sm-version:last-child { border-bottom: none; padding-bottom: 2px; }
.sm-version .song-member-chip { font-size: 0.8rem; padding: 4px 12px; }
.sm-version .song-ts { margin-left: 2px; }
.sm-version .song-vdate { margin-left: auto; }
@media (max-width: 640px) {
  .sm-top { flex-wrap: wrap; }
  .sm-jacket-wrap { width: 84px; height: 84px; }
}
.recommend-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.recommend-card .song-thumb { margin-bottom: 4px; }
.recommend-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--accent-deep);
}
.recommend-link:hover { text-decoration: underline; }
:root[data-theme="dark"] .recommend-link { color: var(--accent); }
.quiz-ref {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent-deep);
  border-bottom: 2px dashed var(--accent-soft);
}
.quiz-ref:hover { text-decoration: underline; }
:root[data-theme="dark"] .quiz-ref { color: var(--accent); }
@media (max-width: 980px) {
  .recommend-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .recommend-row { grid-template-columns: 1fr; }
}

/* ---------- PCヘッダーのナビ収まり調整（項目内改行防止・最終カスケード・モバイル値は上書きしない） ---------- */
/* PCのみ: ヘッダー全体を左寄せにして固定幅による右端のはみ出しを防ぐ */
@media (min-width: 1025px) {
  .header-inner {
    max-width: none;
    justify-content: flex-start;
    gap: 20px;
  }
  .header-actions { flex: 0 0 auto; min-width: 0; }
}
/* PCのみ: 1025–1130px はナビの冗長リンク（Home＝ロゴで代用可・ページ下部アンカー）を
   隠して、右端の言語切替ボタンが必ず画面内に収まるようにする */
@media (min-width: 1025px) and (max-width: 1130px) {
  .nav > a[href$="#home"],
  .nav > a[href$="#calendar"],
  .nav > a[href$="#links"] {
    display: none;
  }
}
@media (min-width: 1025px) and (max-width: 1400px) {
  .header-inner { padding: 0 14px; gap: 10px; }
  .logo { font-size: 1.05rem; }
  .logo img { height: 28px; }
  .nav { gap: 6px; min-width: 0; }
  .nav a, .nav-drop-btn { font-size: 0.84rem; padding: 5px 10px; }
  .header-actions { gap: 8px; }
  .lang-toggle { width: 38px; height: 38px; font-size: 0.8rem; }
  .oshi-select { min-width: 0; max-width: 130px; font-size: 0.82rem; padding: 6px 12px; }
}

/* 通知ベルのモバイル・小画面調整 */
@media (max-width: 600px) {
  .notif-bell { width: 30px; height: 30px; font-size: 0.9rem; }
}
html.cursor-custom * { cursor: url('/images/cursors/default.png') 8 8, auto !important; }
html.cursor-custom.cursor-konomi * { cursor: url('/images/cursors/konomi.cur'), url('/images/cursors/konomi.png') 2 6, auto !important; }
html.cursor-custom.cursor-nono * { cursor: url('/images/cursors/nono.cur'), url('/images/cursors/nono.png') 2 6, auto !important; }
html.cursor-custom.cursor-akubi * { cursor: url('/images/cursors/akubi.cur'), url('/images/cursors/akubi.png') 2 6, auto !important; }
html.cursor-custom.cursor-rako * { cursor: url('/images/cursors/rako.cur'), url('/images/cursors/rako.png') 1 6, auto !important; }
html.cursor-custom.cursor-yura * { cursor: url('/images/cursors/yura.cur'), url('/images/cursors/yura.png') 2 6, auto !important; }
html.cursor-custom.cursor-koma * { cursor: url('/images/cursors/koma.cur'), url('/images/cursors/koma.png') 2 6, auto !important; }
html.cursor-custom.cursor-rizu * { cursor: url('/images/cursors/rizu.cur'), url('/images/cursors/rizu.png') 2 6, auto !important; }
html.cursor-custom.cursor-tsukuri * { cursor: url('/images/cursors/tsukuri.cur'), url('/images/cursors/tsukuri.png') 2 6, auto !important; }
html.cursor-custom.cursor-tukuri * { cursor: url('/images/cursors/tsukuri.cur'), url('/images/cursors/tsukuri.png') 2 6, auto !important; } /* 旧表記エイリアス */
html.cursor-custom.cursor-nuhu * { cursor: url('/images/cursors/nuhu.cur'), url('/images/cursors/nuhu.png') 2 6, auto !important; }
html.cursor-custom.cursor-rei * { cursor: url('/images/cursors/rei.cur'), url('/images/cursors/rei.png') 1 3, auto !important; }
html.cursor-custom.cursor-mahoro * { cursor: url('/images/cursors/mahoro.cur'), url('/images/cursors/mahoro.png') 1 1, auto !important; }
html.cursor-custom.cursor-milli-chan * { cursor: url('/images/cursors/milli-chan.cur'), url('/images/cursors/milli-chan.png') 2 6, auto !important; }
html.cursor-custom.cursor-milpro * { cursor: url('/images/cursors/milli-chan.cur'), url('/images/cursors/milli-chan.png') 2 6, auto !important; } /* 互換 */
html.cursor-custom.cursor-miri * { cursor: url('/images/cursors/milli-chan.cur'), url('/images/cursors/milli-chan.png') 2 6, auto !important; } /* 互換 */
html.cursor-custom.cursor-default * { cursor: url('/images/cursors/default.png') 8 8, auto !important; }
/* タレント別カーソルの差分活用（Hand/Beam/Wait） */
html.cursor-custom.cursor-mahoro a:hover, html.cursor-custom.cursor-mahoro button:hover, html.cursor-custom.cursor-mahoro [role="button"]:hover, html.cursor-custom.cursor-mahoro [onclick]:hover, html.cursor-custom.cursor-mahoro .tab-item:hover, html.cursor-custom.cursor-mahoro .member-card:hover, html.cursor-custom.cursor-mahoro .site-card:hover, html.cursor-custom.cursor-mahoro .video-card:hover, html.cursor-custom.cursor-mahoro .watch-rel-item:hover, html.cursor-custom.cursor-mahoro .cursor-dropdown-item:hover, html.cursor-custom.cursor-mahoro .cursor-top-btn:hover, html.cursor-custom.cursor-mahoro .sf-chip:hover, html.cursor-custom.cursor-mahoro .type-nav-btn:hover, html.cursor-custom.cursor-mahoro .load-more-btn:hover, html.cursor-custom.cursor-mahoro .global-link:hover, html.cursor-custom.cursor-mahoro .orbis-link:hover { cursor: url('/images/cursors/mahoro/hand.cur'), pointer !important; }
html.cursor-custom.cursor-mahoro input:hover, html.cursor-custom.cursor-mahoro textarea:hover, html.cursor-custom.cursor-mahoro [contenteditable]:hover { cursor: url('/images/cursors/mahoro/beam.cur'), text !important; }
html.cursor-custom.cursor-mahoro .watch-loading, html.cursor-custom.cursor-mahoro .loading, html.cursor-custom.cursor-mahoro .watch-spinner { cursor: url('/images/cursors/mahoro/wait.cur'), wait !important; }
html.cursor-custom.cursor-rei a:hover, html.cursor-custom.cursor-rei button:hover, html.cursor-custom.cursor-rei [role="button"]:hover, html.cursor-custom.cursor-rei [onclick]:hover, html.cursor-custom.cursor-rei .tab-item:hover, html.cursor-custom.cursor-rei .member-card:hover, html.cursor-custom.cursor-rei .site-card:hover, html.cursor-custom.cursor-rei .video-card:hover, html.cursor-custom.cursor-rei .watch-rel-item:hover, html.cursor-custom.cursor-rei .cursor-dropdown-item:hover, html.cursor-custom.cursor-rei .cursor-top-btn:hover, html.cursor-custom.cursor-rei .sf-chip:hover, html.cursor-custom.cursor-rei .type-nav-btn:hover, html.cursor-custom.cursor-rei .load-more-btn:hover, html.cursor-custom.cursor-rei .global-link:hover, html.cursor-custom.cursor-rei .orbis-link:hover { cursor: url('/images/cursors/rei/hand.cur'), pointer !important; }
html.cursor-custom.cursor-rei input:hover, html.cursor-custom.cursor-rei textarea:hover { cursor: url('/images/cursors/rei/beam.cur'), text !important; }
html.cursor-custom.cursor-rei .watch-loading, html.cursor-custom.cursor-rei .loading { cursor: url('/images/cursors/rei/wait.cur'), wait !important; }
html.cursor-custom.cursor-nuhu a:hover, html.cursor-custom.cursor-nuhu button:hover, html.cursor-custom.cursor-nuhu [role="button"]:hover, html.cursor-custom.cursor-nuhu [onclick]:hover, html.cursor-custom.cursor-nuhu .tab-item:hover, html.cursor-custom.cursor-nuhu .member-card:hover, html.cursor-custom.cursor-nuhu .site-card:hover, html.cursor-custom.cursor-nuhu .video-card:hover, html.cursor-custom.cursor-nuhu .watch-rel-item:hover, html.cursor-custom.cursor-nuhu .cursor-dropdown-item:hover, html.cursor-custom.cursor-nuhu .cursor-top-btn:hover, html.cursor-custom.cursor-nuhu .sf-chip:hover, html.cursor-custom.cursor-nuhu .type-nav-btn:hover, html.cursor-custom.cursor-nuhu .load-more-btn:hover, html.cursor-custom.cursor-nuhu .global-link:hover, html.cursor-custom.cursor-nuhu .orbis-link:hover { cursor: url('/images/cursors/nuhu/hand.cur'), pointer !important; }
html.cursor-custom.cursor-nuhu input:hover, html.cursor-custom.cursor-nuhu textarea:hover { cursor: url('/images/cursors/nuhu/beam.cur'), text !important; }
html.cursor-custom.cursor-nuhu .watch-loading, html.cursor-custom.cursor-nuhu .loading { cursor: url('/images/cursors/nuhu/wait.cur'), wait !important; }
html.cursor-custom.cursor-rako a:hover, html.cursor-custom.cursor-rako button:hover, html.cursor-custom.cursor-rako [role="button"]:hover, html.cursor-custom.cursor-rako [onclick]:hover, html.cursor-custom.cursor-rako .tab-item:hover, html.cursor-custom.cursor-rako .member-card:hover, html.cursor-custom.cursor-rako .site-card:hover, html.cursor-custom.cursor-rako .video-card:hover, html.cursor-custom.cursor-rako .watch-rel-item:hover, html.cursor-custom.cursor-rako .cursor-dropdown-item:hover, html.cursor-custom.cursor-rako .cursor-top-btn:hover, html.cursor-custom.cursor-rako .sf-chip:hover, html.cursor-custom.cursor-rako .type-nav-btn:hover, html.cursor-custom.cursor-rako .load-more-btn:hover, html.cursor-custom.cursor-rako .global-link:hover, html.cursor-custom.cursor-rako .orbis-link:hover { cursor: url('/images/cursors/rako/hand.cur'), pointer !important; }
html.cursor-custom.cursor-rako input:hover, html.cursor-custom.cursor-rako textarea:hover { cursor: url('/images/cursors/rako/beam.cur'), text !important; }
html.cursor-custom.cursor-rako .watch-loading, html.cursor-custom.cursor-rako .loading { cursor: url('/images/cursors/rako/wait.cur'), wait !important; }
html.cursor-custom.cursor-yura a:hover, html.cursor-custom.cursor-yura button:hover, html.cursor-custom.cursor-yura [role="button"]:hover, html.cursor-custom.cursor-yura [onclick]:hover, html.cursor-custom.cursor-yura .tab-item:hover, html.cursor-custom.cursor-yura .member-card:hover, html.cursor-custom.cursor-yura .site-card:hover, html.cursor-custom.cursor-yura .video-card:hover, html.cursor-custom.cursor-yura .watch-rel-item:hover, html.cursor-custom.cursor-yura .cursor-dropdown-item:hover, html.cursor-custom.cursor-yura .cursor-top-btn:hover, html.cursor-custom.cursor-yura .sf-chip:hover, html.cursor-custom.cursor-yura .type-nav-btn:hover, html.cursor-custom.cursor-yura .load-more-btn:hover, html.cursor-custom.cursor-yura .global-link:hover, html.cursor-custom.cursor-yura .orbis-link:hover { cursor: url('/images/cursors/yura/hand.cur'), pointer !important; }
html.cursor-custom.cursor-yura input:hover, html.cursor-custom.cursor-yura textarea:hover { cursor: url('/images/cursors/yura/beam.cur'), text !important; }
html.cursor-custom.cursor-yura .watch-loading, html.cursor-custom.cursor-yura .loading { cursor: url('/images/cursors/yura/wait.cur'), wait !important; }
html.cursor-custom.cursor-konomi a:hover, html.cursor-custom.cursor-konomi button:hover, html.cursor-custom.cursor-konomi [role="button"]:hover, html.cursor-custom.cursor-konomi [onclick]:hover, html.cursor-custom.cursor-konomi .tab-item:hover, html.cursor-custom.cursor-konomi .member-card:hover, html.cursor-custom.cursor-konomi .site-card:hover, html.cursor-custom.cursor-konomi .video-card:hover, html.cursor-custom.cursor-konomi .watch-rel-item:hover, html.cursor-custom.cursor-konomi .cursor-dropdown-item:hover, html.cursor-custom.cursor-konomi .cursor-top-btn:hover, html.cursor-custom.cursor-konomi .sf-chip:hover, html.cursor-custom.cursor-konomi .type-nav-btn:hover, html.cursor-custom.cursor-konomi .load-more-btn:hover, html.cursor-custom.cursor-konomi .global-link:hover, html.cursor-custom.cursor-konomi .orbis-link:hover { cursor: url('/images/cursors/konomi/hand.cur'), pointer !important; }
html.cursor-custom.cursor-konomi input:hover, html.cursor-custom.cursor-konomi textarea:hover { cursor: url('/images/cursors/konomi/beam.cur'), text !important; }
html.cursor-custom.cursor-konomi .watch-loading, html.cursor-custom.cursor-konomi .loading { cursor: url('/images/cursors/konomi/wait.cur'), wait !important; }
html.cursor-custom.cursor-nono a:hover, html.cursor-custom.cursor-nono button:hover, html.cursor-custom.cursor-nono [role="button"]:hover, html.cursor-custom.cursor-nono [onclick]:hover, html.cursor-custom.cursor-nono .tab-item:hover, html.cursor-custom.cursor-nono .member-card:hover, html.cursor-custom.cursor-nono .site-card:hover, html.cursor-custom.cursor-nono .video-card:hover, html.cursor-custom.cursor-nono .watch-rel-item:hover, html.cursor-custom.cursor-nono .cursor-dropdown-item:hover, html.cursor-custom.cursor-nono .cursor-top-btn:hover, html.cursor-custom.cursor-nono .sf-chip:hover, html.cursor-custom.cursor-nono .type-nav-btn:hover, html.cursor-custom.cursor-nono .load-more-btn:hover, html.cursor-custom.cursor-nono .global-link:hover, html.cursor-custom.cursor-nono .orbis-link:hover { cursor: url('/images/cursors/nono/hand.cur'), pointer !important; }
html.cursor-custom.cursor-nono input:hover, html.cursor-custom.cursor-nono textarea:hover { cursor: url('/images/cursors/nono/beam.cur'), text !important; }
html.cursor-custom.cursor-nono .watch-loading, html.cursor-custom.cursor-nono .loading { cursor: url('/images/cursors/nono/wait.cur'), wait !important; }
html.cursor-custom.cursor-akubi a:hover, html.cursor-custom.cursor-akubi button:hover, html.cursor-custom.cursor-akubi [role="button"]:hover, html.cursor-custom.cursor-akubi [onclick]:hover, html.cursor-custom.cursor-akubi .tab-item:hover, html.cursor-custom.cursor-akubi .member-card:hover, html.cursor-custom.cursor-akubi .site-card:hover, html.cursor-custom.cursor-akubi .video-card:hover, html.cursor-custom.cursor-akubi .watch-rel-item:hover, html.cursor-custom.cursor-akubi .cursor-dropdown-item:hover, html.cursor-custom.cursor-akubi .cursor-top-btn:hover, html.cursor-custom.cursor-akubi .sf-chip:hover, html.cursor-custom.cursor-akubi .type-nav-btn:hover, html.cursor-custom.cursor-akubi .load-more-btn:hover, html.cursor-custom.cursor-akubi .global-link:hover, html.cursor-custom.cursor-akubi .orbis-link:hover { cursor: url('/images/cursors/akubi/hand.cur'), pointer !important; }
html.cursor-custom.cursor-akubi input:hover, html.cursor-custom.cursor-akubi textarea:hover { cursor: url('/images/cursors/akubi/beam.cur'), text !important; }
html.cursor-custom.cursor-akubi .watch-loading, html.cursor-custom.cursor-akubi .loading { cursor: url('/images/cursors/akubi/wait.cur'), wait !important; }
html.cursor-custom.cursor-koma a:hover, html.cursor-custom.cursor-koma button:hover, html.cursor-custom.cursor-koma [role="button"]:hover, html.cursor-custom.cursor-koma [onclick]:hover, html.cursor-custom.cursor-koma .tab-item:hover, html.cursor-custom.cursor-koma .member-card:hover, html.cursor-custom.cursor-koma .site-card:hover, html.cursor-custom.cursor-koma .video-card:hover, html.cursor-custom.cursor-koma .watch-rel-item:hover, html.cursor-custom.cursor-koma .cursor-dropdown-item:hover, html.cursor-custom.cursor-koma .cursor-top-btn:hover, html.cursor-custom.cursor-koma .sf-chip:hover, html.cursor-custom.cursor-koma .type-nav-btn:hover, html.cursor-custom.cursor-koma .load-more-btn:hover, html.cursor-custom.cursor-koma .global-link:hover, html.cursor-custom.cursor-koma .orbis-link:hover { cursor: url('/images/cursors/koma/hand.cur'), pointer !important; }
html.cursor-custom.cursor-koma input:hover, html.cursor-custom.cursor-koma textarea:hover { cursor: url('/images/cursors/koma/beam.cur'), text !important; }
html.cursor-custom.cursor-koma .watch-loading, html.cursor-custom.cursor-koma .loading { cursor: url('/images/cursors/koma/wait.cur'), wait !important; }
html.cursor-custom.cursor-rizu a:hover, html.cursor-custom.cursor-rizu button:hover, html.cursor-custom.cursor-rizu [role="button"]:hover, html.cursor-custom.cursor-rizu [onclick]:hover, html.cursor-custom.cursor-rizu .tab-item:hover, html.cursor-custom.cursor-rizu .member-card:hover, html.cursor-custom.cursor-rizu .site-card:hover, html.cursor-custom.cursor-rizu .video-card:hover, html.cursor-custom.cursor-rizu .watch-rel-item:hover, html.cursor-custom.cursor-rizu .cursor-dropdown-item:hover, html.cursor-custom.cursor-rizu .cursor-top-btn:hover, html.cursor-custom.cursor-rizu .sf-chip:hover, html.cursor-custom.cursor-rizu .type-nav-btn:hover, html.cursor-custom.cursor-rizu .load-more-btn:hover, html.cursor-custom.cursor-rizu .global-link:hover, html.cursor-custom.cursor-rizu .orbis-link:hover { cursor: url('/images/cursors/rizu/hand.cur'), pointer !important; }
html.cursor-custom.cursor-rizu input:hover, html.cursor-custom.cursor-rizu textarea:hover { cursor: url('/images/cursors/rizu/beam.cur'), text !important; }
html.cursor-custom.cursor-rizu .watch-loading, html.cursor-custom.cursor-rizu .loading { cursor: url('/images/cursors/rizu/wait.cur'), wait !important; }
html.cursor-custom.cursor-tsukuri a:hover, html.cursor-custom.cursor-tsukuri button:hover, html.cursor-custom.cursor-tsukuri [role="button"]:hover, html.cursor-custom.cursor-tsukuri [onclick]:hover, html.cursor-custom.cursor-tsukuri .tab-item:hover, html.cursor-custom.cursor-tsukuri .member-card:hover, html.cursor-custom.cursor-tsukuri .site-card:hover, html.cursor-custom.cursor-tsukuri .video-card:hover, html.cursor-custom.cursor-tsukuri .watch-rel-item:hover, html.cursor-custom.cursor-tsukuri .cursor-dropdown-item:hover, html.cursor-custom.cursor-tsukuri .cursor-top-btn:hover, html.cursor-custom.cursor-tsukuri .sf-chip:hover, html.cursor-custom.cursor-tsukuri .type-nav-btn:hover, html.cursor-custom.cursor-tsukuri .load-more-btn:hover, html.cursor-custom.cursor-tsukuri .global-link:hover, html.cursor-custom.cursor-tsukuri .orbis-link:hover { cursor: url('/images/cursors/tsukuri/hand.cur'), pointer !important; }
html.cursor-custom.cursor-tsukuri input:hover, html.cursor-custom.cursor-tsukuri textarea:hover { cursor: url('/images/cursors/tsukuri/beam.cur'), text !important; }
html.cursor-custom.cursor-tsukuri .watch-loading, html.cursor-custom.cursor-tsukuri .loading { cursor: url('/images/cursors/tsukuri/wait.cur'), wait !important; }
html.cursor-custom.cursor-tukuri a:hover, html.cursor-custom.cursor-tukuri button:hover, html.cursor-custom.cursor-tukuri [role="button"]:hover, html.cursor-custom.cursor-tukuri [onclick]:hover, html.cursor-custom.cursor-tukuri .tab-item:hover, html.cursor-custom.cursor-tukuri .member-card:hover, html.cursor-custom.cursor-tukuri .site-card:hover, html.cursor-custom.cursor-tukuri .video-card:hover, html.cursor-custom.cursor-tukuri .watch-rel-item:hover, html.cursor-custom.cursor-tukuri .cursor-dropdown-item:hover, html.cursor-custom.cursor-tukuri .cursor-top-btn:hover, html.cursor-custom.cursor-tukuri .sf-chip:hover, html.cursor-custom.cursor-tukuri .type-nav-btn:hover, html.cursor-custom.cursor-tukuri .load-more-btn:hover, html.cursor-custom.cursor-tukuri .global-link:hover, html.cursor-custom.cursor-tukuri .orbis-link:hover { cursor: url('/images/cursors/tsukuri/hand.cur'), pointer !important; }
html.cursor-custom.cursor-tukuri input:hover, html.cursor-custom.cursor-tukuri textarea:hover { cursor: url('/images/cursors/tsukuri/beam.cur'), text !important; }
html.cursor-custom.cursor-tukuri .watch-loading, html.cursor-custom.cursor-tukuri .loading { cursor: url('/images/cursors/tsukuri/wait.cur'), wait !important; }
html.cursor-custom.cursor-milli-chan a:hover, html.cursor-custom.cursor-milli-chan button:hover, html.cursor-custom.cursor-milli-chan [role="button"]:hover, html.cursor-custom.cursor-milli-chan [onclick]:hover, html.cursor-custom.cursor-milli-chan .tab-item:hover, html.cursor-custom.cursor-milli-chan .member-card:hover, html.cursor-custom.cursor-milli-chan .site-card:hover, html.cursor-custom.cursor-milli-chan .video-card:hover, html.cursor-custom.cursor-milli-chan .watch-rel-item:hover, html.cursor-custom.cursor-milli-chan .cursor-dropdown-item:hover, html.cursor-custom.cursor-milli-chan .cursor-top-btn:hover, html.cursor-custom.cursor-milli-chan .sf-chip:hover, html.cursor-custom.cursor-milli-chan .type-nav-btn:hover, html.cursor-custom.cursor-milli-chan .load-more-btn:hover, html.cursor-custom.cursor-milli-chan .global-link:hover, html.cursor-custom.cursor-milli-chan .orbis-link:hover { cursor: url('/images/cursors/milli-chan/hand.cur'), pointer !important; }
html.cursor-custom.cursor-milli-chan input:hover, html.cursor-custom.cursor-milli-chan textarea:hover { cursor: url('/images/cursors/milli-chan/beam.cur'), text !important; }
html.cursor-custom.cursor-milli-chan .watch-loading, html.cursor-custom.cursor-milli-chan .loading { cursor: url('/images/cursors/milli-chan/wait.cur'), wait !important; }
html.cursor-custom.cursor-milpro a:hover, html.cursor-custom.cursor-milpro button:hover, html.cursor-custom.cursor-milpro [role="button"]:hover, html.cursor-custom.cursor-milpro [onclick]:hover, html.cursor-custom.cursor-milpro .tab-item:hover, html.cursor-custom.cursor-milpro .member-card:hover, html.cursor-custom.cursor-milpro .site-card:hover, html.cursor-custom.cursor-milpro .video-card:hover, html.cursor-custom.cursor-milpro .watch-rel-item:hover, html.cursor-custom.cursor-milpro .cursor-dropdown-item:hover, html.cursor-custom.cursor-milpro .cursor-top-btn:hover, html.cursor-custom.cursor-milpro .sf-chip:hover, html.cursor-custom.cursor-milpro .type-nav-btn:hover, html.cursor-custom.cursor-milpro .load-more-btn:hover, html.cursor-custom.cursor-milpro .global-link:hover, html.cursor-custom.cursor-milpro .orbis-link:hover { cursor: url('/images/cursors/milli-chan/hand.cur'), pointer !important; }
html.cursor-custom.cursor-milpro input:hover, html.cursor-custom.cursor-milpro textarea:hover { cursor: url('/images/cursors/milli-chan/beam.cur'), text !important; }
html.cursor-custom.cursor-milpro .watch-loading, html.cursor-custom.cursor-milpro .loading { cursor: url('/images/cursors/milli-chan/wait.cur'), wait !important; }
html.cursor-custom.cursor-miri a:hover, html.cursor-custom.cursor-miri button:hover, html.cursor-custom.cursor-miri [role="button"]:hover, html.cursor-custom.cursor-miri [onclick]:hover, html.cursor-custom.cursor-miri .tab-item:hover, html.cursor-custom.cursor-miri .member-card:hover, html.cursor-custom.cursor-miri .site-card:hover, html.cursor-custom.cursor-miri .video-card:hover, html.cursor-custom.cursor-miri .watch-rel-item:hover, html.cursor-custom.cursor-miri .cursor-dropdown-item:hover, html.cursor-custom.cursor-miri .cursor-top-btn:hover, html.cursor-custom.cursor-miri .sf-chip:hover, html.cursor-custom.cursor-miri .type-nav-btn:hover, html.cursor-custom.cursor-miri .load-more-btn:hover, html.cursor-custom.cursor-miri .global-link:hover, html.cursor-custom.cursor-miri .orbis-link:hover { cursor: url('/images/cursors/milli-chan/hand.cur'), pointer !important; }
html.cursor-custom.cursor-miri input:hover, html.cursor-custom.cursor-miri textarea:hover { cursor: url('/images/cursors/milli-chan/beam.cur'), text !important; }
html.cursor-custom.cursor-miri .watch-loading, html.cursor-custom.cursor-miri .loading { cursor: url('/images/cursors/milli-chan/wait.cur'), wait !important; }
@media (prefers-reduced-motion: reduce) {
  html.cursor-custom * { cursor: auto !important; }
}
/* ── 統合カーソル+推し（PC/タブレット共通・常時表示） ── */
.oshi-cursor-wrap { position: relative; display: inline-flex; flex:none; }
.oshi-cursor-btn { display:inline-flex; align-items:center; gap:5px; padding:5px 10px 5px 7px; border:1px solid #e5e5e5; border-radius:999px; background:#fff; cursor:pointer; transition:border-color 0.15s, box-shadow 0.15s; white-space:nowrap; }
.oshi-cursor-label { font-family:var(--font-display); font-size:0.72rem; font-weight:800; color:var(--accent-deep); letter-spacing:0.02em; }
@media (max-width:400px){ .oshi-cursor-label{ display:none; } }
.oshi-cursor-btn:hover { border-color:#7a4fc4; box-shadow:0 2px 8px rgba(122,79,196,0.15); }
.oshi-cursor-btn[aria-expanded="true"] { border-color:#7a4fc4; background:#f8f2ff; }
.oshi-cursor-preview { width:18px; height:18px; border-radius:50%; border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,0.2); display:inline-block; flex-shrink:0; background:#7a4fc4; background-size:cover; background-position:center; }
.oshi-dot { width:18px; height:18px; border-radius:50%; border:2px solid #fff; outline:1px solid var(--accent); background:var(--accent); display:inline-block; flex-shrink:0; background-size:cover; background-position:center; }
.oshi-cursor-dropdown { position:absolute; top:calc(100% + 8px); right:0; width:560px; max-width:min(92vw,560px); max-height:420px; overflow:hidden; background:#fff; border:1px solid #e8e8e8; border-radius:14px; box-shadow:0 12px 32px rgba(0,0,0,0.12); z-index:210; padding:10px; display:none; }
.oshi-cursor-dropdown.open { display:block; }
.oshi-cursor-cols { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.oshi-cursor-col { min-height:0; display:flex; flex-direction:column; }
.oshi-cursor-col + .oshi-cursor-col { border-left:1px dashed var(--border); padding-left:10px; }
.oshi-col-list { overflow-y:auto; max-height:360px; padding-right:2px; -webkit-overflow-scrolling:touch; }
.oshi-section-title { font-family:var(--font-display); font-weight:900; font-size:0.78rem; color:var(--muted); padding:6px 6px 4px; letter-spacing:0.04em; display:flex; align-items:center; gap:6px; }
.caret-sm { width:0; height:0; border-left:4px solid transparent; border-right:4px solid transparent; border-top:5px solid var(--accent-deep); flex:none; opacity:0.9; }
.oshi-dropdown-item { display:flex; align-items:center; gap:10px; width:100%; padding:7px 10px; border:none; border-radius:8px; background:transparent; text-align:left; cursor:pointer; transition:background 0.12s; font-size:0.84rem; font-weight:700; }
.oshi-dropdown-item:hover { background:#f3f0ff; }
.oshi-dropdown-item.active { background:#ede7ff; }
.oshi-dropdown-item .oshi-dot-sm { width:12px; height:12px; border-radius:50%; flex:none; border:2px solid #fff; outline:1px solid rgba(0,0,0,0.12); }
.oshi-dropdown-item .check { width:16px; height:16px; color:#7a4fc4; opacity:0; flex:none; }
.oshi-dropdown-item.active .check { opacity:1; }
@media (max-width:600px){
  .oshi-cursor-dropdown{ width:280px; max-height:380px; }
  .oshi-cursor-cols{ grid-template-columns:1fr; }
  .oshi-cursor-col + .oshi-cursor-col{ border-left:none; border-top:1px dashed var(--border); padding-left:0; padding-top:8px; }
  .oshi-col-list{ max-height:220px; }
}
/* スマホではマウスカーソル不要のため背景選択のみ（PCの背景列だけ） */
@media (max-width:720px){
  #oshiCursorPreview{ display:none !important; }
  .oshi-cursor-cols{ grid-template-columns:1fr !important; }
  .oshi-cursor-col:first-child{ display:none !important; }
  .oshi-cursor-col + .oshi-cursor-col{ border-left:none !important; border-top:none !important; padding-left:0 !important; padding-top:0 !important; }
  .oshi-cursor-label{ display:inline !important; }
  .oshi-cursor-dropdown{ width:300px; }
}
.cursor-top-wrap, .oshi-select, .cursor-dropdown { display:none !important; }
.cursor-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.cursor-top-btn:hover { border-color: #7a4fc4; box-shadow: 0 2px 8px rgba(122,79,196,0.15); }
.cursor-top-btn[aria-expanded="true"] { border-color: #7a4fc4; background: #f8f2ff; }
.cursor-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  z-index: 100;
  padding: 6px;
  display: none;
}
.cursor-dropdown.open { display: block; }
.cursor-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.cursor-dropdown-item:hover { background: #f3f0ff; }
.cursor-dropdown-item.active { background: #ede7ff; }
.cursor-dropdown-item img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
  flex-shrink: 0;
}
.cursor-dropdown-item.active img { border-color: #7a4fc4; }
.cursor-dropdown-item span { font-size: 12px; font-weight: 600; color: #333; flex: 1; }
/* ── 視聴時のカーソル自動非表示（YouTubeの全画面時の挙動を再現） ── */
.watch-player-wrap.hide-cursor,
.watch-player-wrap.hide-cursor * { cursor: none !important; }
html.hide-cursor-watch * { cursor: none !important; }
.cursor-dropdown-item .check { width: 16px; height: 16px; color: #7a4fc4; opacity: 0; }
.cursor-dropdown-item.active .check { opacity: 1; }
/* Portal portal specific: raco alias for portal's raco id (already covered by rako but add portal id alias explicitly via duplicate rules for completeness) */
html.cursor-custom.cursor-raco * { cursor: url('/images/cursors/rako.cur'), url('/images/cursors/rako.png') 1 6, auto !important; }
html.cursor-custom.cursor-raco a:hover, html.cursor-custom.cursor-raco button:hover, html.cursor-custom.cursor-raco [role="button"]:hover, html.cursor-custom.cursor-raco [onclick]:hover, html.cursor-custom.cursor-raco .tab-item:hover, html.cursor-custom.cursor-raco .member-card:hover, html.cursor-custom.cursor-raco .site-card:hover, html.cursor-custom.cursor-raco .video-card:hover, html.cursor-custom.cursor-raco .cursor-dropdown-item:hover, html.cursor-custom.cursor-raco .cursor-top-btn:hover { cursor: url('/images/cursors/rako/hand.cur'), pointer !important; }
html.cursor-custom.cursor-raco input:hover, html.cursor-custom.cursor-rako textarea:hover { cursor: url('/images/cursors/rako/beam.cur'), text !important; }
html.cursor-custom.cursor-raco .loading { cursor: url('/images/cursors/rako/wait.cur'), wait !important; }
html.cursor-custom.cursor-liz * { cursor: url('/images/cursors/rizu.cur'), url('/images/cursors/rizu.png') 2 6, auto !important; }
html.cursor-custom.cursor-liz a:hover, html.cursor-custom.cursor-liz button:hover, html.cursor-custom.cursor-liz [role="button"]:hover, html.cursor-custom.cursor-liz [onclick]:hover, html.cursor-custom.cursor-liz .tab-item:hover, html.cursor-custom.cursor-liz .member-card:hover, html.cursor-custom.cursor-liz .site-card:hover, html.cursor-custom.cursor-liz .video-card:hover, html.cursor-custom.cursor-liz .cursor-dropdown-item:hover, html.cursor-custom.cursor-liz .cursor-top-btn:hover { cursor: url('/images/cursors/rizu/hand.cur'), pointer !important; }
html.cursor-custom.cursor-liz input:hover, html.cursor-custom.cursor-liz textarea:hover { cursor: url('/images/cursors/rizu/beam.cur'), text !important; }
html.cursor-custom.cursor-liz .loading { cursor: url('/images/cursors/rizu/wait.cur'), wait !important; }
/* liz/tsukuri canonical already exists as rizu/tsukuri, but add explicit liz->rizu duplication for JS mapping clarity */

/* ============================================================
   スマホ お知らせ+X 見やすさ改善（2026-09-01）
   ============================================================ */
/* ニュースとXをスマホでは縦積みにし、Xは高さ制限付きスクロールに */
@media (max-width: 720px) {
  #news .grid.grid-2 { gap: 28px; }
  #news .section-sub[style] { margin-bottom: 18px !important; }
}
@media (max-width: 720px) {
  #xposts { max-height: 520px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; border: 2px solid rgba(255,255,255,0.7); border-radius: 16px; padding: 10px; background: rgba(255,255,255,0.35); scrollbar-width: thin; }
  #xposts::-webkit-scrollbar { width: 6px; }
  #xposts::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 6px; }
  .xpost-card { padding: 12px; }
  .xpost-card blockquote { margin: 0; }
  .news-item { padding: 16px; }
  .news-title { font-size: 1rem; line-height: 1.5; }
  .news-desc { font-size: 0.86rem; line-height: 1.7; }
  .news-tag { font-size: 0.66rem; padding: 3px 10px; }
  .news-toggle { padding: 14px; font-size: 0.88rem; }
}
/* Xが未ロード時のプレースホルダを少し大きく */
.xpost-list:empty::before { content: "Xのタイムラインを読み込み中…"; display:block; text-align:center; padding:20px; color:var(--muted); font-size:0.85rem; font-weight:700; }

/* カーソル配布ページのロールリンク */
.cur-role-link { display:inline-block; padding:4px 10px; border-radius:999px; background:var(--accent-soft); color:var(--accent-deep); font-size:0.75rem; font-weight:800; border:1px solid var(--accent); text-decoration:none; }
.cursor-tabs { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.cursor-tab { flex:1; min-width:90px; padding:10px 14px; border-radius:999px; border:2px solid var(--accent); background:#fff; color:var(--accent-deep); font-family:var(--font-display); font-weight:900; font-size:0.88rem; cursor:pointer; transition:all 0.15s; }
.cursor-tab.active { background:var(--accent-deep); color:#fff; border-color:var(--accent-deep); box-shadow:var(--pop-shadow); }
.cursor-tab:hover { background:var(--accent-soft); }
.cur-role-link:hover { background:var(--accent); color:#fff; text-decoration:none; }
