As the United States rethinks its role in the international order it has championed since the end of World War II, Japan is on the frontlines of the challenge to rules-based commerce and diplomacy.