Like convenience stores, many nationwide restaurant chains used to stay open 24 hours a day, targeting younger generations who want to dine or sip beer in the late-night hours.