From 洋(よう) (yō) + 菓子(かし) (kashi). The kashi changes to gashi as an instance of rendaku (連濁).
洋(よう)菓(が)子(し) • (yōgashi) ←やうぐわし (yaugwasi)?