The present invention provides an sulfonamide derivative having DPreceptor antagonistic activity and a pharmaceutical composition comprising thesaid compound as an active ingredient, and further a therapeutic agent fortreating allergic diseases. The present invention provides a compound of thegeneral formula (II):(see formula II)wherein the ring A is an aromatic carbocyclic ring etc.; the ring B is anitrogen-containing non-aromatic heterocyclic ring etc.; the ring C is anaromatic carbocyclic ring etc.; R1 is carboxy etc.; R2 is independently ahalogenatom etc.; R3 is optionally substituted alkyloxy etc.; R4 is independently ahalogen atom etc.; R5 is independently optionally substituted alkyl etc.; M issulfonyl etc.; Y is a single bond etc.; L1 is a single bond etc.; L2 is asingle bondetc.; k is 0, 1, 2, 3 or 4; n is 0, 1 or 2; and q is 0, 1, 2 or 3; providedthat a) k isnot 0 when the ring B is a 6-membered nitrogen-containing heterocyclic ringcontaining one or two nitrogen atom(s) and the ring C is a benzene ring, etc.;apharmaceutically acceptable salt or a hydrate thereof.