TOKYO - Japan fell into red ink in goods trade for the first time in two months in July as the cost of energy imports surged, government data showed Thursday.