As you stated Yubari is an extreme example. It was a coal mining town. The mines closed down in the 1980s.  
There is a global trend of concentration in big cities with the service industry, woring women, specialisation...