Mahouka Koukou no Rettousei
The Irregular at Magic High School
魔法科高校の劣等生
The anime closely follows the events of the first seven light novels (excluding the fifth novel: Summer Holiday Arc + 1). There are three video game adaptations of the series.
Mahouka Koukou no Rettousei S2