An opening and closing device comprising: a base plate; a first plate that is pivotably attached to the base plate; a first shaft that is provided in the first plate; a second plate that is pivotably and slidably attached to the first plate through the first shaft; a second shaft that is provided in the second plate, wherein the second shaft has an axis direction that is different from that of the first shaft; a third plate that is pivotably attached to the second plate through the second shaft; a detachable system (191, 192) configured to lock the third plate and the first plate in a state in which the first plate, the second plate, and the third plate are superposed, wherein the detachable system (191, 192) is configured to separate, upon application of force to the third plate that is for rotating the third plate around the second shaft, the third plate from the first plate; said opening and closing device being characterized in that it further comprises: a bias system (123, 132, 200) configured to bias the second plate to the first plate in a direction to separate from the second shaft along the first shaft; and a restriction system (150, 161) that is fixed to the second plate, wherein the restriction system (150, 161) is configured to allow the second plate to slide along the first shaft in a state in which the second plate is superposed to the first plate, and the restriction system (150, 161) is configured to restrict the second plate from sliding along the first shaft in a state in which the second plate is rotated with respect to the first plate around the first shaft. a base plate; a first plate that is pivotably attached to the base plate; a first shaft that is provided in the first plate; a second plate that is pivotably and slidably attached to the first plate through the first shaft; a second shaft that is provided in the second plate, wherein the second shaft has an axis direction that is different from that of the first shaft; a third plate that is pivotably attached to the second plate through the second shaft; a detachable system (191, 192) configured to lock the third plate and the first plate in a state in which the first plate, the second plate, and the third plate are superposed, wherein the detachable system (191, 192) is configured to separate, upon application of force to the third plate that is for rotating the third plate around the second shaft, the third plate from the first plate; said opening and closing device being characterized in that it further comprises: a bias system (123, 132, 200) configured to bias the second plate to the first plate in a direction to separate from the second shaft along the first shaft; and a restriction system (150, 161) that is fixed to the second plate, wherein the restriction system (150, 161) is configured to allow the second plate to slide along the first shaft in a state in which the second plate is superposed to the first plate, and the restriction system (150, 161) is configured to restrict the second plate from sliding along the first shaft in a state in which the second plate is rotated with respect to the first plate around the first shaft. a bias system (123, 132, 200) configured to bias the second plate to the first plate in a direction to separate from the second shaft along the first shaft; and a restriction system (150, 161) that is fixed to the second plate, wherein the restriction system (150, 161) is configured to allow the second plate to slide along the first shaft in a state in which the second plate is superposed to the first plate, and the restriction system (150, 161) is configured to restrict the second plate from sliding along the first shaft in a state in which the second plate is rotated with respect to the first plate around the first shaft.