Dude, you don't understand what I am talking about.
You can hit those base, but the ship in japan would have already sortied out at the first sign of hostilities. Again, you can't make a large task force disappear, when you wag the tail gather up and start taking on load, the US Navy would have know. Beside even if you are that outstanding and able to ambush 7th Fleet in Japan where they moored, you are still looking at 2 other fleet in the area (3rd Fleet in Hawaii and 4th Fleet in the Carribean and potentially 5th Fleet in the Middle East) they will come from open ocean, but the Chinese would have to tie down their fleet to support the ground troop, again, it makes the same situation I described before, you either sit there and take the pounding from a combination of USAF and US Naval Aviation or you have to go and chase down the American fleet in sub infested open ocean East of Taiwan.
All the while Taiwan is a near peer, it's not like Ukraine and Russia, Taiwan themselves have thousands of anti-ship missile, surface to surface missile and hundred of ATACMS. All those can hit China as well, you did not even factor that into your equation.