At the end while spending his time with nanami the other girls and megumu fall out the doorway after eavesdropping on them with various reasons. All that and yet there being so many nanami s was the least confusing part. Clip from anime kanojo ga flag wo oraretara.