/* ランキングサイドバー */
.ranking-section {
  margin-top: 0;
  margin-bottom: 0;
}
.ranking-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px -2px;
  overflow: hidden;
}
.ranking-header {
  padding: 12px 12px 0 12px;
}
.ranking-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px 0;
}
.ranking-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #eee;
}
.ranking-tab {
  flex: 1;
  padding: 6px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.ranking-tab:hover {
  color: #333;
}
.ranking-tab.active {
  color: #0066cc;
  border-bottom-color: #0066cc;
  font-weight: 600;
}
.ranking-list {
  padding: 0;
}
.ranking-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
  position: relative;
}
.ranking-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, #e8f4fc 0%, rgba(232, 244, 252, 0.3) 100%);
  width: var(--bar-width, 0%);
  transition: width 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.ranking-rank,
.ranking-info {
  position: relative;
  z-index: 1;
}
.ranking-item:last-child {
  border-bottom: none;
}
.ranking-item:hover {
  background-color: #f0f0f0;
}
.ranking-item:hover::before {
  opacity: 0.5;
}
.ranking-rank {
  font-weight: 700;
  font-size: 16px;
  color: #6a9ec2;
  min-width: 20px;
  text-align: center;
}
.ranking-info {
  flex: 1;
  min-width: 0;
}
.ranking-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-meta {
  font-size: 11px;
  color: #888;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-empty {
  padding: 20px;
  text-align: center;
  color: #888;
  font-size: 14px;
}
.ranking-panel {
  display: none;
}
.ranking-panel.active {
  display: block;
}
.ranking-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  border-top: 1px solid #eee;
  color: #666;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.2s, color 0.2s;
}
.ranking-more:hover {
  background-color: #f5f5f5;
  color: #0066cc;
}

/* 2カラムレイアウト（ページ内で使用） */
.page-two-column {
  display: flex;
  gap: 24px;
  margin-top: 1em;
}
.page-main-column {
  flex: 1;
  min-width: 0;
}
.page-side-column {
  width: 280px;
  flex-shrink: 0;
}
.page-side-column .ranking-section {
  position: sticky;
  top: 70px; /* ナビの高さ分 */
}
@media (max-width: 900px) {
  .page-two-column {
    flex-direction: column;
    gap: 1.5em;
  }
  .page-side-column {
    width: 100%;
  }
  .page-side-column .ranking-section {
    position: static;
  }
  .sidebar-sns-wrap {
    display: none;
  }
}

/* サイドバー内SNSボタン（従来のスタイルを流用） */
.sidebar-sns-wrap {
  margin-top: 16px;
}
.sidebar-sns-wrap #social-icon {
  justify-content: center;
}

/* SP用SNSボタン（PCでは非表示） */
.sp-only-sns {
  display: none;
}
@media (max-width: 900px) {
  .sp-only-sns {
    display: block;
  }
}
