TOKYO - Japan posted a goods trade deficit of 5.4 trillion yen ($42.4 billion) in fiscal 2021 after logging a surplus the previous year, amid increased energy imports inflated by high prices, the Finance Ministry said Wednesday.