On a mountain road in the snow, at the end of a fishing pier, beside a rice paddy with no house in sight: the glow is there. Japan's vending machines stand in their millions, lit all night, selling drinks first of all but also umbrellas, batteries, hot soup, ice cream, flowers, neckties, and in one famous case, rhinoceros beetles. They are so ordinary that the country barely sees them, which is exactly what makes them interesting.

Why here, why so many

The usual explanations are a braid. Japan's streets are safe enough that a glowing box of money and goods can sleep outside unmolested. Labour is expensive, making automation attractive. Land for shops is dear, while a machine needs a square metre and an electricity feed, which property owners happily rent out for the income.

Drink companies built the empire as distribution: a machine is an advertisement that also sells. Competition between the great beverage rivals filled every gap in the map, until the map had more machines per person than anywhere else on earth.

Stocked for the moment

The genius of the network is local. Machines near stations sell umbrellas when it rains, throat sweets in winter, and energy drinks to the salarymen of the district. Farm machines sell the grower's own eggs and vegetables on the honour of the local customer. A machine outside a workshop stocks the gloves and goggles the workshop forgets.

Restocking drivers read their routes like newspapers, adjusting each box to its few square metres of Japan. The result is a retail system with no shop, no till and almost no queue, tuned to the weather and the neighbourhood.

Machines in the disaster plan

After the great earthquake of 2011, vending machines acquired a second job. Disaster models unlock their stock for free when the power grid and the authorities say so, turning the network into a distributed emergency store of drinks in every neighbourhood. Some carry free Wi-Fi, battery charging and scrolling news boards in a blackout.

It reframed what the machines are. Not just retail, but resilience you can buy a coffee from: a lit, stocked, maintained point in every district, kept honest by the daily economics of thirst.

The costs of the glow

Criticism follows the light bill. Millions of refrigerated boxes running all night consume real electricity and generate real waste, and the industry has answered with LED lighting, heat pumps and solar canopies that have cut consumption sharply from its peak.

Numbers are also past their highest point. Convenience stores, open all night with humans inside, took the cities; the machines retreated slightly, then stabilised, still denser than anywhere else. The glow is a little dimmer than it was. It is not going out.

A portrait in vending light

Photographers have made the machines famous a second time, shooting them alone in snowy fields and empty streets, humming portraits of rural depopulation and urban solitude. The pictures are beautiful and melancholy, and the country recognises itself in them.

At 3 a.m. on a road in the mountains, a driver stops, buys a hot can of coffee, and holds it in both hands for the warmth. The machine returns to its vigil. Multiply the moment by millions and you have a piece of Japan's social infrastructure that nobody designed as one.