The compound represented by formula (I) (wherein D and G are cyclic group which may have a substituent(s) or alkyl which may have a substituent(s), W and Y are a bond or a spacer of which main chain has an atom number of 1-4, ringA and ringB are heterocyc