Take a bus from the east exit of Kamakura Station at bus stand 4 (near Starbucks) on the bus going to Daitonomiya, which takes about 10-15 minutes and stops right in front of Kamakura-gu shrine. From the Daitonomiya bus stop, it's a 15-minute, 1.1km walk to the temple. Alternatively, you can walk directly from Kamakura Station, which takes approximately 40 minutes covering 3.8km.