That made up for a decline in sales in Japan , where demand for cars is shrinking alongside the population , and a sharp drop in China , where an assembly contract between Mazda and a local company expired .