Anisotropic Flux Pinning in a Layered Superconductor Sr2RuO4.