A shrine is where Shinto is practiced. A temple is where Buddhism is practiced. A simple way to distinguish is if there is a guard frame,...
https://kazu2000.muragon.com/entry/396.html