/* Unified subpage banner system */
.page-banner {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 520;
  margin-top: var(--bsoft-header-height, 76px);
  padding-top: 0;
  overflow: hidden;
  background: #f7fafb;
  border-bottom: 1px solid #e3edf4;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.42) 42%, rgba(255,255,255,.04) 100%);
  pointer-events: none;
}

.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-banner.banner-wide-safe img {
  object-fit: contain;
  object-position: center;
}

.page-banner-text {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(1120px, 88vw);
  transform: translate(-50%, -50%);
  text-align: left;
  color: #1f2f39;
}

.page-banner-text h1,
.page-banner-text p:last-child:first-child {
  max-width: 680px;
  margin: 0;
  color: #1f2f39;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: 0;
}

.page-banner-text h1 + p,
.page-banner-text > p {
  max-width: 640px;
  margin: 16px 0 0;
  color: #536875;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.85;
  opacity: 1;
}

.page-banner-text .kicker {
  margin-bottom: 14px;
  color: #2d81bd;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-banner.banner-fit-detail {
  height: auto;
  aspect-ratio: 1920 / 520;
}

.page-banner.banner-fit-detail .page-banner-text {
  text-align: center;
  color: #fff;
}

.page-banner.banner-fit-detail .page-banner-text p {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.35;
}

.page-banner.banner-fit-detail .page-banner-text p + p {
  margin-top: 8px;
  font-size: clamp(14px, 1.2vw, 18px);
  opacity: .9;
}

.page-banner.banner-fit-product,
.page-banner.full-banner {
  height: auto;
  aspect-ratio: 1920 / 520;
}

.page-banner.banner-fit-tech {
  height: auto;
  aspect-ratio: 1920 / 520;
}

.page-banner.banner-story {
  aspect-ratio: 1824 / 520;
}

.page-banner.full-banner::after,
.page-banner.full-banner .page-banner-text {
  display: none;
}

@media (max-width: 768px) {
  .page-banner {
    height: 220px;
    aspect-ratio: auto;
    margin-top: 0;
  }

  .page-banner.banner-fit-detail,
  .page-banner.banner-fit-product,
  .page-banner.full-banner {
    aspect-ratio: auto;
  }

  .page-banner.banner-fit-detail {
    height: auto;
    aspect-ratio: 1824 / 862;
  }

  .page-banner.banner-fit-detail img {
    object-fit: contain;
    object-position: center;
    background: #f7fafb;
  }

  .page-banner.banner-fit-product,
  .page-banner.full-banner {
    height: clamp(112px, 27.1vw, 210px);
  }

  .page-banner.banner-fit-product img {
    object-fit: contain;
    object-position: center;
    background: #f7fafb;
  }

  .page-banner.banner-fit-tech,
  .page-banner.banner-fit-section {
    display: flex;
    flex-direction: column;
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
  }

  .page-banner.banner-fit-tech::after,
  .page-banner.banner-fit-section::after {
    display: none;
  }

  .page-banner.banner-fit-tech img,
  .page-banner.banner-fit-section img {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: #f7fafb;
  }

  .page-banner.banner-fit-tech .page-banner-text,
  .page-banner.banner-fit-section .page-banner-text {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
    padding: 18px 22px 22px;
    background: linear-gradient(180deg, #f7fafb 0%, #fff 100%);
  }

  .page-banner.banner-fit-tech .page-banner-text h1,
  .page-banner.banner-fit-section .page-banner-text h1 {
    max-width: none;
    font-size: 24px;
    line-height: 1.35;
  }

  .page-banner.banner-fit-tech .page-banner-text h1 + p,
  .page-banner.banner-fit-tech .page-banner-text > p,
  .page-banner.banner-fit-section .page-banner-text h1 + p,
  .page-banner.banner-fit-section .page-banner-text > p {
    max-width: none;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.75;
  }

  .page-banner.banner-story {
    aspect-ratio: auto;
  }

  .page-banner-text {
    width: calc(100% - 44px);
  }

  .page-banner-text h1 {
    max-width: 420px;
    font-size: 28px;
  }

  .page-banner-text h1 + p,
  .page-banner-text > p {
    max-width: 420px;
    font-size: 14px;
    line-height: 1.7;
  }
}
