Hirayama was born in Kitakyushu on June 6, 1985. After dropped out from University of Tsukuba, he joined Dutch Eredivisie club Heracles Almelo in summer 2005. he played many matches and scored 8 goals. In September 2006, he returned to Japan and signed with J1 League club FC Tokyo. He played many matches and FC Tokyo won the champions in the 2009 J.League Cup. However FC Tokyo was relegated to J2 League end of the 2010 season. In April 2011, he also broke his leg and he could only play one game. In 2012, the club returned to J1, however he broke his leg again in May and he could hardly play in the match. From 2013 he played many matches as substitute. He moved to Vegalta Sendai in 2017. However he got hurt on the day after the opening game. He could not play for the injury in this season. In January 2018, he announced his retirement for many injuries.