TOKYO - Japan posted a record 2.82 trillion yen ($19.7 billion) trade deficit in August after higher energy prices and a sharp drop in the yen pushed the value of imports to their highest-ever level, the Finance Ministry said Thursday.