The idea came to Masafumi Kouki, the energetic mayor of the city of Toyoake, on a summer day as he pondered rising truancy rates at local schools. Toyoake’s nearly 68,000 residents, especially children, seemed increasingly addicted to their digital devices, he thought, so why not try to reduce the amount of time they spent staring at screens?

Within a few days, Kouki and his staff had drafted a 2,400-character ordinance limiting the use of smartphones, tablets, game consoles and computers to two hours per day for Toyoake’s residents, not counting work and school hours. The ordinance, which goes into effect Wednesday, will make Toyoake one of the first cities in Japan to attempt to use the platform of the government to get its citizens to put down their phones.

"It’s so sad to end your day looking at your smartphone all the time at home,” Kouki said in an interview this week in Toyoake, an industrial suburb of Nagoya. "I hope that citizens change their behavior.”