The present invention provides: a novel use of a specific bicyclic nitrogen-containing heterocyclic compound as a PDE7 inhibitor; a novel bicyclic nitrogen-containing heterocyclic compound having a PDE7 inhibitory effect, a method for producing the compound, a use of the compound, and a pharmaceutical composition containing the PDE7 inhibitor or the compound; and others. More specifically, the present invention provides a PDE7 inhibitor containing the compound represented by the formula (I):
[wherein the symbols have the same meanings as those described in the description] or a pharmaceutically acceptable salt thereof as an active ingredient.