TOKYO—Despite the pandemic, the one-year delay and the soaring costs, the Japanese public may still find a sweet spot for the Tokyo Olympics, the way it did for the storied 1964 Games. Why? A historic haul of medals. Japan had its best Olympic production in every category: the most gold medals (27), the most overall (58), and a third-place finish in gold medals behind two much larger countries—the United States and China. “Japan’s national team was able to make its own record result this time,” deputy delegation head Mitsugi Ogata said Sunday as the Olympics ended. “We don’t want this to be like disappearing fireworks. We think it is important that we keep this momentum going through Paris 2024, and Los Angeles 2028.” The previous best in gold was 16, both in 1964 and at the 2004 Athens Games. The country won only 12 gold medals five years ago in …