1. A non-transitory computer-readable recording medium recording an information processing program causing a computer to perform operations comprising: acquiring a first captured image of a real space captured by an imaging device; detecting a first marker and a second marker in the captured image of the real space; in response to the detecting, identifying, in a memory, a second association associating the second marker with a virtual object, wherein the second association is previously stored in the memory; making a first association of the virtual object, associated in the memory with the second marker by the identified second association, with the first marker; and storing the first association in the memory; generating, when the first marker is detected in a second captured image of the real space captured by the imaging device, an image of a virtual space in which the virtual object associated with the first marker is placed on a basis of the first marker based on the first association in the memory regardless of whether the second marker is detected in the second captured image or not; causing a display controller to display a composite image on a display device such that the image of the virtual space is visually recognizable while being superimposed on the second captured image; and when the first marker is not detected for a predetermined period of time, resetting the association of the first marker with the virtual object.