Emi Hosho, a third-rate lawyer without much of a future, is tasked with defending Goro Yabe, a man arrested for the murder of his wife. Without much hope of winning, Yabe proclaims his innocence, saying that he was under sleep paralysis at the time of the murder. Emi heads to the inn where Yabe stayed and encounters the ghost of fallen samurai Rokubei Sarashina, who claims he was the one holding Yabe in sleep paralysis. Rokubei is brought to the court as a witness. However, the prosecution denies the existence of the occult, asserting that Rokubei's testimony is inadmissible in court. So begins the struggle to prove Yabe's innocence.