/* English-only layout adjustments.
 * The original theme dimensions are optimized for compact Japanese copy.
 */

html[lang="en"] body {
  letter-spacing: 0.015em;
}

/* Company: give the longer introduction room before the next section. */
html[lang="en"] .page-company__top-block-text {
  box-sizing: border-box;
  padding-bottom: 48px;
}

/* Company: keep the English qualification labels on one line. */
html[lang="en"] .page-company__info-qualifications-title {
  width: max-content;
  min-width: 180px;
  max-inline-size: none;
  padding-right: 2.75rem;
}

html[lang="en"] .page-company__info-qualifications-title-text {
  white-space: nowrap;
}

@media screen and (max-width: 486px) {
  html[lang="en"] .page-company__top-block-text {
    padding-bottom: 24px;
  }
}

@media screen and (max-width: 1100px) {
  html[lang="en"] .page-company__info-qualifications {
    grid-template-columns: 1fr;
  }
}

/* Home: keep the longer English introduction inside the blue panel. */
@media screen and (min-width: 1101px) {
  html[lang="en"] .index-top__intro-txt {
    left: 53%;
    top: 140px;
    width: 43%;
    max-width: 680px;
    gap: 26px;
  }

  html[lang="en"] .index-top__intro-txt-title {
    font-size: clamp(42px, 3vw, 52px);
    line-height: 1.2;
  }

  html[lang="en"] .index-top__intro-txt-inner {
    font-size: 16px;
    line-height: 1.75;
  }

  html[lang="en"] .index-top__intro-txt-inner-paragraph {
    margin-bottom: 1.25rem;
  }
}

@media screen and (max-width: 1100px) {
  html[lang="en"] .index-top__intro-txt-title {
    font-size: 42px;
    line-height: 1.25;
  }

  html[lang="en"] .index-top__intro-txt-inner {
    font-size: 16px;
    line-height: 1.75;
  }
}

@media screen and (max-width: 486px) {
  html[lang="en"] .index-top__intro {
    margin-top: 48px;
  }

  html[lang="en"] .index-top__intro-txt {
    gap: 20px;
  }

  html[lang="en"] .index-top__intro-txt-title {
    font-size: 30px;
    line-height: 1.25;
  }

  html[lang="en"] .index-top__intro-txt-inner {
    font-size: 14px;
    line-height: 1.7;
  }
}

/* Home: prevent English CTA labels from wrapping in Japanese-sized buttons. */
html[lang="en"] .index-method__btn {
  width: 340px;
  max-width: min(340px, 100%);
  min-height: 56px;
  height: auto;
}

html[lang="en"] .index-method__btn .btn-text,
html[lang="en"] .index-news__btn .btn-text {
  white-space: nowrap;
}

html[lang="en"] .index-news__btn {
  max-width: 300px;
}

@media screen and (max-width: 486px) {
  html[lang="en"] .index-method__btn,
  html[lang="en"] .index-news__btn {
    width: 100%;
    max-width: 100%;
  }
}

/* Footer: reserve enough room for both the phone number and the longer CTA. */
@media screen and (min-width: 1101px) {
  html[lang="en"] .site-footer__top .inner {
    padding-inline: 64px;
  }

  html[lang="en"] .site-footer__top .inner .contact-list {
    display: grid;
    grid-template-columns: minmax(370px, 0.9fr) minmax(0, 1.4fr);
    gap: 32px;
  }

  html[lang="en"] .site-footer__top .inner .contact-list__tel,
  html[lang="en"] .site-footer__top .inner .contact-list__mail {
    width: 100%;
    min-width: 0;
  }

  html[lang="en"] .site-footer__top .inner .contact-list__tel-number {
    justify-content: center;
    gap: 8px;
  }

  html[lang="en"] .site-footer__top .inner .contact-list__tel-text {
    font-size: 48px;
  }

  html[lang="en"] .site-footer__top .inner .contact-list__tel-hours {
    font-size: 16px;
    line-height: 1.55;
  }

  html[lang="en"] .site-footer__top .inner .contact-list__mail {
    height: auto;
    min-height: 116px;
    padding: 24px 22px;
  }

  html[lang="en"] .site-footer__top .inner .contact-list__mail-text {
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  html[lang="en"] .site-footer__top .inner .contact-list__mail-text-line1 {
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.03em;
  }

  html[lang="en"] .site-footer__top .inner .contact-list__mail-text-line2 {
    font-size: 19px;
    line-height: 1.45;
    letter-spacing: 0.03em;
  }
}

@media screen and (max-width: 1100px) {
  html[lang="en"] .site-footer__top .inner .contact-list__tel {
    width: 100%;
  }

  html[lang="en"] .site-footer__top .inner .contact-list__tel-number {
    justify-content: center;
    gap: 8px;
  }

  html[lang="en"] .site-footer__top .inner .contact-list__mail {
    max-width: 680px;
  }

  html[lang="en"] .site-footer__top .inner .contact-list__mail-text {
    white-space: normal;
    text-align: center;
  }
}

@media screen and (max-width: 486px) {
  html[lang="en"] .site-footer__top .inner > p {
    line-height: 1.65;
  }

  html[lang="en"] .site-footer__top .inner .contact-list__tel-text {
    font-size: 34px;
  }

  html[lang="en"] .site-footer__top .inner .contact-list__mail-text {
    align-items: center;
  }

  html[lang="en"] .site-footer__top .inner .contact-list__mail-text-line1,
  html[lang="en"] .site-footer__top .inner .contact-list__mail-text-line2 {
    text-align: center;
  }
}

/* Strengths: allow long English feature headings to grow responsively. */
@media screen and (max-width: 1100px) {
  html[lang="en"] .page-strength__details-item-header {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: stretch;
    padding: 0;
    line-height: normal;
  }

  html[lang="en"] .page-strength__details-item-number {
    width: auto;
    min-height: 72px;
    margin: 0 -24px 0 0;
    padding: 12px 28px 12px 20px;
    align-items: center;
    line-height: 1.3;
  }

  html[lang="en"] .page-strength__details-item-title {
    width: auto;
    min-width: 0;
    min-height: 72px;
    margin: 0;
    padding: 12px 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.3;
  }
}

@media screen and (max-width: 486px) {
  html[lang="en"] .page-strength__details-item {
    padding: 24px 16px;
    gap: 20px;
  }

  html[lang="en"] .page-strength__details-item-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  html[lang="en"] .page-strength__details-item-number {
    width: 124px;
    min-height: 36px;
    margin: 0;
    padding: 8px 16px;
    justify-self: start;
    font-size: 13px;
    line-height: 1.2;
  }

  html[lang="en"] .page-strength__details-item-title {
    width: 100%;
    min-height: 64px;
    padding: 12px 28px;
    font-size: 18px;
    line-height: 1.35;
    clip-path: polygon(7% 0%, 100% 0%, 93% 100%, 0% 100%);
  }

  html[lang="en"] .page-strength__details-item-content {
    gap: 20px;
  }

  html[lang="en"] .page-strength__details-item-image img {
    height: auto;
    aspect-ratio: 3 / 2;
  }
}
