It has been practiced in Japan since at least the Muromachi period, considering the fact that the oldest descriptions of it were found in the documents of that period.
室町時代の書物の記載事項が最も古い記載事項から少なくとも日本では室町時代以降の風習となっている。