\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{luatex-hiragino}[2023/8/13, Version 1.0]
%-----------------------------------------------------------------------

%和文フォント
\RequirePackage[no-math]{fontspec}
\RequirePackage[no-math,match,scale=1]{luatexja-fontspec}
\RequirePackage{luatexja-otf}
\RequirePackage[hiragino-pro,deluxe,expert]{luatexja-preset} %jis2004,nfssonly
%%%\ltjnewpreset

\setmainfont{HiraMinPro-W3}[BoldFont=HiraMinPro-W6]
\setmainjfont{HiraMinPro-W3}[BoldFont=HiraMinPro-W6]
\setsansfont{HiraKakuPro-W3}[BoldFont=HiraKakuPro-W6]
\setsansjfont{HiraKakuPro-W3}[BoldFont=HiraKakuPro-W6]

\renewfontfamily{\sffamily}{HiraKakuPro-W3}[BoldFont=HiraKakuPro-W6]
\renewfontfamily{\mcfamily}{HiraMinPro-W3}[BoldFont=HiraMinPro-W6]
\renewfontfamily{\gtfamily}{HiraKakuPro-W3}[BoldFont=HiraKakuPro-W6]
\providefontfamily{\mgfamily}{HiraMaruPro-W4}

\newfontfamily{\sfhira}{HiraKakuPro-W3}[BoldFont=HiraKakuPro-W6]
\newjfontfamily{\sfhiraj}{HiraKakuPro-W3}[BoldFont=HiraKakuPro-W6]

\newfontfamily{\mchira}{HiraMinPro-W3}[BoldFont=HiraMinPro-W6]
\newjfontfamily{\mchiraj}{HiraMinPro-W3}[BoldFont=HiraMinPro-W6]
\newfontfamily{\gthira}{HiraKakuPro-W3}[BoldFont=HiraKakuPro-W6,FontFace={eb}{\shapedefault}{HiraKakuStd-W8}]
\newjfontfamily{\gthiraj}{HiraKakuPro-W3}[BoldFont=HiraKakuPro-W6,FontFace={eb}{\shapedefault}{HiraKakuStd-W8}]
\newfontfamily{\mghira}{HiraMaruPro-W4}
\newjfontfamily{\mghiraj}{HiraMaruPro-W4}

\renewcommand{\sffamily}{\sfhira\sfhiraj}
\renewcommand{\mcfamily}{\mchira\mchiraj}
\renewcommand{\gtfamily}{\gthira\gthiraj}
\renewcommand{\mgfamily}{\mghira\mghiraj}

\renewcommand{\sfdefault}{hsf}
\renewcommand{\mcdefault}{hmc}
\renewcommand{\gtdefault}{hgt}
\newcommand{\mgdefault}{hmg}

%2025/04/29追加
\newfontfamily{\aoharu}{aoharu-marker-mini}
\newjfontfamily{\aoharuj}{aoharu-marker-mini}
\newfontfamily{\hannari}{HannariMincho}
\newjfontfamily{\hannarij}{HannariMincho}
%%%

%%英文/数式フォント
%%1.数学（標準）
\RequirePackage{lmodern}
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
\RequirePackage[lmr]{mathcomp}
\RequirePackage[utf8]{inputenc}
\RequirePackage{bm}
%%2.英語
%\RequirePackage[sc]{mathpazo}
%\linespread{1.05} % Palladio needs more leading (space between lines)
%\RequirePackage[T1]{fontenc}

\endinput


