How were the political conditions in Japan before World War 1?

They had recently (1905) won a series of conflicts with Russia

In 1902 they signed a treaty with Britain.