5.1-magnitude quake jolts Japan