A spherical spacer is used as a spacer member defining a gap, and is fixed to a color filter substrate. and the temperature is subsequently ramped to 150 to 180\xb0 C. A first device control unit is provided to control the first device in accordance with the setting information.