Remove from the base its singular locus and the images of those prime divisors on Z whose images in W have codimension at least two. Denote the resulting big open subset by V and put U=f^{-1}(V). By [Nor83, Lemma 1.5.A], we can choose a smaller nonempty open set V^\circ\subset V, with divisorial complement, such that
U^\circ:=f^{-1}(V^\circ)_{\mathrm{reg}}\setminus\operatorname{Supp} R\longrightarrow V^\circ
is a topological fibre bundle. By generic flatness and generic smoothness, we may assume its connected fibre is F_{\mathrm{reg}}\setminus\operatorname{Supp}(R|_F), and that V^\circ avoids the images of the vertical boundary components.
Now, the loops of horizontal boundary components are represented, up to conjugation, by loops in a general fibre. Quotienting the homotopy sequence by their prescribed orbifold relations therefore gives an exact sequence
\pi_1^{\mathrm{reg}}(F,R|_F)\xrightarrow{\psi_1}H\xrightarrow{\psi_2}Q\longrightarrow1,
where H=\pi_1(U^\circ)/N_{\mathrm{hor}} and Q=\pi_1(V^\circ).
As noted by [Nor83, Fact 1.2], reinserting a divisor T_{E,j} with its orbifold coefficient is nothing else than imposing the relation \gamma_{E,j}^{n_{E,j}}=1. At a general smooth point, the image of its loop is conjugate to \delta_E^{m_{E,j}}, where \delta_E is a loop around E. Thus, these relations map to powers \delta_E^{m_{E,j}n_{E,j}} and their normal closure is generated by \delta_E^{k_E}: each exponent is divisible by k_E, and Bézout’s identity expresses k_E as an integral linear combination of these exponents. All components of U_{\mathrm{reg}}\setminus U^\circ reinserted at this step, other than the horizontal boundary components already treated, dominate divisors of V; any removed subsets of codimension at least two in U_{\mathrm{reg}} do not change the fundamental group. We obtain a commutative diagram
\begin{tikzcd}[column sep=small]
\pi_1^{\mathrm{reg}}(F,R|_F)\arrow[r,"\psi_1"]\arrow[d,equal]&
H\arrow[r,"\psi_2"]\arrow[d,"\phi_X"]&
Q\arrow[r]\arrow[d,"\phi_C"]&1\\
\pi_1^{\mathrm{reg}}(F,R|_F)\arrow[r,"\phi_1"]&
\pi_1^{\mathrm{reg}}(U,R|_U)\arrow[r,"\phi_2"]&
\pi_1^{\mathrm{reg}}(W,R_W)\arrow[r]&1.
\end{tikzcd}
The vertical maps are surjective by the definition of the orbifold fundamental groups of pairs.
Let \alpha\in\pi_1^{\mathrm{reg}}(U,R|_U) such that \phi_2(\alpha)=1. We take \alpha' a preimage of \alpha by \phi_X. Then \psi_2(\alpha')\in\ker\phi_C, so it is a product of conjugates of \delta_E^{k_E} and their inverses. Loops around a divisor are well-defined up to conjugation. As \psi_2 is surjective, we may choose conjugates \eta_{E,j} of the loops around T_{E,j} such that \psi_2(\eta_{E,j})=\delta_E^{m_{E,j}}. Choose integers a_{E,j} satisfying \sum_j a_{E,j}m_{E,j}n_{E,j}=k_E. Then
\lambda_E:=\prod_j\eta_{E,j}^{a_{E,j}n_{E,j}}\in\ker\phi_X,
\qquad \psi_2(\lambda_E)=\delta_E^{k_E}.
Therefore, taking a suitable product \gamma' of conjugates of these \lambda_E and their inverses, we have \psi_2(\gamma')=\psi_2(\alpha') and \phi_X(\gamma')=1. Hence, by exactness of the top row, there exists \beta\in\pi_1^{\mathrm{reg}}(F,R|_F) such that \psi_1(\beta)=\alpha'\gamma'^{-1}. Thus
\phi_1(\beta)=\phi_X(\psi_1(\beta))
=\phi_X(\alpha'\gamma'^{-1})=\alpha,
which proves \operatorname{im}\phi_1\supseteq\ker\phi_2. The reverse inclusion follows from commutativity, and \phi_2 is surjective because \psi_2 and \phi_C are surjective. Hence the bottom sequence is also exact. Finally, adding the "missing divisors" in Z_{\mathrm{reg}} possibly imposes further loop relations, yielding \pi_1^{\mathrm{reg}}(U,R|_U)\twoheadrightarrow\pi_1^{\mathrm{reg}}(Z,R).