A compound represented by formula (1) or a pharmaceutically acceptable salt thereof, which has a PI3 kinase γ inhibitory effect and is useful as a prophylactic or therapeutic agent for articular rheumatism, Crohns disease, irritable colitis, Sjoegrens syndrome, multiple sclerosis, systemic lupus erythematosus, asthma, atopic dermatitis, arteriosclerosis, organ transplant rejection, cancer, retinopathy, psoriasis, arthrosis deformans, age-related macular degeneration, type II diabetes, insulin resistance, obesity, non-alcoholic fatty liver disease (NAFLD), non-alcoholic steatohepatitis (NASH), hyperlipemia, etc.