\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{taikai}[2026/07/02 v1.0 JSME Taikai manuscript style]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 必要パッケージ
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{amsmath,amssymb,mathtools} %数式関連
\RequirePackage{bm} %太字，花文字，筆記体を出力
\RequirePackage{float} %図関連のパッケージ
\RequirePackage{ascmac} %box環境を整える
\RequirePackage{fancyhdr} %ヘッダー・フッター関連
\RequirePackage{anyfontsize}
\RequirePackage{graphicx} %図の貼り込み用
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%余白の設定%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength{\hoffset}{-1in}
\setlength{\voffset}{-1in}
\setlength{\oddsidemargin}{20truemm}
\setlength{\topmargin}{25truemm}
\setlength{\headheight}{0pt}
\setlength{\headsep}{0pt}
\setlength{\textheight}{245mm}%247
\setlength{\textwidth}{170mm}
\setlength{\footskip}{10pt}

%
\makeatletter
\newcommand{\etitle}{\gdef\@etitle}\etitle{}
\newcommand{\eauthor}{\gdef\@eauthor}\eauthor{}
\newcommand{\tnum}{\gdef\@tnum}\tnum{}
\newcommand{\sdgs}{\gdef\@sdgs}\sdgs{}
\newcommand{\aff}{\gdef\@aff}\aff{}
\makeatother

\makeatletter
\renewcommand{\section}{\@startsection{section}{1}{0pt}{18pt}{5pt}{\centering\bfseries}}
\renewcommand{\subsection}{\@startsection{subsection}{2}{0pt}{4pt}{4pt}{\indent\bfseries}}
\makeatother
\renewcommand{\thesection}{\arabic{section}.}
\renewcommand{\thesubsection}{\arabic{section}・\arabic{subsection}}

\renewenvironment{abstract}{\vspace{3pt}\fontsize{10pt}{16pt}\selectfont\quad}{\par}
\newenvironment{kwords}{\vspace{4pt}\noindent\textbf{\textit{Key Words}}:}{\par}

\makeatletter
\renewcommand{\maketitle}{
  \vspace*{0pt}
  \begin{center}
    {\par\Large\bfseries\@title}\par\vspace{10pt}
    {\large\bfseries\@etitle}\par\vspace{-3pt}
    {\large\@author}\par\vspace{-3pt}
    {\large\@eauthor}\par\vspace{-3pt}
    {\@aff}\par
  \end{center}
}
\makeatother

\makeatletter
\renewcommand{\theequation}{\arabic{equation}}
\renewcommand{\thefigure}{. \@arabic\c@figure}
\renewcommand{\figurename}{Fig}
\renewcommand{\thetable}{ \@arabic\c@table}
\renewcommand{\tablename}{Table}
\makeatother

\pagestyle{fancy}
\lhead{} %講演番号を入力
\rhead{}
\lfoot{\footnotesize\bfseries {\textsf{[No.25-1]}日本機械学会\textsf{2025}年度年次大会〔\textsf{2025.9.7-10}，北海道大学〕}} %フッタ左%開催場所に応じてここを書き換えてください．
\cfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0.5pt}

%itemize, enumerate%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\labelenumi}{(\arabic{enumi})}

\endinput
