Complex sentence: In the anime, she loved Hayato Ike (in the novel, it is suggested that she had a crush on Yuji instead), but she dies when a Rinne appears on her way home.
Split into simpler sentences: In the anime, she loved Hayato Ike, but implies that she has feeling for Yuji. However she dies when a Rinne appears on her way home.