.modal-container {
  display: none; /* 初期状態では非表示 */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 60px 0;
  overflow: auto;
  background-color: rgba(0,0,0,0.8); /* 背景を暗くする */
}

.modal-img {
  margin: auto;
  display: block;
  width: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.modal-open {
  cursor: pointer;
  transition: 0.3s;
}

.modal-open:hover {opacity: 0.7;}