We only went to Japan to buy some local products as souvenirs, so we were not investigated.
It is really random. My feeling is that the customs knows that many people have brought them, but it takes a lot of time and energy to check them one by one, so some of them will be detained. It depends on luck. As for pulling half a box, it is too much to turn a blind eye, so it is deducted.