Weak-lensing analysis of the complex cluster merger A746 with Subaru/Hyper Suprime-cam