/*
 * SUGOまとMEDIA - メインCSS
 * assets/css/main.css
 */

/* ========================================
   リセット & ベース
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1f2937;
  background-color: #f9fafb;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

ul, ol {
  list-style: none;
}

/* ========================================
   ユーティリティクラス
======================================== */
/* Display */
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flex */
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-around: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* Grid */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }

/* Width & Height */
.w-2 { width: 0.5rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-full { width: 100%; }

.h-2 { height: 0.5rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-full { height: 100%; }

.h-\[150px\] { height: 150px; }
.h-\[200px\] { height: 200px; }
.h-\[280px\] { height: 280px; }
.h-\[350px\] { height: 350px; }

.min-w-0 { min-width: 0; }
.min-h-screen { min-height: 100vh; }

.aspect-video { aspect-ratio: 16 / 9; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.pt-0\.5 { padding-top: 0.125rem; }
.pb-20 { padding-bottom: 5rem; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-3 { margin-left: 0.75rem; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-1 { top: 0.25rem; }
.top-12 { top: 3rem; }
.top-1\/2 { top: 50%; }
.right-0 { right: 0; }
.right-1 { right: 0.25rem; }
.right-2 { right: 0.5rem; }
.right-3 { right: 0.75rem; }
.bottom-0 { bottom: 0; }
.bottom-2 { bottom: 0.5rem; }
.left-0 { left: 0; }
.left-2 { left: 0.5rem; }

.-translate-y-1\/2 { transform: translateY(-50%); }

/* Z-index */
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-\[10px\] { font-size: 10px; }

.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }

.text-center { text-align: center; }
.text-left { text-align: left; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }

.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Colors */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-600 { color: #2563eb; }
.text-red-500 { color: #ef4444; }

.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-800 { background-color: #1f2937; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-600 { background-color: #2563eb; }
.bg-red-500 { background-color: #ef4444; }

.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-white\/40 { background-color: rgba(255, 255, 255, 0.4); }
.bg-black\/30 { background-color: rgba(0, 0, 0, 0.3); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }

/* Border */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }

.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-blue-600 { border-color: #2563eb; }
.border-transparent { border-color: transparent; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-3xl { border-top-left-radius: 1.5rem; border-top-right-radius: 1.5rem; }

/* Effects */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-x-auto::-webkit-scrollbar { display: none; }
.overflow-x-auto { -ms-overflow-style: none; scrollbar-width: none; }

/* Object */
.object-cover { object-fit: cover; }

/* Transition */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Divide */
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; border-top-style: solid; }
.divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: #f3f4f6; }

/* ========================================
   コンポーネント
======================================== */

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 12px;
}

.site-title {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  position: relative;
}

.header-btn svg {
  width: 20px;
  height: 20px;
}

.notification-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
}

/* カテゴリータブ */
.category-tabs {
  display: flex;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}

.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs { -ms-overflow-style: none; scrollbar-width: none; }

/* ヒーロー */
.sugo-hero {
  position: relative;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-slides {
  position: relative;
}

.hero-slide {
  display: none;
  position: relative;
}

.hero-slide.active {
  display: block;
}

.hero-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 4px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.2s;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hero-dot.active {
  background: #fff;
}

.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.hero-carousel:hover .hero-prev,
.hero-carousel:hover .hero-next {
  opacity: 1;
}

.hero-prev { left: 8px; }
.hero-next { right: 8px; }

.hero-prev svg,
.hero-next svg {
  width: 20px;
  height: 20px;
}

/* クイックリンク */
.quick-links {
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}

.quick-links .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 12px 0;
}

/* セクションヘッダー */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}

/* 記事リスト */
.article-list {
  background: #fff;
}

.article-card a {
  display: flex;
  gap: 12px;
  padding: 12px;
}

.article-card:active {
  background: #f9fafb;
}

/* ページネーション */
.pagination {
  padding: 16px;
  background: #fff;
  border-top: 1px solid #f3f4f6;
}

.pagination ul {
  display: flex;
  justify-content: center;
  gap: 4px;
  list-style: none;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-size: 14px;
  border-radius: 4px;
  color: #4b5563;
}

.pagination a:hover {
  background: #f3f4f6;
}

.pagination .current {
  background: #2563eb;
  color: #fff;
}

/* ボトムナビ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  z-index: 50;
}

.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 56px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #9ca3af;
  transition: color 0.2s;
}

.nav-item.active {
  color: #2563eb;
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

.nav-item span {
  font-size: 10px;
}

.bottom-spacer {
  height: 56px;
}

/* SVGアイコンサイズ制御 */
svg.w-5 { width: 1.25rem; height: 1.25rem; }
svg.h-5 { width: 1.25rem; height: 1.25rem; }
svg.w-6 { width: 1.5rem; height: 1.5rem; }
svg.h-6 { width: 1.5rem; height: 1.5rem; }

/* アイコンフォールバック */
.icon-fallback {
  display: inline-block;
  font-size: 10px;
  color: #9ca3af;
}

/* ========================================
   ランキングページ
======================================== */

/* ヒーロー */
.ranking-hero {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  padding: 24px 16px;
  text-align: center;
  color: #fff;
}

.ranking-hero-subtitle {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.ranking-hero-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* TOP3 */
.ranking-top3 {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
}

.top3-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.top3-first {
  margin-bottom: 8px;
}

.top3-image-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.5);
}

.top3-image-first {
  width: 72px;
  height: 72px;
  border: 3px solid #fbbf24;
  box-shadow: 0 0 20px rgba(251,191,36,0.5);
}

.top3-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top3-live {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #22c55e;
  color: #fff;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 8px;
  font-weight: 700;
}

.top3-name {
  font-size: 11px;
  margin-top: 6px;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top3-rank {
  font-size: 12px;
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 12px;
  margin-top: 4px;
}

/* タブ */
.ranking-tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 48px;
  z-index: 30;
}

.ranking-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.ranking-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* 期間セレクター */
.ranking-type-selector {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.ranking-type-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  text-decoration: none;
  background: #f3f4f6;
  color: #4b5563;
  transition: all 0.2s;
}

.ranking-type-btn.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

/* 配信者リスト */
.streamer-list {
  background: #fff;
}

.streamer-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}

.streamer-item:active {
  background: #f9fafb;
}

.streamer-rank {
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.rank-medal {
  font-size: 24px;
}

.rank-num {
  font-size: 12px;
  color: #9ca3af;
}

.rank-none {
  color: #d1d5db;
}

.streamer-image-wrap {
  position: relative;
  flex-shrink: 0;
}

.streamer-image {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.streamer-live {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #22c55e;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.streamer-info {
  flex: 1;
  min-width: 0;
  margin-left: 12px;
}

.streamer-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.streamer-name {
  font-weight: 700;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streamer-crown {
  font-size: 10px;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.streamer-stats {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.streamer-updated {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.no-streamers {
  padding: 48px 16px;
  text-align: center;
  color: #9ca3af;
}

/* ========================================
   配信者詳細ページ
======================================== */

.streamer-detail {
  background: #f9fafb;
  min-height: 100vh;
  padding-bottom: 80px;
}

.streamer-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 40;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #4b5563;
}

.streamer-detail-title {
  font-size: 16px;
  font-weight: 700;
}

/* プロフィールカード */
.streamer-profile-card {
  background: #fff;
  margin: 16px;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.profile-top {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.profile-image-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-image {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
}

.profile-live {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #22c55e;
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.profile-badge {
  display: inline-block;
  font-size: 11px;
  background: #2563eb;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.profile-userid {
  font-size: 12px;
  color: #6b7280;
}

.profile-bio {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* スタッツグリッド */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.stat-box {
  padding: 12px;
  border-radius: 12px;
  text-align: center;
}

.stat-charm { background: #eff6ff; }
.stat-rich { background: #fef3c7; }
.stat-best { background: #fce7f3; }
.stat-count { background: #ecfdf5; }

.stat-label {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.stat-charm .stat-value { color: #2563eb; }
.stat-rich .stat-value { color: #d97706; }
.stat-best .stat-value { color: #db2777; }
.stat-count .stat-value { color: #059669; }

.profile-updated {
  font-size: 11px;
  color: #9ca3af;
  text-align: right;
}

/* 入賞履歴 */
.ranking-history {
  background: #fff;
  margin: 16px;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.history-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.history-list {
  max-height: 200px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 8px;
}

.history-date {
  flex: 1;
  font-size: 13px;
  color: #4b5563;
}

.history-type {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.type-daily { background: #fed7aa; color: #c2410c; }
.type-weekly { background: #fce7f3; color: #be185d; }
.type-monthly { background: #e9d5ff; color: #7c3aed; }

.history-rank {
  font-weight: 700;
  min-width: 40px;
  text-align: right;
}

/* 外部リンク */
.external-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px;
}

.ext-link {
  display: block;
  padding: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
}

.ext-profile {
  background: #f3f4f6;
  color: #1f2937;
}

.ext-room {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

.ext-room.inactive {
  background: #9ca3af;
}

.no-links {
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  padding: 12px;
}

/* ルームメッセージ */
.room-message {
  background: #ecfdf5;
  margin: 16px;
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid #22c55e;
}

.room-message p {
  font-size: 14px;
  color: #065f46;
}
<!-- ========================================
   保存ボタン HTML
   各テンプレートの適切な場所に追加
======================================== -->

<!-- ライバープロフィール用 -->
<button type="button" class="save-btn" data-type="profile" data-id="<?php echo get_the_ID(); ?>" aria-label="保存する">
    <svg class="save-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
        <path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
    </svg>
</button>

<!-- 記事用 -->
<button type="button" class="save-btn" data-type="post" data-id="<?php echo get_the_ID(); ?>" aria-label="保存する">
    <svg class="save-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
        <path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
    </svg>
</button>

<!-- イベント用 -->
<button type="button" class="save-btn" data-type="event" data-id="<?php echo get_the_ID(); ?>" aria-label="保存する">
    <svg class="save-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
        <path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
    </svg>
</button>


<!-- ========================================
   保存ボタン CSS
   assets/css/main.css に追加
======================================== -->

<style>
/* 保存ボタン */
.save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.save-btn:hover {
    background: #f3f4f6;
}

.save-btn .save-icon {
    transition: all 0.2s;
}

.save-btn.saved {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.save-btn.saved .save-icon {
    fill: currentColor;
}

/* ヘッダー内の保存ボタン配置用 */
.sugo-single-header,
.event-header {
    display: flex;
    align-items: center;
}

.sugo-single-header .detail-save-btn,
.event-header .detail-save-btn {
    margin-left: auto;
}

/* カード内の保存ボタン（右上配置） */
.card-save-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

/* 詳細ページの保存ボタン */
.detail-save-btn {
    margin-left: auto;
}
</style>