/* ================================
   サイドバー用GAM広告枠ダミーCSS
================================ */

/* RANKINGセクションのGAM広告枠 */
.sidebar-ranking__ad-image {
  width: 100%;
  height: 100%;
  background: #2962ff !important;
  border-radius: 4px;
}

.sidebar-ranking__badge--ad {
  background: rgba(0, 0, 0, 0.7) !important;
  color: #FFF !important;
}

/* MOREセクションのGAM広告枠 */
.sidebar-more__ad-image {
  width: 100%;
  height: 100%;
  background: #2962ff !important;
  border-radius: 4px;
}

.sidebar-more__ad-label {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 9px;
  font-weight: 600;
  color: #FFF;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
  line-height: 1em;
  border-radius: 2px;
  z-index: 1;
}

.sidebar-more__thumb {
  position: relative;
}

/* 「もっと見る」ボタン */
.sidebar-ranking-more-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  background: #FFF;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-ranking-more-btn:hover {
  background: #f5f5f5;
  border-color: #999;
}

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

/* バナー型GAM広告枠（上部・下部） */
.sidebar-gam-banner {
  width: 100%;
  margin-bottom: 20px;
}

.sidebar-gam-banner__placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 300 / 250;
  background: #2962ff !important;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-gam-banner__label {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #FFF;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  line-height: 1em;
  border-radius: 2px;
  z-index: 1;
}

.sidebar-gam-banner__content {
  color: #FFF;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

/* MORE セクション用GAM広告枠 */
.sidebar-gam-ad {
  margin-bottom: 16px;
}

.sidebar-gam-ad__placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #2962ff !important;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-gam-ad__label {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 9px;
  font-weight: 600;
  color: #FFF;
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 6px;
  line-height: 1em;
  border-radius: 2px;
  z-index: 1;
}

.sidebar-gam-ad__content {
  color: #FFF;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1023px) {
  .sidebar-gam-banner {
    width: 94%;
    margin-left: auto;
    margin-right: auto;
  }

  .sidebar-gam-banner__placeholder {
    aspect-ratio: 300 / 200;
  }

  .sidebar-gam-banner__content {
    font-size: 16px;
  }

  .sidebar-gam-ad__placeholder {
    aspect-ratio: 16 / 8;
  }

  .sidebar-gam-ad__content {
    font-size: 12px;
  }
}

@media screen and (max-width: 767px) {
  .sidebar-gam-banner {
    width: 94%;
    margin-left: auto;
    margin-right: auto;
  }

  .sidebar-gam-banner__placeholder {
    aspect-ratio: 1 / 1;
  }

  .sidebar-gam-banner__content {
    font-size: 14px;
  }

  .sidebar-gam-ad__placeholder {
    aspect-ratio: 16 / 7;
  }

  .sidebar-gam-ad__content {
    font-size: 11px;
  }
}
