Probably high water/moisture content of brake fluid and when hot water boils and makes it spongy. I have seen this before with an old Honda Accord.
New fluid, bleeding at the calipers and wheel cyl. should do the trick. At least 1 qt. or more needed of fluid or 3-4 small containers. Suck the old out of the master cylinder to get most out before you begin.
If that doesn't fix it then it is time for a new master cylinder.