After completing the spirit quest in the library, enter the room to the left of the save point, sleep until night, then enter the spirit room (without sex) and let the spirit see you. After that, return to your own room and sleep in a slow, erotic state.