Japan's shrinking population has weighed on the world's third-biggest economy, alarmed government forecasters and turned some rural communities into veritable ghost towns.