@charset "UTF-8";

.modal-container {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s ease-out;
  z-index: 9;
}
 
.modal-container::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}
 
.modal-container.active {
  opacity: 1;
  visibility: visible;
}
body:has(.modal-container.active) #wrapper {
  filter: blur(2px);
  overflow: hidden;
}

.modal-body {
  display: inline-block;
  vertical-align: middle;
  width: 90%;
}
 
.modal-close {
  position: absolute;
  bottom: -7vw;
  left: 50%;
  transform: translate(-50%);
  font-size: clamp(1.2rem, 1.1vw, 1.6rem);
  font-weight: 600;
  cursor: pointer;

  display: block;
  color: #fff;
  background: #000;
  clip-path: polygon(12% 0, 100% 0%, 88% 100%, 0 100%);
  border: none;
  width: 18rem;
  padding: 0;
}
.modal-close::after {
  position: absolute;
  top: 0;
  left: -4vw;
  content: "";
  display: block;
  width: 151%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: all .3s ease;
  transition-property: transform;
  z-index: 0;
  clip-path: polygon(0 0, 86% 0%, 100% 100%, 14% 100%);
}
.modal-close:hover::after {
  transform: scaleX(1.4);
  transform-origin: left;
}

.modal-close span{
  padding: 1.2vw 0 1.2vw 2vw;
  display: block;
  color: #fff;
  z-index: 1;
  position: relative;
}
.modal-close:hover span{ color: #000; }

.modal-close span::before{
  content: "";
  position: absolute;
  width: 25%;
  height: 1px;
  border-top: solid 1px #fff;
  display: inline-block;
  position: absolute;
  left: 0.2vw;
  top: 50%;
}
.modal-close span::after {
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  position: absolute;
  content: "";
  width: 0.7vw /*1rem*/;
  height: 0.7vw /*1rem*/;
  transform: translateY(-50%) rotate(45deg);
  left: 20%;
  top: 50%;
}
.modal-close:hover span::before,
.modal-close:hover span::after {
  border-color: #000;
}

.modal-content {
  position: relative;
  background: #fff;
  padding: clamp(2rem,5vw,7.2rem);
  margin: 6vw 0 15vw;
  font-weight: 900;
}

.modal-content table.block thead tr + tr th {
  font-size: clamp(1rem, 1.4vw, 2rem);
}
/* .modal-content th:has(br) {
  line-height: 1;
} */
.modal-content th.w10 {
  width: 17%;
}
.modal-content .comparison .table-ttl{ margin-top: 4.5vw; }
.modal-content table.block th small {
  font-size: 57%;
  vertical-align: text-bottom;
}
.modal-content td.round .price:after {
  content: "";
  width: clamp(1rem, 3.1vw, 4.5rem);
  height: clamp(1rem, 3.1vw, 4.5rem);
  border: clamp(0.2rem, 0.42vw, 0.6rem) solid;
  border-radius: 3rem;
  position: relative;
  left: 50%;
  display: block;
  transform: translate(-50%);
}
.modal-content .block{ margin-bottom: 0;}
.modal-content p.note{ margin-bottom : 0;}
.modal-content p.note:first-child{ padding-top: 1vw;}

@media only screen and (min-width: 641px) {
  .modal-content th:has(br:not(.sp)) {
    line-height: 1;
  }
}

@media only screen and (max-width: 640px) {
  .modal-body{
    width: 99%;
    padding: 0;
  }
  .modal-content{
    margin: 0 0 30vw;
    padding: 12vw 3vw;
  }
  .modal-content div.block {
    margin-top: 15vw;
  }
  .modal-content th.w10{ width: 20%; }
  .modal-content .table-ttl{ margin-bottom: 2vw;}
  .modal-content .free-90min{ margin: 10vw 0 2vw;}
  .modal-content table.block tbody th sub{ line-height: 1.2;}
  .modal-content table.block tbody th:has(sub){ padding: 2vw 0; line-height: 1.6;}
  .modal-content table.block th small{ font-size: 80%;}
  .modal-content td.round .price:after{
    width: 5.5vw;
    height: 5.5vw;
    border-width: 0.8vw;
  }
  .modal-close{
    bottom: -17vw;
  }
  .modal-close span{
    font-size: 3.2vw;
    padding: 3.2vw 0 3.2vw 5.4vw;
  }
  .modal-close span::after{
    width: 2vw;
    height: 2vw;
  }
}