CG 4 is "Gentle head bump" and CG 9 is "First kiss"
To get CG 4 you simply need to have at least 3 love with Ray by the time you have the takeout with him at his garden.
CG 9 is trickier because in order to get it, you have to trigger the head bump (CG4). if that wasn't enough, you have to not be lewd with him (Ray) after training, which you can either do by not being corrupted in the first place, or if you ARE corrupted, I think you can still get it if you just say "maybe not right now" when things get hot and heavy during training.
(This seems to be a bit of an oversight as even if you choose "not right now" you still get kissed during training, but then CG 9 triggers later and still acts as if THAT scene was your first kiss)