Earthquake rocks northwest Japan