in my understanding it was real but Ritsuka was thinking that Okki was hypnotised. But at the end he learned that she was not - she did it because she wanted it and she pretended to be. Thats why "hypnosis failed" at the end and his massive boner when he realised that Osakabehime did it on her own with him.