/* === CSS Variables === */
:root {
  /* カラーパレット - 見やすさと親しみやすさ */
  --primary-purple: #6c5ce7;
  --primary-pink: #fd79a8;
  --accent-cyan: #00cec9;

  --gradient-main: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  --gradient-hero: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);

  /* テキスト */
  --text-dark: #2d3436;
  --text-light: #636e72;
  --text-white: #ffffff;

  /* 背景 */
  --bg-white: #ffffff;
  --bg-light: #f8f9fc;
  --bg-alt: #f1f3f6;

  /* フォント */
  --font-main: 'Noto Sans JP', sans-serif;
  --font-accent: 'Kosugi Maru', sans-serif;

  /* シャドウ */
  --shadow-sm: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 13px 27px -5px rgba(50, 50, 93, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px -10px rgba(50, 50, 93, 0.3);

  /* 角丸 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --transition: 0.3s ease;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  /* 格子状デザイン（グリッド） - ライトテーマ用 */
  background-image:
    linear-gradient(rgba(108, 92, 231, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 231, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
  color: var(--text-dark);
  line-height: 1.7;
  /* 読みやすさのため微調整 */
  font-size: clamp(14px, 1vw + 10px, 17px);
  /* デバイスに合わせて14px~17pxまで可変 */
  word-break: keep-all;
  overflow-wrap: anywhere;
  /* はみ出し防止 */
  overflow-x: hidden;
  position: relative;
  /* 背景をゆっくり動かすアニメーション */
  animation: bgScroll 60s linear infinite;
}

@keyframes bgScroll {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 50px 50px;
  }
}

/* 背景に浮かぶ動的な装飾 (パーティクル的なもの) */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(108, 92, 231, 0.08) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(253, 121, 168, 0.08) 0%, transparent 20%);
  animation: floatingLight 10s ease-in-out infinite alternate;
}

@keyframes floatingLight {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* ふわふわ動くアニメーションクラス */
.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* === Typography === */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
  /* 見出しの不自然な改行を防ぎバランスよく配置 */
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
  line-height: 1.6;
}

h2 {
  color: var(--primary-purple);
}

/* === Container === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header .container {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-main);
  color: var(--primary-purple);
  position: relative;
  display: flex;
  align-items: center;
  min-width: 120px;
  height: 40px;
}

.logo-text {
  transition: var(--transition);
}

.logo-img {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 100%;
  width: auto;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.header .logo:hover .logo-text {
  opacity: 0;
}

.header .logo:hover .logo-img {
  opacity: 1;
}

/* Navigation */
.nav {
  position: fixed;
  top: 60px;
  right: -100%;
  width: 100%;
  height: calc(100vh - 60px);
  background: white;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.nav.active {
  right: 0;
}

.nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0 24px;
  text-align: center;
}

.nav a {
  display: block;
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.nav a:hover,
.nav a.active-nav {
  color: var(--primary-purple);
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

/* Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* === Hero Section === */
.hero {
  padding: 160px 20px 100px;
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../../img/chimelab-logo.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #ffffff;
  color: var(--text-dark);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  /* テキストが見やすいように少し濃く */
  z-index: 1;
}

/* ヒーロー背景演出 */
.hero-bg-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  opacity: 0.4;
}

.hero-bg-effect::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background:
    conic-gradient(from 0deg at 50% 50%, rgba(108, 92, 231, 0.3) 0deg, transparent 60deg, transparent 300deg, rgba(253, 121, 168, 0.3) 360deg);
  animation: rotateSweep 20s linear infinite;
}

@keyframes rotateSweep {
  100% {
    transform: rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(24px, 4vw + 12px, 40px);
  /* スマホで縮小、PCで最大40px */
  margin-bottom: 24px;
  color: var(--text-dark);
  text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff;
}

.hero p {
  font-size: clamp(15px, 2vw + 8px, 1.2rem);
  color: var(--text-light);
  margin-bottom: 48px;
  line-height: 1.8;
  text-shadow: 1.5px 1.5px 0 #fff, -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff, 0 1.5px 0 #fff, 0 -1.5px 0 #fff, 1.5px 0 0 #fff, -1.5px 0 0 #fff;
  text-wrap: pretty;
  /* 本文の最終行が単語1つになるのを防ぐ */
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* === Buttons === */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
  max-width: 320px;
}

.button-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(108, 92, 231, 0.4);
}

