This petit temple was originally situated on a beach. Legend has it that after a mermaid had been spotted on the beach, the temple was named Ryuguji - referring to a legendary mermaid castle.
Wikipedia https://ja.wikipedia.org/wiki/龍宮寺
More information https://yokanavi.com/en/spot/26937/
Coordinates 33°35'40.215" N 130°24'48.257" E