/* --- 採用フォーム全体ラッパー --- */
.recruit-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 35px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 70, 130, 0.08);
    border: 1px solid #e6ecf0;
}


/* --- 各フォーム項目グループ --- */
.form-group {
    margin-bottom: 28px;
}


/* --- ラベル（項目名）の代わりに追加 --- */
.form-group-title {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 16px;
}


/* --- 必須マークの共通スタイル --- */
.form-group-title .required,
.form-group label .required {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    margin-bottom: 4px;
    font-weight: 500;
    vertical-align: middle;
}


/* --- チェックボックス本体のラッパー --- */
.form-group-checkbox-wrapper {
    margin-bottom: 28px; 
}


/* --- 入力欄（テキスト、メール、電話、セレクト） --- */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}


/* --- 入力欄フォーカス時（クリックした時） --- */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 8px rgba(0, 115, 170, 0.2);
    outline: none;
}


/* --- ラジオボタン/チェックボックスのコンテナ --- */
.wpcf7-list-item {
    margin: 0 15px 10px 0;
    display: inline-block;
    cursor: pointer;
    vertical-align: top;
}


/* --- ラジオボタン/チェックボックスのラベル --- */
.wpcf7-list-item label {
    font-weight: normal; 
    display: inline-flex;
    align-items: center; 
    cursor: pointer;
    vertical-align: top;
    line-height: 1.4;
    word-break: keep-all;
    white-space: normal;
    max-width: 100%;
    pointer-events: auto;
}


/* --- チェックボックスをラジオボタン（丸型）風にするスタイル --- */
.wpcf7-list-item input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: middle;
    flex-shrink: 0;
    
    width: 18px;
    height: 18px;
    
    -webkit-appearance: none !important; 
    -moz-appearance: none !important;
    appearance: none !important;
    
    position: relative; 
    top: 0; 
    
    border: 1px solid #ccd0d5 !important;
    border-radius: 50% !important;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    pointer-events: auto !important;
}


/* --- 選択されたチェックボックス（ラジオボタン風）のスタイル --- */
.wpcf7-list-item input[type="checkbox"]:checked {
    background-color: #0073aa !important;
    border-color: #0073aa !important;
    box-shadow: inset 0 0 0 4px #ffffff !important;
}


/* --- ファイルアップロード --- */
.form-group input[type="file"] {
    width: 100%;
    border: 1px dashed #ccd0d5;
    border-radius: 6px;
    padding: 12px;
    background-color: #f9fbfc;
    cursor: pointer;
}
.form-group small {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #555;
}


/* --- 送信ボタン --- */
.form-group .wpcf7-submit {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}


.form-group .wpcf7-submit:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 90, 135, 0.2);
}


.recruit-form-container {
    overflow: visible !important;
}


/* --- PC中サイズ対応 (1025px〜1400px) --- */
@media screen and (min-width: 1025px) and (max-width: 1400px) {
    .wpcf7-list-item {
        display: inline-block !important;
        margin: 0 15px 10px 0 !important;
        vertical-align: top !important;
    }
    
    .wpcf7-list-item label {
        display: inline-flex !important;
        align-items: center !important;
        white-space: normal !important;
        word-break: keep-all !important;
        line-height: 1.4 !important;
        max-width: 200px;
    }
    
    .wpcf7-list-item input[type="checkbox"] {
        flex-shrink: 0 !important;
        margin-right: 8px !important;
    }
}


/* --- タブレット対応 (769px〜1024px) --- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .wpcf7-list-item {
        display: block !important;
        width: 100% !important;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .wpcf7-list-item label {
        font-size: 15px !important;
        line-height: 1.4 !important;
        display: inline-flex !important;
        align-items: center !important;
        word-break: keep-all !important;
        white-space: normal !important;
        width: auto !important;
    }
    
    .wpcf7-list-item input[type="checkbox"] {
        margin-right: 8px;
        flex-shrink: 0;
    }
}


/* --- スマホ対応 (768px以下) --- */
@media screen and (max-width: 768px) {
    .recruit-form-wrapper {
        padding: 25px 20px;
        margin: 20px auto;
        box-shadow: none;
        border: none;
    }

    .wpcf7-form-control-wrap,
    .wpcf7-form-control,
    .wpcf7-checkbox {
        width: 100% !important;
        display: block !important;
        overflow: visible !important;
    }
    
    .wpcf7-list-item {
        display: block !important; 
        width: 100% !important; 
        box-sizing: border-box;
        margin-right: 0;
        margin-bottom: 12px; 
    }
    
    .wpcf7-list-item label {
        font-size: 14px !important; 
        line-height: 1.4 !important; 
        display: inline-flex !important;
        align-items: center !important;
        word-break: keep-all !important;
        white-space: normal !important;
        width: auto !important;
    }

    .form-group .wpcf7-submit {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        padding: 15px;
    }
    
    .form-group label {
        font-size: 15px;
    }
    
    .wpcf7-list-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-right: 8px;
        flex-shrink: 0;
    }
}


.btn {
  text-align: center;
  font-weight: normal;
  font-size: 16px;
  text-align: center;
  color: #fff;
  height: 56px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-radius: 50px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: auto;
}
@media screen and (max-width: 1366px) {
  .btn {
    font-size: 16rem;
    height: 56rem;
    border-radius: 50rem;
  }
}
@media screen and (max-width: 768px) {
  .btn {
    font-size: clamp(14px, 14px + (16 - 14) * (100vw - 375px) / (1366 - 375), 16px);
  }
}
.btn:hover {
  -webkit-filter: opacity(80%);
          filter: opacity(80%);
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

.btn {
  background: -webkit-gradient(linear, left top, right top, from(#596d9b), to(#23355f));
  background: linear-gradient(to right, #596d9b 0%, #23355f 100%);
  text-align: center;
  font-weight: normal;
  font-size: clamp(14px, 14px + (16 - 14) * (100vw - 375px) / (1366 - 375), 16px);
  text-align: center;
  color: #fff;
  padding: 0 54px;
  height: 56px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-radius: 50px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: auto;
}
.t_message .inner .text .btn:hover {
  -webkit-filter: opacity(80%);
          filter: opacity(80%);
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
@media screen and (max-width: 1366px) {
  .t_message .inner .text .btn {
    padding: 0 54rem;
    height: 56rem;
    border-radius: 50rem;
  }
}