Two lines
Nishinokyo is the Kintetsu Kashihara Line. Horyu-ji is the JR Yamatoji Line.
Temples
Yakushi-ji and Toshodai-ji share a day. Horyu-ji is Ikaruga, another day. World Heritage is not a reason to stack them.
Nishinokyo and Horyu-ji
Nishinokyo is the Kintetsu Kashihara Line. Horyu-ji is the JR Yamatoji Line.