@charset "UTF-8";
@import url("tokens.css");
/**
 * HKT48 Showroom Data - モダンSaaSスタイルデザインシステム (v2.0)
 * 2025/2026年主流SaaS（Linear, Raycast, Vercel）に準拠したBento Grid＆ガラスモーフィズム
 * ※ 背景色は指定の深色（#141721）をベースに維持し、カード・ナビゲーションを洗練されたガラス表現に昇華。
 * ※ すべてのコメントは日本語で記述されています。
 */

/* -------------------------------------------------------------------------
   1. デザイントークン定義 (CSS Custom Properties)
   ------------------------------------------------------------------------- */
:root {
  /* 背景・キャンバス（ユーザー指定のShowroomダーク #141721 を厳守） */
  --bg-canvas: #141721;
  --bg-canvas-gradient: radial-gradient(ellipse at 50% 0%, #1e2436 0%, #141721 55%, #0d0f17 100%);

  /* サーフェス・カード（ダーク背景に美しく映える深藍半透明ガラス） */
  --bg-surface: rgba(28, 32, 42, 0.78);
  --bg-surface-elevated: rgba(36, 41, 54, 0.86);
  --bg-surface-hover: rgba(45, 52, 68, 0.88);
  --bg-subtle: rgba(255, 255, 255, 0.08);

  /* 境界線・ハイライト（Linearライクなインセット微光線） */
  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-medium: rgba(255, 255, 255, 0.26);
  --border-focus: rgba(172, 80, 147, 0.6);
  --highlight-inset: inset 0 1px 0 0 rgba(255, 255, 255, 0.2);

  /* ブランド・アクセントカラー (Showroom / HKTワインピンク #ac5093) */
  --accent-showroom: #ac5093;
  --accent-primary: #ac5093;
  --accent-blue: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-glow: rgba(172, 80, 147, 0.35);
  --accent-gradient: linear-gradient(135deg, #c05299 0%, #ac5093 50%, #873872 100%);

  /* タイポグラフィ・テキストカラー */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.82);
  --text-tertiary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.45);

  /* レイアウト・装飾エフェクト */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --blur-glass: none;
  --shadow-bento: 0 4px 16px rgba(5, 8, 15, 0.35);
  --shadow-hover: 0 8px 24px rgba(5, 8, 15, 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. ヘッダー（グラスモーフィズム・フローティング）
   ------------------------------------------------------------------------- */
.header-wrapper,
header.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(20, 24, 34, 0.85);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  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 8px 24px rgba(0, 0, 0, 0.25);
}

.header .title,
.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  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: #ffffff;
  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 / mail.html 準拠のピル型セグメントコントロール）
   ------------------------------------------------------------------------- */
.nav-container,
.tag-navigation {
  max-width: 1100px;
  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(20, 24, 34, 0.72);
  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(5, 8, 15, 0.35), 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(255, 255, 255, 0.08);
}

.pill-tab.active {
  color: #ffffff;
  background: rgba(172, 80, 147, 0.28);
  border: 1px solid rgba(172, 80, 147, 0.55);
  box-shadow: 0 2px 12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-weight: 600;
}

.pill-tab .badge-new,
.subnav-pill .badge-new {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: #be123c;
  color: #ffffff;
}

/* サブナビゲーション行（Showroom内部メニュー） */
.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-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: rgba(20, 24, 34, 0.6);
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  transition: var(--transition-smooth);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), var(--highlight-inset);
  position: relative;
}

.subnav-pill:hover {
  color: #ffffff;
  border-color: var(--border-medium);
  background: rgba(30, 36, 50, 0.8);
  transform: translateY(-1px);
}

.subnav-pill.active {
  color: #ffffff;
  background: rgba(172, 80, 147, 0.28);
  border-color: rgba(172, 80, 147, 0.55);
  box-shadow: 0 2px 10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

/* NEW バッジ */
.new-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: badge-pulse 2s infinite ease-in-out;
}

@keyframes badge-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

