Complex sentence: When she finds her first boyfriend (Takeda) she is not sure how to react so she asks Hotaru for advice, but is surprised when it appears as if her friend is flirting with her.
Split into simpler sentences: When she finds her first boyfriend (Takeda) she is not sure how to react so she asks Hotaru for advice. Yuma is surprised though when it appears as if her friend is flirting with her.