Compounds represented by formula (1) and pharmaceutically acceptable salt thereofs:wherein each symbol is as defined in the specification, are useful as inhibitors of an activated blood coagulation factor X. Compositions which contain, as an active ingredient, an FXa selective low-molecular weight FXa inhibitor having a short serum half-life are particularly useful as anticoagulants for an extracorporeal blood circuit.