@charset "utf-8";

.contact-sec1 {
  padding: 100px 0;
  @media (max-width: 960px) {
    padding: 50px 0;
  }
  .contact-sec1__text {
    text-align: center;
  }
}

.contact-sec2 {
  padding: 130px 0;
  background: url(../img/contact/sec2-bg.webp) no-repeat;
  background-size: 100% 100%;
  @media (max-width: 960px) {
    background: url(../img/contact/sec2-bg-sp.webp) no-repeat;
    background-size: 100% 100%;
    padding: 50px 0;
  }
}

.c-form-table {
  max-width: 1100px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  font-family: 'dnp-shuei-mgothic-std', sans-serif;
  font-weight: 700;
  @media (max-width: 960px) {
    grid-template-columns: 1fr;
  }
  .form-item {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1/-1;
    gap: 70px;
    align-items: flex-start;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #c4b578;
    @media (max-width: 960px) {
      gap: 10px;
      padding-bottom: 16px;
      margin-bottom: 16px;
    }
  }
  .form-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
  }
  .title-wrapper {
    display: grid;
    grid-template-columns: 55px 1fr;
    align-items: center;
    gap: 1rem;
    @media (max-width: 960px) {
      gap: 8px;
    }
    .label {
      width: 54px;
      background-color: #a92e2b;
      color: #fff;
      text-align: center;
      font-size: 12px;
      font-weight: 300;
      border-radius: 5px;
      padding: 2px 10px;
    }
    .title {
      @media (max-width: 960px) {
        font-size: 16px;
      }
    }
  }
  .input-wrapper {
    .wpcf7-form-control {
      width: 100%;
    }
    input[type='text'],
    input[type='tel'],
    input[type='email'],
    textarea {
      border-radius: 4px;
      border: 1px solid #b2b2b2;
      padding: 4px;
      font-weight: 400;
    }
    .wpcf7-select {
      border-radius: 4px;
      border: 1px solid #b2b2b2;
      padding: 4px;
      font-weight: 400;
    }
  }
}
.acceptance-wrapper {
  text-align: center;
  margin-bottom: 50px;
  .wpcf7-list-item {
    margin: 0;
  }
}

.wpcf7-submit {
  cursor: pointer;
  border: none;
  --bg-color: var(--brown2);
  --color: #fff;
  --r: 100vmax;
  background-color: var(--bg-color);
  color: var(--color);
  border-radius: var(--r);
  padding: 18px 1rem;
  width: 300px;
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  font-family: 'dnp-shuei-mgothic-std', sans-serif;
  position: relative;
  /* @media (any-hover: hover) {
    &:hover {
      transition: opacity 0.3s;
      opacity: 0.7;
    }
  } */
}
.button-wrapper:has(.wpcf7-submit) {
  width: fit-content;
  height: 54px;
  margin-inline: auto;
  position: relative;
  transition: opacity 0.3s;
  &::after {
    content: '';
    background: url(../img/icon-arrow.svg) no-repeat center / contain;
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 16px;
    translate: -0% -50%;
    display: block;
    width: 40px;
    height: 40px;
    pointer-events: none;
  }
}
@media (any-hover: hover) {
  .button-wrapper:has(.wpcf7-submit):hover {
    opacity: 0.7;
  }
}

.contact-sec3 {
  padding: 100px 0;
  @media (max-width: 960px) {
    padding: 50px 0;
  }
  .contact-sec3__body {
    width: min(90%, 760px);
    margin-inline: auto;
    padding: 20px;
    border-radius: 5px;
    background-color: #e0d2b5;
    @media (max-width: 960px) {
      padding: 8px;
    }
  }
  .contact-sec3__inner {
    background-color: #fff;
    border-radius: 5px;
    padding: 50px 30px 40px;
    font-family: 'dnp-shuei-mgothic-std', sans-serif;
    font-weight: 700;
    text-align: center;
    @media (max-width: 960px) {
      padding: 20px 10px;
    }
  }
  .contact-sec3__title {
    font-size: 28px;
    color: #816354;
    margin-bottom: 40px;
    @media (max-width: 960px) {
      font-size: 16px;
      margin-bottom: 10px;
    }
  }
  .contact-sec3__tel {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    line-height: 1;
    margin-bottom: 10px;
    @media (max-width: 960px) {
      font-size: 26px;
    }
    .icon {
      margin-right: 16px;
      @media (max-width: 960px) {
        width: 21px;
        margin-right: 5px;
      }
    }
  }
  .contact-sec3__text {
    font-size: 18px;
    text-align: center;
    @media (max-width: 960px) {
      font-size: 11px;
    }
  }
}
