In Japan, Trump takes a hard line on North Korea’s missile program