one’s thinking or intelligenceRefers to someone’s mental ability or the way their mind is working; the phrase is commonly followed by an expression describing that ability or state.
JA: あんなことをするなんて頭がどうかしている。
EN: You must be out of your mind to do something like that.