/* ---------------------------------------------------------------------------
   CJK fallback for Japanese, Korean, and Simplified Chinese pages.
   Linked only from /ja/*, /ko/*, /zh-CN/* so Latin locales do not download
   multi-MB glyph files. Geist still paints Latin/ASCII; Noto covers CJK via
   unicode-range. License: SIL OFL 1.1 — see assets/fonts/OFL-NotoSans*.txt
   --------------------------------------------------------------------------- */

@font-face {
  font-family: "Noto Sans JP";
  src: url("../assets/fonts/NotoSansJP-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3000-30FF, U+31F0-31FF, U+3400-4DBF, U+4E00-9FFF,
    U+F900-FAFF, U+FF00-FFEF;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("../assets/fonts/NotoSansJP-SemiBold.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3000-30FF, U+31F0-31FF, U+3400-4DBF, U+4E00-9FFF,
    U+F900-FAFF, U+FF00-FFEF;
}

@font-face {
  font-family: "Noto Sans KR";
  src: url("../assets/fonts/NotoSansKR-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7AF,
    U+D7B0-D7FF;
}

@font-face {
  font-family: "Noto Sans KR";
  src: url("../assets/fonts/NotoSansKR-SemiBold.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7AF,
    U+D7B0-D7FF;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("../assets/fonts/NotoSansSC-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF,
    U+FF00-FFEF;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("../assets/fonts/NotoSansSC-SemiBold.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF,
    U+FF00-FFEF;
}

html[lang="ja"] body {
  font-family: "Geist", "Noto Sans JP", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

html[lang="ko"] body {
  font-family: "Geist", "Noto Sans KR", "Apple SD Gothic Neo",
    "Malgun Gothic", "Nanum Gothic", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

html[lang="zh-CN"] body {
  font-family: "Geist", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.75;
  word-break: break-word;
  overflow-wrap: anywhere;
}

html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] h4,
html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3,
html[lang="ko"] h4,
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] h4 {
  letter-spacing: 0.02em;
  line-height: 1.35;
  font-feature-settings: "palt" 1;
}
