@charset "utf-8";
/* CSS Document */



.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 60%);
  opacity: 0;
  transition: opacity 0.5s, scale 0s 0.5s;
  scale: 0;
}

.modal:target {
  opacity: 1;
  transition: opacity 0.5s;
  scale: 1;
}

.close {
  position: absolute;
  top: 30px;
  right: 20px;
  font-size: 24px;
  line-height: 1rem;
  width: 30px;
  height: 30px;
  padding: 5px 4px 5px 2px;
  border-radius: 4px;
  border: 1px solid #ccc;
  color: black;
  text-decoration: none;
  cursor: pointer;
  transform: translate(50%, -50%);
  background: #ffffff;
}

.modal-wrapper {
  position: relative;
  width: 92%;
  max-width: 1200px;
  max-height: 80%;
  padding: 20px;
  margin: auto;
  background: linear-gradient(160deg, rgba(255,231,231,1) 60%, rgba(247,255,235,1) 100%);
  border-radius: 5px;
  transition: scale 0.5s;
  scale: 0;
  overflow-y: scroll;
  scrollbar-color: #fba1a1 #ffffff;
  scrollbar-width: thin;
}

.modal:target .modal-wrapper {
  transition: scale 0.5s;
  scale: 1;
}
.modal-content {
  width: 100%;
}
.modal-content h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 1.2em;
  letter-spacing: -0.02em;
}
h2.left_h2 ,
h3.red_h3 ,
.menuBox2 li:first-child {
  font-size: 1rem;
}
.mb30_udl {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222222;
}
.menuBox {
  margin-bottom: 20px;
}
.menuBox4 ,
.menuBox5 {
  margin-bottom: 30px;
}
.menuBox5 ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.menuBox5 li {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0;
}
 
.menuBox5 input {
    position: absolute;
    top: 0;
    opacity: 0;
    width: 100%;  
    height: 100%;
}
.menuBox5.checkBox label span {
    margin-left: 55px;
    text-indent: -55px;
}
.menuBox5.checkBox label span::before {
  display: inline-block;
  background-color: transparent;
  background-image: url(../img/common/rafos01.png);
  background-size: 60px;
  background-position: left center;
  background-repeat: no-repeat;
  padding: 4px 0 0 28px;
  border: none;
  width: 60px;
  height: 60px;
}
.menuBox5.checkBox input[type="checkbox"]:checked + span::after {
  background-image: url(../img/common/rafos01_on.png);
  background-size: 60px;
  transform: rotate(0deg) translateY(-19%);
  width: 60px;
  height: 60px;
  left: -55px;
  top: 11px;
  border: none;
}
.menuBox5.checkBox li:nth-child(2) label span::before {
  background-image: url(../img/common/rafos02.png);
}
.menuBox5.checkBox li:nth-child(2) input[type="checkbox"]:checked + span::after {
  background-image: url(../img/common/rafos02_on.png);
}
.menuBox5.checkBox li:nth-child(3) label span::before {
  background-image: url(../img/common/rafos03.png);
}
.menuBox5.checkBox li:nth-child(3) input[type="checkbox"]:checked + span::after {
  background-image: url(../img/common/rafos03_on.png);
}
.menuBox5.checkBox li:nth-child(4) label span::before {
  background-image: url(../img/common/rafos04.png);
}
.menuBox5.checkBox li:nth-child(4) input[type="checkbox"]:checked + span::after {
  background-image: url(../img/common/rafos04_on.png);
}
.menuBox5.checkBox li:nth-child(5) label span::before {
  background-image: url(../img/common/rafos06.png);
}
.menuBox5.checkBox li:nth-child(5) input[type="checkbox"]:checked + span::after {
  background-image: url(../img/common/rafos06_on.png);
}
@media screen and (min-width: 700px) {
  .menuBox5 ul {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .menuBox5.checkBox li {
    width: calc(100% / 2 - 12px);
    font-size: 14px;
  }
}
@media screen and (min-width: 768px) {
.close {
  right: 30px;
  font-size: 30px;
  width: 36px;
  height: 36px;
  padding: 6px 4px 5px 2px;
}
.modal-wrapper {
  padding: 40px;
}
h2.left_h2 {
  font-size: 1.25rem;
}
.left_h2:before {
  width: 29px;
  height: 27px;
}
.red_h3:before {
  font-size: 1.2rem;
}
.mb30 ,
.todouhuken  {
  margin-bottom: 30px;
}
.menuBox p {
   width: calc(100% / 3);
  margin-bottom: 10px;
}
  .menuBox5.checkBox li {
    font-size: 15px;
  }
}
@media screen and (min-width: 920px) {
.modal-wrapper {
  max-height: 92%;
}
.pcTwo {
  display: flex;
  gap: 20px;
}
.pcRow {
  width: calc(100% - 40%);
}
.pcRow-right {
  width: 40%;
}
.checkBox label span {
  font-size: 14px;
}
.checkBox label span::before {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}
input[type="checkbox"]:checked + span::after {
  width: 11px;
  height: 7px;
  top: 9px;
  left: -28px;
}
.menuBox2 ul, .menuBox3 ul {
  gap: 10px;
  margin-bottom: 10px;
}
.menuBox2 li, .menuBox3 li {
    width: calc(100% / 4 - 8px);
}
.menuBox3 li:last-child {
  width: calc(100% / 2 - 8px);
}
.menuBox p {
   width: calc(100% / 4);
}

}
@media screen and (min-width: 1080px) {
.menuBox2 li, .menuBox3 li {
    width: calc(100% / 5 - 8px);
}
.menuBox p {
   width: calc(100% / 5);
}
.menuBox5.checkBox li {
  width: calc(100% / 3 - 15px);
}
}
@media screen and (min-width: 1200px) {
.menuBox2 li, .menuBox3 li {
    width: calc(100% / 6 - 9px);
}
.menuBox p {
   width: calc(100% / 6);
}
}