/* ========================================
  Contact Info (電話・LINE カード)
======================================== */
.contact-info {
  background: #f5f1e9;
  padding: 5rem 0 9rem;
}

.contact-info__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info__card {
  background: #fff;
  border-radius: 1.6rem;
  padding: 4rem 5rem 5.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.6rem;
  overflow: hidden;
}

.contact-info__lead {
  font-size: 1.8rem;
  font-weight: 500;
  color: #44403c;
  text-align: center;
  line-height: 1.9;
}

.contact-info__methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7rem;
  width: 100%;
}

.contact-info__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info__phone-label {
  font-size: 1.8rem;
  font-weight: 700;
  color: #44403c;
  letter-spacing: 0.05em;
  line-height: 1.9;
}

.contact-info__phone-number {
  font-family: 'Poppins', sans-serif;
  font-size: 4.3rem;
  font-weight: 600;
  color: #44403c;
  line-height: 1;
  margin-top: 1.6rem;
}

.contact-info__phone-note {
  font-size: 1.4rem;
  font-weight: 700;
  color: #44403c;
  text-align: center;
  line-height: 1;
  margin-top: 0.4rem;
}

.contact-info__divider {
  width: 1px;
  height: 11rem;
  background: #ECE6DB;
  flex-shrink: 0;
}

.contact-info__line {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info__line-label {
  font-size: 1.6rem;
  font-weight: 700;
  color: #44403c;
  letter-spacing: 0.05em;
  line-height: 1.9;
}

.contact-info__line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 27.4rem;
  padding: 1.4rem 4rem;
  background: #06c755;
  border-radius: 9999px;
  margin-top: 1.7rem;
  transition: opacity 0.3s ease;
}

.contact-info__line-btn:hover {
  opacity: 0.8;
}

.contact-info__line-btn span {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.33;
}

.contact-info__line-en {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.contact-info__line-icon {
  width: 2.4rem;
  height: 2.2rem;
}

/* ========================================
  Contact Form (フォームセクション)
======================================== */
.contact-form {
  background: #fff;
  padding: 6rem 0 8rem;
}

.contact-form__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form__lead {
  font-size: 1.8rem;
  font-weight: 500;
  color: #44403c;
  text-align: center;
  line-height: 1.9;
  margin-bottom: 4rem;
}

.contact-form__body {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

/* --- Form Row --- */
.contact-form__row {
  display: flex;
  align-items: flex-start;
  padding-bottom: 3.3rem;
  border-bottom: 1px solid #ECE6DB;
}

/* --- Label --- */
.contact-form__label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 26rem;
  flex-shrink: 0;
  padding-top: 1.5rem;
}

.contact-form__label-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: #44403c;
  line-height: 1;
}

.contact-form__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.8rem 0.2rem 0.9rem;
  background: #ef4444;
  border-radius: 0.4rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.6;
}

