Have done Kamakura as a day trip from Shinjuku, no problem. JR Shonan Shinjuku line to Yokohama works well as the first leg. If you get really lucky, you may not even have to transfer in Yokohama.
Contrary to hailstorm's experience noted above, I did not find the 'beach scene' near Kamakura to be very interesting.