In the case of extracorporeal shock wave lithotripsy (ESWL), a shock wave-bubble interaction inevitably occurs near the focusing point of stones, resulting in stone fragmentation and subsequent tissue damage. Because shock wave-bubble interactions are high-speed phenomena occurring in tissue consisting of various media with different acoustic impedance values, numerical analysis is an effective method for elucidating the mechanism of these interactions. However, the mechanism has not been examined in detail because, at present, numerical simulations capable of incorporating the acoustic impedance of various tissues do not exist. Here, we show that the improved ghost fluid method (IGFM) can treat shock wave-bubble interactions in various media. Nonspherical bubble collapse near a rigid or soft tissue boundary (stone, liver, gelatin and fat) was analyzed. The reflection wave of an incident shock wave at a tissue boundary was the primary cause for the acceleration or deceleration of bubble collapse. The impulse that was obtained from the temporal evolution of pressure created by the bubble collapse increased the downward velocity of the boundary and caused subsequent boundary deformation. Results of this study showed that the IGFM is a useful method for analyzing the shock wave-bubble interaction near various tissues with different acoustic impedance.