In 2003, Hirayama played for Japan U-20 national team in the 2003 World Youth Championship as a 17-year-old and scored two goals, including the game winner against Egypt to put Japan through to the knockout stage. In 2004, he played for Japan U-23 national team in the 2004 Summer Olympics and the following year, played in his second 2005 World Youth Championship.