.button-secondary {
  background: white;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.button-secondary:hover {
  background: var(--bg-light);
}

/* === Sections === */
.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* セクション背景にも動きを */
.section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.02) 0%, transparent 70%);
  animation: rotateBg 30s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes rotateBg {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.section h2 {
  font-size: clamp(20px, 3.5vw + 10px, 32px);
  text-align: center;
  margin-bottom: 16px;
}

.section-desc {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 60px;
  font-size: clamp(14px, 1.5vw + 8px, 1.1rem);
  text-wrap: pretty;
}

/* === Cards === */
.about-box,
.feature-card,
.liver-card,
.recruiting-item,
.support-card,
.flow-section,
.apply-box,
.liver-detail-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(108, 92, 231, 0.1);
}

.about-box:hover,
.feature-card:hover,
.recruiting-item:hover,
.support-card:hover,
.liver-card:hover {
  box-shadow: 0 15px 35px rgba(108, 92, 231, 0.15);
  transform: translateY(-8px) scale(1.01);
  border-color: var(--primary-purple);
}

.features-section,
.recruiting-section,
.support-section {
  background: transparent;
}

.guidelines-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.guidelines-section .container {
  position: relative;
  z-index: 2;
}

.guidelines-section .features-grid {
  display: flex;
  justify-content: center;
  /* Center since there's only one card now */
}

.guidelines-section .feature-card {
  max-width: 500px;
  width: 100%;
  background: white;
  border: 1px solid rgba(108, 92, 231, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.guidelines-section .feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(108, 92, 231, 0.15);
  border-color: rgba(108, 92, 231, 0.3);
}


/* 活動状態バッジ */
.infomation {
  display: inline-block;
  background: rgba(180, 180, 180, 0.15);
  color: #888;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(180, 180, 180, 0.4);
  margin-top: 4px;
  letter-spacing: 0.03em;
}

/* === News Section === */
.news-list {
  max-width: 800px;
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid var(--primary-purple);
}

.news-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.15);
}

.news-date {
  font-family: monospace;
  color: var(--text-light);
  font-size: 0.9rem;
}

.news-tag {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: white;
  font-weight: bold;
  white-space: nowrap;
}

.news-tag-skins {
  background: var(--accent-cyan);
}

.news-tag-event {
  background: var(--primary-pink);
}

.news-tag-goods {
  background: var(--accent-cyan);
  color: var(--text-dark);
}

.news-tag-debut {
  background: var(--primary-purple);
}

.news-tag-info {
  background: var(--text-light);
}

.news-tag-rank {
  background: #ff4757;
}

.news-title {
  font-size: 1rem;
  font-weight: 500;
  flex: 1 1 100%;
}

.news-item p,
.news-title a {
  font-size: clamp(14px, 1.5vw, 16px);
}

.news-title a {
  display: block;
  line-height: 1.5;
}

.news-title a:hover {
  color: var(--primary-purple);
  text-decoration: underline;
}

.more-link {
  text-align: center;
}

.button-sm {
  padding: 10px 24px;
  font-size: 0.95rem;
}

/* === Schedule Section === */
.bg-light {
  background-color: var(--bg-alt);
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .schedule-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.schedule-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
  transition: var(--transition);
}

.schedule-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.schedule-card.live-now {
  border-top-color: #ff4757;
  animation: borderPulse 2s infinite;
}

@keyframes borderPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
  }
}

.pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ff4757;
  border-radius: 50%;
  margin-right: 5px;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from {
    opacity: 0.5;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1.2);
  }
}

.schedule-time {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-dark);
  text-align: center;
  border-bottom: 1px dashed var(--bg-alt);
  padding-bottom: 10px;
}

.schedule-liver {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.schedule-liver img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-alt);
}

.schedule-liver h4 {
  margin-bottom: 5px;
}

