/* スライダー全体の構造調整 */
.affiliate-slider .swiper-wrapper {
  display: flex;
  align-items: stretch; /* 子スライドを同じ高さにする */
}

.affiliate-slider{
  padding-top: 50px !important; /* 上にボタン分の余白 */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* スライド */
.swiper-slide {
  display: flex;
  flex-direction: column;
}

.swiper-button-prev,
.swiper-button-next {
  top: 33px !important; /* 上に移動 */
  width: 32px !important;
  height: 32px !important;
  background: #f2f2f2;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  color: #000 !important;
}

.swiper-button-prev {
  left: 10px;
}

.swiper-button-next {
  right: 10px;
}

/* 各ボックスの高さを100%に伸ばす */
.affiliate-slider .affiliate-embed-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
  box-sizing: border-box;
  background: #fff;
}

.affiliate-slider .affiliate-embed-box .wp-embed-heading{
  line-height: 1.3;
}

.affiliate-slider .affiliate-embed-box .wp-embed-featured-image{
    width: 100%;
    max-width: none;
}
@media screen and (max-width: 599px) {
    .affiliate-slider .affiliate-embed-box .wp-embed-heading{
        font-size: 12px;
    }
    .affiliate-slider .affiliate-embed-box .affiliate-label{
        font-size: 10px;
    }
}

/* 画像部分 */
.wp-embed-featured-image {
  flex-shrink: 0;
}

/* テキスト部分を縦に伸縮させる */
.wp-embed-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 10px;
}