Sanae Takaichi drew fire after suggesting Tokyo could take military action if Beijing attacked Taiwan.