@charset "UTF-8";
/* ============================================================
   求人LP お問い合わせフォーム（CF7 #4130）

   /recruit/ 配下は style.css を読み込まないため、
   総合お問い合わせ（#649）と同じ構造・同じクラス名のまま
   求人LPの配色（緑 #7baf20）でこのファイルに定義する。

   ※ マークアップは CF7 の管理画面（フォーム定義）側にある。
      クラス名を変えるときは両方を直すこと。
   ※ CF7 はブロック要素の内側に <p> を、要素間に <br> を
      自動挿入するため、入っても崩れない前提で組んでいる。
============================================================ */

/* ------------------------------------------------------------
   旧CSS（recruit-lp.css）の打ち消し

   #recruit06 form  … padding:0 15% 5% 15% / background:#FFF
   #recruit06 p     … padding:7% 0 / text-align:center / background:#FFF
   がIDセレクタで指定されており、CF7が自動挿入する <p> にも当たって
   選択肢が中央寄せになる。打ち消すにはこちらもIDを含める必要がある。
------------------------------------------------------------ */
#recruit06 form {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

#recruit06 .cform > p,
#recruit06 .cform__row > p {
  margin: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

#recruit06 .cform__privacy {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.9);
}

#recruit06 p.submit_btn {
  margin: 24px 0 0;
  padding: 0;
  background: transparent;
}

/* フォーム全体を白いカードに（背景が緑のため） */
.cform {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
}

/* CF7が自動で挿入する <p> と行間の <br> を無効化する

   ※ 行を <div> にすると CF7 が「行の内側」に <p> を入れてしまい、
      2カラムのグリッドが崩れる。そのため行は <label> か <span>
      （どちらもインライン要素）で書くこと。 */
.cform > p,
.cform__row > p {
  margin: 0;
  text-align: left;
}

.cform > p > br {
  display: none;
}

/* 行（自由入力は label 要素。項目名をタップしても入力欄にフォーカスが移る） */
.cform__row {
  display: block;
  padding: 18px 0;
  border-bottom: 1px dashed #dfe8cf;
}

.cform__row:first-child {
  padding-top: 0;
}

.cform__row:last-child {
  border-bottom: none;
}

/* label 要素の行のみカーソルを変える（選択肢の行は個々の選択肢が label のため） */
label.cform__row {
  cursor: pointer;
}

/* 項目名 */
.cform__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #333;
  font-size: 1em;
  font-weight: bold;
  line-height: 1.5;
}

.cform__label p {
  margin: 0;
}

/* 項目名の先頭アイコン */
.cform__label::before {
  content: "";
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #ebffc9;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.cform__label--type::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237baf20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3 8-8'/%3E%3Cpath d='M20 12v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h9'/%3E%3C/svg%3E");
}

.cform__label--name::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237baf20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.cform__label--mail::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237baf20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

.cform__label--tel::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237baf20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.cform__label--station::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237baf20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='13' rx='3'/%3E%3Cpath d='M5 11h14'/%3E%3Cpath d='M8 20l-2 2'/%3E%3Cpath d='M16 20l2 2'/%3E%3Ccircle cx='8.5' cy='13.5' r='.5' fill='%237baf20'/%3E%3Ccircle cx='15.5' cy='13.5' r='.5' fill='%237baf20'/%3E%3C/svg%3E");
}

.cform__label--person::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237baf20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M12 12v9'/%3E%3Cpath d='M9 18h6'/%3E%3C/svg%3E");
}

.cform__label--birth::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237baf20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.cform__label--school::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237baf20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10L12 5 2 10l10 5 10-5z'/%3E%3Cpath d='M6 12v5c0 1 2.7 2.5 6 2.5s6-1.5 6-2.5v-5'/%3E%3C/svg%3E");
}

.cform__label--job::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237baf20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E");
}

/* 必須・任意バッジ */
.cform__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #eef1ea;
  color: #7d8b73;
  font-size: 0.7em;
  font-weight: bold;
  letter-spacing: 0.04em;
  line-height: 1.5;
  vertical-align: 2px;
}

.cform__badge--req {
  background: #c9564f;
  color: #fff;
}

/* 入力欄（span要素のためブロック化する） */
.cform__field {
  display: block;
}

.cform__field p {
  margin: 0;
}

.cform__field input[type="text"],
.cform__field input[type="email"],
.cform__field input[type="tel"],
.cform__field textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #d8e3c4;
  border-radius: 8px;
  background: #fcfefa;
  color: #333;
  /* 1rem（16px）を下回らせないこと。スマホで入力時に画面が拡大する */
  font-size: 1rem;
  line-height: 1.6;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.cform__field input::placeholder,
.cform__field textarea::placeholder {
  color: #a9b5a0;
}

.cform__field input:focus,
.cform__field textarea:focus {
  border-color: #7baf20;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(123, 175, 32, 0.16);
}

