TOKYO - Japan posted its largest-ever trade deficit of 3.5 trillion yen ($26 billion) in January after energy import prices jumped and export growth slowed, with record red ink logged with major trading partner China, the Finance Ministry said Thursday.