@charset "UTF-8";
@import url("tokens.css");
/**
 * HKT48 Boosty Ticket Data - モダンSaaSスタイルデザインシステム (v2.1)
 * 公式 Boosty Ticket（https://ticket.boosty.app/）準拠のダークスレート＆ティール配色
 * ※ ダークスレート（#161c24）＋ティールグラデーション（#5e9891）とBoostyティール（#00aa9d / #28ddcf）を採用。
 * ※ すべてのコメントは日本語で記述されています。
 */

/* -------------------------------------------------------------------------
   1. デザイントークン定義 (CSS Custom Properties)
   ------------------------------------------------------------------------- */
:root {
  /* 背景・キャンバス（Boosty Ticket 準拠のティール系トップグラデーション＋ダークスレート #161c24） */
  --bg-canvas: #161c24;
  --bg-canvas-gradient: linear-gradient(180deg, #5e9891 0%, #2f4f50 24%, #161c24 54%, #161c24 100%);

  /* サーフェス・カード（#161c24 / #212b36 ベースの半透明ダークスレートガラス） */
  --bg-surface: rgba(22, 28, 36, 0.84);
  --bg-surface-elevated: rgba(33, 43, 54, 0.90);
  --bg-surface-hover: rgba(44, 56, 70, 0.92);
  --bg-subtle: rgba(145, 158, 171, 0.14);

  /* 境界線・ハイライト（スレート系微光ボーダー） */
  --border-subtle: rgba(145, 158, 171, 0.22);
  --border-medium: rgba(145, 158, 171, 0.34);
  --border-focus: rgba(40, 221, 207, 0.65);
  --highlight-inset: inset 0 1px 0 0 rgba(255, 255, 255, 0.16);

  /* ブランド・アクセントカラー (Boosty Ticket ティール #00aa9d / ミントシアン #28ddcf) */
  --accent-ticket: #00aa9d;
  --accent-primary: #00aa9d;
  --accent-secondary: #28ddcf;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-glow: rgba(0, 170, 157, 0.38);
  --accent-gradient: linear-gradient(135deg, #28ddcf 0%, #00aa9d 60%, #008278 100%);

  /* タイポグラフィ・テキストカラー */
  --text-primary: #ffffff;
  --text-secondary: #dfe3e8;
  --text-tertiary: #919eab;
  --text-muted: #637381;

  /* レイアウト・装飾エフェクト */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --blur-glass: none;
  --shadow-bento: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.45);
  --transition-smooth: color 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------------------
   2. リセット＆ベースタイポグラフィ
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-canvas);
  background-image: var(--bg-canvas-gradient);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* -------------------------------------------------------------------------
   3. ヘッダー（グラスモーフィズム・フローティング・twitter.html 準拠）
   ------------------------------------------------------------------------- */
.header-wrapper,
header.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(18, 24, 32, 0.96);
  border-bottom: 1px solid var(--border-subtle);
  height: 60px;
  margin: 0 0 16px 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.header .title,
.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.title-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b0b0d;
  font-size: 15px;
  box-shadow: 0 4px 12px var(--accent-glow), var(--highlight-inset);
}

.header .title a,
.title a {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header .title-space,
.title-space {
  display: none;
}

/* モバイルハンバーガーボタン */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition-smooth);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--border-medium);
}

/* -------------------------------------------------------------------------
   4. ナビゲーション（twitter.html 準拠のピル型セグメントコントロール）
   ------------------------------------------------------------------------- */
.nav-container,
.tag-navigation {
  max-width: 1400px;
  margin: 16px auto 14px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* メインサービス切り替えタブバー */
.pill-tabs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 6px;
  background: rgba(22, 28, 36, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), var(--highlight-inset);
  width: fit-content;
  max-width: 100%;
}

.pill-tabs-row::-webkit-scrollbar {
  display: none;
}

.pill-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition-smooth);
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.pill-tab:hover {
  color: #ffffff;
  background: rgba(145, 158, 171, 0.16);
}

