@charset "UTF-8";

/* 共通スタイル */
.contact .section__inner {
  max-width: 865px;
  width: 100%;
  padding: 0 20px;
}
.contact-message {
  margin-top: 40px;
  font-size: 2rem;
  text-align: center;
  line-height: calc(36 / 20);
}
.contact-message span.ib {
  display: block;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background-color: #eeeeee;
  padding: 19px 15px;
  border: none;
  border-radius: 0;
  font-size: 1.4rem;
}
.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
  color: #ccc;
}
.contact-form textarea {
  resize: none;
  height: 170px;
}
.contact-form {
  margin-top: 40px;
}
.contact-form table {
  width: 100%;
}
.contact-form th,
.contact-form td {
  padding: 12px 0;
}
.contact-form th {
  font-size: 2.4rem;
  font-weight: 400;
  line-height: normal;
  width: 31.55%;
  text-align: left;
  vertical-align: middle;
}
.contact-form tr[data-wrapper="contents"] th {
  vertical-align: top;
}
.contact-form tr[data-wrapper="contents"] td p {
  line-height: 1.5;
}
.contact-form td {
  width: calc(31.55% - 30px);
  padding-left: 30px;
}
.contact-form td span.is-error {
  display: block;
  color: red;
  margin-bottom: 10px;
}
.contact-form .label-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-form label {
  font-size: 1.6rem;
  line-height: normal;
}
.contact-form label input {
  appearance: none;
  margin: 0;
  width: 0;
  height: 0;
}
.contact-form label span {
  position: relative;
  padding-left: 48px;
  cursor: pointer;
}
.contact-form label span::before,
.contact-form label span::after {
  position: absolute;
  content: "";
}
.contact-form label span::before {
  width: 24px;
  height: 24px;
  border: solid 1px #333;
  background-color: #fff;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.contact-form label span::after {
  width: 10px;
  height: 15px;
  border-right: solid 2px #333;
  border-bottom: solid 2px #333;
  top: 50%;
  left: 7px;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0;
}
.contact-form label input:checked + span::after {
  opacity: 1;
}
.contact-form .btn-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.contact-form .btn-area input {
  max-width: 215px;
  width: 100%;
  border-radius: 100px;
  text-align: center;
  padding: 15px 10px;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}
.contact-form .btn-area input#submit,
.confirm .contact-form .submit-btn {
  background-color: #64b200;
  border: solid 2px #64b200;
  color: #fff;
  transition:
    background-color 0.5s,
    color 0.5s;
}
@media (hover: hover) and (pointer: fine) {
  .contact-form .btn-area input#submit:hover,
  .confirm .contact-form .submit-btn:hover {
    background-color: #fff;
    color: #64b200;
    transition:
      background-color 0.5s,
      color 0.5s;
  }
}
.contact-form .btn-area input#reset,
.confirm .contact-form .return-btn {
  background-color: #fff;
  color: #64b200;
  border: solid 2px #64b200;
  transition:
    background-color 0.5s,
    color 0.5s;
}
@media (hover: hover) and (pointer: fine) {
  .contact-form .btn-area input#reset:hover,
  .confirm .contact-form .return-btn:hover {
    background-color: #64b200;
    color: #fff;
    transition:
      background-color 0.5s,
      color 0.5s;
  }
}

@media screen and (max-width: 769px) {
  .contact-form th,
  .contact-form td {
    display: block;
    width: 100%;
  }
  .contact-form th {
    font-size: 2rem;
  }
  .contact-form th br {
    display: none;
  }
  .contact-form td {
    padding-left: 0px;
    padding-top: 0;
  }
  .contact-form .label-wrap {
    flex-direction: row;
    gap: 20px;
  }
  .contact-form label span {
    padding-left: 30px;
  }
  .contact-form .btn-area {
    flex-direction: column;
  }
}
@media screen and (max-width: 576px) {
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    padding: 15px;
  }
  .contact-message {
    font-size: 1.3rem;
  }
  .contact-message br.pc {
    display: none;
  }
  .contact-form th {
    font-size: 1.4rem;
  }
  .contact-form th br {
    display: block;
  }
  .contact-form td {
    font-size: 1.4rem;
  }
  .contact-form td span.is-error {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  .contact-form label span {
    font-size: 1.4rem;
  }
  .contact-form label span::before {
    width: 18px;
    height: 18px;
  }
  .contact-form label span::after {
    width: 8px;
    height: 12px;
    left: 5px;
  }
  .contact-form .btn-area input {
    font-size: 1.4rem;
  }
}

/* 入力確認画面 */
.confirm .contact-form td {
  vertical-align: middle;
}
.confirm .contact-form .return-btn,
.confirm .contact-form .submit-btn,
.confirm .contact-form #sendmail {
  display: block;
  max-width: 215px;
  width: 100%;
}
.confirm .contact-form .return-btn,
.confirm .contact-form .submit-btn {
  border-radius: 100px;
  text-align: center;
  padding: 15px 10px;
  font-size: 1.6rem;
  cursor: pointer;
}

/* 送信完了画面 */
.thanks-title,
.thanks-message {
  text-align: center;
}
.thanks-title {
  font-size: 2rem;
}
.thanks-message {
  font-size: 1.6rem;
  line-height: 2;
  margin-top: 30px;
}
.thanks-button {
  display: block;
  max-width: 215px;
  width: 100%;
  margin: 40px auto 0;
  border: solid 2px #64b200;
  background-color: #64b200;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  border-radius: 100px;
  transition:
    background-color 0.5s,
    color 0.5s;
}
.thanks-button:hover {
  background-color: #fff;
  color: #64b200;
  transition:
    background-color 0.5s,
    color 0.5s;
}
@media screen and (max-width: 576px) {
  .thanks-message {
    font-size: 1.4rem;
  }
  .thanks-message span.ib {
    display: block;
  }
  .thanks-message span.ib + br {
    display: none;
  }
}