TOKYO - Japan posted its largest goods trade deficit in eight years in January, as imports continued to swell on the back of higher energy costs and a weaker yen, government data showed Thursday.