Shell-model calculation with Hartree-Fock condition