/*
 * AionUi カスタムフォント: Zen Maru Gothic（ZEN丸ゴシック）
 * ライセンス: SIL Open Font License 1.1（同梱の ZenMaruGothic-LICENSE_OFL.txt 参照）
 * 方針: 既存スタイルを書き換えず「最後に上書き」するだけ。元に戻すのは index.html からこのCSSのlinkを外すだけ。
 * 読みやすさ維持のため、コード/等幅/数式/アイコンは対象外にしている。
 */
@font-face {
  font-family: 'Zen Maru Gothic';
  src: url('./ZenMaruGothic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zen Maru Gothic';
  src: url('./ZenMaruGothic-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zen Maru Gothic';
  src: url('./ZenMaruGothic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 本文・UIテキストに適用 */
body, button, input, textarea, select, optgroup,
h1, h2, h3, h4, h5, h6, p, a, span, div, li, dd, dt, td, th,
label, blockquote, figcaption, [class*="arco-"] {
  font-family: 'Zen Maru Gothic', 'Meiryo', 'Yu Gothic UI', 'Hiragino Kaku Gothic ProN', sans-serif !important;
}

/* 読みやすさ維持：コード・等幅は元のまま */
code, pre, kbd, samp, tt, var,
[class*="hljs"], [class*="language-"], [class*="codemirror" i],
[class*="monaco" i], [class*="cm-"] {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Courier New', monospace !important;
}

/* 数式(KaTeX)は専用フォントを維持 */
.katex, .katex * {
  font-family: KaTeX_Main, KaTeX_Math, 'Times New Roman', serif !important;
}

/* アイコン用フォントは触らない（アイコンが箱化するのを防ぐ） */
[class*="arco-icon" i], [class*="iconfont" i], i[class*="icon" i] {
  font-family: initial !important;
}