.pill-tab.active {
  color: #ffffff;
  background: rgba(0, 170, 157, 0.24);
  border: 1px solid rgba(40, 221, 207, 0.55);
  box-shadow: 0 2px 12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.pill-tab.active i {
  color: var(--accent-secondary);
}

.pill-tab .badge-new {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: #be123c;
  color: #ffffff;
}

/* サブナビゲーション行 */
.pill-subnav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.subnav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(22, 28, 36, 0.92);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.subnav-pill:hover {
  color: #ffffff;
  background: rgba(145, 158, 171, 0.16);
  border-color: var(--border-medium);
}

.subnav-pill.active {
  color: #ffffff;
  background: rgba(0, 170, 157, 0.26);
  border-color: rgba(40, 221, 207, 0.6);
  box-shadow: 0 2px 10px var(--accent-glow);
  font-weight: 600;
}

.subnav-pill.active i {
  color: var(--accent-secondary);
}

/* -------------------------------------------------------------------------
   5. メインレイアウト＆チケットコンテナ (Bento Grid)
   ------------------------------------------------------------------------- */
main,
.page-main-container {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px 40px 16px;
  box-sizing: border-box;
}

.ticket-container {
  width: 100%;
  margin: 0 auto;
}

/* 警告・インフォメーション表示エリア */
.disclaimer-alert {
  background: rgba(0, 170, 157, 0.14);
  color: var(--accent-secondary);
  border: 1px solid rgba(40, 221, 207, 0.35);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

/* 検索条件設定パネル（コントロールパネル） */
.control-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 2.5px solid var(--accent-secondary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: var(--shadow-bento);
}

.panel-header {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.panel-header i {
  color: var(--accent-secondary);
  font-size: 15px;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.control-group {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
}

.control-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

/* カスタムセレクトボックスのスタイリング */
.custom-select-box {
  background: rgba(33, 43, 54, 0.88);
  color: #ffffff;
  border: 1px solid var(--border-medium);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-overflow: ellipsis;
  overflow: hidden;
}

.custom-select-box:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 10px var(--accent-glow);
}

.custom-select-box option {
  background: #161c24;
  color: #ffffff;
}

/* イベント概要情報表示カード */
.event-info-card {
  display: flex;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  align-items: center;
  gap: 24px;
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: var(--shadow-bento);
}

.event-info-image {
  max-width: 240px;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.event-info-details {
  flex: 1;
  min-width: 280px;
}

.event-info-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #ffffff;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.event-info-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-info-meta span i {
  margin-right: 8px;
  color: var(--accent-secondary);
  width: 16px;
  text-align: center;
}

/* Web Note（注記）表示エリア */
.event-info-web-note {
  font-size: 12.5px;
  color: var(--accent-secondary);
  background: rgba(0, 170, 157, 0.12);
  border: 1px solid rgba(40, 221, 207, 0.32);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
  max-width: 600px;
}

.event-info-web-note i {
  margin-top: 2px;
  flex-shrink: 0;
}

/* イベント全体の売上進捗表示 */
.event-total-progress {
  margin-top: 14px;
  max-width: 420px;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   6. 出演者検索・タグフィルター関連スタイル
   ------------------------------------------------------------------------- */
.member-filter-section {
  margin: 28px 0 18px 0;
}

.member-filter-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  gap: 16px;
}

.member-filter-title-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.member-filter-title-text {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.member-search-box-wrapper {
  position: relative;
  width: 100%;
}

.member-search-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(22, 28, 36, 0.8);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--border-medium);
  transition: var(--transition-smooth);
  cursor: text;
}

.member-search-box:focus-within {
  border-color: var(--accent-secondary);
  background: rgba(33, 43, 54, 0.95);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.member-search-icon {
  color: var(--text-tertiary);
  font-size: 15px;
  flex-shrink: 0;
  margin-right: 4px;
}

.member-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.member-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 170, 157, 0.2);
  color: #ffffff;
  border: 1px solid rgba(40, 221, 207, 0.45);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  user-select: none;
  transition: var(--transition-smooth);
}

.member-tag:hover {
  background: rgba(0, 170, 157, 0.32);
}

.member-tag-remove {
  cursor: pointer;
  color: var(--accent-secondary);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 50%;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.member-tag-remove:hover {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.4);
}

.member-search-input {
  border: none;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 14.5px;
  font-family: inherit;
  flex: 1;
  min-width: 100px;
  padding: 4px 0;
}

.member-search-input::placeholder {
  color: var(--text-muted);
}

.member-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(22, 28, 36, 0.96);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
  padding: 6px 0;
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
}

.member-dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s ease;
}

.member-dropdown-item:hover {
  background: rgba(145, 158, 171, 0.14);
}

.member-dropdown-item.selected {
  background: rgba(0, 170, 157, 0.2);
  color: var(--accent-secondary);
  font-weight: 600;
}

.member-dropdown-item.selected::after {
  content: "✓";
  font-size: 14px;
  color: var(--accent-secondary);
  margin-left: 8px;
}

.member-dropdown-empty {
  padding: 15px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

.member-filter-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 10px;
  letter-spacing: 0.03em;
}

/* -------------------------------------------------------------------------
   7. ソート操作コントロール
   ------------------------------------------------------------------------- */
.sort-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  background: var(--bg-surface);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.sort-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.sort-label i {
  color: var(--accent-secondary);
  margin-right: 4px;
}

.sort-btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sort-btn {
  background: rgba(145, 158, 171, 0.16);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 4px;
}

