Complex sentence: In one episode of the anime he fell in love with a ghost named Kogane who liked him back, however she had to leave when the summer ghost festival was over.
Split into simpler sentences: In one episode of the anime, he fell in love with a ghost named Kogane who liked him back. However, she had to leave when the summer ghost festival was over.