Japan’s 40-year bond yield rose to 4%, the highest since its debut in 2007 and a first for any maturity of the nation’s sovereign debt in more than three decades.