/* PDF review, 2026-10-26. Only the marked typography/intro spacing/menu roles. */
body.a2-site[data-page="history"] #content .legacy-history .legacy-year > summary > strong {
  font-size: 24px !important;
}

/* Only the two directory labels marked in the PDF. */
html[lang="en"] body.a2-site:is([data-page="greeting"], [data-page="capability"]) #content section.a2-lead .a2-lead-grid aside > p {
  font-size: var(--a2-150-rail) !important;
}

/* Marked introduction titles, not hero titles or headings further down a page. */
html[lang="en"] body.a2-site:is(
  [data-page="history"], [data-page="licenses"], [data-page="partners"],
  [data-page="location"], [data-page="projects"], [data-page="safety"],
  [data-page="technology"], [data-page="technology-news"], [data-page="news"],
  [data-page="social"], [data-page="brochure"], [data-page="hr-system"],
  [data-page="welfare"], [data-page="recruitment"], [data-page="esg"],
  [data-page="environment"], [data-page="ethics"]
) #content .a2-main > section:first-child :is(.a2-lead-copy, .a2-section-head) > h2 {
  font-size: var(--a2-150-title) !important;
  line-height: 1.14 !important;
}

/* Shared intro: align the label and title to the upper edge of their row. */
@media (min-width: 721px) {
  body.a2-site #content .a2-main > section:first-child :is(.a2-lead-copy, .a2-philosophy-statement, .a2-section-head) {
    align-items: start !important;
  }
  body.a2-site #content .a2-main > section:first-child :is(.a2-lead-copy, .a2-philosophy-statement) > .a2-eyebrow,
  body.a2-site #content .a2-main > section:first-child .a2-section-head > p {
    align-self: start !important;
    margin-top: 0 !important;
    padding-top: 4px;
  }
}

/* Mobile-only block spacing. Leave desktop spacing and all hero content alone. */
@media (max-width: 720px) {
  body.a2-site[data-page] #content section.a2-promoted-section p.a2-promoted-directory {
    margin-bottom: 48px !important;
  }
  body.a2-site #content .a2-main > section:first-child :is(.a2-lead aside, .a2-philosophy-index, .a2-history-directory > aside) {
    margin-bottom: 24px !important;
  }
  body.a2-site #content .a2-main > section:first-child .a2-section-head {
    row-gap: 0 !important;
  }
  body.a2-site #content .a2-main > section:first-child :is(.a2-lead-copy, .a2-philosophy-statement) > .a2-eyebrow,
  body.a2-site #content .a2-main > section:first-child .a2-section-head > p {
    margin-bottom: 16px !important;
  }
  html body.a2-site #content .a2-main > section:first-child .a2-section-head > span,
  body.a2-site #content .a2-main > section:first-child .a2-lead-copy > p:not(.a2-eyebrow) {
    margin-top: 20px !important;
    padding-top: 0 !important;
  }

  /* English mobile menus: a shared inset and aligned two-column link grid. */
  html[lang="en"] body .sub-menu-a-clean .sub-menu-shell,
  html[lang="en"] body .v4-menu .v4-menu-inner {
    width: calc(100% - 48px) !important;
    margin-inline: auto !important;
  }
  html[lang="en"] body .sub-menu-a-clean .sub-menu-grid section > div,
  html[lang="en"] body .v4-menu .v4-menu-columns section > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 16px !important;
    align-items: start;
  }
}
