@charset "utf-8";

body{
  background-color: #F4F6F3;
}

.main {
  width: 90%;
  margin: auto;
}

.contact-wrap {
  max-width: 800px;
  margin: 150px auto;
  display: flex;
  flex-direction: column;
}

.contact-title {
  margin: auto;
  position: relative;
  font-size: clamp(2.75rem, -0.625rem + 7.0313vw, 5rem);
  font-weight: 500;
  line-height: 1;
}
.contact-title::before {
  content: "";
  position: absolute;
  display: block;
  width: 14px;
  height: 14px;
  left: -25px;
  top: -8px;
  background-color: #03BFB5;
  border-radius: 50%;
}

.contact-title p{
  margin-top: 5px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

.contact-text {
  font-size: 16px;
  margin: 61px 0 0 0;
}

.contact-text p{
  text-align: center;
}


.contact-form-wrap__contact {
  margin-top: 105px;
  color: #333333;
}

.contact-button-wrap__contact {
  margin-top: 18px;
  display: flex;
  color: #333333;

}


.contact-form-wrap__consider {
  margin-top: 57px;
  color: #333333;
}

.contact-button-wrap__consider {
  margin-top: 18px;
  display: flex;
  color: #333333;
}

.contact-form-wrap__name {
  display: flex;
  margin-top: 57px;
  gap: 40px;
  color: #333333;
}

.contact-form-wrap__text-box {
  width: 47%;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.contact-form-wrap__form-box {
  width: 100%;
  height: 64px;
  margin-top: 16px;
  background-color: #ffffff;
  border: none;
  padding: 0 0 0 20px;
  box-sizing: border-box;
}

.contact-form-wrap__company {
  display: flex;
  margin-top: 57px;
  gap: 40px;
  color: #333333;
}

.contact-form-wrap__address {
  display: flex;
  margin-top: 57px;
  color: #333333;
}

.contact-form-wrap__address .contact-form-wrap__form-box {
  width: 100%;
  height: 64px;
  margin-top: 16px;
  background-color: #ffffff;
  border: none;
}

.contact-form-wrap__number {
  display: flex;
  margin-top: 57px;
  gap: 40px;
  color: #333333;
}

.contact-form-wrap__questionnaire {
  margin-top: 57px;
  color: #333333;
}

.contact-button-wrap__questionnaire {
  margin-top: 18px;
  display: flex;
  color: #333333;
}


.contact-form-wrap__textarea {
  display: flex;
  flex-direction: column;
  margin-top: 57px;
  color: #333333;
}

.contact-form-wrap__text-box {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.contact-textarea {
  resize: none;
  margin-top: 12px;
  width: 100%;
  height: 296px;
  border: none;
  padding: 20px 0 0 20px;
  box-sizing: border-box;
}

.check-consensus {
  width: fit-content;
  margin: auto;
  margin-top: 60px;
  justify-content: center;
  color: #333333;
}

.policy-text {
  margin: auto;
  margin-top: 34px;
  color: #333333;
}
.policy-text br{
  display: none;
}
.policy-text a {
  color: #333333;
}

.submit-button {
  display: flex;
  width: 250px;
  height: 88px;
  margin: 48px auto 121px;
  background-color: #03BFB5;
  color: #fff;
  border: none;
}
.submit-button:hover {
  opacity: 0.6;
}
.submit-button:active {
  transform: scale(0.98);
}

.submit-text {
  font-size: 16px;
  font-weight: bold;
  margin: auto;
}

.required::after {
  content: "※必須";
  color: #ED7717;
  font-size: 14px;
  margin-left: 11px;
}


span.wpcf7-list-item input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #fff;
  outline: none;
  position: relative;
  vertical-align: middle;
  margin: 0 0 0 0;
}
span.wpcf7-list-item input[type="radio"]:checked::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #03BFB5;
}



.contact-button-wrap__contact .wpcf7-list-item:nth-of-type(2) {
  margin-left: 61px;
}
.contact-button-wrap__contact .wpcf7-list-item:nth-of-type(3) {
  margin-left: 39px;
}


.contact-button-wrap__consider .wpcf7-list-item:nth-of-type(2) {
  margin-left: 27px;
}
.contact-button-wrap__consider .wpcf7-list-item:nth-of-type(3) {
  margin-left: 19px;
}
.contact-button-wrap__consider .wpcf7-list-item:nth-of-type(4) {
  margin-left: 30px;
}
.contact-button-wrap__consider .wpcf7-list-item:nth-of-type(5) {
  margin-left: 28px;
}
.contact-button-wrap__consider .wpcf7-list-item:nth-of-type(6) {
  margin-left: 24px;
}


.contact-button-wrap__questionnaire .wpcf7-list-item:nth-of-type(2) {
  margin-left: 54px;
}
.contact-button-wrap__questionnaire .wpcf7-list-item:nth-of-type(3) {
  margin-left: 38px;
}
.contact-button-wrap__questionnaire .wpcf7-list-item:nth-of-type(4) {
  margin-left: 47px;
}

.wpcf7-list-item {
  margin: 0 0 0 0;
}


@media screen and (max-width: 768px) {
  .main {
    width: 90%;
    margin: auto;
  }

  .contact-title p{
    margin-top: 5px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
  }

  .contact-wrap {
    max-width: 800px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
  }

  .contact-text {
    font-size: 16px;
    margin: 49px 0 0 0;
  }

  .contact-form-wrap__contact {
    margin-top: 52px;
  }


  .contact-button-wrap__contact {
    margin-top: 21px;
    display: block;
  }

  .contact-button-wrap__contact .wpcf7-list-item:nth-of-type(-n+3){
    margin-left: 0;
  }

  .contact-form-wrap__consider {
    margin-top: 34px;
    color: #333333;
  }

  .contact-button-wrap__consider {
    margin-top: 21px;
    display: block;
  }

  .contact-form-wrap__name {
    display: block;
    margin-top: 7px;
    gap: 32px;
    color: #333333;
  }

  .contact-form-wrap__text-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 32px;
  }

  .contact-form-wrap__form-box {
    width: 100%;
    height: 64px;
    margin-top: 12px;
    background-color: #ffffff;
    border: none;
  }

  .contact-button-wrap__consider .wpcf7-list-item:nth-of-type(-n+6) {
    margin-left: 0;
  }

  .contact-form-wrap__company {
    display: block;
    margin-top: 0;
    gap: 40px;
    color: #333333;
  }

  .contact-form-wrap__address {
    display: flex;
    margin-top: 0;
    color: #333333;
  }

  .contact-form-wrap__number {
    display: block;
    margin-top: 0;
    gap: 0;
    color: #333333;
  }

  .contact-form-wrap__questionnaire {
    margin-top: 32px;
    color: #333333;
  }

  .contact-button-wrap__questionnaire {
    margin-top: 21px;
    display: block;
  }
  .contact-button-wrap__questionnaire .wpcf7-list-item:nth-of-type(-n+4){
    margin-left: 0;
  }

  .contact-form-wrap__textarea {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    color: #333333;
  }

  .contact-textarea {
    margin-top: 12px;
    width: 100%;
    height: 192px;
  }

  .check-consensus {
    width: fit-content;
    margin: auto;
    margin-top: 40px;
    justify-content: center;
    color: #333333;
  }

  .policy-text {
    margin: auto;
    text-align: center;
    margin-top: 35px;
    color: #333333;
  }
  .policy-text br{
    display: block;
  }

  .submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 60px;
    margin: 38px auto 60px;
    background-color: #03BFB5;
    color: #fff;
    border: none;
  }
  .submit-button:hover {
    opacity: 0.6;
  }

  .submit-text {
    display: flex;
    font-weight: 400;
    font-size: 15px;
    margin: auto;
  }

  .required{
    display: flex;
  }

  .required::after {
    margin: auto 0 auto auto;
    content: "※必須";
    color: #ED7717;
    font-size: 14px;
  }

  .name-required {
    display: flex;
  }

  .name-required::after {
    margin: auto 0 auto auto;
    content: "※必須";
    color: #ED7717;
    font-size: 14px;
  }

  .contact-button-wrap__contact .wpcf7-list-item,
  .contact-button-wrap__consider .wpcf7-list-item,
  .contact-button-wrap__questionnaire .wpcf7-list-item {
    display: block;
    margin: 0 0 15px 0;
  }

  .contact-button-wrap__contact .wpcf7-list-item.last,
  .contact-button-wrap__consider .wpcf7-list-item.last,
  .contact-button-wrap__questionnaire .wpcf7-list-item.last {
    margin-bottom: 0;
  }

  /* ラベルのスタイル調整 */
  .wpcf7-list-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  /* ラジオボタンとテキストの間隔 */
  .wpcf7-list-item-label {
    margin-left: 10px;
  }

}
