/* ============================================
   AID Group — CJK Typography Overrides
   Loaded alongside shared.css on all pages.
   Rules activate via :lang(ja) and :lang(zh-CN)
   set dynamically by js/i18n.js.
   ============================================ */

:lang(ja),
:lang(zh-CN) {
  --serif: "Noto Serif JP", "Noto Serif SC", "Georgia", serif;
  --sans:  "Noto Sans JP",  "Noto Sans SC",  -apple-system, "Helvetica Neue", sans-serif;
}

:lang(ja) body,
:lang(zh-CN) body {
  font-family: var(--sans);
  line-height: 1.9;
  letter-spacing: 0.02em;
  word-break: break-all;
}

:lang(ja) h1, :lang(zh-CN) h1,
:lang(ja) h2, :lang(zh-CN) h2,
:lang(ja) h3, :lang(zh-CN) h3 {
  font-family: var(--serif);
  letter-spacing: 0.04em;
}

:lang(ja) p,
:lang(zh-CN) p {
  overflow-wrap: break-word;
}

/* Hero title in CJK: tighten line height slightly */
:lang(ja) .hero__title,
:lang(zh-CN) .hero__title {
  letter-spacing: 0.03em;
  line-height: 1.25;
}

/* Reduce italic emphasis (less natural in CJK) */
:lang(ja) em,
:lang(zh-CN) em {
  font-style: normal;
  font-weight: 500;
}

/* Nav link spacing */
:lang(ja) .nav__link,
:lang(zh-CN) .nav__link {
  letter-spacing: 0.03em;
  font-size: 13px;
}

/* CJK page header title */
:lang(ja) .page-header__title,
:lang(zh-CN) .page-header__title {
  letter-spacing: 0.04em;
  line-height: 1.3;
}
