@charset "utf-8";

/* 基本的なレスポンシブ設定 */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* モバイル: 767px以下 */
@media screen and (max-width: 768px) {
  .b {
    flex-direction: column;
    gap: 0 !important;
    margin: 20px auto !important;
  }  
  
  .b img {
    width: 100% !important;
  }
  
  .c {
      width: 60% !important;
  }

  .f img[src="img/Group 144.webp"] {
    content: url("../img/Group\ 133.webp");
  }

  .h {
    width: 100% !important;
    margin: 0 !important;
  }

  .h p {
    width: 90% !important;
    margin: 5% auto !important;
  }

  .i {
    width: 90%;
    margin: 5% auto;
  }
}

.hero-content {
  position: relative;
  margin-bottom: 40px;
}

.hero {
  margin-bottom: 40px;
}

.hero-content img {
  width: 100%;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.hero-slideshow {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 400px;
  overflow: hidden;
}

.hero-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0s ease-in-out;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

/* 最初のスライドが表示されている時の高さを確保 */
.hero-slideshow .slide:first-child {
  position: relative;
  opacity: 1;
}

.hero-button {
  position: absolute;
  top: 70%;
  left: 5%;
  z-index: 100;
  height: 20%;
}

.hero-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.hero-button a:hover img {
  opacity: 0.8;
}

/* デスクトップ: 1200px以上 */
@media screen and (min-width: 1200px) {
  .hero-button {
    height: 25%;
  }
}

/* タブレット: 768px-1199px */
@media screen and (max-width: 1199px) and (min-width: 768px) {
  .hero-button {
    height: 22%;
  }
}

/* モバイル: 767px以下 */
@media screen and (max-width: 767px) {
  .hero-content img[src="img/Group 284.webp"] {
    content: url("../img/Group 282.webp");
  }

  .hero-content img[src="img/Group 284-2.webp"] {
    content: url("../img/Group 282-2.webp");
  }

  .hero-content img[src="img/Group 284-3.webp"] {
    content: url("../img/Group 282-3.webp");
  }
  
  .hero-button {
    width: 80%;
    top: 75%;
    left: 50%;
    transform: translateX(-50%);
    height: 25%;
    max-width: 400px;
  }
}

  /* 中央の2カラム */
.b {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 60px auto;
    width: 90%;
    max-width: 1200px;
    align-items: center;
}

  
  .b img {
    width:50%;
    display: block;
    height: 40%;
  }
  
  .bb img {
    width:90%;
    display: block;
    height: auto;
  }

   .bb p {
    font-size: 14px;
   }
  
  /* 下部ボタン */
  .c {
    width: 25%;
    margin: 0px auto;
  }

  .c img {
    width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: cover;
  }

  /* モバイル: 767px以下 */
@media screen and (max-width: 767px) {
    .c {
      width: 60%;
    }
  }
  

.d {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 10px auto;
    width: 100%;
    max-width: 1200px;
}
  
  .d img {
    width:90%;
    display: block;
  }
  
  .e {
    width: 20%;
    margin: 0 auto;
  }

  .e img {
    width: 100%;
    display: block;

    object-fit: cover;
  }

  /* モバイル: 767px以下 */
@media screen and (max-width: 767px) {
    .d img[src="img/Group 243.webp"] {
        content: url("../img/Group 244.webp");
    }

    .e {
      width: 60%;
    }

    .h img[src="img/Group 135.webp"] {
        content: url("../img/Group 247.webp");
        width: 100%;
    }

    .i {
        flex-direction: column;
        gap: 0px !important;
    }

    .i-items {
      max-width: none !important;
    }

    .i-items img {
      width: 80%;
      margin: 0 auto;
    }

  }
  
  .f{
    height: 30%;
    background-color: #B6E1FF;
  }
  .f img {
    width: 70%;
    display: block;
    margin: 0 auto;
    object-fit: cover;
  }

  .g{
    text-align: center;
    font-size: 24px;
    color:#004A78;
}

/* スライダー */
.slider-container {
    width: 90%;
    max-width: 1200px;
    height: auto;
    overflow: hidden;
    position: relative;
    margin: 20px auto;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.3s ease-out;
}

.slider-wrapper img {
    width: auto;
    height: 300px;
    margin: 0 auto;
    flex-shrink: 0;
}

.pc-slider-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #004A78;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 74, 120, 0.2);
}

.slider-button:hover {
    background: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 74, 120, 0.3);
}

/* モバイル: 767px以下 */
@media screen and (max-width: 767px) {
    .slider-container,
    .pc-slider-nav {
        display: none;
    }
}

.h{
    width: 65%;
    margin:  0px 17.5%;
    background-color: #ffffff;
    display: block;
    align-items: center;
  }

.h p {
  font-size: 14px
}

  .h img {
    width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: cover;
  }

.i {
  display: flex;
  justify-content: center; /* 全体を中央揃え */
  gap: 40px; /* アイテム間の余白 */
}

.i-items {
  display: flex;
  flex-direction: column; /* 子要素を縦並びにする */
  align-items: flex-start; /* 左寄せ */
  max-width: 300px;        /* 必要なら横幅制限 */
  text-align: left;        /* テキストを左揃え */
  font-size: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* ドロップシャドウを追加 */
  border-radius: 6px; /* 任意：角を少し丸めると自然 */
  background: #fff;   /* 背景色を白にして影を見やすく */
    padding: 10px;      /* 内側に余白をつけるとバランス良い */

}

.i-items img {
  max-width: 100%;
  height: auto;
}


/* モバイルカルーセル */
.mobile-carousel {
    display: none;
}

/* モバイル: 767px以下 */
@media screen and (max-width: 767px) {
    .mobile-carousel {
        display: block;
        margin-top: 40px;
    }

    .carousel-container {
        width: 95%;
        height: 400px;
        overflow-x: scroll;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;  /* Firefoxのスクロールバー非表示 */
        -ms-overflow-style: none;  /* IEのスクロールバー非表示 */
        margin: 0 auto;
    }

    .carousel-container::-webkit-scrollbar {
        display: none;  /* Chromeのスクロールバー非表示 */
    }

    .carousel-wrapper {
        display: flex;
        width: fit-content;
        height: 100%;
    }

    .carousel-wrapper img {
        height: 400px;
        width: auto;
        display: block;
        user-select: none;
        -webkit-user-drag: none;
        margin-left: 2%;
    }
}

/* 小さなモバイル: 479px以下 */
@media screen and (max-width: 479px) {
    .hero-button {
        width: 85%;
        max-width: 350px;
    }

    .c {
        width: 70%;
    }

    .e {
        width: 70%;
    }

    .h img {
        width: 75%;
    }

    .g h1 {
      max-width: 90%;
      margin: 5% auto;
      font-size: 24px;
    }

    .carousel-container {
        width: 98%;
        height: 350px;
    }

    .carousel-wrapper img {
        height: 350px;
    }

  .c img[src="img/btn-2.webp"] {
    content: url("../img/Group 526.webp");
  }

  .c img[src="img/btn-6.webp"] {
    content: url("../img/Group 528.webp");
  }

  .f img {
    width: 90%;
  }

  .i-items {
    margin-bottom: 20px;
  }

  .i-items p {
    width: 80%;
    margin: 5px 10%;
  }
}