/* Match ja.srinowa.com: Noto Sans JP for copy and forms, Noto Serif JP for primary headings. */
html[lang="ja"] body.hml-site {
  --hml-ja-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --hml-ja-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-family: var(--hml-ja-sans);
  font-weight: 400;
}

html[lang="ja"] body.hml-site :is(
  p, label, input, select, textarea, button, summary, legend, th, td,
  blockquote, figcaption, .hml-eyebrow, .hml-lead, .hml-scroll-label,
  .hml-hero-location, .hml-hero-location span, .hml-transfer-stats strong,
  .hml-language-menu, .hml-language-options a, .hml-plan-stops li > span,
  .hml-logo small
) {
  font-family: var(--hml-ja-sans);
}

html[lang="ja"] body.hml-site :is(h1, h2) {
  font-family: var(--hml-ja-serif);
  font-weight: 900;
  font-style: normal;
}

html[lang="ja"] body.hml-site :is(h3, h4, h5, h6) {
  font-family: var(--hml-ja-sans);
  font-weight: 700;
  font-style: normal;
}

html[lang="ja"] body.hml-site .hml-form-wrap label,
html[lang="ja"] body.hml-site .hml-nav > a,
html[lang="ja"] body.hml-site .hml-nav summary {
  font-weight: 500;
}

html[lang="ja"] body.hml-site button,
html[lang="ja"] body.hml-site .hml-button,
html[lang="ja"] body.hml-site input[type="submit"] {
  font-weight: 700;
}

/* Keep the Japanese homepage headline on its two intended desktop lines. */
@media (min-width: 761px) {
  html[lang="ja"] body.hml-site .hml-hero-content {
    max-width: 1100px;
  }

  html[lang="ja"] body.hml-site .hml-hero h1 {
    max-width: none;
  }

  html[lang="ja"] body.hml-site .hml-hero h1 > span:first-child {
    white-space: nowrap;
  }
}
