There's a shrine on the top floor of the castle (there are 6 floors in all).