/**
 * sidebar-ranking.css
 * サイドバーのランキング・MOREセクション用スタイル
 */

/* ===== サイドバーランキングセクション ===== */
.sidebar-ranking {
  margin-bottom: 24px;
}

.sidebar-ranking__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== ランキング項目 ===== */
.sidebar-ranking__item {
  margin: 0;
  padding: 0;
}

.sidebar-ranking__item a {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.sidebar-ranking__item a:hover {
  opacity: 0.7;
}

/* ===== サムネイル ===== */
.sidebar-ranking__thumb {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 68px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}

.sidebar-ranking__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== ランキングバッジ ===== */
.sidebar-ranking__badge {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #47A0AA;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* ===== タイトル ===== */
.sidebar-ranking__title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: #333;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 60px;
}

/* ===== GAM広告枠 ===== */
.sidebar-ranking__ad {
  margin: 0;
  padding: 0;
}

.sidebar-ranking__ad-placeholder {
  width: 100%;
  height: 60px;
  background: #2962ff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

/* ===== 空状態 ===== */
.sidebar-ranking__item--empty {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

.sidebar-empty {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 13px;
  margin: 0;
}

/* ===== もっと見るボタン ===== */
.sidebar-ranking-more-btn {
  display: block;
  width: 100%;
  height: 50px;
  margin: 16px 0 0;
  padding: 0;
  background: #fff;
  border: 1px solid #47a0aa;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  color: #1C3133;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  line-height: 50px;
  text-decoration: none; /* リンクの下線を消す */
}

.sidebar-ranking-more-btn:hover:not(:disabled) {
  background: #47a0aa;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.sidebar-ranking-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== MOREセクション ===== */
.sidebar-more {
  margin-bottom: 24px;
}

.sidebar-more__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-more__item {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.sidebar-more__item a {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.sidebar-more__item a:hover {
  opacity: 0.7;
}

.sidebar-more__thumb {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 68px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}

.sidebar-more__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-more__title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: #333;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
