@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ----------------------------------------------------
   1. デザインシステム / CSS変数 (Tokens)
   ---------------------------------------------------- */
:root {
  /* フォント定義 */
  --font-primary: 'Inter', 'Noto Sans JP', sans-serif;

  /* アニメーション速度 */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* 角丸 */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* 影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.2);
  --shadow-neon: 0 0 15px rgba(255, 107, 157, 0.3);

  /* Z-Index */
  --z-sidebar: 100;
  --z-header: 200;
  --z-modal: 1000;
  --z-toast: 2000;
}

/* --- ライトモード設定 --- */
:root[data-theme="light"] {
  --bg-app: hsl(230, 25%, 97%);
  --bg-sidebar: hsl(0, 0%, 100%);
  --bg-surface: hsla(0, 0%, 100%, 0.85);
  --bg-surface-elevated: hsl(0, 0%, 100%);
  --bg-active: hsl(230, 20%, 94%);
  --border-color: hsla(230, 15%, 85%, 0.5);
  
  --text-main: hsl(230, 20%, 15%);
  --text-muted: hsl(230, 10%, 45%);
  --text-inverse: hsl(230, 20%, 98%);
  
  --accent-purple: hsl(280, 75%, 60%);
  --accent-pink: hsl(340, 80%, 60%);
  --accent-gradient: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  
  --accent-red: hsl(350, 75%, 50%);
  --accent-blue: hsl(210, 85%, 55%);
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
}

/* --- ダークモード設定 (デフォルト) --- */
:root, :root[data-theme="dark"] {
  --bg-app: hsl(230, 20%, 10%);
  --bg-sidebar: hsl(230, 15%, 12%);
  --bg-surface: hsla(230, 15%, 15%, 0.75);
  --bg-surface-elevated: hsl(230, 15%, 18%);
  --bg-active: hsl(230, 15%, 22%);
  --border-color: hsla(230, 15%, 25%, 0.4);
  
  --text-main: hsl(230, 15%, 90%);
  --text-muted: hsl(230, 10%, 65%);
  --text-inverse: hsl(230, 20%, 10%);
  
  --accent-purple: hsl(280, 80%, 65%);
  --accent-pink: hsl(340, 80%, 65%);
  --accent-gradient: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  
  --accent-red: hsl(350, 85%, 65%);
  --accent-blue: hsl(210, 90%, 65%);
  
  --glass-bg: rgba(26, 26, 38, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* ----------------------------------------------------
   2. リセット & グローバルスタイル
   ---------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-app);
  color: var(--text-main);
  overflow: hidden; /* メインレイアウトスクロール制御 */
  height: 100vh;
  width: 100vw;
  line-height: 1.5;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-xs);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ----------------------------------------------------
   3. アプリケーションレイアウト (App Shell)
   ---------------------------------------------------- */
.app-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: 70px 1fr;
  grid-template-areas:
    "sidebar header"
    "sidebar main";
  height: 100vh;
  width: 100vw;
}

/* --- ヘッダー --- */
.app-header {
  grid-area: header;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: var(--z-header);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calendar-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.btn-icon:hover {
  background-color: var(--bg-active);
  border-color: var(--text-muted);
}

.current-date-display {
  font-size: 1.25rem;
  font-weight: 700;
  min-width: 160px;
  text-align: center;
}

.btn-today {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-today:hover {
  background-color: var(--bg-active);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 表示モードスイッチャー */
.view-switcher {
  background-color: var(--bg-active);
  border-radius: var(--radius-md);
  padding: 4px;
  display: flex;
  gap: 2px;
  border: 1px solid var(--border-color);
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.view-btn.active {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* テーマ切り替えトグル */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}
.theme-toggle:hover {
  background-color: var(--bg-active);
}

/* --- サイドバー --- */
.app-sidebar {
  grid-area: sidebar;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px;
  z-index: var(--z-sidebar);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow-neon);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-section {
  margin-bottom: 28px;
}

.section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 700;
}

/* 検索ボックス */
.search-wrapper {
  position: relative;
}
.search-input {
  width: 100%;
  background-color: var(--bg-active);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px 10px 36px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  outline: none;
  transition: all var(--transition-fast);
}
.search-input:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.15);
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* グループカレンダーON/OFFフィルター */
.group-filter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.group-filter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.group-filter-item:hover {
  background-color: var(--bg-active);
}

.group-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-xs);
  border: 2px solid var(--border-color);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}
.group-checkbox:checked {
  background-color: var(--group-color, var(--accent-pink));
  border-color: var(--group-color, var(--accent-pink));
}
.group-checkbox:checked::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 11px;
  font-weight: bold;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.group-name {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.admin-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.admin-link:hover {
  background-color: var(--bg-active);
  color: var(--text-main);
}

/* --- メインコンテンツエリア --- */
.app-main {
  grid-area: main;
  background-color: var(--bg-app);
  padding: 24px;
  overflow-y: auto;
  position: relative;
}

/* ----------------------------------------------------
   4. カレンダー描画スタイル (月表示)
   ---------------------------------------------------- */
.calendar-view-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* カレンダーグリッド */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
  height: 100%;
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}

