Had basically the same problem with my 90 hatch, in that case it was a PGM-FI relay. They are affected by heat when they are going bad, and the heat in a car's interior on a sunny day is enough to not allow the car to start.
If all of the power goes off, I'd suggest a main relay or maybe an ECU problem.