Driven by lessons from World War II and China’s expanding presence, Japan’s strategic orientation is pivoting eastward into the Pacific.