Japan has recorded a trade surplus of 57.3 billion yen, or $360 million, in February, according to government data, reversing from a deficit a month earlier.