/**
 * Core Web Vitals overrides: LCP hero as <img>, not CSS background.
 * Keep this file layout-minimal so theme button/CTA styles are untouched.
 */

/* Prevent LCP <img width> attributes from forcing horizontal page overflow */
.site,
#page {
  overflow-x: clip;
  max-width: 100%;
}

.un_jumbotron_cont {
  position: relative;
  min-height: 400px;
  max-width: 100%;
  /* Avoid overflow:hidden here — it clips absolute .un_jumbotron_ttl on desktop. */
}

.un_jumbotron_media {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  padding: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
  overflow: hidden;
}

.un_jumbotron_media img,
.un_jumbotron_media source {
  max-width: none;
}

.un_jumbotron_media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
}

.un_jumbotron_cont::before {
  z-index: 1;
}

.un_jumbotron_ttl,
.un_jumbotron_txt {
  z-index: 2;
}

/* Paint LP hero as responsive <img> when markup is present */
.un_lpHeader {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.un_lpHeader_media {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  z-index: 0;
  pointer-events: none;
}

.un_lpHeader_media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
}

.un_lpHeader.has_media_img {
  background-image: none !important;
}

.un_lpHeader.has_media_img .un_lpHeader_cont::after {
  content: none !important;
  display: none !important;
  background-image: none !important;
}

.un_lpHeader_character {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 280px;
  height: auto;
  max-height: 488px;
  object-fit: contain;
  transform: translate(20%, 10%);
  z-index: 1;
  pointer-events: none;
}

@media screen and (min-width: 768px) {
  .un_lpHeader_character {
    transform: translate(-60%, 10%);
  }
}

@media screen and (min-width: 1024px) {
  .un_lpHeader_character {
    top: 50%;
    bottom: auto;
    width: 420px;
    max-height: 732px;
    transform: translate(-34%, -43%);
  }
}

/* Area subsidy: one decorative frame per subsidy item */
.bl_subsidy_detailList {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media screen and (min-width: 1024px) {
  .bl_subsidy_detailList {
    gap: 40px;
  }
}
