@charset "UTF-8";

/* ==============================
   お問い合わせページ
============================== */
.contact {
  padding: 100px 200px;
}

.contact__inner {
  max-width: 966px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

/* --- リード文 --- */
.contact__lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-black);
  text-align: center;
  width: 100%;
}

/* --- フォーム全体 --- */
.contact__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* --- フォームボックス（グレー背景） --- */
.contact__form-box {
  width: 100%;
  background-color: var(--color-bg-light);
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* --- セクション --- */
.contact__section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact__section-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-black);
}

/* --- 区切り線 --- */
.contact__divider {
  width: 100%;
  height: 1px;
  border: none;
  background-color: #d0d0d0;
  margin: 0;
}

/* --- フィールド --- */
.contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__label-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact__label {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-black);
}

.contact__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  flex-shrink: 0;
}

/* --- 入力フィールド共通 --- */
.contact__input,
.contact__select,
.contact__textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
  border: none;
  outline: none;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: var(--color-gray);
}

/* --- セレクト --- */
.contact__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23A0A0A0' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 8px;
  padding-right: 40px;
  cursor: pointer;
}

/* --- テキストエリア --- */
.contact__textarea {
  resize: vertical;
  min-height: 130px;
}

/* --- 同意チェック --- */
.contact__agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.contact__agree-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-black);
  cursor: pointer;
}

.contact__checkbox {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  accent-color: var(--color-black);
  cursor: pointer;
}

.contact__agree-link {
  color: var(--color-black);
  text-decoration: underline;
}

/* --- CF7 wrapリセット --- */
.wpcf7 {
  width: 100%;
}

.wpcf7-form.contact__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* --- CF7 バリデーションエラー --- */
.wpcf7-not-valid-tip {
  font-size: 14px;
  color: #c44;
  margin-top: 4px;
}

.wpcf7-response-output {
  font-size: 14px;
  text-align: center;
  margin: 0;
  padding: 12px 16px;
}

.wpcf7-form.sent .wpcf7-response-output {
  border-color: #398f14;
  color: #398f14;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
  border-color: #c44;
  color: #c44;
}

/* --- 送信ボタン（CF7 input[type="submit"]） --- */
.contact__submit-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.contact__submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 270px;
  height: 56px;
  border: 2px solid var(--color-gray);
  background: none;
  font-family: var(--font-ja);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-gray);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.contact__submit-btn:hover {
  background-color: var(--color-gray);
  color: var(--color-white);
}

/* ==============================
   Responsive - Tablet (1024px)
============================== */
@media (max-width: 1024px) {

  .contact {
    padding: 80px 40px;
  }

  .contact__inner {
    gap: 40px;
  }

  .contact__form-box {
    padding: 40px;
    gap: 60px;
  }

  .contact__section-title {
    font-size: 22px;
  }
}

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

  .contact {
    padding: 48px 20px;
  }

  .contact__inner {
    gap: 32px;
  }

  .contact__lead {
    font-size: 14px;
    text-align: left;
  }

  .contact__lead br {
    display: none;
  }

  .contact__form {
    gap: 28px;
  }

  .contact__form-box {
    padding: 24px 16px;
    gap: 40px;
  }

  .contact__section {
    gap: 24px;
  }

  .contact__section-title {
    font-size: 20px;
  }

  .contact__label {
    font-size: 14px;
  }

  .contact__badge {
    font-size: 12px;
    padding: 1px 6px;
  }

  .contact__input,
  .contact__select,
  .contact__textarea {
    font-size: 16px;
    padding: 10px 12px;
  }

  .contact__agree {
    flex-wrap: wrap;
    gap: 8px;
  }

  .contact__agree-label {
    font-size: 14px;
  }

  .contact__checkbox {
    width: 24px;
    height: 24px;
  }

  .contact__submit-btn {
    width: 220px;
    height: 48px;
    font-size: 18px;
  }

  .wpcf7-form.contact__form {
    gap: 28px;
  }
}
