While on a school trip to Kyoto, junior high school student Fujiwara Teika finds himself transported back in time to the Heian period. There he meets Ariwara no Narihira, the most famous playboy of the Heian period. Teika becomes embroiled in a waka poetry contest between poets.
(Source: Wikipedia, translated)