/* 일본어 모드 폰트 로드 — @import 는 파일 맨 앞에 있어야 유효하다 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@500;600;700&display=swap");

/*
 * 일본어 문서용 오버레이.
 * 기존 css/i18n.css 뒤에 로드해 영문 규칙(Barlow Condensed)을 일본어 폰트로 덮는다.
 * 중국어 오버레이(i18n-zh.css)와 같은 방식이다.
 */
html[lang="ja"] {
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", "Meiryo", -apple-system, sans-serif;
  --font-display: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho",
    "MS PMincho", serif;
  --font-headline: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho",
    "Paperlogy", serif;
}

/* 일본어는 자간을 좁히지 않는다 (가나·한자가 뭉친다) */
html[lang="ja"] body {
  font-family: var(--font-sans);
  letter-spacing: 0;
  line-height: 1.85;
  font-weight: 400;
}
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] h4,
html[lang="ja"] h5,
html[lang="ja"] h6 {
  font-family: var(--font-display);
  letter-spacing: 0;
  font-weight: 600;
}
html[lang="ja"] strong,
html[lang="ja"] b {
  font-weight: 600;
}
/* 한자 병기(.ko-only)는 일본어에서도 불필요하다 */
html[lang="ja"] .ko-only {
  display: none !important;
}