.schedule-liver p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.live-link {
  display: inline-block;
  padding: 8px 20px;
  background: var(--text-dark);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: bold;
}

.live-link:hover {
  background: var(--primary-purple);
}

.live-now .live-link {
  background: #ff4757;
}

.live-now .live-link:hover {
  background: #e84118;
}

/* === Guidelines & Fan Kit === */
.guidelines-section .features-grid {
  max-width: 800px;
  margin: 0 auto;
}


/* Features */
.feature-card {
  text-align: center;
}

.feature-card i {
  font-size: 3rem;
  color: var(--primary-purple);
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

/* Livers */
.liver-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.liver-card {
  padding: 16px 12px;
  text-align: center;
}

.liver-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.liver-info h3 {
  font-size: clamp(15px, 3vw, 1.1rem);
  margin-bottom: 6px;
  word-break: normal;
}

.liver-info p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.secret-card {
  opacity: 0.8;
}

/* Support & Flow */
.support-card {
  margin-bottom: 24px;
}

.support-card .card-header {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-purple);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.support-card i {
  color: var(--accent-cyan);
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--gradient-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* === Liver Detail Page (Important Update) === */
.liver-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.liver-detail-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* 枠線を見やすく */
}

.liver-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  border-bottom: 1px solid var(--bg-alt);
}

.liver-header img {
  width: 180px;
  height: 280px;
  border-radius: var(--radius-md);
  object-fit: contain;
  border: 3px solid var(--bg-alt);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(232, 67, 147, 0.05));
}

.liver-header h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
}

.liver-header .tagline {
  color: var(--primary-purple);
  font-weight: 600;
}

.liver-body {
  padding: 24px;
}

.liver-section {
  margin-bottom: 24px;
}

.liver-section-title {
  font-weight: 700;
  color: var(--primary-purple);
  border-left: 4px solid var(--primary-pink);
  padding-left: 12px;
  margin-bottom: 12px;
}

.tags-list,
.liver-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags-list .tag {
  background: var(--bg-light);
  color: var(--primary-purple);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
}

.liver-links .liver-link {
  background: var(--text-dark);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
}

.liver-links .liver-link:hover {
  background: var(--primary-purple);
}

#liver-ito .liver-links {
  margin-top: 26px;
}

.liver-image-wrapper,
.outfit-image-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.outfit-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  padding: 3px;
}

.outfit-btn {
  padding: 5px 14px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-main);
}

.outfit-btn.active {
  background: var(--primary-purple);
  color: white;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.outfit-btn:hover:not(.active) {
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary-purple);
}

/* 画像切り替えアニメーション */
.outfit-image-wrapper img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.outfit-image-wrapper img.outfit-switching {
  opacity: 0;
  transform: scale(0.95);
}

.back-link {
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
}

/* === News Page === */
.news-page-section {
  padding-top: 120px;
}

.news-page-title {
  font-size: clamp(24px, 4vw + 12px, 36px);
  text-align: center;
  margin-bottom: 16px;
}

.news-page-title i {
  color: var(--primary-purple);
  margin-right: 10px;
}

/* フィルター */
.news-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.news-filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--bg-alt);
  border-radius: var(--radius-full);
  background: white;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}

.news-filter-btn:hover {
  border-color: var(--primary-purple);
  color: var(--primary-purple);
}

.news-filter-btn.active {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
  color: white;
}

/* 月グループ */
.news-month-group {
  margin-bottom: 40px;
}

.news-month-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-alt);
}

.news-month-label i {
  color: var(--primary-purple);
  margin-right: 8px;
}

/* ニュースカード */
.news-page-list {
  max-width: 900px;
  margin: 0 auto;
}

.news-page-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-purple);
  transition: var(--transition);
  animation: fadeInUp 0.4s ease backwards;
}

.news-page-item:hover {
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.15);
  transform: translateX(5px);
}

.news-page-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.news-page-date {
  font-family: monospace;
  color: var(--text-light);
  font-size: 0.9rem;
  white-space: nowrap;
}

.news-page-item-body {
  padding-left: 0;
}

