A compound represented by formula or a salt thereof: for use for the prevention or treatment of a disease wherein R 1 represents formula,, or; R 2 represents - -R 8, - O-R 9, - -R 10, -(SO 2)-R 11 or - NR 12 R 13; R 2 -O- is substituted at the 4- or-5-position of benzene ring A; R 3 represents an alkyl group having 1 to 8 carbon atoms, preferably 1 to 6 carbon atoms; R 4, R 5, R 6 or R 7 represents a halogen atom, an alkyl group having 1 to 8 carbon atoms, preferably 1 to 6 carbon atoms, which may have a substituent, an alkenyl group having 2 to 8 carbon atoms, preferably 2 to 6 carbon atoms, an alkynyl group having 2 to 8 carbon atoms, preferably 2 to 6 carbon atoms, an alkoxy group having 1 to 8 carbon atoms, preferably 1 to 6 carbon atoms, a nitro group or a formyl group; m, n, p or q represents 0,1 or 2; in the case where m, n, p or q is 2, each R 4, R 5, R 6 or R 7 may be the same or different; R 8, R 9, R 10 or R 11 represents an alkyl group having 1 to 8 carbon atoms, preferably 1 to 6 carbon atoms, which may have a substituent, an alkenyl group having 2 to 8 carbon atoms, preferably 2 to 6 carbon atoms, a cycloalkyl group having 3 to 10 carbon atoms, preferably 3 to 8 carbon atoms, an aryl group which may have a substituent or a heterocyclic group which may have a substituent; R 12 and R 13 may be the same or different and represent a hydrogen atom, an alkyl group having 1 to 8 carbon atoms, preferably 1 to 6 carbon atoms, which may have a substituent, an aryl group which may have a substituent or a heterocyclic group, wherein the disease is selected from the group consisting of an ocular inflammatory disease and a dermatitis selected from the group consisting of acute eczema, subacute eczema, chronic eczema, contact dermatitis, mummular eczema, autosensitized dermatitis, eczema infantum, lichen simplex chronicus vidal, seborrheic dermatitis, keratodermia tylodes Palmaris progressiva, genitial/anal eczema, pinna or external auditory meatus eczema/deramatitis, eczema/dermatitis around nasal vestibule and nasal ala, prurigo, urticaria, psoriasis, acrodermatitis, impetigo nerpetiformis, Reiter's syndrome, pustulosis palmoplantaris, lichen planus, erythema, anaphylactoid purpura, Weber-Christian disease, oculomncocutaneous syndrome, Reynaud disease, alopecia areata, pemphigus, Duhring's dermatitis herpetiformis, epidermolysis bullosa hereditaria, herpes zoster, erythroderma, lupus miliaris disseminatus faciei, allergic angitis, pityriasis lichenoides et varioliformis acute, ulcerative chronic pyoderma and sclerema neonatorum. R 2 represents - -R 8, - O-R 9, - -R 10, -(SO 2)-R 11 or - NR 12 R 13; R 2 -O- is substituted at the 4- or-5-position of benzene ring A; R 3 represents an alkyl group having 1 to 8 carbon atoms, preferably 1 to 6 carbon atoms; R 4, R 5, R 6 or R 7 represents a halogen atom, an alkyl group having 1 to 8 carbon atoms, preferably 1 to 6 carbon atoms, which may have a substituent, an alkenyl group having 2 to 8 carbon atoms, preferably 2 to 6 carbon atoms, an alkynyl group having 2 to 8 carbon atoms, preferably 2 to 6 carbon atoms, an alkoxy group having 1 to 8 carbon atoms, preferably 1 to 6 carbon atoms, a nitro group or a formyl group; m, n, p or q represents 0,1 or 2; in the case where m, n, p or q is 2, each R 4, R 5, R 6 or R 7 may be the same or different; R 8, R 9, R 10 or R 11 represents an alkyl group having 1 to 8 carbon atoms, preferably 1 to 6 carbon atoms, which may have a substituent, an alkenyl group having 2 to 8 carbon atoms, preferably 2 to 6 carbon atoms, a cycloalkyl group having 3 to 10 carbon atoms, preferably 3 to 8 carbon atoms, an aryl group which may have a substituent or a heterocyclic group which may have a substituent; R 12 and R 13 may be the same or different and represent a hydrogen atom, an alkyl group having 1 to 8 carbon atoms, preferably 1 to 6 carbon atoms, which may have a substituent, an aryl group which may have a substituent or a heterocyclic group, wherein the disease is selected from the group consisting of an ocular inflammatory disease and a dermatitis selected from the group consisting of acute eczema, subacute eczema, chronic eczema, contact dermatitis, mummular eczema, autosensitized dermatitis, eczema infantum, lichen simplex chronicus vidal, seborrheic dermatitis, keratodermia tylodes Palmaris progressiva, genitial/anal eczema, pinna or external auditory meatus eczema/deramatitis, eczema/dermatitis around nasal vestibule and nasal ala, prurigo, urticaria, psoriasis, acrodermatitis, impetigo nerpetiformis, Reiter's syndrome, pustulosis palmoplantaris, lichen planus, erythema, anaphylactoid purpura, Weber-Christian disease, oculomncocutaneous syndrome, Reynaud disease, alopecia areata, pemphigus, Duhring's dermatitis herpetiformis, epidermolysis bullosa hereditaria, herpes zoster, erythroderma, lupus miliaris disseminatus faciei, allergic angitis, pityriasis lichenoides et varioliformis acute, ulcerative chronic pyoderma and sclerema neonatorum.