The trade deficit expanded to ¥406.9 billion on an unadjusted basis from a revised ¥391.8 billion gap in May.