N2
に反して
にはんして
Go against, Contrary to
彼らは会社のルールに反して交際をしているらしい。
I heard that they are dating, which goes against the company rules.
Explanation
「に反して」 has 2 uses
1Contrary to
Things turn out against expectations, hopes or someone's wishes; also contrasts two opposite facts: 「予想に反して勝った」 (we won, against all expectations).
予想に反してクライアントの反応がいまいちだったので、最初からやり直さなきゃいけない。
Contrary to our expectations, the client's response was not good, so we had to start over from the beginning.
予想に反して早く終える事ができた。
Contrary to our expectations, we were able to finish early.
2Breaking a rule
Going against a law, rule, order or moral code: 「法に反する行為」 (an unlawful act), 「ルールに反して」 (against the rules).
神様の教えに反するようなことをしてはいけません。
You must not do anything that goes against God's teachings.
彼らは会社のルールに反して交際をしているらしい。
I heard that they are dating, which goes against the company rules.