@media (min-width: 641px) {
  body.home .sx-content,
  body.page-id-130 .sx-content {
    padding: 20px 0 !important;
  }

  body.home .sx-rich-card,
  body.page-id-130 .sx-rich-card {
    padding: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
  }

  body.home .sx-rich-card > div > section:first-child {
    min-height: 390px !important;
  }
}

@media (min-width: 901px) {
  body.home .sx-rich-card > div > section:first-child > div:last-child {
    padding: 24px 0 !important;
  }

  body.home .sx-rich-card > div > section:first-child > div:last-child > p:first-of-type {
    margin-bottom: 10px !important;
  }

  body.home .sx-rich-card > div > section:first-child h1 {
    max-width: 680px !important;
    margin-bottom: 14px !important;
    font-size: 44px !important;
    line-height: 1.04 !important;
  }

  body.home .sx-rich-card > div > section:first-child h1 + p {
    max-width: 700px !important;
    margin-bottom: 14px !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  body.home .sx-rich-card > div > section:first-child div[style*="margin-bottom:34px"] {
    margin-bottom: 0 !important;
  }

  body.home .sx-rich-card > div > section:first-child > div:last-child > div:last-child {
    display: none !important;
  }
}

@media (max-width: 640px) {
  body.page-id-130 .sx-content {
    padding: 0 !important;
  }

  body.page-id-130 .sx-rich-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }
}
@media (max-width: 900px) {
  .sx-topbar a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

.sx-mirun-inquiry-cta a[href*="wa.me"] {
  background: #047857 !important;
}
@media (max-width: 900px) {
  body .sx-topbar .sx-topbar-inner {
    box-sizing: border-box !important;
    align-items: flex-start !important;
    padding: 8px 145px 8px 0 !important;
    min-height: 64px !important;
  }

  body .sx-topbar .sx-topbar-inner > div:first-child {
    display: none !important;
  }

  body .sx-topbar .sx-contact-links {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
  }

  body .sx-header .sx-header-inner .sx-header-cta {
    display: flex !important;
    margin-left: auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  body .sx-header .sx-header-cta > .sx-btn {
    display: none !important;
  }

  body .sx-header .sx-header-cta .sx-menu-toggle {
    display: flex !important;
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    padding: 10px !important;
    border: 0 !important;
    background-color: transparent !important;
    background-image: linear-gradient(#06111f, #06111f), linear-gradient(#06111f, #06111f), linear-gradient(#06111f, #06111f) !important;
    background-size: 22px 2px, 22px 2px, 22px 2px !important;
    background-position: center 13px, center 21px, center 29px !important;
    background-repeat: no-repeat !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    cursor: pointer !important;
  }

  body .sx-header .sx-header-cta .sx-menu-toggle span {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    background: #06111f !important;
    opacity: 0 !important;
  }

  body .sx-header .sx-header-inner {
    justify-content: space-between !important;
  }
}

@media (min-width: 901px) {
  .sx-topbar-inner {
    box-sizing: border-box !important;
    padding-right: 145px !important;
  }

  .sx-contact-links {
    white-space: nowrap !important;
  }
}
/* Audit fix: make yellow proof/process cards pass contrast more reliably. */
section[style*="background:#f6b318"] p,
section[style*="background: #f6b318"] p {
  color: #111827 !important;
}

/* Audit fix: keep first-screen hero text readable on narrow screens. */
@media (max-width: 640px) {
  body.home .sx-rich-card,
  body.page-id-24 .sx-rich-card,
  body.page-id-52 .sx-rich-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  body.home .sx-rich-card section:first-child,
  body.page-id-24 .sx-rich-card section:first-child,
  body.page-id-52 .sx-rich-card section:first-child,
  .sx-y-hero {
    min-height: auto !important;
    padding: 44px 24px !important;
    background-position: center center !important;
    overflow: visible !important;
  }

  body.home .sx-rich-card section:first-child > div,
  body.page-id-24 .sx-rich-card section:first-child > div,
  body.page-id-52 .sx-rich-card section:first-child > div {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  body.home h1,
  body.page-id-24 h1,
  body.page-id-52 h1,
  .sx-y-hero h1 {
    max-width: 100% !important;
    font-size: clamp(28px, 8.4vw, 34px) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: none !important;
  }

  body.home .sx-rich-card section:first-child p,
  body.page-id-24 .sx-rich-card section:first-child p,
  body.page-id-52 .sx-rich-card section:first-child p,
  .sx-y-hero p {
    max-width: 100% !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .sx-y-hero {
    background: #06111f !important;
    color: #fff !important;
  }
}
