Light Yagami's motivation to pursue justice despite the risks stems from his strong belief in his own sense of justice and desire to create a world free from criminals. He becomes consumed by the idea of creating a utopia where he can rid the world of evil and be seen as a hero. This belief drives him to continue his pursuit, despite the dangers and moral dilemmas he faces along the way.