.calendar-header-day {
  text-align: center;
  padding: 10px 0;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.calendar-cell {
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  min-height: 100px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background-color var(--transition-fast);
  overflow-y: auto;
}
.calendar-cell.outside-month {
  background-color: transparent;
  opacity: 0.3;
}
.calendar-cell.today {
  background-color: hsla(340, 80%, 65%, 0.05);
}

.cell-day-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  align-self: flex-end;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.calendar-cell.today .cell-day-num {
  background: var(--accent-pink);
  color: white;
  box-shadow: var(--shadow-neon);
}

/* イベントバッジ (カレンダー上の簡略カード) */
.event-badge {
  background-color: var(--group-color, var(--accent-pink));
  color: white;
  border-radius: var(--radius-xs);
  padding: 4px 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 3px solid rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}
.event-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* ----------------------------------------------------
   5. 週表示・日表示・リスト表示
   ---------------------------------------------------- */
/* 週表示 */
.week-view-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  height: 100%;
  border-left: 1px solid var(--border-color);
}
.week-day-col {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-color);
}
.week-day-header {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.85rem;
}
.week-events-list {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  background-color: var(--bg-surface);
}

/* 日表示(タイムライン) */
.day-view-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
}
.day-events-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

/* リスト表示 */
.list-view-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 40px;
}
.list-month-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.list-month-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-pink);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

/* リストイベントカード / 一般イベントカード */
.event-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-normal);
  border-left: 5px solid var(--group-color, var(--accent-pink));
}
.event-card:hover {
  transform: translateX(4px);
  background-color: var(--bg-surface-elevated);
  box-shadow: var(--shadow-md);
}

.event-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.event-card-date {
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  min-width: 60px;
  padding: 6px;
  background-color: var(--bg-active);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.event-card-date span {
  display: block;
  font-size: 1.25rem;
  color: var(--text-main);
}

.event-card-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-card-title {
  font-size: 1rem;
  font-weight: 600;
}

.event-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.event-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-card-group-badge {
  background-color: var(--group-color-alpha, rgba(0,0,0,0.1));
  color: var(--group-color, var(--text-main));
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--group-color);
}

/* ----------------------------------------------------
   6. イベント詳細モーダル & ライトボックス
   ---------------------------------------------------- */
.modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.btn-modal-close {
  position: absolute;
  right: 24px;
  top: 24px;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.btn-modal-close:hover {
  color: var(--text-main);
}

.modal-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 40px;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* 情報グリッド */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.info-value {
  font-size: 0.95rem;
  font-weight: 500;
}

/* 出演・物販予定リスト */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timeline-item {
  background-color: var(--bg-active);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.timeline-time {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-pink);
}
.timeline-desc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding: 0 16px;
}
.timeline-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.timeline-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* チケットセクション */
.ticket-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.ticket-item {
  background-color: var(--bg-active);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--accent-purple);
}
.ticket-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ticket-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.ticket-price {
  font-weight: 700;
  color: var(--accent-pink);
}
.ticket-dates {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.btn-ticket-buy {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition-fast);
  box-shadow: var(--shadow-neon);
}
.btn-ticket-buy:hover {
  opacity: 0.9;
}

/* タイムテーブル画像カルーセル */
.image-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.carousel-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--transition-normal);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}
.carousel-label {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 8px 16px;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background var(--transition-fast);
}
.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

/* 告知ツイートタブ/アコーディオン */
.tweet-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  gap: 8px;
  margin-bottom: 12px;
}
.tweet-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}
.tweet-tab-btn.active {
  color: var(--accent-pink);
  border-bottom-color: var(--accent-pink);
}
.tweet-tab-content {
  display: none;
  min-height: 200px;
}
.tweet-tab-content.active {
  display: block;
}

/* ライトボックス */
.lightbox {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 95%;
  max-height: 90%;
  object-fit: contain;
  transition: transform var(--transition-fast);
}
.lightbox-close {
  position: absolute;
  right: 24px;
  top: 24px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: transparent;
  border: none;
}

/* ----------------------------------------------------
   7. レスポンシブ設計 (Responsive Breakpoints)
   ---------------------------------------------------- */
