      .yahoo-container {
      display: flex;
      gap: 20px;
      align-items: flex-start;
    }

/* 左カラム：スライドショーと天気を縦に並べる */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 右カラム：ニュースを縦に並べる（幅は残り全部） */
.right-column {
    flex: 1;
  
}


.weather-card {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  margin: 5px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex-basis: 100%;
}




    .slideshow {
      width: 400px;
      height: 300px;
      margin-top: 20px;
      margin-bottom: 10px;
      position: relative;
      overflow: hidden;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.25);
      flex-shrink: 0;
    }

    .slideshow img {
      position: absolute;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 1s ease;
      border-radius: 12px;
    }

    .slideshow img.active {
      opacity: 1;
    }

    .slideshow-text {
      position: absolute;
      bottom: 10px;
      left: 10px;
      color: white;
      font-size: 20px;
      font-weight: bold;
      text-shadow: 0 2px 6px rgba(0,0,0,0.6);
      z-index: 10;
    }

/* Yahooニュース：カード型スタイル */
/* Yahoo & NHK 共通：カード型 */
#yahoo-list .news-card,
#nhk-list .news-card {
  background: #fffaf0;
  border-radius: 10px;
  padding: 3px 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 5px solid #106eb7;
  margin-bottom: 1px;
}

#yahoo-list .news-card:hover,
#nhk-list .news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

#yahoo-list .news-card a,
#nhk-list .news-card a {
  text-decoration: none;
  color: #106eb7;
  font-weight: 500;
  font-size: 1rem;
  display: block;
}

#yahoo-list .news-card a:hover,
#nhk-list .news-card a:hover {
   text-decoration: none; 
}
/* Yahoo & NHK 共通：2列レイアウト */
#yahoo-list,
#nhk-list {
  column-count: 2;
  column-gap: 16px;
}

/* カードが途中で割れないようにする */
#yahoo-list .news-card,
#nhk-list .news-card {
  break-inside: avoid;
  margin-bottom: 16px;
}


/* ▼ 2カラム横並びレイアウト（comp_b2 用） */
.two-column-layout {
  display: flex;
  gap: 20px;
}

/* 左右の幅 */
.two-column-layout .left-column,
.two-column-layout .right-column {
  width: 35%;
}

/* 1列レイアウトにする（Masonry を無効化） */
.two-column-layout #yahoo-list,
.two-column-layout #nhk-list {
  column-count: 1;
}






/* ===========================
   スマホ版レイアウト
=========================== */
@media (max-width: 768px) {

  /* コンテナは縦並びに */
  .yahoo-container {
    display: block;
    padding: 0 10px;
  }

  /* スライドショーをスマホ幅に合わせる */
  .slideshow {
    width: 100%;
    height: 200px;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  /* Yahoo と NHK のカードを1列に */
  #yahoo-list,
  #nhk-list {
    column-count: 1;
    column-gap: 0;
  }

  /* カードの余白を少し広めに */
  #yahoo-list .news-card,
  #nhk-list .news-card {
    margin-bottom: 20px;
  }

  /* 見出しの余白調整 */
  .news-title {
    margin-top: 25px;
    font-size: 1.2rem;
  }
}

/* ===========================
   comp_b2 専用レイアウト
   （comp_b.html には影響しない）
=========================== */

.comp-b2 .yahoo-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* 左：スライドショー＋天気（縦並び） */
.comp-b2 .left-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 右：ニュース全体（既存 two-column-layout をそのまま利用） */
.comp-b2 .right-block {
  flex: 1;

}

/* 天気カードがニュース幅を押しつぶさないようにする */
.comp-b2 .weather-card {
  flex-basis: auto;  /* ここで 100% 扱いをやめる（他パターンには影響しない） */
}

.comp-b2 .two-column-layout {
    align-items: flex-start;
}

/* update */
#yahoo-list .news-card:first-child {
  margin-top: -20px !important;
}
