/* ヒーローセクション（全幅・背景画像） */
.l-hero {
  height: auto;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1979 / 795;
}
.p-hero__bg{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* 背景画像をテキストの背面に配置 */
  background-image: url("../../../images/fv-blue.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  /* 画像縦横比（1979:795）に合わせてセクション高さを自動調整 */
  aspect-ratio: 1979 / 795;
  height: auto;
}

/* ヒーロー内側コンテナ（flexレイアウトはこちらに） */
.l-hero .l-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  background-color: var(--color-bg-cream);
}

/* ヒーロー左コンテンツ */
.p-hero__left {
  position: absolute;
  top: 12%;
  left: 8%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  max-width: 432px;
}

/* ラベル「ORDERMADE BAGS」 */
.p-hero__label {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  color: var(--color-gold);
  letter-spacing: 1.95px;
  white-space: nowrap;
  margin-bottom: 4px;
}

/* ゴールドライン */
.p-hero__gold-line {
  width: 32px;
  height: 2px;
  background-color: var(--color-gold);
  margin-bottom: 12px;
}

/* メインキャッチコピー */
.p-hero__title {
  font-family: var(--font-serif-jp);
  font-weight: 500;
  font-size: 48px;
  color: var(--color-text-dark);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* サブコピー */
.p-hero__sub {
  font-family: var(--font-sans-jp);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text-gray);
  line-height: 2;
  white-space: nowrap;
  margin-bottom: 0;
}

/* CTAボタンラッパー */
.p-hero__cta {
  margin-top: 16px;
  margin-bottom: 16px;
}

/* タグライン */
.p-hero__tagline {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 12px;
  color: var(--color-text-light);
  white-space: nowrap;
}

/* ヒーロービジュアル（右側画像エリア） */
.p-hero__visual {
  width: 694px;
  height: 531px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.p-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 装飾要素 */
/* .p-hero__deco {
  position: absolute;
  right: 136px;
  bottom: 85px;
  width: 52px;
  height: 61px;
  pointer-events: none;
} */

/* ── ヒーロースライダー：高さを親コンテナに追従させて固定 ── */
.p-hero__visual .hero-swiper {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
}

/* swiper-wrapper と swiper-slide も height: 100% で追従 */
.p-hero__visual .swiper-wrapper,
.p-hero__visual .swiper-slide {
  height: 100%;
}

.p-hero__visual .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
@media (max-width: 1400px)  {
  .p-hero__left {
    top:4%;
  }
}
@media (max-width: 1300px)  {
  .p-hero__title {
   font-size: 32px;
  }
}
@media (max-width: 1200px)  {
  .p-hero__title {
   font-size: 28px;
  }
}

@media (min-width: 768px) and (max-width: 1140px) {
  /* 縦並び時に固定高さをリセット・縦横比は画像に追従 */
  .l-hero {
    aspect-ratio: 1979 / 795;
  }
  /* SPと同様に縦並びレイアウト */
  /* .l-hero .l-inner {
    flex-direction: column;
    padding: 60px 40px 48px;
    gap: 32px;
    min-height: auto;
  } */
  .p-hero__title {
    font-size: 2rem;
  }
  .p-hero__sub {
    font-size: 0.875rem;
    white-space: normal;
  }
  .p-hero__tagline {
    white-space: normal;
  }
  /* スライダー画像をテキストの上に配置（SPと同じ order:-1） */
  .p-hero__visual {
    order: -1;
    width: 100%;
    aspect-ratio: 1979 / 795;
    height: auto;
    margin-top: 24px;
    flex-shrink: 1;
  }
  .p-hero__visual .swiper,
  .p-hero__visual .swiper-wrapper,
  .p-hero__visual .swiper-slide {
    height: 100%;
  }
  .p-hero__visual .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }
  /* CTAボタン中央揃え */
  .p-hero__cta {
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .c-button__cta {
    width: auto;
    min-width: 280px;
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 1140px) {
  .l-hero .l-inner {
    flex-direction: column;
    padding: 60px 20px 32px;
    gap: 32px;
    min-height: auto;
  }
  .l-hero{
    aspect-ratio: initial;
  }
  .p-hero__bg {
    position: initial;
  }
  .p-hero__left {
    width: 100%;
    text-align: left;
    position: initial;
  }
  .p-hero__title {
    font-size: 2rem;
  }
  .p-hero__sub {
    font-size: 0.875rem;
  }
  /* スライダーをSP時に先頭へ移動（CTAがスライダー下に表示される） */
  /* .p-hero__cta は .p-hero__left 内にあるため order で兄弟間移動は不可 */
  /* .p-hero__visual を order:-1 で先頭に引き上げることで実現 */
  .p-hero__visual {
    order: -1;
    width: 100%;
    aspect-ratio: 1979 / 795;
    height: auto;
    margin-top: 24px;
  }
  /* SP時もswiper-wrapper / swiper-slideを高さ100%に固定 */
  .p-hero__visual .swiper-wrapper,
  .p-hero__visual .swiper-slide {
    height: 100%;
  }
  .p-hero__visual .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }
  /* デコレーション位置をSP用に調整 */
  .p-hero__deco {
    top: 24px;
    right: 8px;
  }
  /* CTAボタンラッパーを中央揃え */
  .p-hero__cta {
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .c-button__cta {
    width: auto;
    min-width: 280px;
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }
}

.p-hero__cta-arrow {
  width: 24px;
  height: 12px;
  flex-shrink: 0;
}