/* Japanese Typography Support */

/* Import Noto Sans JP from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* Apply Japanese fonts when lang="ja" */
html[lang="ja"] {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Adjust line-height for better CJK readability */
html[lang="ja"] body {
    line-height: 1.8;
}

html[lang="ja"] p {
    line-height: 1.8;
}

html[lang="ja"] li {
    line-height: 1.7;
}

/* Adjust heading line-height for Japanese */
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] h4,
html[lang="ja"] h5,
html[lang="ja"] h6 {
    line-height: 1.5;
}

/* Code blocks should use monospace even in Japanese */
html[lang="ja"] code,
html[lang="ja"] pre {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
}
