The novel originally served as a minor side project for Hiroshi Aramata who, at the time, was focused on gathering materials for an upcoming
natural history book he planned to publish. He was asked by the editor in chief of Kadokawa Shoten, Hiroshi Morinaga, to produce a fantasy themed work for their periodical
Monthly King Novel. At that time, Aramata had never written a fictional novel before, however Morinaga felt that Aramata's huge body of knowledge and diversity of interests made him an ideal candidate for novel writing. The initial idea for the story came from Aramata's research into the legend of
Taira no Masakado. Aramata was fascinated by the legacy of his deification and its continuing impact on the spiritual lives of modern Japanese citizens. In a 2011 interview with Fuji TV, Aramata described how Masakado's shrine occupies some of the richest land in Tokyo and that many companies located around his head mound pay it the greatest respect. He had felt the subject of Masakado's legacy was a wonderful opportunity to explore how spirituality crosses over with the values of the modern secular world. Simultaneously, Aramata had also been researching the
history of geomancy in Japan. He felt that he could combine the two subjects--the legacy of Masakado's spirit and the geomantic roots of Tokyo--into an original and compelling story. In addition, while participating in the creation of
Heibonsha World Encyclopedia,
Hiroshi Aramata was also inspired by discussions with
anthropologist Komatsu Kazuhiko about sources of the strange and the mysterious in
Japanese folklore. Scholarly interest in
onmyodo had been gestating in Japan since the 1950's, however in the early 1980's the subject was still esoteric and had not gained mainstream attention. In 1981, scholar
Murayama Shinichi published a landmark history of the subject entitled
Nihon Onmyodoshi Sosetsu. Shinichi's work, along with other works dealing with oriental occultism, inspired Aramata to heavily incorporate the subject into his novel. In addition the book
Meiji No Tokyo Keikaku by
Terunobu Fujimori, describing the history of urban planning in Tokyo during the
Meiji Era, also served as an inspiration. ==Publication==