First X-ray detection of the young variable V1180 Cassiopeiae