@media (max-width: 1024px) {
  .app-container {
    grid-template-columns: 1fr;
    grid-template-rows: 70px 1fr;
    grid-template-areas:
      "header"
      "main";
  }
  .app-sidebar {
    position: fixed;
    left: -280px;
    top: 70px;
    height: calc(100vh - 70px);
    width: 280px;
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
  }
  .app-sidebar.active {
    transform: translateX(280px);
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 0 16px;
  }
  .current-date-display {
    font-size: 1rem;
    min-width: 120px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------
   8. 祝日・日曜・土曜用の追加スタイリング
   ---------------------------------------------------- */
/* カレンダー日曜および祝日のヘッダー */
.calendar-grid .calendar-header-day:first-child {
  color: var(--accent-red);
}
.calendar-grid .calendar-header-day:last-child {
  color: var(--accent-blue);
}

/* カレンダーセル（日曜日・祝日） */
.calendar-grid .calendar-cell:nth-child(7n+8) .cell-day-num,
.calendar-cell.is-holiday .cell-day-num {
  color: var(--accent-red);
}

/* カレンダーセル（土曜日） */
.calendar-grid .calendar-cell:nth-child(7n+14) .cell-day-num {
  color: var(--accent-blue);
}

/* 祝日セルの背景微調整 (プレミアム半透明レッド) */
.calendar-cell.is-holiday {
  background-color: hsla(350, 85%, 65%, 0.02);
}
:root[data-theme="light"] .calendar-cell.is-holiday {
  background-color: hsla(350, 75%, 50%, 0.015);
}

/* 祝日セルホバー */
.calendar-cell.is-holiday:hover {
  background-color: hsla(350, 85%, 65%, 0.04);
}
:root[data-theme="light"] .calendar-cell.is-holiday:hover {
  background-color: hsla(350, 75%, 50%, 0.03);
}

/* 今日の祝日のセルの日付数値 */
.calendar-cell.today.is-holiday .cell-day-num {
  background: var(--accent-red);
  color: white;
  box-shadow: 0 0 15px rgba(255, 95, 126, 0.4);
}

/* ====================================================
   9. 予定状態 (status) & 配信予定 (event_type) 用追加スタイル
   ==================================================== */

/* カレンダー上のイベントバッジ（中止・延期） */
.event-badge.is-cancelled,
.event-badge.is-postponed {
  background-color: var(--text-muted) !important;
  opacity: 0.6;
  text-decoration: line-through;
}

/* カレンダー上のイベントバッジ（仮・詳細未解禁） */
.event-badge.is-tentative {
  background-color: transparent !important;
  color: var(--group-color, var(--accent-pink)) !important;
  border: 1.5px dashed var(--group-color, var(--accent-pink)) !important;
  border-left: 3px solid var(--group-color, var(--accent-pink)) !important;
  box-shadow: none !important;
}

/* イベントバッジ内のストリーミングアイコン */
.event-badge .stream-icon {
  margin-right: 3px;
  font-size: 0.75rem;
}

/* イベントカード（中止・延期） */
.event-card.is-cancelled,
.event-card.is-postponed {
  background-color: var(--bg-active);
  opacity: 0.65;
  border-left-color: var(--text-muted) !important;
}
.event-card.is-cancelled .event-card-title,
.event-card.is-postponed .event-card-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* イベントカード（仮・詳細未解禁） */
.event-card.is-tentative {
  background-color: transparent;
  border: 1.5px dashed var(--group-color, var(--accent-pink));
  border-left: 5px solid var(--group-color, var(--accent-pink));
}

/* 配信プラットフォームのカラーバッジ */
.stream-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  background-color: var(--accent-pink);
  color: white;
  margin-left: 8px;
  vertical-align: middle;
}
.stream-platform-badge.youtube { background-color: #ff0000 !important; color: white !important; }
.stream-platform-badge.showroom { background-color: #00bfff !important; color: white !important; }
.stream-platform-badge.twitcasting { background-color: #33ccff !important; color: white !important; }
.stream-platform-badge.nicovideo { background-color: #444444 !important; color: white !important; }
.stream-platform-badge.other { background-color: var(--accent-purple) !important; color: white !important; }

/* 詳細モーダル内の予定状態バッジ */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid currentColor;
  margin-left: 8px;
  vertical-align: middle;
}
.status-badge.cancelled {
  color: var(--accent-red);
  background-color: rgba(235, 87, 87, 0.1);
}
.status-badge.postponed {
  color: var(--accent-blue);
  background-color: rgba(45, 156, 219, 0.1);
}
.status-badge.tentative {
  color: var(--accent-purple);
  background-color: rgba(155, 81, 224, 0.1);
}

/* 詳細モーダル内の配信視聴ボタン */
.btn-stream-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-neon);
  margin-top: 8px;
  width: fit-content;
}
.btn-stream-watch:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.1);
}

/* 詳細未解禁時のプレースホルダー注意書き */
.unannounced-notice {
  background-color: hsla(280, 80%, 65%, 0.05);
  border: 1px dashed var(--accent-purple);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  font-weight: 500;
  color: var(--text-main);
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.unannounced-notice i {
  font-size: 1.8rem;
  color: var(--accent-purple);
}
.unannounced-notice-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}
.unannounced-notice-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 詳細モーダル内の入場特典 (改行対応) */
#modal-benefits {
  white-space: pre-wrap;
}

