By good luck; fortunately — an adverb used to say that things happened favorably.
運良く電車に間に合った。
Fortunately, I made it in time for the train.
運よく雨が上がって、ピクニックに行けた。
Luckily the rain stopped, so we could go on the picnic.
運良くその店で最後の一冊を手に入れた。
By good luck I got the last copy at that store.