/* --- Field --- */
.contact-form__field {
  flex: 1;
  width: 100%;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea,
.contact-form__field .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  padding: 1.5rem 1.7rem;
  background: #fbf8f3;
  border: 1px solid #ECE6DB;
  border-radius: 0.6rem;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #44403c;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus,
.contact-form__field .wpcf7-form-control:focus {
  //border-color: #f87a3b;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder,
.contact-form__field .wpcf7-form-control::placeholder {
  color: #757575;
}

.contact-form__select,
.contact-form__field select.wpcf7-form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2344403c' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.7rem center;
  padding-right: 4rem;
  cursor: pointer;
}

.contact-form__textarea,
.contact-form__field textarea.wpcf7-form-control {
  height: 20rem;
  resize: vertical;
}

/* CF7のspan wrapperが幅を潰さないように */
.contact-form__field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* --- Submit --- */
.contact-form__submit {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* CF7 [submit] は <input type="submit"> を生成するため、link-arrow を CSS で再現 */
.contact-form__submit .wpcf7-submit {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  background-image: url('../img/common/link-arrow.svg');
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 3rem 3rem;
  border: none;
  border-bottom: 1px solid #44403c;
  padding: 0 4.3rem 0.8rem 0;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #44403c;
  line-height: 1.8;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.contact-form__submit .wpcf7-submit:hover {
  opacity: 0.7;
}

/* ========================================
  Contact Form 7 — バリデーション・メッセージ
======================================== */

/* エラー時のボーダー */
.wpcf7-not-valid {
  border-color: #ef4444 !important;
}

/* 各フィールド下のエラーメッセージ */
.wpcf7-not-valid-tip {
  display: block;
  font-size: 1.3rem;
  font-weight: 500;
  color: #ef4444;
  margin-top: 0.6rem;
  line-height: 1.4;
}

/* 送信後のレスポンスメッセージ（成功・失敗共通） */
.wpcf7-response-output {
  margin: 3rem 0 0 !important;
  padding: 1.6rem 2rem !important;
  border-radius: 0.6rem !important;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

/* 送信成功 */
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #06c755 !important;
  color: #06c755;
  background: #f0fdf4;
}

/* バリデーションエラー */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: #ef4444 !important;
  color: #ef4444;
  background: #fef2f2;
}

/* 送信失敗（サーバーエラー等） */
.wpcf7 form.failed .wpcf7-response-output {
  border-color: #ef4444 !important;
  color: #ef4444;
  background: #fef2f2;
}

/* スピナー（送信中） */
.wpcf7-spinner {
  display: inline-block;
  margin-left: 1rem;
  vertical-align: middle;
}

/* ========================================
  SP Responsive (max-width: 767px)
======================================== */
@media (max-width: 767px) {

  /* Contact Info SP */
  .contact-info {
    padding: 3rem 0 5rem;
  }

  .contact-info__inner {
    padding: 0 2rem;
  }

  .contact-info__card {
    padding: 3rem 2rem 3.6rem;
    gap: 2.4rem;
    border-radius: 1.2rem;
  }

  .contact-info__lead {
    font-size: 1.5rem;
  }

  .contact-info__methods {
    flex-direction: column;
    gap: 2.4rem;
  }

  .contact-info__divider {
    width: 100%;
    height: 1px;
  }

  .contact-info__phone-label {
    font-size: 1.5rem;
  }

  .contact-info__phone-number {
    font-size: 3.2rem;
    margin-top: 1rem;
  }

  .contact-info__phone-note {
    font-size: 1.2rem;
  }

  .contact-info__line-label {
    font-size: 1.5rem;
  }

  .contact-info__line-btn {
    width: 100%;
    max-width: 27.4rem;
    padding: 1.2rem 3rem;
    font-size: 2rem;
  }

  .contact-info__line-btn span {
    font-size: 2rem;
  }

  /* Contact Form SP */
  .contact-form {
    padding: 4rem 0 6rem;
  }

  .contact-form__inner {
    padding: 0 2rem;
  }

  .contact-form__lead {
    font-size: 1.5rem;
    margin-bottom: 3rem;
  }

  .contact-form__body {
    gap: 2rem;
  }

  .contact-form__row {
    flex-direction: column;
    gap: 0.8rem;
    padding-bottom: 2rem;
  }

  .contact-form__label {
    width: 100%;
    padding-top: 0;
  }

  .contact-form__label-text {
    font-size: 1.5rem;
  }

  .contact-form__input,
  .contact-form__select,
  .contact-form__textarea,
  .contact-form__field .wpcf7-form-control:not(.wpcf7-submit) {
    font-size: 1.5rem;
    padding: 1.2rem 1.4rem;
  }

  .contact-form__select,
  .contact-form__field select.wpcf7-form-control {
    background-position: right 1.4rem center;
    padding-right: 3.5rem;
  }

  .contact-form__textarea,
  .contact-form__field textarea.wpcf7-form-control {
    height: 16rem;
  }

  .contact-form__submit {
    margin-top: 1rem;
  }

  .contact-form__submit .wpcf7-submit {
    font-size: 1.5rem;
    background-size: 2.6rem 2.6rem;
    padding-right: 3.8rem;
  }
}