/* ドロワー内のNEWバッジ（Showroomテキストの直後に自然に配置・薬丸型カプセルスタイル） */
.drawer-nav-item .new-badge {
  position: static;
  top: auto;
  right: auto;
  margin-left: -4px;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  line-height: 1;
}


/* -------------------------------------------------------------------------
   5. メインコンテナ＆Bento Grid 構造
   ------------------------------------------------------------------------- */
main,
.page-main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 40px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  margin: 0;
}

.left-block,
.right-block {
  flex: 1 1 calc(50% - 10px);
  min-width: 460px;
  margin: 0;
  width: auto;
}

/* -------------------------------------------------------------------------
   6. 直近の配信カード（Live Now Card）
   ------------------------------------------------------------------------- */
.live-now {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: var(--shadow-bento);
  padding: 18px 20px;
  color: #ffffff;
  margin: 0;
  width: 100%;
}

.live-now-content {
  width: 100%;
}

.list-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.list-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.list-update-time {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
}

/* 直近の配信テーブルヘッダー（下部リストコンテナのpadding(6px)+border(1px)+スクロールバー(6px)の差分を相殺して完全一致） */
.live-now-content .just-text,
.sr-live-table-header {
  display: flex;
  align-items: center;
  padding: 6px 26.4px 6px 20.8px;
  margin: 0 0 8px 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  gap: 12px;
}

.sr-live-th-member {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.sr-live-th-member i {
  font-size: 11px;
  color: var(--accent-secondary);
}

/* 配信時間カラム（ヘッダーと各行の幅を76pxで固定統一） */
.sr-live-time-col {
  width: 76px;
  min-width: 76px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.live-now-content .just-text .sr-live-time-col,
.sr-live-table-header .sr-live-time-col {
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* 日付と時刻の2段表示スタイル */
.sr-time-date {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  line-height: 1.15;
}

.sr-time-hour {
  font-size: 12.5px;
  color: #ffffff;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

/* 直近の配信「履歴」モダンPillボタン */
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #f472b6;
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.32);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
}

.link-button i {
  font-size: 10px;
  opacity: 0.85;
}

.link-button:hover {
  background: rgba(244, 114, 182, 0.28);
  border-color: rgba(244, 114, 182, 0.65);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.35);
  transform: translateY(-1px);
}

.link-button:active {
  transform: translateY(0);
}

/* ライブ中バッジ（LIVE） */
.live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: #be123c;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.live-badge i {
  font-size: 9px;
}

#live-now-list {
  max-height: 260px;
  overflow-y: auto;
  background: rgba(12, 15, 22, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

/* 直近の配信行アイテム */
#live-now-list .mail-item {
  display: flex;
  align-items: center;
  padding: 0px 14px;
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  gap: 12px;
  transition: var(--transition-smooth);
  cursor: default;
}

#live-now-list .mail-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(244, 114, 182, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

#live-now-list .member-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

#live-now-list .mail-item:hover .member-icon {
  border-color: #f472b6;
  transform: scale(1.05);
}

#live-now-list .member-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

#live-now-list .member-name a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s ease;
}

#live-now-list .member-name a:hover {
  color: #f472b6;
}

#live-now-list::-webkit-scrollbar,
#showroom-ranking::-webkit-scrollbar,
#sr-ranking::-webkit-scrollbar {
  width: 6px;
}

#live-now-list::-webkit-scrollbar-track,
#showroom-ranking::-webkit-scrollbar-track,
#sr-ranking::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-full);
}

#live-now-list::-webkit-scrollbar-thumb,
#showroom-ranking::-webkit-scrollbar-thumb,
#sr-ranking::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

/* -------------------------------------------------------------------------
   7. フォロワー推移グラフ（Chart Card）
   ------------------------------------------------------------------------- */
.chart {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
}

.chart_center {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: var(--shadow-bento);
  padding: 18px 20px;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.chart-header,
.chart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

#henndou_name,
.chart-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

#henndou_name::before,
.chart-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

#chart-showroom-time,
.chart-update-time {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
}

/* 日数セレクター */
.chart-days-selector {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  height: auto;
}

.chart-days-selector button,
.day-selector-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chart-days-selector button:hover,
.day-selector-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.chart-days-selector button.active-day-btn,
.day-selector-btn.active {
  background: var(--accent-gradient);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--accent-glow);
}

