@charset "utf-8";

/*
  English layout correction 2026-09-08
  Prevent the common SEO assurance strip from collapsing its explanatory
  paragraph to a few pixels when English CTA labels are longer than Japanese.
*/
html[lang="en"] .seo-assurance-band,
html[lang="en"] .seo-assurance-band * {
  box-sizing: border-box;
}

html[lang="en"] .seo-assurance-band {
  background: #f6fbff;
  border-top: 1px solid #d6edf7;
  border-bottom: 1px solid #d6edf7;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.8;
}

html[lang="en"] .seo-assurance-inner {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  min-width: 0;
}

html[lang="en"] .seo-assurance-inner > p:first-child,
html[lang="en"] .seo-assurance-links {
  min-width: 0;
  margin: 0 !important;
  word-break: normal !important;
  overflow-wrap: break-word;
}

html[lang="en"] .seo-assurance-links {
  white-space: normal !important;
}

html[lang="en"] .seo-assurance-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  max-width: 100%;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word;
  text-align: center;
}

/* Desktop: keep the Japanese-style horizontal band, but reserve a readable
   column for English explanatory text and allow the longer English buttons to wrap. */
@media screen and (min-width: 1101px) {
  html[lang="en"] .seo-assurance-inner {
    display: grid !important;
    grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
    align-items: start !important;
    gap: 14px 20px !important;
  }

  html[lang="en"] .seo-assurance-inner > p:first-child {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    font-size: 14px;
    line-height: 1.85;
    letter-spacing: 0.01em;
  }

  html[lang="en"] .seo-assurance-links {
    display: flex !important;
    flex: none !important;
    flex-wrap: wrap !important;
    align-content: flex-start;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px !important;
    width: auto !important;
    max-width: none !important;
  }

  html[lang="en"] .seo-assurance-links a {
    flex: 0 1 auto;
    padding: 7px 11px;
    line-height: 1.45;
  }
}

/* Tablet / mobile: stack the explanatory text above wrapped CTA buttons. */
@media screen and (max-width: 1100px) {
  html[lang="en"] .seo-assurance-inner {
    display: block !important;
  }

  html[lang="en"] .seo-assurance-inner > p:first-child {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.02em;
  }

  html[lang="en"] .seo-assurance-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center;
    align-items: stretch;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 12px !important;
  }

  html[lang="en"] .seo-assurance-links a {
    padding: 7px 12px;
    line-height: 1.5;
  }
}

@media screen and (max-width: 560px) {
  html[lang="en"] .seo-assurance-band {
    padding: 12px;
  }

  html[lang="en"] .seo-assurance-inner > p:first-child {
    font-size: 13px;
    line-height: 1.85;
  }

  html[lang="en"] .seo-assurance-links {
    justify-content: flex-start;
    gap: 6px !important;
  }

  html[lang="en"] .seo-assurance-links a {
    font-size: 12px;
    padding: 6px 9px;
  }
}

/* English desktop header alignment correction 2026-09-08
   Keep the SAME desktop header geometry, margins, padding, widths and vertical
   positions as the Japanese pages. The only English-specific adjustment is
   reducing the three long utility-link labels so they fit on the same top row,
   plus preventing the quote label itself from wrapping. */
@media screen and (min-width: 1101px) {
  html[lang="en"] header .h_box .h_list li a {
    font-size: 12px;
  }

  html[lang="en"] header .h_btn > a:first-child {
    white-space: nowrap;
  }
}

/* English desktop header: keep utility links + language switch on ONE row.
   The original Japanese spacing/padding is retained; only the English utility
   text is slightly reduced so the 640px Japanese header box can contain all
   five controls without wrapping. */
@media screen and (min-width: 1101px) {
  html[lang="en"] header .h_box {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    box-sizing: border-box;
    height: 30px;
  }

  html[lang="en"] header .h_box .h_list {
    display: flex !important;
    flex: 1 1 auto;
    flex-wrap: nowrap !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
  }

  html[lang="en"] header .h_box .h_list li {
    display: block;
    float: none !important;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
  }

  html[lang="en"] header .h_box .h_list li a {
    float: none !important;
    font-size: 11px;
    white-space: nowrap;
  }

  html[lang="en"] header .h_box ul.h_lang {
    display: flex !important;
    flex: 0 0 270px;
    flex-wrap: nowrap !important;
    float: none !important;
    width: 270px;
    height: 30px;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
  }

  html[lang="en"] header .h_box .h_lang li {
    display: block;
    float: none !important;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
  }

  html[lang="en"] header .h_box .h_lang li a {
    float: none !important;
    white-space: nowrap;
  }
}

/* English desktop header quote button: remove the vertical divider line on the right side */
@media screen and (min-width: 1101px) {
  html[lang="en"] header .h_btn a::after {
    border-left: none !important;
  }
}
