/*
 * Font aliases — STUDIOの独自フォント名(Morisawa GothicMB101 / ヒラギノ角ゴ JIS2004)を
 * フリーライセンス(SIL OFL 1.1)の Noto Sans JP に置き換える。
 * Roboto / Lato / Montserrat も Google Fonts(Apache/OFL)から読み込む。
 */

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Lato:wght@700&family=Montserrat:wght@500;600;700&display=swap");

/*
 * STUDIO がインライン <style> で定義する font-family CSS 変数を、
 * フリーライセンスのスタックに上書きする。HTML 側の var(--s-font-*) は
 * 全てここで解決される(216箇所/index.html を grep 確認済み)。
 */
:root {
  --s-font-2bac4cd1: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif !important; /* ゴシックMB101 R JIS2004 */
  --s-font-5bbf20af: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif !important; /* ゴシックMB101 M JIS2004 */
  --s-font-969506d0: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif !important; /* ゴシックMB101 DB JIS2004 */
  --s-font-96ab2d55: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif !important; /* ヒラギノ角ゴ W3 JIS2004 */
  --s-font-e5bc11a8: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif !important; /* ヒラギノ角ゴ W6 JIS2004 */
}

/* font-family を直書きしているレガシー箇所のための alias @font-face。
 * Noto Sans JP / ヒラギノ角ゴ ProN / Yu Gothic を OS / Google Fonts から探す。 */
@font-face {
  font-family: "ゴシックMB101 R JIS2004";
  font-weight: 1 1000;
  font-display: swap;
  src: local("Noto Sans JP Regular"), local("Noto Sans JP"),
       local("Hiragino Kaku Gothic ProN W3"), local("Hiragino Kaku Gothic ProN"),
       local("Yu Gothic Medium"), local("Yu Gothic");
}
@font-face {
  font-family: "ゴシックMB101 M JIS2004";
  font-weight: 1 1000;
  font-display: swap;
  src: local("Noto Sans JP Medium"), local("Noto Sans JP"),
       local("Hiragino Kaku Gothic ProN W3"), local("Hiragino Kaku Gothic ProN"),
       local("Yu Gothic Medium"), local("Yu Gothic");
}
@font-face {
  font-family: "ゴシックMB101 DB JIS2004";
  font-weight: 1 1000;
  font-display: swap;
  src: local("Noto Sans JP Bold"), local("Noto Sans JP"),
       local("Hiragino Kaku Gothic ProN W6"), local("Hiragino Kaku Gothic ProN"),
       local("Yu Gothic Bold"), local("Yu Gothic");
}
@font-face {
  font-family: "ヒラギノ角ゴ W3 JIS2004";
  font-weight: 1 1000;
  font-display: swap;
  src: local("Hiragino Kaku Gothic ProN W3"), local("Hiragino Kaku Gothic ProN"),
       local("Noto Sans JP Regular"), local("Noto Sans JP"),
       local("Yu Gothic Medium"), local("Yu Gothic");
}
@font-face {
  font-family: "ヒラギノ角ゴ W6 JIS2004";
  font-weight: 1 1000;
  font-display: swap;
  src: local("Hiragino Kaku Gothic ProN W6"), local("Hiragino Kaku Gothic ProN"),
       local("Noto Sans JP Bold"), local("Noto Sans JP"),
       local("Yu Gothic Bold"), local("Yu Gothic");
}

:root {
  --uqx-jp-stack: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
}
