The present invention provides a compound represented by the formula:
##STR00001## wherein R.sup.1 is an optionally substituted 5-membered
heterocyclic group; X, Y and V are the same or different and each is a
bond, an oxygen atom, a sulfur atom and the like; Q is a divalent
hydrocarbon group having 1 to 20 carbon atoms; ring A is an aromatic ring
optionally further having 1 to 3 substituents; Z is
--(CH.sub.2).sub.n-Z.sup.1- or -Z.sup.1-(CH.sub.2).sub.n-- (n is an
integer of 0 to 8, Z.sup.1 is a bond, an oxygen atom, a sulfur atom and
the like); ring B is a nitrogen-containing heterocycle optionally further
having 1 to 3 substituents; W is a bond or a divalent hydrocarbon group
having 1 to 20 carbon atoms; R.sup.2 is a hydrogen atom, a cyano group,
--PO(OR.sup.9)(OR.sup.10) (R.sup.9 and R.sup.10 are the same or different
and each is a hydrogen atom or an optionally substituted hydrocarbon
group, and R.sup.9 and R.sup.10 are optionally bonded to form an
optionally substituted ring) and the like, or a salt thereof, which has a
superior adipose tissue weight decreasing action, a hypoglycemic action
and a hypolipidemic action, and which is useful as an agent for the
prophylaxis or treatment of obesity, diabetes mellitus, hyperlipidemia,
impaired glucose tolerance, hypertension and the like.