The riddle is logical while the answer is correct but unexpected.
答えは合っており、予期できないが、なぞなぞは論理的である。

でいいでしょうか?