#custom-days-input {
  width: 60px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: #ffffff;
  text-align: center;
  font-size: 12px;
  outline: none;
  margin-left: 6px;
}

#custom-days-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(172, 80, 147, 0.25);
}

.chart-days-selector a {
  color: var(--text-tertiary);
  font-size: 12px;
  margin: 0 4px;
}

#custom-days-submit {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: rgba(172, 80, 147, 0.25);
  border: 1px solid rgba(172, 80, 147, 0.45);
  color: #f472b6;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

#custom-days-submit:hover {
  background: rgba(172, 80, 147, 0.4);
  color: #ffffff;
}

/* チャートラッパー（下部余白を最適化し空白を完全排除） */
.mb-mail-chat {
  background: rgba(12, 15, 22, 0.55);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 8px 6px 4px 6px;
  margin: 0;
  min-height: unset;
  display: block;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

/* -------------------------------------------------------------------------
   8. フォロワーランキング＆ライブ時間ランキング（Cards）
   ------------------------------------------------------------------------- */
.main-ranking,
.live-time {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: var(--shadow-bento);
  padding: 18px 20px;
  color: #ffffff;
  min-height: unset;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

#member-status {
  width: 100%;
}

/* グループ切り替えボタン */
.just-button {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.just-button button {
  height: 30px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.just-button button:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.just-button button.active {
  background: var(--accent-gradient);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--accent-glow);
}

/* ランキングテーブルヘッダー（上下パディングを0pxに変更） */
.just-text {
  display: flex;
  align-items: center;
  padding: 0px 14px;
  margin: 0 0 10px 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.just-text h3 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.just-text .header-label,
.just-text .delta,
.just-text .follower {
  color: var(--text-secondary);
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.just-text .header-label:hover,
.just-text .delta:hover,
.just-text .follower:hover {
  color: #f472b6;
}

/* 年月セレクター（セレクトボックス） */
.custom-select select {
  height: 28px;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  background: rgba(12, 15, 22, 0.88);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
}

.custom-select select:focus-visible {
  outline: 2px solid #f472b6;
  outline-offset: 2px;
}

/* ライブ時間ランキング＆フォロワーランキング ヘッダー＆コントロール整列スタイル (右寄せ＆完全整列) */
.just-text.sr-ranking-header {
  gap: 0;
  padding: 0px 19.6px 0px 14px;
}

.sr-ranking-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* フォロワーランキング ヘッダー（独立したテーブル見出し行） */
.just-text.sr-follower-header {
  gap: 0;
  padding: 0px 19.6px 0px 14px;
  height: 38px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.main-ranking .just-button {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: none;
}

.sr-mid {
  flex: auto;
}

/* ランキング行アイテム（上下パディングを0pxに変更） */
#showroom-ranking,
#sr-ranking {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 800px;
  overflow-y: auto;
}

.mail-item {
  display: flex;
  align-items: center;
  padding: 0px 14px;
  margin: 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.mail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  filter: brightness(1.05);
}

.mail-item:active {
  transform: translateY(0);
}

/* 順位番号 */
.ranking-num,
.mail-item>div:first-child {
  font-size: 14px;
  font-weight: 700;
  width: 28px;
  min-width: 28px;
  margin: 0 8px 0 0;
  text-align: center;
  color: #1e293b;
  flex-shrink: 0;
}

/* メンバーアイコン垂直中央整列 */
.mail-item .member-icon-link,
.mail-item>a:nth-child(2) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  line-height: 1;
  flex-shrink: 0;
}

.member-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

.member-icon img,
img.member-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* メンバー名＆リンク */
.member-name {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 0;
  min-width: 130px;
}

.member-name .name-text {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  white-space: nowrap;
}

.auto {
  flex: auto;
}

.delta {
  text-align: right;
  width: 75px;
  min-width: 75px;
  font-weight: 700;
  font-size: 13px;
  padding: 0 6px;
}

.follower {
  text-align: right;
  width: 85px;
  min-width: 85px;
  font-weight: 700;
  font-size: 13.5px;
  padding: 0 6px;
  color: #0f172a;
}

.sr-time,
.sr-live-time {
  text-align: right;
  font-weight: 700;
  font-size: 13px;
}

.sr-time {
  width: 68px;
  min-width: 68px;
}

.sr-live-time {
  width: 45px;
  min-width: 45px;
}

/* -------------------------------------------------------------------------
   9. フッターエリア（twitter.html / mail.html 準拠）
   ------------------------------------------------------------------------- */
.footer-wrapper,
footer.footer {
  margin-top: auto;
  width: 100%;
  background: rgba(20, 24, 34, 0.88);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-top: 1px solid var(--border-subtle);
  padding: 24px 16px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 13px;
}

.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(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 15px;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.footer-social-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

@media screen and (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* -------------------------------------------------------------------------
   10. レスポンシブ対応 (Tablet & 狭小デスクトップ：1024px以下)
   ------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  /* 768px〜1024px環境（iPad・分割ウィンドウなど）で横幅不足によるランキング崩れを防止 */
  .main-content {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 20px;
  }
  .left-block,
  .right-block {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .main-ranking,
  .live-time {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* -------------------------------------------------------------------------
   11. レスポンシブ対応 (Mobile & Tablet)
   ------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {

  .tag-navigation,
  .tag {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  main,
  .page-main-container {
    padding: 0 12px 30px 12px;
    gap: 16px;
  }

  .live-now,
  .chart_center,
  .main-ranking,
  .live-time {
    padding: 14px 12px;
    border-radius: var(--radius-md);
  }

  /* モバイル画面でのカード幅統一と横溢出防止 */
  .main-content {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .left-block,
  .right-block {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .main-ranking,
  .live-time {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 日数セレクターのモバイル最適化（改行防止・スムーズな横スクロール対応） */
  .chart-days-selector {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding-bottom: 4px;
  }

  .chart-days-selector::-webkit-scrollbar {
    display: none;
  }

  .chart-days-selector button,
  .day-selector-btn {
    padding: 0 9px;
    font-size: 11.5px;
    flex-shrink: 0;
  }

  #custom-days-input {
    width: 48px;
    padding: 0 6px;
    font-size: 11.5px;
    flex-shrink: 0;
  }

  #custom-days-submit {
    flex-shrink: 0;
  }

  .member-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 85px;
  }

  .member-name .name-text {
    font-size: 13.5px;
  }

  .delta {
    width: 80px;
    min-width: 80px;
    font-size: 12px;
    white-space: nowrap;
  }

  .follower {
    width: 80px;
    min-width: 80px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  /* ランキング見出しの文字同一行保持と矢印の改行 */
  .just-text .col-title {
    display: block;
    white-space: nowrap;
  }

  .just-text .sort-arrow {
    display: block;
    text-align: right;
    font-size: 8.5px;
    line-height: 1;
    margin-top: 1px;
    margin-left: 0;
  }

  /* 直近の配信タブレット・中画面（768px-481px）での完全整列スタイル */
  .live-now-content .just-text,
  .sr-live-table-header {
    padding: 6px 22.4px 6px 16.8px;
    gap: 8px;
    font-size: 11.5px;
  }

  #live-now-list .mail-item {
    padding: 0px 10px;
    gap: 8px;
  }

  #live-now-list .member-icon {
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
  }

  #live-now-list .member-name {
    min-width: 65px;
    font-size: 13px;
  }

  .link-button {
    padding: 2.5px 8px;
    font-size: 10.5px;
    gap: 3px;
  }

  .sr-live-time-col {
    width: 66px;
    min-width: 66px;
  }

  .sr-time-date {
    font-size: 10.5px;
  }

  .sr-time-hour {
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .just-text {
    padding: 0px 10px;
    font-size: 11.5px;
  }

  /* 直近の配信コンテナ最適化 */
  #live-now-list {
    padding: 4px;
    gap: 5px;
  }

  /* 直近の配信ヘッダー（左11px, 右16.6pxでカード内容と完全垂直整列） */
  .live-now-content .just-text,
  .sr-live-table-header {
    padding: 6px 16.6px 6px 11px;
    gap: 4px;
    font-size: 11px;
  }

  .sr-live-table-header .sr-live-time-col {
    font-size: 10px;
    letter-spacing: -0.02em;
    white-space: nowrap;
    width: 46px;
    min-width: 46px;
    max-width: 46px;
  }

  /* 直近の配信行アイテム（カード） */
  #live-now-list .mail-item {
    padding: 5px 6px;
    gap: 4px;
    box-sizing: border-box;
  }

  #live-now-list .member-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    margin-right: 0;
  }

  #live-now-list .member-name {
    min-width: 0;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62px;
  }

  /* 履歴ボタンの省スペース化 */
  .link-button {
    padding: 1.5px 5px;
    font-size: 9.5px;
    gap: 2.5px;
    flex-shrink: 0;
  }

  .link-button i {
    font-size: 8.5px;
  }

  /* ライブ中バッジ */
  .live-badge {
    padding: 1.5px 6px;
    font-size: 9.5px;
    gap: 3px;
    flex-shrink: 0;
  }

  /* 開始時間・終了時間カラム（46pxに統一し切断防止＆完全整列） */
  #live-now-list .sr-live-time-col {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    flex-shrink: 0;
  }

  .sr-time-date {
    font-size: 9.5px;
    line-height: 1.1;
  }

  .sr-time-hour {
    font-size: 10.5px;
    line-height: 1.15;
  }

  /* モバイル画面でのコンテナ左右余白を最適化してランキング行の表示領域を最大化 */
  main,
  .page-main-container {
    padding: 0 8px 30px 8px;
  }

  .main-ranking,
  .live-time {
    padding: 10px 8px;
  }

  /* フォロワーランキングヘッダー同期（スクロールバー幅5.6px補正＆同一行表示） */
  .just-text.sr-follower-header {
    padding: 6px 11.6px 6px 6px;
    gap: 0;
    font-size: 11px;
    height: 32px;
    margin-bottom: 8px;
  }

  .main-ranking .just-button {
    gap: 4px;
    margin-bottom: 8px;
  }

  .main-ranking .just-button button {
    height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }

  /* フォロワーランキング行パディング統一 */
  #showroom-ranking .mail-item {
    padding: 6px 6px;
    box-sizing: border-box;
  }

  /* 順位番号（インライン余白リセット・省スペース化） */
  .ranking-num,
  #showroom-ranking .mail-item>div:first-child {
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    font-size: 12px;
    margin: 0 3px 0 0;
    padding: 0;
    text-align: center;
    flex-shrink: 0;
  }

  /* メンバーアイコンサイズ調整（省スペース化） */
  #showroom-ranking .member-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    margin-right: 5px;
    flex-shrink: 0;
  }

  /* メンバー名（320px環境でも5文字すべて完全表示） */
  #showroom-ranking .member-name {
    min-width: 0;
    max-width: 80px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
  }

  /* 30日前比・1日前比・フォロワー列の幅をヘッダーと各行で完全に固定・同期（改行防止） */
  .delta-30,
  #left-block .just-text .delta:nth-child(3),
  #showroom-ranking .mail-item .delta:nth-child(5) {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    font-size: 10px;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-align: right;
    padding: 0;
    flex-shrink: 0;
  }

  .delta-1,
  #left-block .just-text .delta:nth-child(4),
  #showroom-ranking .mail-item .delta:nth-child(6) {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    font-size: 10px;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-align: right;
    padding: 0;
    flex-shrink: 0;
  }

  .follower,
  #left-block .just-text .follower,
  #showroom-ranking .mail-item .follower {
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    font-size: 10.5px;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-align: right;
    padding: 0;
    flex-shrink: 0;
  }

  .auto {
    flex: 1 1 auto;
    min-width: 2px;
  }

  /* 30日ライブ時間ランキング：ヘッダーと各データ行の完全垂直整列＆横幅最適化 */
  .just-text.sr-ranking-header {
    padding: 6px 11.6px 6px 6px;
    gap: 0;
    font-size: 11px;
  }

  .sr-ranking-controls {
    gap: 3px;
    flex-shrink: 0;
  }

  .sr-ranking-controls .custom-select select {
    height: 22px;
    padding: 1px 4px;
    font-size: 10.5px;
    border-radius: 4px;
  }

  #sr-ranking .mail-item {
    padding: 6px 6px;
    gap: 0;
    box-sizing: border-box;
  }

  #sr-ranking .mail-item .ranking-num,
  #sr-ranking .mail-item>a:first-child {
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    margin: 0 3px 0 0;
    font-size: 12px;
    text-align: center;
    color: #1e293b;
    text-decoration: none;
    font-weight: 700;
    flex-shrink: 0;
  }

  /* メンバーアイコンリンクの高さを28pxに固定してランキングカードの高さを統一（矮い方に統一） */
  #sr-ranking .mail-item .member-icon-link {
    height: 28px;
    min-height: 28px;
    max-height: 28px;
    line-height: 1;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  #sr-ranking .mail-item .member-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    margin-right: 0;
    flex-shrink: 0;
  }

  /* メンバー名の横幅制限＆重なり防止 */
  #sr-ranking .mail-item .member-name {
    min-width: 0;
    max-width: 85px;
    flex: 1 1 auto;
    overflow: hidden;
  }

  #sr-ranking .mail-item .member-name a {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11.5px;
    font-weight: 600;
  }

  /* 毎日配信列 */
  .sr-ranking-header #sr-everyday-time,
  #sr-ranking .mail-item #sr-everyday-time {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    font-size: 10.5px;
    text-align: right;
    padding: 0;
    flex-shrink: 0;
  }

  /* 配信回数列 */
  .sr-ranking-header .sr-live-time,
  #sr-ranking .mail-item .sr-live-time {
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    font-size: 10.5px;
    text-align: right;
    padding: 0;
    flex-shrink: 0;
  }

  /* 配信時間列 */
  .sr-ranking-header .sr-time:last-child,
  #sr-ranking .mail-item .sr-time:last-child {
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    font-size: 10.5px;
    text-align: right;
    padding: 0;
    flex-shrink: 0;
  }
}

