/* Japanese candidate typography, integrated centrally by Session 5. */
html[lang="ja-JP"] {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
    "YuGothic", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  font-kerning: normal;
  line-break: strict;
  overflow-wrap: anywhere;
  text-autospace: normal;
  word-break: normal;
}

html[lang="ja-JP"] body {
  line-height: 1.75;
}

html[lang="ja-JP"] :is(h1, h2, h3, h4, h5, h6, button, label, legend, nav, .eyebrow, .section-label) {
  letter-spacing: normal;
  text-transform: none;
}

html[lang="ja-JP"] :is(h1, h2) {
  line-height: 1.35;
}

html[lang="ja-JP"] :is(h3, h4, h5, h6, button, input, select, textarea) {
  line-height: 1.5;
}

html[lang="ja-JP"] :is(code, pre, kbd, samp, var) {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  line-break: auto;
  overflow-wrap: normal;
  text-transform: none;
  word-break: normal;
}

html[lang="ja-JP"] input,
html[lang="ja-JP"] textarea,
html[lang="ja-JP"] [contenteditable="true"] {
  ime-mode: auto;
}

@supports (font-variant-east-asian: proportional-width) {
  html[lang="ja-JP"] body {
    font-variant-east-asian: proportional-width;
  }
}
