* {
  -webkit-appearance:none;
}

.contact {
  padding: 315px 0 250px;
}

.contact .bg {
  width: 71.560846560846561vw;
  height: auto;
  aspect-ratio: 1623/768;
  position: absolute;
  top: 0;
  left: 20.105820105820106vw;
  z-index: -1;
}

.contact .heading {
  width: calc(100% - 60px);
  max-width: 900px;
  margin: auto;
  font-family: var(--neue-haas);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.contact .inner-wrap {
  width: calc(100% - 60px);
  max-width: 640px;
  margin: auto;
}

.contact .table-container {
  margin: 150px 0 0;
  display: flex;
  flex-direction: column;
  gap: 30px 0;
}

.contact .column {
  display: inline-flex;
  flex-direction: column;
  gap: 3px 0;
}

.contact .column .label {
  font-size: 12px;
  color: #555;
  letter-spacing: 0.1em;
  position: relative;
}

.contact .column .input {
  width: 100%;
  height: 48px;
  padding: 15px;
  box-sizing: border-box;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #555;
  background-color: #eee;
  border: none;
  border-radius: 3px;
}

.contact .column .textarea {
  width: 100%;
  height: 120px;
  padding: 15px;
  box-sizing: border-box;
  resize: none;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #555;
  background-color: #eee;
  border: none;
  border-radius: 3px;
}

.contact .column .input:focus-visible,
.contact .column .textarea:focus-visible {
  outline: none;
  border: solid 1px #ccc;
}

.contact .column .label::before {
  content: "※";
  display: inline-block;
  font-size: 10px;
  transform-origin: top center;
  transform: scale(.8);
  color: #FF3D00;
  position: absolute;
  top: -2px;
  right: -11px;
}

.contact .privacy-policy {
  margin: 50px 0 0;
}

.contact .privacy-policy .textarea {
  display: block;
  width: 100%;
  height: 300px;
  resize: none;
  padding: 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 2;
  background-color: #eee;
  border: none;
  border-radius: 3px;
  cursor: default;
}

.contact .privacy-policy .textarea:focus-visible {
  border: none;
  outline: none;
}

.contact .submit-container {
  margin: 50px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact .checkbox-wrap {
  display: flex;
  align-items: center;
}

.contact .checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  margin: 0 6px 0 0;
  background-color: #eee;
  cursor: pointer;
  position: relative;
}

.contact .checkbox-wrap input[type="checkbox"]:checked:before {
  content: "";
  width: 1px;
  height: 7px;
  transform: rotate(-40deg);
  background-color: #555;
  position: absolute;
  top: 6px;
  left: 5.5px;
}

.contact .checkbox-wrap input[type="checkbox"]:checked::after {
  content: "";
  width: 1px;
  height: 10px;
  transform: rotate(40deg);
  background-color: #555;
  position: absolute;
  top: 3.5px;
  left: 10.5px;
}


.contact .checkbox-wrap .label {
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.contact .checkbox-wrap .label .text-link {
  text-decoration: none;
  font-weight: bold;
  color: #555;
  position: relative;
}

.contact .checkbox-wrap .label .text-link::after {
  content: "";
  width: 100%;
  height: 1px;
  background-color: #555;
  position: absolute;
  bottom: -1px;
  left: 0;
}

.contact .checkbox-wrap .label .text-link:hover::after {
  animation: underlineAnim 800ms cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes underlineAnim {
  0%,49.3% {
      transform-origin: right
  }

  49.6%,100% {
      transform-origin: left
  }

  49%,50% {
      transform: scaleX(0)
  }

  100% {
      transform: scaleX(1)
  }
}

.contact .submit-wrap input[type="submit"] {
  display: block;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #fff;
  width: 200px;
  height: 50px;
  border: none;
  border-radius: 3px;
  pointer-events: none;
  background-color: #ddd;
  cursor: pointer;
  transition: background 300ms ease;
}

.contact .inner-wrap.agree .submit-wrap input[type="submit"] {
  background-color: #000;
  pointer-events: auto;
}

.contact .inner-wrap.agree .submit-wrap input[type="submit"]:hover {
  background-color: #4F5254;
}

@media screen and (max-width: 980px) {
  .contact {
    padding: 200px 0 150px;
  }
  
  .contact .bg {
    width: 85.641025641025641vw;
    aspect-ratio: 668/648;
    top: 0;
    left: auto;
    right: 0;
  }

  .contact .table-container {
    margin: 100px 0 0;
  }

  .contact .submit-container {
    margin: 30px 0 0;
    flex-direction: column;
    gap: 50px 0;
  }

  .contact .submit-wrap {
    width: 100%;
    max-width: 333px;
    height: 50px;
  }

  .contact .submit-wrap input[type="submit"] {
    display: block;
    width: 100%;
    max-width: 330px;
    height: 50px;
  }
}

