/* YouTubeスライダー全体を囲むエリア */
/* .youtube-area {
  margin: 0px auto;
  padding: 5rem 0 0;
  width: 90%; 
  #youtube-wrapper { 
        width: 100%;
        height: auto;
        padding-bottom: 50px;
        flex-wrap: wrap;
        gap: 1rem;
    .youtube-slide { 
        width: calc((100% / 5) - 1rem);
        aspect-ratio: 1 / 1;
        height: 100%;
        background-color: var(--primary-color);
        transition-duration: .4s;
        cursor: pointer;
        border-radius: 1rem;
        .video-title{
                  font-size: 1rem;
                }
        a{
          display: block;
          .youtube-details{
            display: flex;
            .channel-icon{
              width: 20%;
              align-self: center;
            }
            .channel-info{
              width: 70%;
              .flexbox{
                flex-direction: column;
                
              }
            }
            .youtube-icon-wrap{
              width: 10%;
            }
          }
          img{
            height: 100%;
            width: 100%;
            object-fit: cover;
            border-radius: 1rem;
          }
          h3{
            line-height: 1.3;
            font-size: 1.5rem;
          }
        }
        
      }
  }
}




.youtube-video-item h3 {
  font-size: 14px;
  padding: 10px;
  margin: 0;
  background-color: #f7f7f7;
} */

/* ナビゲーションのスタイルは共通クラスなので、既存のスタイルが適用されます */

/* 1. 全体のコンテナとグリッド設定 */
#youtube-wrapper {
    display: grid;
    /* PC表示: 4列など、表示したい列数に応じて調整 */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px; /* 動画間の間隔 */
    padding: 20px;
    max-width: 1980px; /* サイト全体の幅に合わせる */
    margin: 0 auto;
}

/* 2. 個々の動画コンテナ */
.youtube-slide {
    display: block;
    text-decoration: none;
    color: #030303; /* YouTubeの標準的な文字色 */
    background-color: transparent;
}

/* 3. サムネイルのコンテナ (16:9比率の確保) */
.youtube-thumb-container {
    position: relative;
    width: 100%;
    /* 16:9 のアスペクト比を保つハック */
    padding-top: 56.25%; /* (9 / 16) * 100% = 56.25% */
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 1rem;
    img:hover{
      transform: scale(1.1);
      transition-duration: .4s;
    }
}

.youtube-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem; /* 角を少し丸くする */
}

/* 4. 動画情報バー（アイコンとタイトルを横並びに） */
.youtube-info-bar {
    display: flex;
    gap: 10px; /* アイコンとテキストの間のスペース */
    align-items: flex-start; /* アイコンとタイトルを上端揃え */
}

/* 5. チャンネルアイコン */
.channel-icon-wrap {
    flex-shrink: 0; /* アイコンが縮まないように */
}

.channel-icon {
    width: 36px; /* YouTube標準のサイズ */
    height: 36px;
    border-radius: 50%; /* 円形に */
    object-fit: cover;
}

/* 6. タイトルとその他の情報 */
.video-meta-content {
    flex-grow: 1;
    min-width: 0; /* タイトルが長すぎてもコンテナからはみ出さないように */
}

.video-title {
    font-size: 1.1rem; /* YouTubeに近いサイズ */
    font-weight: 700;
    line-height: 1.4;
    max-height: 2.8em; /* 2行でクリップ（必要に応じて） */
    overflow: hidden;
    margin: 0 0 4px 0;
    /* 省略記号が必要な場合は、JavaScript側で処理するか、CSSのWebKitの機能を使います */
}

/* 7. チャンネル名と公開日 */
.video-sub-meta {
    font-size: 0.8rem;
    color: #606060; /* グレーアウトした文字色 */
}

.channel-name,
.video-published-at {
    margin: 0;
    line-height: 1.4;
}
