/* =========================
   応募フォーム 全体スタイル
========================= */
.oubo-form-box {
  background: #FFFFFF;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  margin-top: -30px;
}
.oubo-form-box h2 {
  border-top: none !important;
  border-bottom: none !important;
  margin-bottom: -5px !important;
}
.oubo-form-box h3 {
  font-weight: bold !important;
  margin: 5px 0 10px 0;
  padding: 0;
  font-size: 18px !important;
}
.oubo-form-box .oubo-row-item {
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #E5E5E5;
  padding: 5px 0;
}
.oubo-form-box .oubo-row-item .ttl-left {
  width: 28%;
  font-weight: bold !important;
  font-size: 14px;
	padding: 0 !important;
}
.oubo-form-box .oubo-row-item .form-right {
  width: 70%;
}
/* 2カラム用 */
.oubo-form-box .oubo-row-item .ttl-2culmn {
  width: 50%;
  box-sizing: border-box;
  font-weight: bold !important;
  font-size: 14px;
  padding: 5px 15px;
  position: relative;
}

/* 左側 */
.oubo-form-box .oubo-row-item .ttl-2culmn:first-child {
  border-right: none;
  margin-right: 0;
}

/* 縦線 */
.oubo-form-box .oubo-row-item .ttl-2culmn:first-child::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: #E5E5E5;
}

/* 入力欄を横幅いっぱいに */
.oubo-form-box .oubo-row-item .ttl-2culmn .column,
.oubo-form-box .oubo-row-item .ttl-2culmn .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.oubo-form-box .oubo-row-item .ttl-2culmn input {
  width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
}

/*入力の背景色*/
.oubo-form-box .oubo-row-item .form-right input, .oubo-form-box .oubo-row-item .form-right select, .oubo-form-box .oubo-row-item .form-right textarea, .oubo-form-box .oubo-row-item .ttl-2culmn input {
  background: #F7F6F2;
  border-radius: 5px;
  border: none;
  padding: 15px;
  margin: 0 !important;
  font-weight: bold;
  font-size: 14px;
}
.form-right textarea {
	height: 80px;
}
.oubo-form-box .oubo-row-item .form-right .bg-nas input {
  background: #fff !important;
}
.oubo-form-box .oubo-row-item .form-right .column {
  display: flex;
}
.oubo-form-box .oubo-row-item .form-right .column input {
  width: 85%;
}
.oubo-form-box .oubo-row-item .form-right .column2 select {
  width: 55%;
}
.oubo-form-box .oubo-row-item .form-right.birth {
  display: flex;
  gap: 10px;
}
.column-select, .column-select2 {
  width: auto;
}
.column-select {
  width: 140px;
}
.column-select2 {
  width: 100px;
}
/*新住所横並び*/
.column-select3 {
  width: 170px;
}
.column-select4 {
}
.oubo-form-box .oubo-row-item .form-right .column3 select {
  width: 100%;
}
/* セレクトボックス */
.oubo-form-box .oubo-row-item .form-right select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #F7F6F2;
  /* CSS変数対応の矢印 */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--site-primary, #37B1BE) 50%), linear-gradient(135deg, var(--site-primary, #37B1BE) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) center, calc(100% - 10px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  border-radius: 5px;
  border: none;
  padding: 15px;
  margin: 3px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}
