<style>
  .hero-slider-container {
    margin: 2em 0;
  }
  .swiper.hero-slider {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 600px;
    border-radius: 8px;
    position: relative;
  }

  /* 各スライドのスタイル */
  .swiper-slide.hero-slide {
    overflow: hidden; /* 角丸を適用するため */
  }

  /* ▼▼▼ HTML構造の変更に合わせた修正 ▼▼▼ */
  
  /* スライド全体を覆うリンク */
  .hero-slide__link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: #fff;
    text-decoration: none;
  }

  /* 背景画像 */
  .hero-slide__image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }
  .hero-slide__link:hover .hero-slide__image {
    transform: scale(1.05); /* ホバー時に画像を少し拡大 */
  }

  /* 画像の上に重ねるフィルター */
  .hero-slide__link::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
  }
  
  /* テキストコンテンツのラッパー */
  .hero-slide__content {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
  }

  /* タイトル */
  .hero-slide__content h3 {
    font-size: 1.6em;
    font-weight: bold;
    margin: 0;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  }
  /* ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲ */


  /* ナビゲーションのスタイル */
  .hero-slider .swiper-pagination-bullet-active {
    background-color: #fff;
  }
  .hero-slider .swiper-button-next,
  .hero-slider .swiper-button-prev {
    color: #fff;
  }
  
  /* スマホでの文字サイズ調整 */
  @media (max-width: 600px) {
    .hero-slide__content h3 {
      font-size: 1.2em;
    }
    .hero-slide__content {
      padding: 20px;
    }
  }
</style>