.wpcf7 {
  font-size: 16px;
}

.wpcf7-spinner {
  margin-right: -48px !important;
}

.wpcf7-form .wpcf7-response-output {
  max-width: 715px;
  margin: 20px auto !important;
  padding: 20px !important;
  border-color: #f08fa0 !important;
  font-family: "Noto Sans JP", serif;
  font-size: 16px !important;
  font-weight:400;
}

.wpcf7-form .wpcf7-response-output:empty {
  display: none;
}

.wpcf7-not-valid-tip {
  margin-top: 5px;
}

.wpcf7-select {
  width: 100% !important;
  height: 100% !important;
}

.q-content {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
@media screen and (max-width: 768px){
  .q-content {
    width: 92%;
    margin-right: auto;
    margin-left: auto;
  }
}

.q-content .notion {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 40px auto 0;
}

.question-group {
  padding: 120px 0;
  background-color: #fff5f5;
}

.question-group.completed {
  position: relative;
}

.question-group.completed::before {
  content:"";
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  background-color: #a0a0a0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.a-q {
  margin: 0 auto;
}

.policy {
  width: 90%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.box-right {
  width: 77%;
}

.box-right .wpcf7-form-control-wrap input[type="text"],
.box-right .wpcf7-form-control-wrap input[type="email"],
.box-right .wpcf7-form-control-wrap input[type="tel"] {
  width: 100%;
}

.postal-col {
  width: 50%;
}
@media screen and (max-width: 480px){
  .postal-col {
    width: 80%;
  }
}

.btn-wrap .wpcf7-form-control-wrap {
  width: 100%;
}

.btn-wrap .wpcf7-form-control {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  justify-content: center;
}
@media screen and (max-width: 819px){
  .btn-wrap .wpcf7-form-control{
    gap: 15px;
  }
}


.btn-wrap label {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 40px 15px;
  font-family: "Noto Sans JP", serif;
  color: #323232;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.btn-wrap label input[type="checkbox"] {
  appearance: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background-color: #fff;
  border: none;
  border-radius: 10px;
  transition: 0.3s;
  cursor: pointer;
}

.btn-wrap label input[type="checkbox"] + span {
  position: relative;
  z-index: 1;
  transition: 0.3s;
}

.btn-wrap label:hover input[type="checkbox"],
.btn-wrap label input[type="checkbox"]:checked {
  background-color: #ff78a0;
  color: #fff;
}

.btn-wrap label:hover input[type="checkbox"] + span,
.btn-wrap label input[type="checkbox"]:checked + span {
  color: #fff !important;
}
.btn-wrap span[data-name="question3"] label:hover input[type="checkbox"]:before,
.btn-wrap span[data-name="question4"] label:hover input[type="checkbox"]:before,
.btn-wrap span[data-name="question3"] label input[type="checkbox"]:checked:before,
.btn-wrap span[data-name="question4"] label input[type="checkbox"]:checked:before {
  filter: brightness(2.5) saturate(1.2) hue-rotate(90deg);
  transition: all .3s;
}

@media screen and (max-width: 768px){
  .btn-wrap.ni .wpcf7-list-item {
    width: 100%;
  }
}

.contact-btns {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  max-width: 715px;
  margin: 40px auto 0;
}

.contact-btn-wrap {
  margin: 0 auto;
}

.contact-btn-wrap .next-btn {
  background: url("../img/btn-arrow.png") no-repeat 90% 50% / 27px 27px, #b4b4b4;
  margin-top: 0;
}

.contact-btn-wrap .next-btn::before {
  content: none;
}

.contact-btn-wrap .next-btn.completed  {
  background: url("../img/btn-arrow.png") no-repeat 90% 50% / 27px 27px, linear-gradient(90deg,#f35078, #f08fa0) border-box border-box;
  cursor: pointer;
  border:4px solid transparent;
}

.contact-btn-wrap .sagasu-btn {
  background: url("../img/btn-arrow.png") no-repeat 90% 50% / 27px 27px, linear-gradient(180deg, #5b86e5,#36d1dc );
}

.contact-btn-wrap .soudan-btn {
  background: url("../img/btn-arrow.png") no-repeat 90% 50% / 27px 27px, linear-gradient(180deg, #f35078,#f08fa0 );
}

.contact-btn-wrap .sagasu-btn::before,
.contact-btn-wrap .soudan-btn::before {
  content: none;
}

.contact-btns .prev-btn {
  display: block !important;
  background: url(../img/back-btn.png) no-repeat 10% 25% / 15px 15px !important;
}

.contact-btns .prev-btn::before {
  content: none !important;
}

.thankyou {
  width: 100%;
  background-color: #ff78a0;
  text-align: center;
}

.thankyou-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px;
}

.thankyou-content p {
  font-size: 16px;
  color: #fff;
  line-height: 1.5em;
  text-align: center;
}

@media screen and (max-width:768px){
  .question-group {
    padding: 70px 0;
  }

  .question-group.completed::before {
    height: 200svh;
  }

  .q-content .notion {
    width: 90%;
  }

  .btn-wrap .wpcf7-list-item {
    width: 100%;
  }

  .btn-wrap label {
    padding: 25px 5px;
    font-size: 18px;
  }

  .contact-btns {
    margin-top: 30px;
  }

  .contact-btn-wrap .next-btn {
    scale: 0.9;
  }

  .contact-btns-col {
    flex-direction: column-reverse;
  }

  .finish-btn {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width:480px){
  .question-group {
    padding: 50px 0;
  }

  /* .btn-wrap .wpcf7-form-control {
    gap: 7px 2%;
  } */

  .btn-wrap label {
    padding: 15px 5px;
    font-size: 16px;
  }

  .contact-btns {
    margin-top: 20px;
  }

  .contact-btn-wrap .next-btn {
    scale: 0.8;
  }

  .finish-btn {
    gap: 0;
  }
}
