@charset "UTF-8";
:root {
  --brand-orange: #f08231;
  --black: #000;
  --light-blue: #08cac6;
  --bg-orange: #f0ebde;
  --max-width: 1260px;
  --max-width-2: 960px;
}

.main.contact {
  padding: 100px 18px;
  background-color: var(--bg-orange);
}

.contact-container {
  max-width: 1260px;
  margin: 0 auto;
  background: #fff;
  padding: 6% 6% 8%;
  border-radius: 10px;
}

.contact__h2 {
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 24px;
}

.contact__note {
  text-align: center;
  margin-bottom: 30px;
}

.contact__note span {
  color: var(--brand-orange);
}

/* ラベルと入力 */
form label {
  display: block;
  margin-bottom: 20px;
  font-weight: 500;
}

.contact__required {
  color: var(--brand-orange);
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 5px;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
  color: #ccc;
}

textarea {
  height: 120px;
  resize: vertical;
}

.wpcf7 form.sent .wpcf7-response-output {
  border: none;
  color: #4caf50;
}

/* プライバシーポリシー */
.contact__policy-box {
  margin-top: 30px;
}

.contact__policy-box-ttl {
  font-size: 18px;
  margin-bottom: 12px;
}

.contact__policy-scroll {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 30px;
  height: 180px;
  overflow-y: scroll;
  font-size: 14px;
  background: #f9f9f9;
  line-height: 1.6;
}

.contact__agree {
  margin-top: 15px;
}

input[type="checkbox"] {
  transform: scale(1.5);
}

/* ボタン */
.contact__submit-btn {
  display: block;
  width: 100%;
  background: var(--brand-orange);
  color: #fff;
  border: none;
  padding: 14px 0;
  font-size: 16px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 50px;
  transition: opacity 0.3s;
}

.contact__submit-btn:hover {
  opacity: 0.9;
}

@media screen and (max-width: 768px) {
  .main.contact {
    padding: 40px 18px 60px;
  }

  .contact-container {
    padding: 8% 4% 14%;
  }

  .contact__h2 {
    font-size: 24px;
    margin-bottom: 14px;
  }

  form label {
    margin-bottom: 20px;
    font-size: 14px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 14px;
    margin-top: 8px;
  }

  .contact__policy-box-ttl {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .contact__policy-scroll {
    padding: 16px 16px 24px;
    height: 200px;
  }

  .contact__submit-btn {
    margin-top: 40px;
  }
}

.wpcf7-response-output {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(164, 244, 208, 0.9);
  color: #009866;
  z-index: 1000;
  border: none !important;
  margin: 0 !important;
  padding: 16px 48px 16px 16px !important;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  background-color: rgba(255, 202, 202, 0.9);
  color: #fa2c37;
}
.wpcf7-not-valid-tip {
  font-size: 14px;
  color: #fa2c37;
}
.wpcf7-response-output:empty {
  display: none;
}
.wpcf7-response-output::after {
  content: "×";
  display: inline-block;
  width: 24px;
  height: 24px;
  position: absolute;
  top: calc(50% - 12px);
  right: 16px;
  font-size: 24px;
  line-height: 24px;
}

.wpcf7-spinner {
  position: fixed !important;
  top: 50vh;
  left: 50%;
  width: 34px !important;
  height: 34px !important;
  background-color: var(--brand-orange) !important;
}

@media screen and (max-width: 768px) {
  .wpcf7-spinner {
    left: 40%;
  }
}
