From 恋(こい) (koi, “love”) + 敵(かたき) (kataki, “enemy”). The kataki changes to gataki as an instance of rendaku (連濁).
こいがたき • (koigataki) ←こひがたき (kofigataki)?