From 幼(おさな)- (osana-) + 心(こころ) (kokoro). The kokoro changes to gokoro as an instance of rendaku (連濁).
おさなごころ • (osanagokoro) ←をさなごころ (wosanagokoro)?