...That was in Colorless Tzukuru Tazaki and His Years of Pilgrimage.
What I find interesting is he said he realized he could write novels during a baseball game. And there always seems to be a young girl who gets a mental illness and commits suicide in his novels. He seems obsessed with this character. I've stopped reading him but Wind-up Bird used to be my favourite novel.