The direction of the contact forces acting on a body is not necessarily perpendicular to the contact surface. The resolution of contact forces in two components i.e. perpendicular to contact surface and along surface. Perpendicular component is normal force and parallel component is friction.
The deeper the sediment layer above bedrock, the more soft soil there is for the seismic waves to travel through. Soft soil means bigger waves and stronger amplification. The earthquake damage to this building may have been influenced by the type of soil it's sitting on.