During a teaching operation regarding a transport mechanism, a hand of the transport mechanism is moved to a tentative target position in a substrate supporter, and a substrate supported at a reference position in the substrate supporter is received by the hand. A positional relationship between the substrate held by the hand and the hand is detected. A deviation between the tentative target position and the reference position is acquired as correction information based on the detected positional relationship. During the teaching operation or during substrate processing, the tentative target position is corrected to a true target position to coincide with the reference position based on the acquired correction information. During the substrate processing, the hand is moved to the true target position, so that the substrate is transferred to the substrate supporter by the hand, or the substrate is received from the substrate supporter by the hand.