.contact-header-img {
  width: 200px;
  height: auto;
  position: absolute;
  top: 30%;
  left: 35%;
  transform: translate(-50%, -50%);
  z-index: 100;
}

.red-text {
  color: #ed2e2e;
  text-decoration: underline;
  text-decoration-color: #ed2e2e;
}

.wpcf7-form {
  justify-items: center;
  margin: 0 auto 120px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 80px;
  width: 1024px;
}

.contact-item label {
  width: 350px;
  line-height: 1.5;
  margin-top: 6px;
  font-size: 30px;
  text-align: left;
}

.contact-item label .small-text {
  font-size: 24px;
}

.wpcf7-form-control-wrap {
  width: calc(1024px - 350px);
}

.contact-item input,
.contact-item textarea {
  flex: 1;
  font-size: 16px;
  padding: 8px;
  border: 1px solid #c1c1c1;
  flex-grow: 1;
}

.required-label {
  background-color: #ed2e2e;
  color: white;
  font-size: 20px;
  padding: 1px 25px;
  border-radius: 40px;
  margin-right: 5px;
}

.wpcf7-checkbox {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  border: 2px solid #c1c1c1;
  padding: 8px;
  font-size: 16px;
  width: 100%;
  border-radius: 10px;
  height: 80%;
  background: linear-gradient(90deg, #fdfbfb 0.29%, #f1f1f1 100%);
  border-radius: 4px;
}

input[type="checkbox"] {
  width: 30px;
  height: 30px;
  border: 2px solid #c1c1c1;
  border-radius: 4px;
  background: linear-gradient(90deg, #fdfbfb 0.29%, #f1f1f1 100%);
  appearance: none;
  position: relative;
  cursor: pointer;
}

input[type="checkbox"]:checked::before {
  content: "✔";
  font-size: 20px;
  color: #ed2e2e;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

input:focus,
textarea:focus {
  border-color: #ed2e2e;
  outline: none;
}

.privacy-policy-text {
  background-color: #ebebeb;
  padding: 2em;
  font-size: 14px;
  margin: 1em 0;
  font-style: normal;
  font-weight: 400;
  width: 1024px;
}

.agree-button .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpcf7-list-item-label {
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
}

input[type="submit"] {
  color: #000;
  padding: 10px 155px;
  margin-top: 70px;
  border: 2px solid #000;
  border-radius: 100px;
  cursor: pointer;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 15px;
  transition: background-color 0.3s, color 0.3s;
}

input[type="submit"]:hover {
  background-color: #d43333;
  color: #fff;
  border: 2px solid #fff;
}

input[type="submit"]:disabled {
  color: #888;
  background-color: #ccc;
  border: 3px solid #888;
  cursor: not-allowed;
}

input[type="submit"]:disabled:hover {
  background-color: #ccc;
  color: #888;
}

.submit-button input {
  display: block;
}

.wpcf7-response-output {
  border-color: transparent !important;
  color: #ed2e2e;
}

/* 1024px以下 */
@media screen and (max-width: 1024px) {
  .contact-header-img {
    width: 150px;
    height: auto;
  }

  .contact-contents {
    display: flex;
    justify-content: center;
  }

  .contact-item {
    display: block;
    width: 768px;
    margin: 0 auto 40px;
  }

  .contact-item label {
    width: auto;
    display: block;
    margin-bottom: 20px;
  }

  .privacy-policy-text {
    width: 768px;
  }
}

/* 768px以下 */
@media screen and (max-width: 768px) {
  .contact-header-img {
    top: 20%;
    left: 50%;
  }

  .contact-item {
    width: 300px;
    margin: 0 auto 20px;
  }

  .contact-item label {
    font-size: 20px;
  }

  .contact-item label .small-text {
    font-size: 16px;
  }

  .wpcf7-checkbox label {
    margin-bottom: 10px;
  }

  .privacy-policy-text {
    width: 300px;
    margin: 0 auto;
  }

  .agree-button {
    width: 350px;
  }

  .wpcf7-list-item-label {
    font-size: 18px;
  }

  input[type="submit"] {
    padding: 10px 130px;
  }

  .agree-button .wpcf7-list-item label {
    width: 300px;
  }

  .wpcf7-list-item {
    margin: 0 0 0 1.5em;
  }
}
