.popupWrapper {
  display: none;
}

.popupWrapper .bg {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: hidden auto;
}

.popupWrapper .bg .innerWrap {
  display: table;
  width: 100%;
  height: 100%;
  padding: 16px;
}

.popupWrapper .bg .innerWrap .inner {
  display: table-cell;
  vertical-align: middle;
}
.popupWrapper .bg .inner .innerBox {
  display: block!important;
  background-color: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  position: relative;
  opacity: 0;
  animation: 0.5s ease-out 0s 1 normal forwards running popup;
  max-width: 500px;
  margin: 0 auto;
  padding: 16px;
}

.popupWrapper .bg .inner .innerBox button {
  position: absolute;
  width: 35px;
  height: 35px;
  top: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.1);
  background-image: url(../../img/ico_close.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  border: none;
  color: #fff;
  text-align: center;
  font-weight: 700;
  line-height: 1.8em;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.popupWrapper .bg .inner .innerBox .contents {
  height: 400px;
  overflow: scroll;
}
.popupWrapper .bg .inner .innerBox .contents h2 {
  font-size: 1.25rem;
  color: var(--color-main);
  font-weight: 700;
  margin: 8px 0px 16px;
}
.popupWrapper .bg .inner .innerBox .contents h2:before {
  content: '';
  background-image: url(../../img/ico_document.svg);
  content: "";
  width: 26px;
  height: 26px;
  display: inline-block;
  position: relative;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  top: 6px;
  margin-right: 2px;
}
.popupWrapper .bg .inner .innerBox .contents h3 {
  font-size: 1rem;
  color: #333333;
  font-weight: 700;
  margin: 16px 0 0;
}
.popupWrapper .bg .inner .innerBox .contents h3::before {
  content: "■";
  color: var(--main);
  padding-right: 4px;
}
.popupWrapper .bg .inner .innerBox .contents .text,
.popupWrapper .bg .inner .innerBox .contents li {
  font-size: 14px;
  line-height: 1.45;
}
.popupWrapper .bg .inner .innerBox .contents ul {
  padding-left: 10px;
  margin: 8px 0;
}
/* アニメーションの定義 */
@keyframes popup {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media screen and (min-width:600px) {
  .popupWrapper .bg {
    position: absolute;
  }

}