Japan has seized a Taiwanese fishing boat and its crew of five after the vessel trespassed in Japanese waters near Yonaguni Island.