/* banner.css - TOPページ用 縦型バナー & 通常ページ用 横型バナー */

/* ───────── Swiper共通設定 ───────── */
.swiper {
  width: 100%;
  height: auto;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* TOPバナー専用 img に限定にゃ！ */
.top-banner-wrapper .swiper-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: auto;
  padding: 0.5rem;
  box-sizing: border-box;
  background-color: transparent !important;
}

/* グローバルバナー用も分けておくと安心にゃ！ */
.global-banner-wrapper .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 0.5rem;
  background-color: transparent !important;
}

/* ───────── TOPページ用：縦型バナー（contain対応・中央表示・高さ固定）───────── */
.top-banner-wrapper {
  width: 100%;
  max-width: 420px;
  margin: 0.5rem auto 2rem;
  padding: 0.5rem;
  background-color: transparent !important;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 3 / 5;
}

.top-banner-wrapper .swiper {
  width: 100%;
  height: 100%;
}

.top-banner-wrapper .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent !important;
}

.top-banner-wrapper .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background-color: transparent !important;
  padding: 0.5rem;
  box-sizing: border-box;
}

/* ───────── 通常ページ用：横型バナー（そのまま）───────── */
.global-banner-wrapper {
  aspect-ratio: 16 / 6;
  width: 100%;
  margin-bottom: 2rem;
  background-color: transparent !important;
  overflow: hidden;
  padding: 0.5rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.global-banner-wrapper .swiper {
  width: 100%;
  height: 100%;
}

.global-banner-wrapper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent !important;
}

.global-banner-wrapper .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background-color: transparent !important;
  padding: 0.5rem;
  box-sizing: border-box;
}

/* ───────── レスポンシブ調整 ───────── */
@media (max-width: 768px) {
  .top-banner-wrapper {
    aspect-ratio: 3 / 5;
    max-height: 75vh;
    margin-top: 0.5rem !important;
  }

  .top-banner-wrapper .swiper {
    aspect-ratio: 3 / 5;
    width: 100%;
  }

  .global-banner-wrapper {
    aspect-ratio: 16 / 9;
    max-height: 200px;
  }

  .top-banner-wrapper .swiper-slide img {
    object-fit: contain;
    background-color: transparent !important;
    padding: 0.5rem;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }
}

.top-banner-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ✅ 統合：グラデ背景枠を明確に1定義にまとめる */
.header-and-banner-bg {
  background: linear-gradient(to bottom, #a48ed2 0%, #ffffff 100%) !important;
  padding-top: 40px;
  padding-bottom: 120px;
  width: 100%;
  min-height: 600px;
  position: relative;
  z-index: 0;
}

.header-inner {
  background: transparent !important;
  box-shadow: none;
}

/* ヘッダー透過でグラデになじませる */
/*.site-header {
  background: transparent !important;
}*/

.header-inner {
  background: transparent !important;
  box-shadow: none !important;
  color: #fff;
}

/* ロゴやテキストの視認性アップ（任意） */
.logo img {
  filter: drop-shadow(0 0 4px #000);
}

.header-contact {
  color: #fff;
  text-shadow: 1px 1px 2px #000;
}

.site-header {
  background-color: #a48ed2;
}