/* メインビジュアルのフルワイドスタイル */
#page-header .container {
  max-width: 100%;
  width: 100%;
  height: auto;
  padding: 0;
  position: relative; /* relativeからstaticに変更 */
}

#page-header .bg {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative; /* 追加 */
  text-align: center;
}

#page-header .bg img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  position: static;
  margin: auto;
}

/* h1のスタイル調整 */
#page-header h1 {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: fit-content;
  background: rgba(0, 165, 227, 0.6); /* 背景色を半透明に */
  color: #fff;
  padding: 2rem 0;
  margin: 0;
  text-align: center;
  z-index: 10;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* バナーの横並び表示用スタイル */
.banner-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 60px auto 30px;
  flex-wrap: wrap;
}

.banner-container .banner {
  margin: 0;
  width: 45%;
  min-width: 300px;
}

.banner-container .banner a {
  width: 100%;
  white-space: nowrap;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  #page-header .container {
    height: auto;
  }

  .banner-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 30px auto;
  }

  .banner-container .banner {
    width: 100%;
    margin: 0;
  }
}
