/* Shared header, language switch, and CTA safeguards for HDN JP/EN pages. */
.language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
  margin: 0 4px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  position: static;
  z-index: auto;
}

.language-switch a,
.language-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  height: auto;
  padding: 4px 7px;
  border-radius: 0;
  color: #6a6161;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
}

.language-switch > * + * {
  border-left: 1px solid rgba(37, 34, 34, .22);
}

.language-switch .is-current {
  color: #c92d24;
  background: transparent;
}

.language-switch a:hover {
  color: #252222;
  background: transparent;
}

/* Keep the desktop switch close to the primary CTA. */
.nav .language-switch,
.site-header .nav .language-switch,
.header .nav .language-switch {
  margin-left: 2px;
  margin-right: 2px;
}

/* Mobile version inserted into the compact navigation bar. */
.mobile-language-switch {
  display: none;
}

@media (max-width: 900px) {
  body > .language-switch {
    display: none !important;
  }

  /* Shared mobile navigation: tolerate the SNS link plus language switch without overflow. */
  .mobile-nav-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .mobile-nav a {
    min-width: 0;
    padding-left: 6px;
    padding-right: 6px;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .mobile-language-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: auto;
    min-height: 40px;
    border: 1px solid rgba(37, 34, 34, .14);
    border-radius: 6px;
    background: #fff;
  }

  .mobile-language-switch a,
  .mobile-language-switch span {
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 900;
  }

  .mobile-language-switch > * + * {
    border-left: 1px solid rgba(37, 34, 34, .2);
  }

  .mobile-language-switch .is-current {
    color: #c92d24;
  }
}

@media (max-width: 520px) {
  .mobile-nav-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* LHub CTA: force readable contrast regardless of page-level paragraph rules. */
.contact .contact-promise .promise-foot,
.contact .promise-foot,
p.promise-foot {
  display: block !important;
  background: #ffffff !important;
  color: #075d42 !important;
  border: 1px solid #20a56f !important;
  text-shadow: none !important;
  opacity: 1 !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}