/* =========================================================================
   8. メンバー詳細ページ専用スタイル (showroom_member.html v2.0)
   ========================================================================= */

.member-detail-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* メンバープロファイルカード（ガラスモーフィズム） */
.member-profile-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  box-shadow: var(--shadow-bento);
  backdrop-filter: blur(16px);
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

.member-profile-card:hover {
  border-color: rgba(244, 114, 182, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.member-profile-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(244, 114, 182, 0.5);
  box-shadow: 0 0 15px rgba(244, 114, 182, 0.25);
  transition: var(--transition-smooth);
}

.member-profile-card:hover .profile-avatar {
  transform: scale(1.05);
  border-color: #f472b6;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #f9a8d4;
  background: rgba(244, 114, 182, 0.14);
  border: 1px solid rgba(244, 114, 182, 0.3);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  width: fit-content;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.profile-name:hover {
  color: #f472b6;
}

/* 30日配信時間バッジ */
.profile-time-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  background: rgba(12, 15, 22, 0.6);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.profile-time-lbl {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.profile-time-val {
  font-size: 18px;
  font-weight: 700;
  color: #fbbf24;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.03em;
}

/* 配信履歴カード */
.member-history-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-bento);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.member-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(244, 114, 182, 0.15);
  color: #f472b6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.member-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

/* 年月セレクター */
.sr-selectors-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-select-box select {
  height: 32px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(12, 15, 22, 0.88);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.custom-select-box select:hover {
  border-color: var(--accent-secondary);
}

.custom-select-box select:focus-visible {
  outline: 2px solid #f472b6;
  outline-offset: 2px;
}

/* 配信履歴テーブルヘッダー（スクロールバー差分を相殺して完全一致） */
.sr-table-header {
  display: flex;
  align-items: center;
  padding: 8px 23.6px 8px 16px;
  margin: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  gap: 12px;
}

.sr-col-start,
.sr-col-end {
  width: 160px;
  min-width: 160px;
  color: var(--text-secondary);
  font-size: 12px;
}

.sr-col-days {
  width: 90px;
  min-width: 90px;
  text-align: center;
  color: var(--text-secondary);
}

.sr-col-duration {
  width: 90px;
  min-width: 90px;
  text-align: center;
  color: var(--text-secondary);
}

.sr-col-gift {
  width: 110px;
  min-width: 110px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
}

/* 配信履歴リストコンテナ */
#mb-showroom-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 700px;
  overflow-y: auto;
  padding-right: 2px;
}

#mb-showroom-chart::-webkit-scrollbar {
  width: 6px;
}

#mb-showroom-chart::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-full);
}

