Disclosed is a compound represented by formula (I) which is useful as a renin inhibitor, or a pharmaceutically acceptable salt thereof.[In the formula, R represents an optionally substituted C alkyl group, or the like; R represents a hydrogen atom, or the like; G, G, G and G are as defined in item (i) or the like ((i) G represents -N(R)-, G represents -CO-, G represents -C(R)(R)-, and G represents an oxygen atom or the like); R represents an optionally substituted C alkyl group, or the like; R and R independently represent an optionally substituted C alkyl group, or the like; R represents an optionally substituted C alkyl group, or the like; R, R, R and R independently represent a group: -A-B (wherein A represents a single bond or the like, and B represents a hydrogen atom or the like), or the like; n represents 1 or the like; and R represents a C alkoxycarbonyl group, or the like.]