.news-page-item-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.news-page-item-title a {
  color: var(--text-dark);
  transition: var(--transition);
}

.news-page-item-title a:hover {
  color: var(--primary-purple);
}

.news-page-item-summary {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--text-light);
  line-height: 1.7;
}

/* アニメーション */
.news-item-visible {
  animation: fadeInUp 0.3s ease forwards;
}

.news-item-hidden {
  animation: fadeOutDown 0.3s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* 戻るリンク */
.news-page-back {
  text-align: center;
  margin-top: 50px;
}

/* === 新衣装カード レイアウト === */
.news-page-item--outfit {
  border-left-color: var(--accent-cyan);
}

.news-outfit-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 4px;
}

.news-outfit-img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 140px;
}

.news-outfit-img {
  width: 140px;
  height: 200px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 206, 201, 0.08), rgba(108, 92, 231, 0.08));
  border: 2px solid rgba(0, 206, 201, 0.3);
  display: block;
}

.news-outfit-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--gradient-main);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  box-shadow: 0 3px 10px rgba(108, 92, 231, 0.4);
}

.news-outfit-links {
  margin-top: 16px;
}

.news-outfit-links .button {
  width: auto;
  max-width: none;
}

@media (max-width: 500px) {
  .news-outfit-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .news-outfit-img-wrap {
    width: 120px;
  }

  .news-outfit-img {
    width: 120px;
    height: 170px;
  }

  .news-outfit-links {
    display: flex;
    justify-content: center;
  }
}


/* ニュースページ スマホ対応 */
@media (max-width: 768px) {
  .news-page-section {
    padding-top: 90px;
  }

  .news-filter {
    gap: 6px;
    margin-bottom: 30px;
  }

  .news-filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .news-page-item {
    padding: 16px;
  }

  .news-page-item-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .news-page-item-summary {
    font-size: 0.85rem;
  }
}

/* === Guidelines Page === */
.guidelines-page-section {
  padding-top: 120px;
}

.guidelines-page-title {
  font-size: clamp(24px, 4vw + 12px, 36px);
  text-align: center;
  margin-bottom: 16px;
}

.guidelines-page-title i {
  color: var(--primary-purple);
  margin-right: 10px;
}

.guidelines-content {
  max-width: 900px;
  margin: 0 auto;
}

.guidelines-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(108, 92, 231, 0.1);
  transition: var(--transition);
}

.guidelines-card:hover {
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.1);
}

.guidelines-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg-alt);
}

.guidelines-card-header i {
  font-size: 1.5rem;
  color: var(--primary-purple);
}

.guidelines-card-header h2 {
  font-size: clamp(18px, 2.5vw + 10px, 1.4rem);
  text-align: left;
  margin-bottom: 0;
}

.guidelines-card-body p {
  margin-bottom: 12px;
  line-height: 1.9;
}

/* 注意書き */
.guidelines-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(108, 92, 231, 0.06);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary-purple);
  margin-top: 16px;
}

.guidelines-notice i {
  color: var(--primary-purple);
  font-size: 1.2rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.guidelines-notice p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* 二次創作の例 */
.guidelines-examples {
  background: var(--bg-light);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.guidelines-examples h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--primary-purple);
}

.guidelines-examples h3 i {
  margin-right: 8px;
}

.guidelines-examples ul {
  list-style: none;
}

.guidelines-examples ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.95rem;
}

.guidelines-examples ul li i {
  color: var(--accent-cyan);
  font-size: 0.85rem;
}

/* 許可・禁止リスト */
.guidelines-list {
  list-style: none;
}

.guidelines-list>li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bg-alt);
}

.guidelines-list>li:last-child {
  border-bottom: none;
}