/* 確認画面（Contact Form 7 add confirm）で読み取り専用になったとき */
.cform__field input[readonly],
.cform__field textarea[readonly] {
  background: #f4f7ef;
  border-color: #e6ece0;
  color: #333;
}

/* 選択肢（ラジオボタン）
   flex ではなく inline-block で横に並べる。
   旧CSS（recruit-lp.css）が span.wpcf7-list-item の margin を !important で
   指定しているため、こちらも !important で上書きする必要がある。 */
.cform__field--choice .wpcf7-form-control-wrap {
  display: block;
}

.cform__field--choice .wpcf7-radio {
  display: block;
  /* 選択肢の外周にできる余白を打ち消す */
  margin: -5px;
}

.cform__field--choice .wpcf7-list-item {
  display: inline-block !important;
  margin: 5px !important;
  vertical-align: top;
}

.cform__field--choice .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1.5px solid #d8e3c4;
  border-radius: 9999px;
  background: #fff;
  color: #333;
  font-size: 0.95em;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

/* ラジオ本体と文字が離れないように */
.cform__field--choice .wpcf7-list-item-label {
  display: inline-block;
}

.cform__field--choice input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #7baf20;
  cursor: pointer;
}

.cform__field--choice .wpcf7-list-item label:hover {
  border-color: #7baf20;
}

/* 選択中の選択肢を塗り分ける */
.cform__field--choice .wpcf7-list-item label:has(input:checked) {
  border-color: #7baf20;
  background: #f4fbe6;
  font-weight: bold;
}

/* 補足テキスト */
.cform__hint {
  display: block;
  margin-top: 8px;
  color: #6b7a63;
  font-size: 0.8em;
  line-height: 1.7;
}

/* 入力エラー */
.wpcf7-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #fdf1f1;
  color: #a5484b;
  font-size: 0.8em;
  font-weight: bold;
}

.cform__field input.wpcf7-not-valid,
.cform__field textarea.wpcf7-not-valid {
  border-color: #c9564f;
  background: #fffafa;
}

/* 送信結果メッセージ（旧CSSの赤枠を上書きする） */
.wpcf7-form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 14px 18px;
  border: none;
  border-radius: 8px;
  background: #fdf1f1;
  color: #a5484b;
  font-size: 0.9em;
  line-height: 1.8;
  text-align: center;
}

.wpcf7-form.sent .wpcf7-response-output {
  background: #ebffc9;
  color: #4c7a00;
}

/* 個人情報の取り扱い */
.cform__privacy {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #4a5544;
  font-size: 0.8em;
  line-height: 1.8;
  text-align: center;
}

.cform__privacy a {
  color: #4c7a00;
  font-weight: bold;
}

/* Cloudflare Turnstile（スパム対策のチェック枠） */
.cform__turnstile {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* 送信ボタン（旧CSS #contact p.submit_btn input を上書きするため詳細度を上げる） */
.wpcf7-form p.submit_btn {
  margin: 24px 0 0;
  text-align: center;
}

.wpcf7-form p.submit_btn input[type="submit"],
.wpcf7-form p.submit_btn input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 6px 0;
  padding: 16px 24px;
  border: none;
  border-radius: 9999px;
  background: #7baf20;
  color: #fff;
  font-size: 1.05em;
  font-weight: bold;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(123, 175, 32, 0.35);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7-form p.submit_btn input[type="submit"]:hover,
.wpcf7-form p.submit_btn input[type="button"]:hover {
  background: #6b9c18;
  box-shadow: 0 10px 24px rgba(123, 175, 32, 0.45);
  transform: translateY(-2px);
}

/* 「戻って修正する」はサブボタン扱い */
.wpcf7-form p.submit_btn input.wpcf7-back {
  background: #fff;
  border: 2px solid #d8e3c4;
  color: #6b7a63;
  font-size: 0.95em;
  box-shadow: none;
}

.wpcf7-form p.submit_btn input.wpcf7-back:hover {
  background: #f6faf0;
  box-shadow: none;
  transform: none;
}

/* PC：項目名を左・入力欄を右の2カラムに */
@media (min-width: 768px) {
  .cform {
    padding: 40px 44px;
  }

  .cform__row {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 0 28px;
    align-items: start;
    padding: 22px 0;
  }

  .cform__label {
    margin-bottom: 0;
    padding-top: 10px;
  }

  .cform__label::before {
    width: 34px;
    height: 34px;
    background-size: 18px 18px;
  }

  .wpcf7-form p.submit_btn input[type="submit"],
  .wpcf7-form p.submit_btn input[type="button"] {
    width: auto;
    min-width: 280px;
    margin: 6px;
    padding: 18px 48px;
    font-size: 1.15em;
  }

  .wpcf7-form p.submit_btn input.wpcf7-back {
    min-width: 200px;
  }
}
