Japan's Nikkei gains as French vote relief weakens yen