Prostitution in Japan is strictly prohibited. But if there is no penetration in the encounter it is not considered prostitution. All these kinds of places (for sex) are in special zones in each city and are often hidden under a false or cover identities like restaurants, shops or sex shops. They can be easier to spot at night when all other businesses are closed, as these ones are open.