@charset "utf-8";

.contactFormWrap {
  max-width: 1000px;
  margin: 0 auto;
}

#contactForm {
  & dl:not(:first-child) {
    margin-top: 30px;
  }
  & dt {
    font-weight: 500;
  }
  & dd {
    margin-top: 10px;
  }
  & input, & textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #707070;
    border-radius: 5px;
  }
}
@media screen and (width <= 768px) {
  #contactForm {
    & dl:not(:first-child) {
      margin-top: max(8vw,30px);
    }
    & dt {
      font-size: max(4.26vw,16px);
    }
    & dd {
      font-size: max(4.26vw,16px);
    }
  }
}

#contactForm .contactForm-btn {
  margin-top: 64px;
  & .contactForm-btn-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: auto;
    margin: 0 auto;
    padding: 0;
    aspect-ratio: 200/60;
    border: none;
    border-radius: 0 0 15px 0;
    background-color: #DDBFF3;
    color: var(--link-color-sub);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.33;
    overflow: hidden;
    cursor: pointer;
    &::before {
      position: absolute;
      top: 0;
      right: 0;
      width: 0;
      height: 100%;
      background-color: var(--link-color-sub);
      transition: width .3s;
      content: "";
    }
    &:hover {
      color: #FFF;
      &::before {
        left: 0;
        width: 100%;
      }
    }
    & span {
      position: relative;
    }
    & p {
      width: 100%;
      height: 100%;
      & input {
        position: relative;
        z-index: 1;
        display: block;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 0;
        padding: 0;
        background-color: transparent;
        cursor: pointer;
      }
    }
    &:hover {
      & p {
        & input {
          color: #fff;
        }
      }
    }
  }
}
@media screen and (width <= 768px) {
  #contactForm .contactForm-btn {
    margin-top: max(13.33vw,50px);
    & .contactForm-btn-inner {
      width: max(40vw,150px);
      aspect-ratio: 150/45;
      font-size: max(3.73vw,14px);
    }
  }
}

#contactForm .wpcf7 form.invalid .wpcf7-response-output, 
#contactForm .wpcf7 form.unaccepted .wpcf7-response-output, 
#contactForm .wpcf7 form.payment-required .wpcf7-response-output {
  width: min(100%, 800px);
  margin: 3em auto 0;
  border-color: var(--link-color-hover);
}


.thanks-wrap {
  width: min(800px, 100%);
  margin: 0 auto;
  & h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 1em;
  }
  & p {
    margin: 1em 0;
    line-height: 1.8;
    font-size: 16px;
  }
}
@media screen and (width <= 768px) {
  .thanks-wrap {
    & h2 {
      font-size: max(4.26vw,16px);
    }
    & p {
      font-size: max(3.73vw,14px);
    }
  }
}

.privacy {
  width: min(100%, 1000px);
  height: 300px;
  margin: 60px auto 0;
  border: 1px solid var(--color-black);
  border-radius: .5em;
  padding: .5em;
}

.privacy-wrap {
  width: 100%;
  height: 100%;
  padding: 1em;
  overflow-y: scroll;
  font-size: 14px;
  line-height: 1.8;
  & h2 {
    font-size: 1.5em;
  }
  & h3 {
    font-size: 1.2em;
    margin-top: 2em;
  }
  & p + p {
    margin-top: 1em;
  }
  & ol {
    list-style: decimal;
    margin-left: 1.2em;
    &.privacy-list {
      line-height: 1.5;
      & li {
        margin: .5em 0;
      }
    }
  }
  & dl {
    display: flex;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
    & dt {
      width: 5em;
    }
    &.note dt {
      width: 2em;
    }
    & dd {
      width: calc(100% - 5em);
    }
    &.note dd {
      width: calc(100% - 2em);;
    }
  }
  & .update_date {
    text-align: right;
    margin-top: 2em;
  }
}
@media screen and (width <= 768px) {
  .privacy-wrap {
    font-size: 12px;
  }
}