.guidelines-list>li>i {
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.guidelines-list>li>i.fa-circle-check {
  color: #00b894;
}

.guidelines-list>li>i.fa-times-circle {
  color: #e74c3c;
}

.guidelines-list>li>i.fa-info-circle {
  color: var(--primary-purple);
}

.guidelines-list>li>i.fa-star {
  color: #fdcb6e;
}

.guidelines-list>li>div strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.guidelines-list>li>div p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

/* サブリスト */
.guidelines-sub-list {
  list-style: none;
  margin-top: 8px;
  padding-left: 4px;
}

.guidelines-sub-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.guidelines-sub-list li::before {
  content: '・';
  position: absolute;
  left: 0;
}

/* 許可カード */
.guidelines-card-allow {
  border-left: 4px solid #00b894;
}

/* 禁止カード */
.guidelines-card-deny {
  border-left: 4px solid #e74c3c;
}

/* お願いカード */
.guidelines-card-request {
  border-left: 4px solid #fdcb6e;
}

/* テーブル */
.guidelines-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.guidelines-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.guidelines-table th,
.guidelines-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--bg-alt);
}

.guidelines-table th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

.guidelines-table td {
  color: var(--text-light);
}

.badge-allow {
  display: inline-block;
  background: #00b894;
  color: white;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-deny {
  display: inline-block;
  background: #e74c3c;
  color: white;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

/* 免責事項リスト */
.guidelines-list-plain {
  list-style: none;
}

.guidelines-list-plain li {
  position: relative;
  padding: 8px 0 8px 20px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

.guidelines-list-plain li::before {
  content: '※';
  position: absolute;
  left: 0;
  color: var(--primary-purple);
  font-weight: 700;
}

/* 戻るリンク・お問い合わせ */
.guidelines-page-back {
  text-align: center;
  margin-top: 50px;
}

.guidelines-contact {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px dashed rgba(108, 92, 231, 0.2);
}

.guidelines-contact p {
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.guidelines-contact p i {
  color: var(--primary-purple);
  margin-right: 8px;
}

/* ガイドラインページ スマホ対応 */
@media (max-width: 768px) {
  .guidelines-page-section {
    padding-top: 90px;
  }

  .guidelines-page-title {
    font-size: 1.4rem;
  }

  .guidelines-card {
    padding: 20px 18px;
  }

  .guidelines-card-header h2 {
    font-size: 1.1rem;
  }

  .guidelines-card-header i {
    font-size: 1.2rem;
  }

  .guidelines-list>li {
    padding: 12px 0;
    gap: 10px;
  }

  .guidelines-list>li>div strong {
    font-size: 0.95rem;
  }

  .guidelines-list>li>div p {
    font-size: 0.85rem;
  }

  .guidelines-table {
    font-size: 0.85rem;
  }

  .guidelines-table th,
  .guidelines-table td {
    padding: 10px 12px;
  }
}

/* === Footer === */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 20px;
  text-align: center;
}

.footer .logo {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 16px;
}

/* === Desktop Styles === */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
  }

  .nav ul {
    flex-direction: row;
    gap: 16px;
  }

  .nav a {
    padding: 8px 16px;
    font-size: 0.95rem;
    background: transparent;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .button {
    width: auto;
  }

  .section {
    padding: 120px 0;
  }

  .features-grid,
  .info-grid {
    display: flex;
    gap: 24px;
  }

  .feature-card,
  .info-item {
    flex: 1;
  }

  .liver-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .recruiting-list,
  .support-cards,
  .flow-steps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .recruiting-item,
  .support-card {
    flex: 1;
    min-width: 300px;
  }

  /* Livers Detail Page (Desktop) */
  .liver-detail-grid {
    padding: 0;
  }

  .liver-detail-card {
    flex-direction: row;
  }

  .liver-header {
    width: 300px;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid var(--bg-alt);
    padding: 40px;
    justify-content: flex-start;
  }

  .liver-body {
    padding: 40px;
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1100px;
  }

  .liver-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* === Contact Section Styles === */
.contact-info {
  margin-top: 40px;
  text-align: center;
  padding-top: 30px;
  border-top: 1px dashed rgba(108, 92, 231, 0.2);
}

.contact-text {
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.contact-text i {
  color: var(--primary-purple);
  margin-right: 8px;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.sns-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
}

.x-button {
  background-color: #7567eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.x-button:hover {
  background-color: #2d3436;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.sns-label {
  font-size: 0.95rem;
}

.ChimelabX {
  color: rgb(23, 23, 117);
  text-decoration: underline;
}

/* === Liver Popup === */
.liver-popup-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.liver-popup-card {
  display: none;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.liver-popup-card.liver-popup-animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.liver-popup-card.liver-popup-closing {
  opacity: 0;
  transform: translateY(-20px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.liver-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary-purple);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
  transition: var(--transition);
}

.liver-popup-close:hover {
  background: var(--primary-pink);
  transform: rotate(90deg) scale(1.1);
}

/* アクティブなカードのハイライト */
.liver-card-active {
  border-color: var(--primary-purple) !important;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.25), 0 15px 35px rgba(108, 92, 231, 0.15) !important;
  transform: translateY(-8px) scale(1.02) !important;
}

/* ナビゲーションボタン共通スタイル */
.liver-popup-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: white;
  color: var(--primary-purple);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.liver-popup-nav:hover {
  background: var(--primary-purple);
  color: white;
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
}

.liver-popup-prev {
  left: -25px;
}

.liver-popup-next {
  right: -25px;
}

/* === Display Utilities === */
.no-wrap {
  display: inline-block;
}

.sp-only {
  display: none !important;
}

.pc-only {
  display: block;
}

span.pc-only,
br.pc-only {
  display: inline;
}

@media (max-width: 768px) {
  .pc-only {
    display: none !important;
  }

  .sp-only {
    display: block !important;
  }

  span.sp-only,
  br.sp-only {
    display: inline !important;
  }
}

/* スマホ版レイアウト調整 */
@media (max-width: 768px) {

  .tags-list,
  .liver-links {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .tags-list .tag,
  .liver-links .liver-link {
    width: 100%;
    text-align: center;
  }

  .liver-popup-nav {
    top: auto;
    bottom: -60px;
    transform: none;
    width: 44px;
    height: 44px;
  }

  .liver-popup-prev {
    left: 20%;
  }

  .liver-popup-next {
    right: 20%;
  }

  #liver-popup-area {
    padding-bottom: 80px;
    /* ナビボタン用の余白 */
  }

  .liver-popup-close {
    top: -15px;
    right: -10px;
  }

  /* News List Mobile Layout */
  .news-list {
    gap: 12px;
  }

  .news-item {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 8px 12px;
    /* row-gap column-gap */
  }

  .news-date {
    font-size: 0.85rem;
  }

  .news-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .news-title {
    flex: 0 0 100%;
    margin-top: 4px;
    font-size: 0.95rem;
  }

  .news-title a {
    white-space: normal;
  }
}

/* === Guidelines TOC (目次) === */
.guidelines-toc {
  background: rgba(108, 92, 231, 0.05);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  margin-bottom: 40px;
}

.guidelines-toc-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-purple);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guidelines-toc-list {
  list-style: decimal;
  padding-left: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 30px;
}

.guidelines-toc-list li a {
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition);
}

.guidelines-toc-list li a:hover {
  color: var(--primary-purple);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .guidelines-toc-list {
    grid-template-columns: 1fr;
  }
}

/* === Intro Screen (オープニング演出) === */
body.is-intro {
  overflow: hidden !important;
}

body.is-intro header,
body.is-intro .hero-bg-effect,
body.is-intro .hero p,
body.is-intro .hero-actions,
body.is-intro .section,
body.is-intro footer {
  opacity: 0;
  visibility: hidden;
}

header,
.hero-bg-effect,
.hero p,
.hero-actions,
.section,
footer {
  transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
}

.intro-line1,
.intro-line2,
.intro-line3 {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}

.intro-line1 {
  animation: introFadeInUp 1s ease forwards 0.5s;
}

.intro-line2 {
  animation: introFadeInUp 1s ease forwards 1.7s;
}

.intro-line3 {
  animation: introFadeInUp 1s ease forwards 2.9s;
}

body.skip-intro .intro-line1,
body.skip-intro .intro-line2,
body.skip-intro .intro-line3 {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

@keyframes introFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === 画像ダウンロード防止 === */
html:not(.is-dev) img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* リンク内の画像はリンクのクリックを維持 */
html:not(.is-dev) a img {
  pointer-events: none;
}