/* Capa japonesa: se carga después de app.css solo en la versión ja (build_ja.py). Noto Sans JP (autoalojada, ver fonts-ja.css). */
:root[lang="ja"] {
  --serif: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, -apple-system, BlinkMacSystemFont, sans-serif;
}
:root[lang="ja"] body { line-height: 1.75; line-break: strict; word-break: normal; overflow-wrap: anywhere; text-wrap: pretty; }
:root[lang="ja"] * { font-style: normal; }
:root[lang="ja"] .brand-name { font-size: 24px; font-weight: 700; letter-spacing: .04em; line-height: 1.35; text-transform: none; }
:root[lang="ja"] .brand-sub { letter-spacing: .12em; font-size: 12.5px; text-transform: none; }
:root[lang="ja"] .gate h2 { font-weight: 700; font-size: 18px; }
:root[lang="ja"] .gate .input { letter-spacing: .08em; }
:root[lang="ja"] .side-brand b { font-weight: 700; font-size: 16px; line-height: 1.35; }
:root[lang="ja"] .side-brand small { letter-spacing: .08em; font-size: 11px; text-transform: none; }
:root[lang="ja"] .side-h { letter-spacing: .08em; font-size: 12px; text-transform: none; }
:root[lang="ja"] .eyebrow { letter-spacing: .1em; font-size: 12.5px; text-transform: none; }
:root[lang="ja"] .h1 { font-weight: 700; font-size: 28px; line-height: 1.4; letter-spacing: .01em; }
:root[lang="ja"] .h2 { font-weight: 700; font-size: 20px; line-height: 1.45; }
:root[lang="ja"] .hero .greet { font-size: 16px; font-weight: 500; }
:root[lang="ja"] .hero .count { font-weight: 700; font-size: 30px; line-height: 1.35; max-width: none; }
:root[lang="ja"] .cat h3, :root[lang="ja"] .dcard h3 { font-weight: 700; line-height: 1.5; }
:root[lang="ja"] .cat h3 { font-size: 15.5px; }
:root[lang="ja"] .dcard h3 { font-size: 15px; }
:root[lang="ja"] .cat .num { font-size: 13px; }
:root[lang="ja"] .dcard .catname { letter-spacing: .04em; font-size: 11.5px; text-transform: none; }
:root[lang="ja"] .guide summary { font-weight: 700; font-size: 15px; }
:root[lang="ja"] .guide-col h4 { letter-spacing: .06em; font-size: 13px; text-transform: none; }
:root[lang="ja"] .blank-bar b { font-weight: 700; }
:root[lang="ja"] .badge { letter-spacing: .04em; text-transform: none; }
:root[lang="ja"] .fr-sub { letter-spacing: .06em; font-size: 13px; text-transform: none; }
/* Papel (documento) */
:root[lang="ja"] .paper { font-size: 15px; line-height: 1.85; font-family: var(--serif); }
:root[lang="ja"] .band .who { letter-spacing: .02em; font-size: 14.5px; }
:root[lang="ja"] .p-title { font-weight: 700; font-size: 24px; line-height: 1.45; font-variant: normal; letter-spacing: .02em; }
:root[lang="ja"] .blk-t { font-weight: 700; font-size: 15.5px; line-height: 1.5; font-variant: normal; letter-spacing: .02em; }
:root[lang="ja"] .fl-l, :root[lang="ja"] .chk, :root[lang="ja"] .esc-t, :root[lang="ja"] .opl { font-size: 14.5px; line-height: 1.7; }
:root[lang="ja"] .fl-i { font-size: 15px; }
:root[lang="ja"] .area { font-size: 15px; line-height: 30px; }
:root[lang="ja"] .esc-int, :root[lang="ja"] .tbl { font-size: 13.5px; line-height: 1.65; }
:root[lang="ja"] .esc-total .lbl { font-variant: normal; }
:root[lang="ja"] .esc-total .val { font-weight: 700; }
:root[lang="ja"] .paper p, :root[lang="ja"] .paper li { text-align: left; }
@media (max-width: 760px) {
  :root[lang="ja"] .h1 { font-size: 24px; }
  :root[lang="ja"] .hero .count { font-size: 26px; }
  :root[lang="ja"] .topbar b { letter-spacing: 0; font-size: 15px; }
  :root[lang="ja"] .topbar small { letter-spacing: .04em; font-size: 11px; text-transform: none; }
}
@media print {
  :root[lang="ja"] .paper, :root[lang="ja"] .paper * { font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; }
}
:root[lang="ja"] .fl-l::after { content: "："; }
@media (max-width: 480px) { :root[lang="ja"] .toolbar { flex-wrap: wrap; } }
