/* リセット & 全ページ共通の土台 */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #fff; font-family: "Noto Sans JP", sans-serif; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* モバイルメニュー展開中は背面スクロールを固定 */
body.is-nav-open { overflow: hidden; }

/* ===== 中国語ページのフォント =====
   Noto Sans JP は簡体字を収録していない。zhページの漢字561種のうち160種(29%)が
   未収録で端末側のフォントに落ち、同じ見出しの中で字形と太さが混在していた。
   Microsoft YaHei は Windows 搭載の商用フォントで自己ホストできないため、
   各OSの標準簡体字フォントへ順にフォールバックさせる。
   zh配下9ページは全て <html lang="zh-Hans"> のため属性セレクタで一括指定できる。 */
html[lang^="zh"] body,
html[lang^="zh"] .c-input,
html[lang^="zh"] .c-button--submit,
html[lang^="zh"] .p-filter__chip {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Heiti SC", sans-serif;
}
/* 言語切替は英数字に Inter を使うため、CJK だけ簡体字フォントへ落とす */
html[lang^="zh"] .c-lang {
  font-family: 'Inter', "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Heiti SC", sans-serif;
}

/* アニメーションを控える設定を尊重（AI_AGENT_CODING_RULES §5.6 / WCAG） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
