Typhoon Trami pounds Japan, dozens injured