If you asking if its one of the two, id say most likely its the buddhism one. Although both are true the Buddhism really began japans advancements on their religions.
Geography never influenced Japan's religion in a big way. Japan is an island nation, therefore leading to a lot of profit made from fishing and the sea around Japan.