/* =====================================
   応募フォーム v2
===================================== */
.oubo-form-v2 {
  width: 100%;
  padding: 15px;
  margin: 0 0 15px;
  background: #fff;
  border: none;
  border-radius: 8px;
  box-sizing: border-box;
}
.oubo-form-v2 *, .oubo-form-v2 *::before, .oubo-form-v2 *::after {
  box-sizing: border-box;
}
/* 非表示項目 */
.apply-hidden {
  display: none !important;
}
/* =====================================
   CF7・テーマの余白リセット
===================================== */
.oubo-form-v2 p {
  margin: 0 !important;
  padding: 0 !important;
}
.oubo-form-v2 br {
  display: none !important;
}
.oubo-form-v2 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
/* =====================================
   2カラム
===================================== */
.oubo-form-v2 .apply-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 13px 0 15px;
  margin: 0 !important;
  border-bottom: 1px solid #e5e5e5;
  align-items: start;
}
.oubo-form-v2 .apply-grid:first-child {
  padding-top: 0;
}
.oubo-form-v2 .apply-field {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}
.oubo-form-v2 .apply-single {
  padding: 13px 0 15px;
  margin: 0 !important;
  border-bottom: 1px solid #e5e5e5;
}
/* =====================================
   ラベル
===================================== */
.oubo-form-v2 .apply-label {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: #333;
  margin: 0 0 6px !important;
  padding: 0 !important;
}
.oubo-form-v2 .apply-required {
  color: #da0847;
  font-size: 11px;
  font-weight: 500;
}
.oubo-form-v2 .apply-optional {
  color: #888;
  font-size: 11px;
  font-weight: 400;
}
/* =====================================
   入力欄
===================================== */
.oubo-form-v2 input[type="text"], .oubo-form-v2 input[type="email"], .oubo-form-v2 input[type="tel"], .oubo-form-v2 input[type="number"], .oubo-form-v2 select, .oubo-form-v2 textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  margin: 0 !important;
  border: 1px solid transparent;
  border-radius: 6px;
  background-color: #f7f6f2;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: none !important;
  outline: none;
  transition: border-color .2s, background-color .2s;
}
/* プレースホルダー */
.oubo-form-v2 input::placeholder, .oubo-form-v2 textarea::placeholder {
  color: #a5dbe0;
  opacity: 1;
}
/* フォーカス */
.oubo-form-v2 input:focus, .oubo-form-v2 select:focus, .oubo-form-v2 textarea:focus {
  background-color: #fff;
  border-color: #37b1be;
  outline: none;
  box-shadow: none !important;
}
/* =====================================
   セレクトボックス
===================================== */
.oubo-form-v2 select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath fill='%2337B1BE' d='M1 2l6 6 6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}
/* =====================================
   お住まい
===================================== */
.oubo-form-v2 .apply-address {
  display: grid;
  grid-template-columns: minmax(105px, 0.85fr) minmax(0, 1.15fr);
  gap: 8px;
  margin: 0 !important;
}
.oubo-form-v2 .apply-address > div {
  min-width: 0;
  margin: 0 !important;
}
/* =====================================
   年齢
===================================== */
.oubo-form-v2 input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.oubo-form-v2 input[type="number"]::-webkit-inner-spin-button, .oubo-form-v2 input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* =====================================
   備考
===================================== */
.oubo-form-v2 textarea {
  min-height: 95px;
  height: 95px;
  resize: vertical;
}
/* =====================================
   履歴書アップロード
===================================== */
.oubo-form-v2 .apply-file {
  padding: 12px;
  margin: 0 !important;
  border: 1px solid #e5e5e5;
  background: #f7f6f2;
  border-radius: 6px;
}
.oubo-form-v2 input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  font-size: 13px;
  color: #555;
}
.oubo-form-v2 input[type="file"]::file-selector-button {
  padding: 8px 12px;
  margin-right: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 13px;
  cursor: pointer;
}
.oubo-form-v2 .apply-file-note {
  margin-top: 6px;
  font-size: 11px;
  color: #888;
}
/* =====================================
   個人情報への同意
===================================== */
.oubo-form-v2 .apply-agree {
  margin: 18px 0 15px !important;
  text-align: center;
  font-size: 13px;
  color: #555;
}
.oubo-form-v2 .apply-agree .wpcf7-list-item {
  margin: 0 !important;
}
.oubo-form-v2 .apply-agree label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.oubo-form-v2 .apply-agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #12807a;
}
.oubo-form-v2 .apply-agree a {
  color: #12807a;
  text-decoration: underline;
}
/* =====================================
   Turnstile
===================================== */
.oubo-form-v2 .apply-captcha {
  display: flex;
  justify-content: center;
  margin: 15px 0 !important;
}
/* =====================================
   エラー表示
===================================== */
.oubo-form-v2 .wpcf7-not-valid {
  border: 2px solid #da0847 !important;
  background-color: #ffe8e8 !important;
}
.oubo-form-v2 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 5px;
  color: #da0847;
  font-size: 12px;
}
.oubo-form-v2 .apply-error-summary {
  padding: 12px 15px;
  margin: 15px 0 !important;
  background: #ffe8e8;
  border-radius: 5px;
  color: #da0847;
  font-size: 13px;
}
.oubo-form-v2 .apply-error-summary ul {
  margin: 8px 0 0;
  padding-left: 22px;
  font-weight: normal;
}
.oubo-form-v2 .apply-error-summary li {
  margin-bottom: 4px;
}
/* =====================================
   送信ボタン
===================================== */
.oubo-form-v2 .apply-submit {
  text-align: center;
  margin: 15px 0 0 !important;
}
.oubo-form-v2 .apply-submit input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 400px;
  min-height: 54px;
  padding: 14px 20px;
  margin: 0 auto !important;
  border: none;
  border-radius: 6px;
  background: #12807a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background .2s;
}
.oubo-form-v2 .apply-submit input[type="submit"]:hover {
  background: #0c6661;
}
.oubo-form-v2 .apply-submit input[type="submit"]:disabled {
  opacity: .5;
  cursor: not-allowed;
}
/* 送信ボタン下の余白を詰める */
.oubo-form-v2 {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.oubo-form-v2 .apply-submit {
  margin: 10px 0 0 !important;
  padding: 0 !important;
}

/* CF7のフォーム外側 */
.wpcf7:has(.oubo-form-v2),
.wpcf7 form:has(.oubo-form-v2) {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* CF7の自動生成による空段落 */
.wpcf7 form:has(.oubo-form-v2) > p:empty {
  display: none !important;
}
/* =====================================
   スマートフォン
===================================== */
@media screen and (max-width: 640px) {
  .oubo-form-v2 {
    padding: 10px;
  }
  .oubo-form-v2 .apply-grid {
    gap: 12px;
    padding: 12px 0;
  }
  /* 姓・名は横並び */
  .oubo-form-v2 .apply-grid--name {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* メール・電話は縦並び */
  .oubo-form-v2 .apply-grid--contact, .oubo-form-v2 .apply-grid--location {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .oubo-form-v2 .apply-address {
    grid-template-columns: minmax(105px, .85fr) minmax(0, 1.15fr);
    gap: 8px;
  }
  .oubo-form-v2 .apply-single {
    padding: 12px 0;
  }
  .oubo-form-v2 input[type="text"], .oubo-form-v2 input[type="email"], .oubo-form-v2 input[type="tel"], .oubo-form-v2 input[type="number"], .oubo-form-v2 select, .oubo-form-v2 textarea {
    font-size: 16px;
  }
  .oubo-form-v2 .apply-submit input[type="submit"] {
    max-width: 100%;
  }
}