/* CSS Document */
@import url("reset.css");
@import url("common.css");
@import url("styles.css");

.contact-wrap {
  background-color: var(--mainColor);
  margin-bottom: 0;
  padding-bottom: 150px;
}

.contact-wrap h2 {
  color: var(--whiteColor);
  font-size: 30px;
}

.contact {
  background: var(--whiteColor);
  border-radius: 14px;
  max-width: 1120px;
  width: 90%;
  margin: 0 auto;
  padding: 70px 70px 100px 70px;
}

.contact__overview span {
  color: #ff0000;
}

.contact__mailform {
  margin-bottom: 0;
}

.contact__mailform p.att {
  font-size: 12px;
  margin: 0;
  padding: 0;
}

.contact__mailform tr {
  border: none;
}

.contact__mailform th,
.contact__mailform td {
  display: block;
  width: 100%;
}

.contact__mailform th {
  background: none;
  color: #000000;
  text-align: left;
  padding: 0;
  font-size: 18px;
}

.contact__mailform th .hissu {
  color: #ff0000;
}

.contact__mailform td {
  padding: 10px 0 30px 0;
  font-size: 16px;
}

.contact__mailform input[type="text"],
.contact__mailform input[type="tel"],
.contact__mailform input[type="email"],
.contact__mailform .select select,
.contact__mailform .textarea textarea {
  border: 1px solid rgba(28, 162, 205, 0.1);
  border-radius: 5px;
  background: #ebf6ff;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.contact__mailform input[type="text"],
.contact__mailform input[type="email"] {
  max-width: 500px;
}

.contact__mailform input[type="tel"],
.contact__mailform .zip input,
.contact__mailform .select .select_wrapper {
  max-width: 300px;
}

.contact__mailform .select select {
  -webkit-appearance: none;
  appearance: none;
  height: 45px;
  font-size: 14px;
  font-weight: bold;
}

.contact__mailform .select .select_wrapper {
  position: relative;
}

.contact__mailform .select .select_wrapper::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 16px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--mainColor);
  border-bottom: 2px solid var(--mainColor);
  transform: rotate(45deg);
}

.contact__mailform .policy td {
  font-weight: bold;
}

.contact__mailform .policy td p {
  font-weight: normal;
}

.contact__mailform .policy .checkboxItem {
  display: flex;
  align-items: center;
  column-gap: 4px;
  width: fit-content;
  line-height: 1;
  cursor: pointer;
}

.contact__mailform .policy .checkboxItem:not(:last-of-type) {
  margin-bottom: 16px;
}

.contact__mailform .policy .checkbox {
  appearance: none;
  position: relative;
  width: 23px;
  height: 23px;
  border: 1px solid #06b6d4;
  border-radius: 4px;
  background-color: #ebf6ff;
  cursor: pointer;
}

.checkbox:checked {
  background-color: #06b6d4 !important;
}

.checkbox:checked::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 3px;
  width: 12px;
  height: 6px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(-45deg);
}

.submitbtn {
  margin: 0 auto;
  text-align: center;
}

.submitbtn input[type="submit"] {
  border: 0;
  background: var(--mainColor);
  border-radius: 30px;
  max-width: 320px;
  width: 80%;
  height: 60px;
  color: var(--whiteColor);
  font-weight: bold;
  text-align: center;
}

/* media screen */
@media screen and (max-width: 768px) {
  .contact-wrap {
    padding-bottom: 100px;
  }

  .contact-wrap h2 {
    font-size: 25px;
  }

  .contact {
    width: 95%;
    padding: 30px 30px 50px 30px;
  }

  .contact__mailform th {
    font-size: 16px;
  }

  .contact__mailform td {
    padding-bottom: 20px;
  }

  .contact__mailform input[type="text"],
  .contact__mailform input[type="tel"],
  .contact__mailform input[type="email"],
  .contact__mailform .select select,
  .contact__mailform .textarea textarea {
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .contact {
    width: 98%;
    padding: 20px 20px 40px 20px;
  }

  .contact-wrap h2 {
    font-size: 20px;
  }

  .submitbtn input[type="submit"] {
    height: 50px;
  }
}

/* mailconfirm ------------------------------------- */
.mailconfirm {
  max-width: 1000px;
}

.mailconfirm .error {
  text-align: center;
}

.mailconfirm h3 {
  border: none;
  background: #f5f5f5;
  font-size: 20px;
}

.mailconfirm h4 {
  font-size: 20px;
  color: #ff0000;
}

.mailconfirm .button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.mailconfirm .button input[type="button"],
.mailconfirm .button input[type="submit"] {
  border-radius: 30px;
  width: 200px;
  height: 50px;
  font-weight: bold;
}

.mailconfirm .button input[type="button"] {
  background: #cccccc;
  color: #000;
}

.mailconfirm .button input[type="submit"] {
  background: var(--mainColor);
  color: #fff;
}

.mailconfirm table {
  max-width: 100%;
  width: 100%;
}

.mailconfirm table th,
.mailconfirm table td {
  padding: 10px;
  font-size: 16px;
}

.mailconfirm table th {
  width: 30%;
}

@media screen and (max-width: 768px) {

  .mailconfirm h3,
  .mailconfirm h4 {
    font-size: 16px;
  }

  .mailconfirm .button {
    flex-direction: column;
  }

  .mailconfirm .button input[type="button"],
  .mailconfirm .button input[type="submit"] {
    width: 70%;
  }

  .mailconfirm table th,
  .mailconfirm table td {
    display: block;
    width: 100%;
  }

}

/* mailcomp ------------------------------------- */
.mailcomp {
  max-width: 900px;
}

.mailcomp ul {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 20px;
}

.mailcomp ul li {
  font-weight: bold;
}