Rising input costs, labor shortages and succession problems are pushing Japan’s century-old firms toward closures or delistings.