#mb-showroom-chart::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

/* 配信枠各行アイテム (デスクトップ) */
#mb-showroom-chart .showroom-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  gap: 12px;
  transition: var(--transition-smooth);
  box-sizing: border-box;
}

#mb-showroom-chart .showroom-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(244, 114, 182, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

#mb-showroom-chart .showroom-item .sr-start-time,
#mb-showroom-chart .showroom-item .sr-end-time {
  width: 160px;
  min-width: 160px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #e2e8f0;
  font-weight: 500;
}

#mb-showroom-chart .showroom-item .sr-continuous-days {
  width: 90px;
  min-width: 90px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #f472b6;
}

#mb-showroom-chart .showroom-item .sr-duration-time {
  width: 90px;
  min-width: 90px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #38bdf8;
}

#mb-showroom-chart .showroom-item .sr-gift-col {
  width: 110px;
  min-width: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* モバイル表示最適化 (max-width: 768px) */
@media screen and (max-width: 768px) {
  .member-detail-container {
    gap: 16px;
  }

  .member-profile-card {
    padding: 14px 16px;
  }

  .profile-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .profile-name {
    font-size: 17px;
  }

  .profile-time-badge {
    padding: 6px 12px;
  }

  .profile-time-val {
    font-size: 15px;
  }

  .member-history-card {
    padding: 14px 12px;
  }

  /* スマホでの配信枠テーブルヘッダー非表示 */
  .just-text.sr-table-header {
    display: none;
  }

  /* 配信枠アイテムのカード型2段レイアウト */
  #mb-showroom-chart .showroom-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "start gift"
      "end   gift"
      "meta  meta";
    padding: 10px 12px;
    row-gap: 4px;
    column-gap: 8px;
    background: rgba(255, 255, 255, 0.04);
  }

  #mb-showroom-chart .showroom-item .auto {
    display: none;
  }

  #mb-showroom-chart .showroom-item .sr-start-time {
    grid-area: start;
    width: 100%;
    min-width: 0;
    font-size: 12.5px;
  }

  #mb-showroom-chart .showroom-item .sr-start-time::before {
    content: "開始: ";
    color: var(--text-tertiary);
    font-size: 11px;
    font-family: var(--font-primary);
  }

  #mb-showroom-chart .showroom-item .sr-end-time {
    grid-area: end;
    width: 100%;
    min-width: 0;
    font-size: 12.5px;
  }

  #mb-showroom-chart .showroom-item .sr-end-time::before {
    content: "終了: ";
    color: var(--text-tertiary);
    font-size: 11px;
    font-family: var(--font-primary);
  }

  #mb-showroom-chart .showroom-item .sr-gift-col {
    grid-area: gift;
    width: auto;
    min-width: 0;
  }

  #mb-showroom-chart .showroom-item .sr-continuous-days,
  #mb-showroom-chart .showroom-item .sr-duration-time {
    width: auto;
    min-width: 0;
    text-align: left;
    font-size: 12px;
  }

  #mb-showroom-chart .showroom-item .sr-continuous-days::before {
    content: "毎日配信: ";
    color: var(--text-tertiary);
    font-weight: 500;
  }

  #mb-showroom-chart .showroom-item .sr-duration-time::before {
    content: "配信時間: ";
    color: var(--text-tertiary);
    font-weight: 500;
  }
}