
.coboo-youtube-wrap {
  display: block;
  width: 100%;
  clear: both;
  margin: 0 0 90px;
}

.coboo-youtube-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
}

.coboo-youtube-item {
  min-width: 0;
  margin: 0;
}

.coboo-youtube-item a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.coboo-youtube-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
}

.coboo-youtube-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coboo-youtube-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 40px;
  transform: translate(-50%, -50%);
  background: #ff0000;
  color: #fff;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
}

.coboo-youtube-item h3 {
  margin: 12px 0 4px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.coboo-youtube-item time {
  display: block;
  color: #777;
  font-size: 13px;
  line-height: 1.4;
}

.coboo-youtube-mobile-hint {
  display: none;
}

.coboo-youtube-error {
  margin: 0 0 30px;
  color: #b32d2e;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .coboo-youtube-wrap {
    margin-bottom: 70px;
  }

  .coboo-youtube-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

/* Smartphone: 最新3件だけを横スワイプ */
@media (max-width: 767px) {
  .coboo-youtube-wrap {
    margin-bottom: 50px;
    overflow: hidden;
  }

  .coboo-youtube-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 0 18px 8px 0;
  }

  .coboo-youtube-grid::-webkit-scrollbar {
    display: none;
  }

  .coboo-youtube-item {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }

  /* 4件目以降はスマホでは非表示 */
  .coboo-youtube-item:nth-child(n+4) {
    display: none;
  }

  .coboo-youtube-item h3 {
    font-size: 14px;
  }

  .coboo-youtube-item time {
    font-size: 12px;
  }

  .coboo-youtube-play {
    width: 50px;
    height: 35px;
    font-size: 16px;
  }

  .coboo-youtube-mobile-hint {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
  }

  .coboo-youtube-mobile-hint span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #bbb;
  }

  .coboo-youtube-mobile-hint span:first-child {
    background: #222;
  }
}
