I think I read that the Japanese had military attaches at Taranto who assessed the aftermath.
We forget surprise fits the bushido tradition, also the had the Battle of Port Arthur (opening of the Russo-Japanese War) as a model.
https://en.wikipedia.org/wiki/Battle_of_Port_Arthur
If they didnt have attaches there, they certainly studied the attack closely and used it as a model for Pearl Harbor.