WARNING: This page is about a different car, the 2005 Mazda RX-8 and 2004 Mazda RX-8. However, it is still accessible from the selected car via links, so may be relevant.
Install the battery so battery front face is positioned within the white-painted range of the battery box.
Fig 1: Installing Battery Front Face Is Positioned Within The White-Painted Range Of The Battery Box