/* WP77 only: retain the published Japanese copy and CTAs; align its Hero media to Home V2. */
body.page-id-77 .miramar-home-hero-ja {
  isolation: isolate;
  height: auto !important;
  min-height: 852px !important;
  background: #052a22;
}

body.page-id-77 .miramar-home-hero-ja::before {
  background: linear-gradient(90deg, rgba(5, 34, 28, .88) 0%, rgba(5, 34, 28, .66) 38%, rgba(5, 34, 28, .18) 72%, rgba(5, 34, 28, .05) 100%) !important;
}

body.page-id-77 .miramar-home-hero-ja > .wp-block-cover__image-background {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 50% 52% !important;
}

body.page-id-77 .miramar-home-hero-ja > .wp-block-cover__inner-container {
  box-sizing: border-box;
  min-height: 852px !important;
  padding: 120px max(48px, calc((100vw - 1240px) / 2)) 132px;
}

@media (max-width: 680px) {
  body.page-id-77 .miramar-home-hero-ja {
    min-height: 854px !important;
  }

  body.page-id-77 .miramar-home-hero-ja > .wp-block-cover__image-background {
    object-position: 69% 52% !important;
  }

  body.page-id-77 .miramar-home-hero-ja > .wp-block-cover__inner-container {
    min-height: 854px !important;
    padding: 136px 24px 112px;
  }
}

/* Keep the audience heading inside its left editorial grid column on Desktop only. */
@media (min-width: 1025px) {
  body.page-id-77.miramar-ja-home .miramar-corporate-audience .miramar-eyebrow + h2 {
    min-width: 0;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
    text-wrap: wrap;
  }
}
