The present invention provides a compound useful for the prophylaxis or treatment of eicosanoid-associated diseases such as atherosclerosis, atherothrombosis, diabetes, obesity, asthma, fever, pain, cancer, rheumatism, osteoarthritis, atopic dermatitis and the like, and having superior pharmacological action, physicochemical properties and the like.The present invention relates to a compound represented by the following formula:wherein each symbol is as defined in the specification, or a salt thereof.