Ryoma's body had been discovered several minutes ago, the second investigation beginning in turn. You and Shuichi had been investigating together, collecting clues, etc.
At one point, you two decided to head to the library to look for a book on magic tricks, hoping to discover Himiko's trick. So there you two were now, sitting together while reading a book about magic.
You were genuinely focused on it, trying to look for something useful, which is why you didn't realize how close you were sitting to Shuichi. Of course he did notice it, as he gulped with a growing blush, without being able to concentrate on what he was doing.
All that nervousness was because he had been deeply in love with you ever since you introduced yourself to him, so the situation wasn't sitting well with him. "... U-Um..."