/* creator-ranking.css */
/* クリエイターランキング用スタイル */

.rank-section {
  margin: 3rem 0;
}

.rank-section h2 {
  font-size: 1.5rem;
  color: #ec4899;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

.rank-tabs {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  justify-content: center;
}

.rank-tabs button {
  background: #f3f4f6;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.rank-tabs button:hover {
  background: #e5e7eb;
}

.rank-tabs button.active {
  background: #ec4899;
  color: #fff;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.rank-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease;
}

.rank-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.rank-num {
  font-weight: bold;
  font-size: 1.1rem;
  color: #ec4899;
  min-width: 40px;
}

.rank-avatar {
  display: block;
  text-decoration: none;
}

.rank-avatar img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.rank-name {
  flex: 1;
}

.rank-name a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.rank-name a:hover {
  color: #ec4899;
}

