'Metahistory' of Japanese Myths: changes of social function