<style>
/* Bootstrap フォームの配色を強制（Themify 影響回避） */
.bootstrap-scope .form-control,
.bootstrap-scope .form-select {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* プレースホルダ文字色（任意） */
.bootstrap-scope .form-control::placeholder {
  color: #666666;
  opacity: 1;
}

/* フォーカス時も白背景を維持 */
.bootstrap-scope .form-control:focus,
.bootstrap-scope .form-select:focus {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* フォーム全体の文字サイズを引き上げる */
.bootstrap-scope {
  font-size: 16px;   /* 基準サイズ（Bootstrap想定） */
}

/* 入力フィールド・セレクト */
.bootstrap-scope .form-control,
.bootstrap-scope .form-select {
  font-size: 16px;
  line-height: 1.6;
}

/* ラベル */
.bootstrap-scope .form-label {
  font-size: 15px;
  font-weight: 500;
}

/* エラーメッセージ */
.bootstrap-scope .invalid-feedback {
  font-size: 14px;
}

/* ボタン */
.bootstrap-scope .btn {
  font-size: 16px;
}


/* =========
   Apply Form – TuneAIBot
   ========= */

/* ページ本文エリア内のフォームをカード化 */
.page-id-495 .entry-content {
  line-height: 1.8;
}

/* Contact Form 7 / WPForms 両対応の“外枠” */
.page-id-495 .entry-content .tuneaibot-form,
.page-id-495 .entry-content .wpcf7,
.page-id-495 .entry-content .wpforms-container {
  max-width: 760px;
  margin: 18px auto 40px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: #fff;
}

/* 見出しと注意文 */
.page-id-495 .entry-content h1 {
  margin-bottom: 10px;
}
.page-id-495 .entry-content h2 {
  margin-top: 8px;
  margin-bottom: 14px;
}
.page-id-495 .entry-content p {
  margin: 0 0 14px;
  color: rgba(0,0,0,.80);
}

/* ラベル類（プラグインにより構造が違うので広めに当てる） */
.page-id-495 .entry-content label,
.page-id-495 .entry-content .wpforms-field-label,
.page-id-495 .entry-content .wpcf7-form-control-wrap + small,
.page-id-495 .entry-content .description,
.page-id-495 .entry-content .wpforms-field-description {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  color: rgba(0,0,0,.88);
}

/* 入力欄 */
.page-id-495 .entry-content input[type="text"],
.page-id-495 .entry-content input[type="email"],
.page-id-495 .entry-content input[type="url"],
.page-id-495 .entry-content input[type="tel"],
/*.page-id-495 .entry-content select,*/
.page-id-495 .entry-content select:not(.form-select),
.page-id-495 .entry-content textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  background: #fff;
  font-size: 16px; /* iOSズーム抑止 */
  line-height: 1.4;
}

/* フォーカス時（視認性UP） */
.page-id-495 .entry-content input:focus,
.page-id-495 .entry-content select:focus,
.page-id-495 .entry-content textarea:focus {
  outline: none;
  border-color: rgba(0,0,0,.45);
  box-shadow: 0 0 0 4px rgba(0,0,0,.08);
}

/* フィールド間の余白（CF7/WPFormsをざっくりカバー） */
.page-id-495 .entry-content .wpcf7-form p,
.page-id-495 .entry-content .wpforms-field,
.page-id-495 .entry-content .wpcf7-form-control-wrap {
  margin-bottom: 14px;
}

/* ラジオ/チェックの行間 */
.page-id-495 .entry-content input[type="radio"],
.page-id-495 .entry-content input[type="checkbox"] {
  transform: scale(1.05);
  margin-right: 8px;
}

/* 送信ボタン */
.page-id-495 .entry-content input[type="submit"],
.page-id-495 .entry-content button[type="submit"],
.page-id-495 .entry-content .wpforms-submit {
  width: 100%;
  padding: 14px 14px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* 送信ボタン：ホバー */
.page-id-495 .entry-content input[type="submit"]:hover,
.page-id-495 .entry-content button[type="submit"]:hover,
.page-id-495 .entry-content .wpforms-submit:hover {
  filter: brightness(0.95);
}

/* バリデーション文言 */
.page-id-495 .entry-content .wpcf7-not-valid-tip,
.page-id-495 .entry-content .wpforms-error,
.page-id-495 .entry-content .wpforms-field-required {
  font-size: 13px;
}

/* “Loading…”等の周辺の見た目（CF7想定） */
.page-id-495 .wpcf7-spinner {
  margin-left: 10px;
}

/* モバイル：余白調整 */
@media (max-width: 640px) {
  .page-id-495 .entry-content .tuneaibot-form,
  .page-id-495 .entry-content .wpcf7,
  .page-id-495 .entry-content .wpforms-container {
    padding: 16px 14px 12px;
    border-radius: 12px;
  }
}

/* *Required を控えめに */
.bootstrap-scope .required-mark {
  display: block;
  font-size: 13px;
  color: #d9534f; /* Bootstrapより少し柔らかい赤 */
  margin-top: 2px;
  font-weight: 500;
}

/* 入力欄を確実に100% */
.bootstrap-scope .form-control,
.bootstrap-scope .form-select {
  width: 100%;
}

/* ボタン上の余白 */
.bootstrap-scope .submit-area {
  margin-top: 30px;
}

</style>