@charset "utf-8";

.p-contact__main {
  padding: 50px 0 50px;
  height: auto;
  background: url('../images/index/about-bg.svg') no-repeat top center / 140%, linear-gradient(white 5%, #ebf7fc 5%, #ebf7fc 50%, #ebf7fc 100%);
  position: relative;
}

@media screen and (min-width: 768px) {
  .p-contact__main {
    padding: 100px 0 50px;
    background: url('../images/index/about-bg.svg') no-repeat top center / 100%, linear-gradient(white 5%, #ebf7fc 5%, #ebf7fc 50%, #ebf7fc 100%);
    height: auto;
  }
}

.p-contact__main .tel-area .tel {
  font-size: 28px;
  font-weight: bold;
}

.p-contact__main .tel-area .tel a {
  color: black;
}

.p-contact__main .form-area {
  margin-top: 80px;
}

.p-contact__main .form-area .lead {
  margin-top: 10px;
} 

.p-contact__main .form-area .form-main {
  margin-top: 30px;
} 

.p-contact .footer-3 {
    padding: 3rem 2rem 1rem;
    margin-top: 0;
}

.thanks-link {
  margin-top: 30px;
}

.thanks-link a {
  color: #29abe2;
}


@media screen and (min-width: 1024px) {
  .c-form__item {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 20px;
  }
}

.c-form__item dt {
  font-size: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 20px;
}

@media screen and (min-width: 1024px) {
  .c-form__item dt {
    margin-top: 0;
  }
}

.c-form__item dt span {
  width: 40px;
  font-size: 10px;
  text-align: center;
  line-height: 17px;
  color: white;
  background-color: red;
  border-radius: 3px;
  margin-left: 10px;
  display: inline-block;
}

.c-form__item dd {
  margin-top: 5px;
}

@media screen and (min-width: 1024px) {
  .c-form__item dd {
    margin-top: 0;
    line-height: 50px;
  }
}

.c-form__item dd [type=text], .c-form__item dd select, .c-form__item dd textarea, .c-form__item dd input[name="your-zip"],
.c-form__item dd [type=tel],
.c-form__item dd [type=number],
.c-form__item dd [type=email] {
  width: 100%;
  height: 45px;
  font-size: 16px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background-color: white;
  border-radius: 5px;
  padding: 10px 15px;
}

@media screen and (min-width: 1024px) {
  .c-form__item dd [type=text], .c-form__item dd select, .c-form__item dd textarea, .c-form__item dd input[name="your-zip"],
  .c-form__item dd [type=tel],
  .c-form__item dd [type=number],
  .c-form__item dd [type=email] {
    height: 50px;
  }
}

.c-form__item dd select {
  cursor: pointer;
  color: rgba(0, 0, 0, 0.4);
  line-height: normal;
}

@media screen and (min-width: 768px) {
  .c-form__item dd select {
    width: 100%;
    max-width: 280px;
  }
}

.c-form__item dd select option {
  color: black;
}

.c-form__item dd select option:first-child {
  color: rgba(0, 0, 0, 0.4);
}

.c-form__item dd select.is-select {
  color: black;
}

.c-form__item dd textarea {
  height: 150px;
}

.c-form__item dd input[type=file] {
  cursor: pointer;
}

.c-form__item dd input[name="your-zip"] {
  width: 150px;
}

.c-form__item dd input[type="radio"] {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 100vh;
  vertical-align: -4px;
}

.c-form__item dd input[type="radio"]:checked:before {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 100vh;
  background: black;
  content: '';
}

.c-form__item dd label {
  cursor: pointer;
}

.c-form__item dd input::-webkit-input-placeholder, .c-form__item dd textarea::-webkit-input-placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.c-form__item dd input::-moz-placeholder, .c-form__item dd textarea::-moz-placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.c-form__item dd input:-ms-input-placeholder, .c-form__item dd textarea:-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.c-form__item dd input::-ms-input-placeholder, .c-form__item dd textarea::-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.c-form__item dd input::placeholder,
.c-form__item dd textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.c-form__item dd .wpcf7-form-control-wrap {
  width: 100%;
}

.c-form__item-age {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px 20px;
}

.c-form__item-age div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.c-form__item-age div:after {
  right: 35px;
}

.c-form__item-age div .add {
  line-height: 45px;
  padding-left: 5px;
}

@media screen and (min-width: 768px) {
  .c-form__item-age div .add {
    line-height: 50px;
  }
}

.c-form__item-select {
  position: relative;
}

.c-form__item-select:after {
  content: '';
  width: 8px;
  height: 8px;
  display: block;
  position: absolute;
  right: 20px;
  top: 20px;
  -webkit-transform: translateY(-50%) rotate(45deg);
  transform: translateY(-50%) rotate(45deg);
  border-bottom: 1px solid black;
  border-right: 1px solid black;
  z-index: 1;
}

@media screen and (min-width: 768px) {
  .c-form__item-select:after {
    top: 24px;
  }
}

.c-form__item-text {
  font-size: 13px;
  margin-top: 10px;
  margin-left: 1em;
  text-indent: -1em;
}

@media screen and (min-width: 768px) {
  .c-form__item-text {
    line-height: 1.4;
  }
}

.c-form__button {
  margin-top: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.c-form__button .confirm {
  width: 100%;
  max-width: 260px;
  font-size: 16px;
  font-weight: bold;
  line-height: 60px;
  text-align: center;
  border: none;
  border-radius: 100vh;
  color: white;
  background-color: #29abe2;
  margin-bottom: 10px;
  display: block;
  cursor: pointer;
  -webkit-transition: .3s;
  transition: .3s;
}

.c-form__button .confirm:hover {
  opacity: .7;
}

.c-form__button .confirm:disabled {
  background-color: rgba(0, 0, 0, 0.4);
}

.wpcf7 form .wpcf7-response-output {
  color: var(--caution);
  border: none;
}

@media screen and (min-width: 768px) {
  .wpcf7 form .wpcf7-response-output {
    text-align: center;
  }
}

.wpcf7 form .wpcf7-not-valid-tip {
  font-size: 12px;
  line-height: normal;
  padding-top: 5px;
}

.c-recaptcha {
  font-size: 11px;
  text-align: center;
  margin-top: 50px;
}

@media screen and (min-width: 768px) {
  .c-recaptcha {
    font-size: 12px;
  }
}

.c-recaptcha a {
  color: #29abe2;
}

.c-recaptcha a:hover {
  text-decoration: underline;
}
