OSAKA, Japan — The minimalist rooms at the Hotel Relation here in Japan’s third-largest city are furnished with plain twin beds. Flat-screen televisions adorn the walls. Plastic-wrapped cups and toothbrushes are provided in the bathrooms. And just across the hall are the rooms where the corpses rest.

Checkout time, for the living and the dead, is usually no later than 3 p.m.

The Hotel Relation is what Japanese call an “itai hoteru,” or corpse hotel. About half the rooms are fitted with small altars and narrow platforms designed to hold coffins. Some also have climate-controlled coffins with transparent lids so mourners can peer inside.

Part mortuary, part inn, these hotels serve a growing market of Japanese seeking an alternative to a big, traditional funeral in a country where the population is aging rapidly, community bonds are fraying and crematories are struggling to keep up with the sheer number of people dying.

By custom, Japanese families take the bodies of their loved ones home from the hospital and sit for an overnight wake followed by a service the next morning in the company of neighbors, colleagues and friends. Then, in the afternoon, the body is sent to a crematory.