Electromagnetic opening/closing device