How Japan’s global image morphed from military empire to eccentric pop-culture superpower