/* Typography for pages in Japanese; loaded by base.html when the site language is ja. */
:lang(ja) body,
:lang(ja) .v-application {
  font-family: "Plus Jakarta Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

/* Japanese has no spaces between words: break lines by the strict kinsoku rules and
   let long Latin strings (URLs, identifiers) wrap instead of overflowing. */
:lang(ja) body {
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}

:lang(ja) .content,
:lang(ja) .post__summary {
  line-height: 1.9;
}

/* Synthesized (slanted) italics are hard to read in Japanese. */
:lang(ja) em {
  font-style: normal;
}

:lang(ja) code,
:lang(ja) pre {
  line-break: auto;
  overflow-wrap: normal;
}
