What happens if you miss the last train in Japan?
Nothing runs until morning — city trains stop around midnight to 1am and there is no night service. The options are a taxi, which is expensive over any distance, a capsule hotel, a net café, or waiting for the first train around 5am. Check the last train time before the second drink, not after it.
Where this answer comes from
Say it in Japanese
Show the card to the staff. The Japanese, how to read it, and the recorded voice.