Resin composition for sealing electronic device, and electronic device