Two-Higgs-doublet model and quark-lepton unification