How is Japan going to do that by 2035? Almost nobody has a garage, and there are no charging spaces at the parking spots most people are forced to rent (you need one within 2km of your residence). I haven't heard of any mandate to get charging spots installed at these rental parking areas, and then there's the issue of how electricity would be billed. Electric cars are for the very wealthy right now ( in Japan ).
That is still a lot better than most countries on this list can say. Canada for example has the same goal but almost no walkable neighbourhoods, barely any transit and car centric planning and lifestyles. Canada is also larger and has a smaller population. I'm not certain the grid is ready for the switch. Of all the countrys on the map, japan seems to be one of the most prepared.
Unfortunately rural areas will almost always favour the car, however town/village centers should still be walkable.
Maybe they're banking on the idea of hydrogen fuel, since Toyota is a big fan of it. Also the footnote stated they will allow hybrid as well, so pure ICE are the one affected.