From 恋(こい) (koi) + 心(こころ) (kokoro). The kokoro changes to gokoro as an instance of rendaku (連濁).
こいごころ • (koigokoro) ←こひごころ (kofigokoro)?