A non-transitory computer-readable storage medium storing a program for causing a computer to acquire an inspection condition for performing an inspection on a pattern formed by a lithography apparatus that forms a pattern on a substrate with an original, the program causing the computer to execute an acquisition method including an acquisition unit configured to acquire a second inspection condition output from a model to be applied in a case where an inspection is performed on a second pattern by inputting third information indicating a state of the lithography apparatus acquired when the second pattern is formed to the model,
- wherein the model is acquired by machine learning with learning data including first information indicating a state of the lithography apparatus acquired when a first pattern is formed and second information indicating a first inspection condition applied when an inspection is performed on the first pattern,
- wherein the model outputs information indicating the second inspection condition to be applied in the case where the inspection is performed on the second pattern by inputting the third information indicating the state of the lithography apparatus acquired when the second pattern is formed.