This question already has an answer here:
I'm travelling to San Francisco (SFO) with family this May. My first flight is with JAL to Narita. After a 12hr layover, the next flight is from Haneda to San Francisco. Similar routing on the way back a few weeks later (SFO-HND / NRT - ? ). Do I need a visa for Japan and if yes, what kind?