To hit it off with someone; to find a kindred spirit or have mutual understanding.
初対面だったが、趣味が同じで意気投合した。
Although we met for the first time, we hit it off because we share the same hobbies.
仕事で一緒になった二人はすぐに意気投合した。
The two who started working together immediately hit it off.
彼とは意見が合わないと思っていたが、話してみると意気投合した。
I thought we wouldn't agree, but once we talked we hit it off.