\mode<presentation>

% Frame title
\defbeamertemplate*{frametitle}{texsx}[1][]
{
\vskip1cm%
    \begin{beamercolorbox}[wd=\paperwidth,ht=1cm]{frametitle} 
    \begin{tikzpicture}
        \definecolor{utokyo-gray}{HTML}{231815};
        \definecolor{utokyo-blue}{HTML}{187fc3};
        \definecolor{utokyo-yellow}{HTML}{f9be00};
        \useasboundingbox[fill=utokyo-blue](0,0) rectangle(.675*\the\paperwidth, 1.5cm);
        \ifx\insertframesubtitle\@empty%
            {\node[anchor=west, white,font=\large] at (1,0.75){\insertframetitle};}
        \else%
            {\node[anchor= west, white,font=\large] at (1,1.05){\insertframetitle};%
            \node[anchor= west, white,font=\normalsize] at (1,0.35){\insertframesubtitle};}%
        \fi
        \end{tikzpicture}
    \end{beamercolorbox}
}

\mode<all>
