idiom
when one door closes, another opens
一つのチャンスを失うと、別のチャンスが現れる
Meaning
when one opportunity is lost, another appears
Example
Don’t be upset about the rejection—**when one door closes, another opens**.
拒否されたからといって落ち込まないでください—一つの扉が閉まると、別の扉が開きます。