/* ------------ポップアップ------------ */
.modal_wrap input {
  display: none;
}

.modal_wrap .modal_overlay #modal_label {
  border: none;
  background: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}

.modal_overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999999;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  transform: scale(0.9);
  pointer-events: none;
}

.modal_trigger {
  position: absolute;
  width: 100%;
  height: 100%;
}

.modal_content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 450px;
  transform: translate(-50%, -50%);
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  opacity: 0;
  font-weight: 400;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 15px 30px 0px;
  background-color: #fefefe;
  border-radius: 8px;
  overflow: hidden;
  pointer-events: none;
}

.modal_content a {
  color: #444;
  text-decoration: none;
}

.modal_content h2 {
  font-size: 1.6rem;
  padding: 1em;
  text-align: center;
  font-weight: 700;
  background: #f2f2f2;
  color: #222;
  margin: 0;
  border-bottom: 1px solid #ddd;
}

.modal_content h2 strong {
  color: #ff4081;
}

.pop_content {
  padding: 1rem;
}

.modal_content p {
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0 0 1em;
  text-align: center;
}

.modal_content .popUp_btn {
  width: 100%;
  margin: 1rem auto;
  background-color: #ff4081;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  padding: 0.8em 0;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 4px 0 #e53935;
  cursor: pointer;
}

.modal_content .popUp_btn:hover {
  background-color: #e53935;
  box-shadow: 0 4px 0 #c62828;
}

.modal_content .pop_content .pop_content_img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal_wrap input:checked~.modal_overlay {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  pointer-events: auto;
}

.modal_wrap input:checked~.modal_overlay .modal_content {
  opacity: 1;
  pointer-events: auto;
}

.modal_content img {
  max-width: 100%;
  vertical-align: bottom;
}

@media screen and (max-width : 480px) {
  .modal_content h2 {
    font-size: 5vw;
  }
  .modal_content p {
    font-size: 4.5vw;
  }
  .modal_content .popUp_btn {
    font-size: 4.5vw;
  }
}
