Overnight connections at NRT are not currently permitted. You have to stay airside for the duration of your connection in Japan, but the airside part of NRT is closed during the night. You will have to book a different ticket.
I suggest that you look at this thread:
https://www.flyertalk.com/forum/japa...s-edition.html
Some posts mentioning no overnight connections: