Typically they are built on a stone foundation and the structure simply rests on top of the stone.
This avoids significant damage during earthquakes and the tremendous weight and strength of the structure is sufficient that physical attachment to the foundation is not needed. The vast number of surviving kura, many over 200 years old, are in good condition, which is a testament to this design.