Japan, India leaders build ties amid trade, security worries