/* YouTube カルーセル（Swiper v7+） */
.rfd-yt-carousel {
  position: relative;
  padding: 0 60px;
  margin: 40px 0;
  --swiper-navigation-size: 16px;
}

.rfd-yt-card {
  width: 300px;
}

.rfd-yt-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.rfd-yt-card__link:hover .rfd-yt-card__thumb {
  opacity: 0.85;
}

.rfd-yt-card__thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.rfd-yt-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.rfd-yt-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.rfd-yt-card__play svg {
  width: 52px;
  height: auto;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.4));
}

.rfd-yt-card__title {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
}

/* ナビゲーションボタン */
.rfd-yt-prev,
.rfd-yt-next {
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #fe5000;
  transition: background-color 0.2s;
}
.rfd-yt-prev:hover,
.rfd-yt-next:hover {
  background-color: #d94400;
}

.rfd-yt-prev {
  left: 0;
}
.rfd-yt-next {
  right: 0;
}

.rfd-yt-prev .swiper-navigation-icon,
.rfd-yt-next .swiper-navigation-icon {
  width: 16px;
  height: auto;
}

@media (max-width: 767px) {
  .rfd-yt-carousel {
    padding: 0 32px;
  }
  .rfd-yt-card {
    width: 260px;
  }
}

/* 動画一覧（グリッド） */
.rfd-yt-list {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 20px;
}
.rfd-yt-list__item {
  margin: 0;
}
.rfd-yt-list__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.rfd-yt-list__link:hover .rfd-yt-list__thumb {
  opacity: 0.85;
}
.rfd-yt-list__thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}
.rfd-yt-list__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.rfd-yt-list__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.rfd-yt-list__play svg {
  width: 52px;
  height: auto;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.4));
}
.rfd-yt-list__title {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
}
.rfd-yt-list__label {
  margin: 10px 0 4px;
  font-size: 0.72rem;
  font-weight: bold;
  color: #999;
  letter-spacing: 0.04em;
}
.rfd-yt-list__sources {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.rfd-yt-list__sources li {
  margin: 0;
}
.rfd-yt-list__sources a {
  display: inline-block;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #fff;
  background-color: #fe5000;
  border-radius: 999px;
  padding: 4px 12px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.rfd-yt-list__sources a:hover {
  background-color: #d94400;
}

@media (max-width: 959px) {
  .rfd-yt-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 559px) {
  .rfd-yt-list {
    grid-template-columns: 1fr;
  }
}