.sort-btn:hover {
  background: rgba(145, 158, 171, 0.26);
  color: #ffffff;
  border-color: var(--border-medium);
}

.sort-btn.active {
  background: rgba(0, 170, 157, 0.25);
  color: #ffffff;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 10px var(--accent-glow);
  font-weight: 700;
}

.sort-direction-icon {
  font-size: 10px;
}

/* -------------------------------------------------------------------------
   8. Excel風グリッドテーブル
   ------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(22, 28, 36, 0.88);
  margin-top: 16px;
  box-shadow: var(--shadow-bento);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
}

.excel-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.excel-table th, 
.excel-table td {
  padding: 10px 15px;
  border-right: 1px solid rgba(145, 158, 171, 0.14);
  border-bottom: 1px solid rgba(145, 158, 171, 0.14);
  white-space: nowrap;
}

.excel-table th {
  background: rgba(33, 43, 54, 0.98);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.excel-table td.member-cell,
.excel-table th.member-header {
  position: sticky;
  left: 0;
  z-index: 9;
  background: rgba(22, 28, 36, 0.98);
  min-width: 180px;
  max-width: 250px;
  text-align: left;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.45);
}

.excel-table th.member-header {
  z-index: 11;
  background: rgba(33, 43, 54, 0.98);
}

.member-cell-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-cell-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 14px;
}

.member-cell-stats {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: 'Roboto Mono', monospace;
}

.member-cell-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.member-cell-progress-bar {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.excel-table tr:last-child td {
  border-bottom: none;
}

.excel-table th:last-child,
.excel-table td:last-child {
  border-right: none;
}

/* 空セル（出演なし） */
.cell-empty {
  background: repeating-linear-gradient(
    45deg,
    rgba(22, 28, 36, 0.85),
    rgba(22, 28, 36, 0.85) 10px,
    rgba(33, 43, 54, 0.85) 10px,
    rgba(33, 43, 54, 0.85) 20px
  );
  color: var(--text-muted);
}

/* 有効セル */
.cell-active {
  background: rgba(28, 37, 48, 0.78);
  cursor: pointer;
  transition: var(--transition-smooth);
  min-width: 130px;
  position: relative;
}

.cell-active:hover {
  background: rgba(38, 50, 64, 0.95);
  box-shadow: inset 0 0 0 1px var(--accent-secondary);
}

.cell-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.cell-status-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
}

.cell-ratio {
  color: #ffffff;
  font-family: 'Roboto Mono', monospace;
}

.cell-percent {
  font-weight: 700;
}

.cell-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(145, 158, 171, 0.16);
  border-radius: 3px;
  overflow: hidden;
}

.cell-progress-bar {
  height: 100%;
  border-radius: 3px;
}

