Prime Minister Sanae Takaichi’s recent remarks started a major row with Beijing and shone a fresh spotlight on Japan’s strategic thinking.