@charset "UTF-8";


/**********************************************/
/**********お問い合わせ************************/
/**********************************************/

.contact_intro {
  text-align: center;
  line-height: 2;
  margin-bottom: 64px;
}

.contact_form_wrap {
  max-width: 800px;
  margin: 0 auto;
}

/* ---- フィールド行 ---- */
.cf7_field_wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px 0;
}

.cf7_field_wrap:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ---- ラベル ---- */
.cf7_label_wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cf7_label_wrap p {
  display: flex;
  align-items: center;
}

.cf7_label {
  font-weight: 500;
  letter-spacing: 0.05em;
  padding-right: 8px;
}

.cf7_required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--Green-d);
  color: var(--White);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  flex-shrink: 0;
}

/* ---- CF7 生成ラッパー ---- */
.cf7_field_wrap .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* ---- 入力フィールド共通 ---- */
.contact_form_wrap input[type="text"],
.contact_form_wrap input[type="email"],
.contact_form_wrap textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--Yellow);
  background-color: var(--White);
  font-size: 0.9rem;
  font-family: inherit;
  color: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.contact_form_wrap input[type="text"]:focus,
.contact_form_wrap input[type="email"]:focus,
.contact_form_wrap textarea:focus {
  border-color: var(--Green-d);
}

.contact_form_wrap input::placeholder,
.contact_form_wrap textarea::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.contact_form_wrap textarea {
  height: 200px;
  resize: vertical;
}

/* ---- バリデーションエラー ---- */
.contact_form_wrap .wpcf7-not-valid {
  border-color: #c0392b;
}

.contact_form_wrap .wpcf7-not-valid-tip {
  display: block;
  font-size: 0.75rem;
  color: #c0392b;
  margin-top: 6px;
}

/* ---- プライバシー同意 ---- */
.cf7_privacy_wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  font-size: 0.875rem;
}

.cf7_privacy_wrap .wpcf7-acceptance {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.cf7_privacy_wrap .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.cf7_privacy_wrap .wpcf7-list-item-label {
  font-size: 0.875rem;
}

.cf7_privacy_wrap .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cf7_privacy_wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1px solid var(--Yellow);
  background-color: var(--White);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.cf7_privacy_wrap input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--Green-d);
  border-bottom: 2px solid var(--Green-d);
  transform: rotate(45deg);
}

.cf7_privacy_wrap a {
  color: var(--Green-d);
  text-decoration: underline;
}

/* ---- 送信ボタン ---- */
.cf7_submit_wrap {
  text-align: center;
  margin-top: 40px;
}

.cf7_submit_wrap .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 80px;
  background-color: var(--Green-d);
  color: var(--White);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cf7_submit_wrap .wpcf7-submit:hover {
  opacity: 0.75;
}

.cf7_submit_wrap .wpcf7-spinner {
  display: none;
}

/* ---- ハニーポット（bot対策） ---- */
.cf7_honeypot {
  display: none !important;
}

/* ---- 送信完了メッセージ ---- */
.wpcf7-response-output {
  text-align: center;
  border-color: var(--Green-l) !important;
}

.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok {
  background-color: var(--Green-d);
  color: var(--White);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 20px 24px;
  margin-top: 32px;
  border: none !important;
}

.wpcf7 .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ng {
  background-color: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border: none !important;
}


/**********************************************/
/**********レスポンシブ************************/
/**********************************************/

@media screen and (max-width: 768px) {

  .contact_intro {
    text-align: left;
    margin-bottom: 40px;
  }

  .cf7_field_wrap {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
  }

  .cf7_label_wrap {
    padding-top: 0;
  }

}
