/* Start custom CSS for shortcode, class: .elementor-element-686fd3c *//* お問い合わせフォームのタイトル */
.contact-form-title {
  max-width: 880px;
  margin: 40px auto 24px;  /* ここがポイント：下方向の余白を増やす */
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

/* フォーム全体 */
.wpcf7 {
  max-width: 880px;
  margin: 0 auto 80px;
  font-family: "YuGothic", "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
}

/* 説明文 */
.wpcf7 > p {
  margin-bottom: 24px;
}

/* 入力エリア枠 */
.input_area {
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 24px 32px;
}

/* ラベルと入力のレイアウト：PCでも“縦に積む” */
.input_area label {
  display: block;                 /* 1行ではなく縦配置に */
  margin: 0;
  padding: 14px 12px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  font-size: 14px;
  line-height: 1.6;
}

/* 必須マークはラベルテキストの横に */
.required-mark {
  color: #e60033;
}

/* ラベル内の入力要素は横幅100％で表示 */
.input_area label > input,
.input_area label > textarea,
.input_area label > select {
  display: block;
  width: 100%;
  margin-top: 6px;                /* テキストと入力欄の間の隙間 */
  box-sizing: border-box;
}

/* 「※必須」を赤くするだけ（位置や大きさはいじらない） */
.required-mark {
  color: #e60033;
}

/* ラベル内の入力要素を右側にフルで伸ばす */
.input_area label > input,
.input_area label > textarea,
.input_area label > select {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 4px;
}

/* テキストボックス・セレクト・テキストエリア */
.input_area input[type="text"],
.input_area input[type="email"],
.input_area input[type="tel"],
.input_area textarea,
.input_area select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  background: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

/* テキストエリア高さ */
.input_area textarea {
  min-height: 170px;
  resize: vertical;
}

/* プレースホルダ色 */
.input_area input::placeholder,
.input_area textarea::placeholder {
  color: #bbb;
}

/* セレクトの矢印 */
.input_area select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.3' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
}

/* チェックボックス行 */
#not-sales {
  align-items: center;
}
#not-sales input[type="checkbox"] {
  margin-right: 6px;
}

/* reCAPTCHA注意書き */
.recaptcha-note {
  margin: 20px 0 0;
  font-size: 12px;
  color: #666;
}

/* 確認画面 */
.confirm_area {
  max-width: 880px;
  margin: 0 auto 40px;
  padding: 24px 32px;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.confirm_area h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.confirm_area p {
  margin: 4px 0;
}

/* 完了画面 */
.thanks_area {
  max-width: 880px;
  margin: 40px auto;
  text-align: center;
}

/* ボタン */
.confirm_button,
.back_button,
.wpcf7 input[type="submit"] {
  display: block;
  min-width: 220px;
  padding: 11px 32px;
  margin: 32px auto 0;
  border-radius: 999px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #f07090;
  background: #fff;
  color: #f07090;
  letter-spacing: 0.1em;
}
.confirm_button[disabled] {
  opacity: 0.4;
  cursor: default;
}
.confirm_button:hover:not([disabled]),
.back_button:hover,
.wpcf7 input[type="submit"]:hover {
  background: #f07090;
  color: #fff;
}

/* 初期状態：確認画面と完了画面を非表示 */
.confirm_area,
.thanks_area {
  display: none;
}

/* CF7標準メッセージ非表示 */
.wpcf7-response-output {
  display: none;
}

/* メール不一致エラー用（本文下に表示） */
#email-error {
  color: #e60033;
  font-size: 12px;
  margin: 8px 0 0 0;
  display: none;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .wpcf7 {
    padding: 0 16px;
  }
  .input_area {
    padding: 16px;
  }
  .input_area label {
    padding: 10px 4px;
  }
  .confirm_area {
    padding: 16px;
  }
}

/* 確認項目：1行目はラベル + 必須、2行目でチェックと文字を横並びに */
#not-sales {
  display: block;
}

/* use_label_element で生成されるラベルを横並び＆中央揃えに */
#not-sales .wpcf7-list-item {
  display: inline-flex;
  align-items: center;   /* ボックスと文字の高さをそろえる */
  gap: 6px;
  margin: 8px 0 0;      /* ラベル行との間に少し余白 */
}

/* チェックボックスの右にピッタリ文字がくるように */
#not-sales .wpcf7-list-item input[type="checkbox"] {
  margin: 0;
}
/* 完了画面をリッチに */
.thanks_area {
  max-width: 880px;
  margin: 40px auto 80px;
  padding: 40px 32px;
  text-align: center;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.thanks_title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #333;
}

.thanks_lead {
  font-size: 15px;
  margin-bottom: 12px;
}

.thanks_text {
  font-size: 14px;
  margin-bottom: 16px;
}

.thanks_notice {
  font-size: 12px;
  color: #666;
  margin-bottom: 24px;
}

.thanks_buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.thanks_btn {
  display: inline-block;
  min-width: 200px;
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #f07090;
  color: #f07090;
  background: #fff;
  transition: 0.2s;
}

.thanks_btn-primary {
  background: #f07090;
  color: #fff;
}

.thanks_btn:hover {
  background: #f07090;
  color: #fff;
}

@media (max-width: 768px) {
  .thanks_area {
    padding: 32px 16px;
  }
}/* End custom CSS */