/* ========================================
Contact
======================================== */

.contact-wrapper {
  padding: clamp(140px, 12vw, 220px) max(20px, 6.21vw)
    clamp(12rem, 14.29vw, 20rem);
}

.contact-en {
  font-size: clamp(2rem, 1.714vw, 3rem);
  line-height: 1.5;
}

.contact-area {
  margin-top: clamp(6rem, 6.86vw, 9.6rem);
  display: grid;
  grid-template-columns: 46.3% 51.1%;
  column-gap: clamp(2rem, 2.14vw, 3rem);
}

/* left */

.contact-title {
  font-size: clamp(2.4rem, 2.143vw, 3.6rem);
  line-height: 1.5;
}

/* mask */

.line-mask {
  overflow: hidden;
}

/* line animation */

.js-line {
  display: block;

  transform: translateY(20px);
  opacity: 0;

  transition:
    transform 2.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 2s ease;
}

.js-line.is-show {
  transform: translateY(0);
  opacity: 1;
}

.contact-description {
  margin-top: 3rem;
  font-size: 1.4rem;
  line-height: 2.25;
}

/* right */

.contact-introduction {
  font-size: clamp(1.4rem, 1.143vw, 1.6rem);
  line-height: 2;
}

/* form */

.contact-form {
  margin-top: 8rem;
}

.contact-field + .contact-field {
  margin-top: 5rem;
}

.contact-field label {
  display: block;
  margin-bottom: 1.6rem;
  font-size: clamp(1.4rem, 1.143vw, 1.6rem);
  line-height: 1.5;
}

.contact-field label span {
  color: #dc3232;
}

.contact-field input,
.contact-field textarea,
.contact-field select {
  width: 100%;
  border: 1px solid #d9d9d9;
  background: transparent;
  font-size: 1.5rem;
  padding: 0 2rem;
}

/* input */

.contact-field input,
.contact-field select {
  height: 6rem;
}

/* textarea */

.contact-field textarea {
  height: 30rem;
  padding-top: 2rem;
  resize: vertical;
  line-height: 1.5;
}
/* bottom */

.contact-bottom {
  margin-top: 6rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

/* check */

.contact-check {
  font-size: 1.4rem;
  line-height: 1.5;
}

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

.contact-check label {
  display: flex;
  align-items: center;
  gap: 2rem;

  cursor: pointer;
}

/* checkbox */

.contact-check input[type="checkbox"] {
  width: 3rem;
  height: 3rem;

  border: 1px solid #d9d9d9;

  appearance: none;
  -webkit-appearance: none;

  background: #fff;

  cursor: pointer;

  position: relative;
}

.contact-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  width: 0.5rem;
  height: 1rem;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  top: 25%;
  left: 40%;
  transform: rotate(45deg);
}

/* privacy link */

.contact-check a {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.contact-check a:hover {
  opacity: 0.5;
  transition: 0.2s;
}

/* ----------------------------------------
submit
---------------------------------------- */

.contact-submit {
  width: min(100%, 24rem);
}

.contact-submit input {
  font-family: "dnp-shuei-gothic-gin-std", sans-serif;
  width: 100%;
  border-radius: 3px;
  height: 8rem;
  border: none;
  background: #d9d9d9;
  color: #999;
  font-size: 1.8rem;
  font-weight: 500;
  cursor: not-allowed;
  transition:
    background 0.4s,
    color 0.4s,
    opacity 0.4s;
}

/* disabled */

.contact-submit input:disabled {
  background: #d9d9d9;
  color: #999;
  cursor: not-allowed;
  opacity: 1;
}

/* active */

.contact-submit input:not(:disabled) {
  background: #000000;
  color: #fff;
  cursor: pointer;
}

/* hover */

.contact-submit input:not(:disabled):hover {
  opacity: 0.7;
}

/* placeholder */

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgb(0, 0, 0, 0.5);
  font-size: 1.5rem;
  line-height: 1.8;
  font-weight: 400;
}

/* select */

.contact-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 6rem;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.5' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 2rem center;
  background-size: 1.4rem;
}

/* エラーメッセージ */

.wpcf7-not-valid-tip {
  margin-top: 1rem;

  font-size: 1.4rem;
  line-height: 1.6;
}

/* レスポンシブ */

@media screen and (max-width: 1024px) {
  .contact-area {
    grid-template-columns: 1fr;
    row-gap: 4.8rem;
  }
}

@media screen and (max-width: 768px) {
  .contact-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-submit {
    width: 100%;
  }
}

@media screen and (max-width: 599px) {
  .contact-wrapper {
    padding: 6rem 3rem 7.6rem;
  }
  .contact-area {
    margin: 4.8rem auto 0;
    row-gap: 0;
  }
  .contact-form {
    margin-top: 4.8rem;
  }
  .contact-field + .contact-field {
    margin-top: 3.6rem;
  }
  .contact-field select,.contact-field textarea {
    font-size: 1.4rem;
  }
  .contact-bottom {
    margin-top: 3.6rem;
  }
  .contact-submit input {
    font-size: 1.5rem;
    height: 6rem;
  }
}
