/* ===========================================
   Custom MailForm 用スタイル（採用フォーム）
   {$form_data} が出力する table/input/textarea/checkbox
   に対して見た目を当てています（HTML構造は変更不可のため
   class名ではなく要素セレクタ中心で指定）
   ※法人お問い合わせフォームと共通のスタイルです。
   　サーバー上では form.css というファイル名でこのフォーム用
   　ディレクトリ（recruit側）に設置してください。
   =========================================== */
#wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 15px;
}
/* 見出し */
.section__ttl {
  color: #27577e;
  text-align: center;
  border-bottom: 4px solid #27577e;
  padding-bottom: 12px;
  margin: 40px 0 24px;
  font-size: 1.5rem;
}
#txt_explain p {
  margin-bottom: 4px;
}
.red_txt {
  color: #dc3545;
  min-height: 1.2em;
  margin-bottom: 8px;
}
/* ---- form_data が出力するテーブル ---- */
#main table.table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
#main table.table tr {
  border-bottom: 1px solid #e0e0e0;
}
#main table.table th {
  width: 220px;
  text-align: left;
  vertical-align: top;
  padding: 14px 12px 14px 0;
  font-weight: bold;
  color: #333;
}
#main table.table td {
  padding: 12px 0;
  vertical-align: middle;
}
#main table.table th span.red {
  color: #dc3545;
  margin-left: 4px;
}
/* テキスト入力・電話番号・メール */
#main table.table input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 320px;
  padding: 8px 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
}
/* 姓・名／せい・めい のような横並びの小さい入力欄 */
#main table.table td input[style*="width:80px"] {
  max-width: 110px;
  width: 110px !important;
}
/* プルダウン（応募区分） */
#main table.table select {
  box-sizing: border-box;
  width: 100%;
  max-width: 320px;
  padding: 8px 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fff;
}
#main table.table textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}
#main table.table input[type="text"]:focus,
#main table.table select:focus,
#main table.table textarea:focus {
  outline: none;
  border-color: #27577e;
  box-shadow: 0 0 0 0.2rem rgba(39, 87, 126, 0.25);
}
/* チェックボックス（個人情報同意 x2） */
#main table.table input[type="checkbox"] {
  width: 18px !important;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
}
#main table.table label {
  vertical-align: middle;
  font-weight: normal;
}
/* 確認ボタン・リセットボタン（ブラウザ標準の見た目のまま使用） */
.button_box {
  text-align: center;
  margin: 24px 0;
}
.button_box input[type="submit"],
.button_box input[type="reset"] {
  margin: 0 8px;
}
/* 「サイトへ戻る」リンク（formの外側） */
#main > .button_box a {
  color: #27577e;
  text-decoration: underline;
}
/* ===========================================
   スマホ表示（iPhone / Android 共通対応）
   =========================================== */
@media (max-width: 576px) {
  #main table.table,
  #main table.table tbody,
  #main table.table tr,
  #main table.table th,
  #main table.table td {
    display: block;
    width: 100% !important;
  }
  #main table.table th {
    padding: 16px 0 4px;
    border-bottom: none;
  }
  #main table.table tr {
    padding-bottom: 8px;
  }
  #main table.table td {
    padding: 0 0 8px;
  }
  #main table.table input[type="text"],
  #main table.table select,
  #main table.table textarea {
    max-width: 100%;
  }
  /* 姓・名／せい・めい の入力欄はスマホでは完全に1行1項目にする */
  #main table.table td input[style*="width:80px"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px 0 12px;
  }
  .button_box input[type="submit"],
  .button_box input[type="reset"] {
    display: block;
    width: 100%;
    margin: 8px 0;
  }
  .button_box input[type="reset"] {
    margin-top: 24px;
  }
  .button_box input[type="submit"][value="戻る"] {
    margin-top: 24px;
  }
}