/* =========================
   住所入力
========================= */
/* 住所の2段構成 */
.oubo-form-box .form-right .add-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* 郵便番号欄 */
.oubo-form-box .form-right .add-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.oubo-form-box .form-right .add-top input {
  width: 50%;
}
.oubo-form-box .form-right .yubinbango {
  font-size: 10px;
  color: #A5A5A5;
  margin: -30px 0 -10px 0 !important;
  padding: 0 !important;
}
/* 都道府県 + 市区町村 */
.oubo-form-box .form-right .add-btm {
  gap: 10px;
  flex-wrap: wrap;
  display: flex;
  margin-top: -18px;
}
.oubo-form-box .add-btm-left {
  width: 35%;
  margin-left: 15px;
}
.oubo-form-box .add-btm-right {
  width: 55%;
  margin-top: 3px;
}
/* 番地欄 */
.oubo-form-box .add-btm2 {
  display: block;
  margin-top: -18px;
  margin-left: 15px;
}
/* IE対応 */
.oubo-form-box .oubo-row-item .form-right select::-ms-expand {
  display: none;
}
/* =========================
   ラジオボタン
========================= */
.radio-group label {
  display: inline-block;
  padding: 5px;
  background: #F7F6F2;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold !important;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;
  margin-right: 5px;
  margin-bottom: 5px;
}
.radio-group input[type="radio"]:checked + label {
  background: var(--site-primary, #37B1BE);
  color: #ffffff;
}
/* =========================
   必須・プレースホルダー
========================= */
.hiss {
  color: #FC5176;
  font-size: 12px;
}
.oubo-form-box ::placeholder {
  color: var(--site-primary, #37B1BE);
  font-weight: normal;
  opacity: 0.4;
}
.nini {
  color: #777;
  font-size: 12px;
}
/* =========================
   応募ボタン
========================= */
/* 応募ボタン */
.oubo-btn {
  width: 100%;
  text-align: center;
}
.btn_cf7 {
  position: relative;
  width: 100%;
  text-align: center;
}
.btn_cf7 input[type="submit"] {
  display: block;
  background: #FC5176 !important;
  width: 240px;
  max-width: 100%;
  font-weight: bold;
  border: none !important;
  margin: 0 auto !important;
  text-align: center;
}
/* CF7の読み込みアイコンを中央揃えの計算から除外 */
.btn_cf7 .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: calc(50% + 125px);
  transform: translateY(-50%);
  margin: 0;
}
.btn_cf7::after {
  content: "\f138"; 
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: calc(50% + 90px);
  transform: translateY(-50%);
  color: #FFFFFF;
  font-size: 16px;
  pointer-events: none;
}
.doui {
  font-size: 14px;
  margin: 20px auto;
  text-align: center;
  display: block;
}
/* =========================
   CF7 エラーメッセージ
========================= */
.wpcf7-not-valid-tip {
  background: none;
  padding: 0 10px;
  font-size: 12px;
  color: #DA0847 !important;
  font-weight: bold;
  display: none !important;
}
.wpcf7-not-valid-tip:after {
  display: none;
}
/* =========================
   AI入力補助
========================= */
/* ボタン横並び */
.ai-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0 !important;
  margin-bottom: -10px !important;
}
/* AIボタン */
.ai-select {
  padding: 5px 30px 5px 10px !important;
  border: 1px solid var(--site-primary, #37B1BE);
  border-radius: 5px;
  font-size: 14px;
  background-color: #fff;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  /* CSS変数対応の矢印 */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--site-primary, #37B1BE) 50%), linear-gradient(135deg, var(--site-primary, #37B1BE) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) center, calc(100% - 10px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
/* 入力内容をクリア */
.clear-btn {
  float: right;
  margin-top: -25px !important;
  padding: 5px 10px;
  font-size: 12px;
  background: transparent;
  color: var(--site-primary, #37B1BE);
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.clear-btn:hover {
  background: var(--site-primary, #37B1BE);
  color: #fff;
}
/* =========================
   資格入力
========================= */
/* 資格1行を横並び */
.qualification-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
  flex-wrap: nowrap;
}
.qualification-block {
  display: flex;
  align-items: center;
  gap: 5px;
}
/* 資格名 */
.qualification-block input {
  width: 220px;
}
/* 年・月 */
.qualification-block select[name^="qualification_year_"], .qualification-block select[name^="qualification_month_"] {
  width: 80px;
}
/* 共通スタイル */
.qualification-block input, .qualification-block select {
  background: #F7F6F2;
  border-radius: 5px;
  border: none;
  padding: 12px;
  font-size: 14px;
  font-weight: bold;
}
/* 資格追加ボタン */
.add-btn {
  margin-top: 10px;
  padding: 5px 10px;
  font-size: 13px;
  background-color: var(--site-primary, #37B1BE);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.add-btn:hover {
  background-color: var(--site-primary-hover, #2A8E98);
}
/* =========================
   エラー表示
========================= */
.wpcf7-not-valid {
  background-color: #FFE8E8 !important;
  border: 2px solid #DA0847 !important;
  width: 100% !important;
  box-sizing: border-box;
}
.wpcf7-not-valid input, .wpcf7-not-valid select, .wpcf7-not-valid textarea {
  background-color: #FFE8E8 !important;
  border: 2px solid #DA0847 !important;
}
/* 郵便番号欄の幅を固定 */
.oubo-form-box .form-right .add-top input {
  width: 50%;
  box-sizing: border-box;
}
.oubo-form-box .form-right .add-top input.p-postal-code {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  box-sizing: border-box;
}
/* CF7標準の入力エラーメッセージを非表示 */
.wpcf7 form.invalid .wpcf7-response-output {
  display: none !important;
}
/* =========================
   資格削除ボタン
========================= */
.delete-btn {
  padding: 5px;
  font-size: 10px;
  background: #F7F6F2;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.delete-btn:hover {
  background-color: #aaa;
  color: #fff;
}
.max-qualify-msg {
  font-size: 12px;
  color: #A5A5A5;
  margin: 10px 0 5px 0;
}

/* =========================
   応募フォーム 行間・余白調整
========================= */

/* 各項目の上下余白 */
.oubo-form-box .oubo-row-item {
  padding: 10px 0 !important;
  margin: 0 !important;
  min-height: 0;
}

/* CF7が生成するpタグの余白をリセット */
.oubo-form-box .oubo-row-item p {
  margin: 0 !important;
  padding: 0 !important;
}

/* CF7が生成する不要な改行を非表示 */
.oubo-form-box .oubo-row-item br {
  display: none;
}

/* 各カラムの余白 */
.oubo-form-box .oubo-row-item .ttl-left,
.oubo-form-box .oubo-row-item .form-right {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* メール・電話番号の余白 */
.oubo-form-box .oubo-row-item .ttl-2culmn {
  padding: 0 15px !important;
}

/* メール・電話番号の見出しと入力欄の間隔 */
.oubo-form-box .oubo-row-item .ttl-2culmn .column {
  margin-top: 8px !important;
}

/* =========================
   レスポンシブ
========================= */
@media screen and (max-width: 560px) {
  .oubo-form-box {
    margin: -30px 10px 10px 10px;
  }
  .oubo-form-box .oubo-row-item {
    display: block;
    padding: 20px 0 0 0;
  }
  .oubo-form-box .oubo-row-item .ttl-left {
    padding: 0 !important;
    width: 100% !important;
  }
  .oubo-form-box .oubo-row-item .form-right {
    width: 100%;
    margin-top: -15px;
  }
  .hiss {
    font-size: 10px;
  }
  .oubo-form-box .oubo-row-item .form-right input, .oubo-form-box .oubo-row-item .form-right select, .oubo-form-box .oubo-row-item .form-right textarea {
    padding: 10px;
  }
  .oubo-form-box .oubo-row-item .form-right .column input {
    width: 100%;
  }
  .oubo-form-box .oubo-row-item .form-right .column2 select {
    width: 100%;
  }
  /* 都道府県 + 市区町村 */
  .oubo-form-box .form-right .add-btm {
    gap: 10px;
    flex-wrap: wrap;
    display: block;
    margin-top: -18px;
  }
  .oubo-form-box .add-btm-left {
    width: 80%;
    margin-left: 15px;
    margin-top: -10px;
  }
  .oubo-form-box .add-btm-right {
    width: 95%;
    margin-left: 18px;
    margin-top: -10px;
  }
  .oubo-form-box .form-right .yubinbango {
    margin: -20px 0 -10px 0 !important;
  }
	/*2カラム用*/
	.oubo-form-box .oubo-row-item .ttl-2culmn {
  width: 100%;
  padding: 10px 0;
}

.oubo-form-box .oubo-row-item .ttl-2culmn:first-child::after {
  display: none;
}
}
.oubo-form-box .captcha-box {
  display: flex;
  justify-content: center;
  margin: 20px auto;
}
/* =========================
   スマホ：メール・電話番号の余白調整
========================= */
@media screen and (max-width: 560px) {

  /* 左右の余白をなくす */
  .oubo-form-box .oubo-row-item .ttl-2culmn {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* メールと電話番号の間隔 */
  .oubo-form-box .oubo-row-item .ttl-2culmn + .ttl-2culmn {
    margin-top: 8px !important;
  }

  /* 見出しと入力欄の間隔 */
  .oubo-form-box .oubo-row-item .ttl-2culmn .column {
    margin: 4px 0 0 !important;
  }

  /* 入力欄の幅 */
  .oubo-form-box .oubo-row-item .ttl-2culmn input {
    width: 100%;
    margin: 0 !important;
  }
}