.color-normal {
  background: linear-gradient(90deg, #00aa9d, #28ddcf);
}

.color-soldout {
  background: linear-gradient(90deg, #f43f5e, #e11d48);
}

/* 完売バッジ */
.badge-soldout {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
  letter-spacing: 0.02em;
}

/* ミニ折線図 (Sparkline) */
.sparkline-container {
  width: 100px;
  height: 25px;
  margin-top: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sparkline-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sparkline-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline-path.normal {
  stroke: #28ddcf;
  filter: drop-shadow(0 0 2px rgba(40, 221, 207, 0.5));
}

.sparkline-path.soldout {
  stroke: #f43f5e;
  filter: drop-shadow(0 0 2px rgba(244, 63, 94, 0.5));
}

.sparkline-guide {
  stroke: rgba(145, 158, 171, 0.25);
  stroke-width: 1;
  stroke-dasharray: 2, 2;
}

.sparkline-dot {
  stroke-width: 1.5;
}

.sparkline-dot.normal {
  fill: #28ddcf;
  stroke: #161c24;
}

.sparkline-dot.soldout {
  fill: #f43f5e;
  stroke: #161c24;
}

/* ツールチップ */
.ticket-tooltip {
  position: fixed;
  display: none;
  background: rgba(22, 28, 36, 0.96);
  border: 1px solid var(--border-medium);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  padding: 16px;
  border-radius: var(--radius-md);
  z-index: 9999;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  min-width: 260px;
  max-width: 330px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.45;
}

.tooltip-header {
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  color: var(--accent-secondary);
}

.tooltip-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tooltip-summary-item {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.tooltip-summary-val {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  color: #ffffff;
}

.tooltip-phases-title {
  font-weight: 700;
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.tooltip-phase-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}

.tooltip-phase-name-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: #ffffff;
}

.tooltip-phase-details {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-tertiary);
}

.tooltip-phase-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.tooltip-phase-progress-bar {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* -------------------------------------------------------------------------
   9. フッター（twitter.html 準拠・Boosty Ticket スレート配色）
   ------------------------------------------------------------------------- */
.footer-wrapper {
  margin-top: auto;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  background: rgba(22, 28, 36, 0.9);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  padding: 24px 16px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(145, 158, 171, 0.12);
  border: 1px solid var(--border-subtle);
  color: var(--accent-secondary);
  font-size: 16px;
  transition: var(--transition-smooth);
}

.footer-social-link:hover {
  background: rgba(0, 170, 157, 0.22);
  border-color: rgba(40, 221, 207, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   10. レスポンシブ対応 (Mobile & Tablet)
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .tag-navigation {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  main,
  .page-main-container {
    padding: 0 12px 30px 12px;
  }

  .ticket-container {
    padding: 0;
  }

  .disclaimer-alert {
    padding: 10px 14px;
    font-size: 12.5px;
    margin-bottom: 12px;
  }

  .control-panel {
    padding: 16px 14px;
    margin-bottom: 16px;
  }

  .control-row {
    flex-direction: column;
    gap: 12px;
  }

  .control-group {
    min-width: 100%;
  }

  .custom-select-box {
    font-size: 13px;
    padding: 8px 12px;
  }

  .event-info-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 14px;
    gap: 14px;
    margin-bottom: 16px;
  }

  .event-info-image {
    max-width: 100%;
    width: auto;
    max-height: 180px;
  }

  .event-info-title {
    font-size: 16.5px;
  }

  .excel-table {
    font-size: 11px;
  }

  .excel-table th, 
  .excel-table td {
    padding: 8px 6px;
    min-width: 85px;
  }

  .excel-table td.member-cell,
  .excel-table th.member-header {
    min-width: 110px;
    max-width: 130px;
    padding: 8px 8px;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.5);
  }

  .member-cell-name {
    font-size: 12.5px;
    white-space: normal;
    word-break: break-all;
  }

  .member-cell-stats {
    font-size: 9.5px;
  }

  .cell-active {
    min-width: 90px;
  }

  .cell-ratio,
  .cell-percent {
    font-size: 9.5px;
  }

  .badge-soldout {
    font-size: 8.5px;
    padding: 1px 4px;
    border-radius: 3px;
  }

  .sparkline-container {
    width: 100%;
    max-width: 80px;
    height: 18px;
  }

  .sort-controls {
    padding: 10px 12px;
    font-size: 12px;
    margin-bottom: 12px;
  }

  .sort-btn {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .ticket-tooltip {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 310px;
    padding: 14px;
    font-size: 11.5px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
    border: 1px solid var(--border-medium);
  }

  .tooltip-header {
    font-size: 13px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

/* -------------------------------------------------------------------------
   11. ticket.html 専用テーマ上書き（ローディング・ドロワー・フォーカスリング統一）
   ------------------------------------------------------------------------- */
body.ticket-page a:focus-visible,
body.ticket-page button:focus-visible,
body.ticket-page input:focus-visible,
body.ticket-page select:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 2px;
}

body.ticket-page #loading-overlay {
  background: rgba(22, 28, 36, 0.72);
}

body.ticket-page #loading-overlay .loading-spinner {
  border-color: rgba(145, 158, 171, 0.22);
  border-top-color: var(--accent-secondary);
}

body.ticket-page .mobile-drawer-overlay {
  background: rgba(11, 11, 11, 0.62);
}

body.ticket-page .mobile-drawer {
  background: rgba(22, 28, 36, 0.96);
  border-left-color: var(--border-subtle);
}

body.ticket-page .drawer-title i.fa-ticket {
  color: var(--accent-secondary);
  text-shadow: 0 0 10px var(--accent-glow);
}

body.ticket-page .drawer-nav-item[href*="ticket"] i {
  color: var(--accent-secondary);
}

body.ticket-page .drawer-nav-item[href*="ticket"]:hover {
  background-color: rgba(0, 170, 157, 0.14);
  border-color: rgba(40, 221, 207, 0.38);
}

body.ticket-page .drawer-nav-item[href*="ticket"]:hover i {
  color: #ffffff;
}

body.ticket-page .drawer-nav-item[href*="ticket"].active,
body.ticket-page .drawer-nav-item[href*="boosty"].active {
  background: linear-gradient(135deg, rgba(0, 170, 157, 0.28), rgba(40, 221, 207, 0.22));
  border-color: var(--accent-secondary);
  color: #ffffff;
  box-shadow: 0 0 14px var(--accent-glow);
}

body.ticket-page .drawer-nav-item[href*="ticket"].active i,
body.ticket-page .drawer-nav-item[href*="boosty"].active i {
  color: var(--accent-secondary);
}

body.ticket-page .drawer-nav-item[href*="ticket"] .active-indicator,
body.ticket-page .drawer-nav-item[href*="boosty"] .active-indicator {
  background: var(--accent-secondary);
  color: #052e2b;
}
