The present invention relates to a compound represented by general formula (1). (The definition of each group in the formula is as described in the specification.) The compound is useful as a prophylactic and/or therapeutic agent for KCNQ2-5 channel-associated diseases.