主客顛倒[
shukakutentou] reversing the order of (relative) importance (of)
本末顛倒[
honmatsutentou] failing to properly evaluate the (relative) importance (of)
七顛八倒[
shittenbattou] tossing oneself about in great pain
顛倒[
tentou] falling down
山顛[
santen] mountaintop