PROBLEM TO BE SOLVED: To provide safe therapeutic agents for diseases in which B cells or mast cells participate.SOLUTION: The invention provides compounds represented by formula (I). (L is O, S, SO, NH, CO, CH, or the like; R1 is halogen, alkyl or the like, n is an integer from 0 to 4; ring1 is a substituted/unsubstituted 4-7 membered cyclic group; and ring2 is a substituted/unsubstituted 4-7 membered saturated heterocycle.)SELECTED DRAWING: None【課題】安全性に優れた、B細胞や肥満細胞が関与する疾患の治療剤の提供。【解決手段】式(I)で示される化合物。(LはO、S、SO、NH、CO、CH2等;R1はハロゲン、アルキル等、nは0~4の整数;ring1は置換/非置換の4~7員の環状基;ring2は置換/非置換の4~7員の飽和ヘテロ環)【選択図】なし