The Japanese religiously follow the 3 C's (https://www.mhlw.go.jp/content/3CS.pdf) which happens to be the major way the virus spreads.
Add the vaccination rate to all that and it's not hard to see how the R number dropped to <1 (and stayed there). Though we may be rebounding slightly in the last few days, so we'll see whether it's the start of a new wave or not. Whether we get a significant year end wave like we did last year will tell the story.
The wisdom of this as a public investment in health seems so obvious that I keep wondering why there's been no similar progress discernible here in the States, followed up with tighter HVAC requirements in building codes.