/* b→dash CMS フォームの見た目を、今のサイト（bdash-marketing.com/req_material/）のフォームに寄せる（2026-10-30）
   テンプレート cms-15 の上に当てる。「HTML/CSSファイルの適用」→「ヘッダー/フッターCSS」に入れる */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

/* 背景の写真・見出しの帯を消して白にする */
html, body, .container, .bdash_form, .bd-pageset-body, .bd-pageset-content-wrap, .bd-pageset-parent {
  background: #fff !important;
  background-image: none !important;
}
.bd-pageset-header, .bd-pageset-footer { display: none !important; }
.container { max-width: 100% !important; padding: 0 12px !important; }
.bd-pageset-body, .bd-pageset-content-wrap, .bd-pageset-parent { padding: 0 !important; margin: 0 !important; width: 100% !important; }

/* 文字 */
.bdash_form, .bdash_form * {
  font-family: "Noto Sans JP", sans-serif !important;
  color: #0f1530;
}
.bdash_form p { font-size: 14px; color: #0f1530 !important; text-align: left !important; }

/* 質問：ラベルを上、入力欄を下に */
/* パソコンの幅ではテンプレートが横並び（flex）にするので、!important で縦に戻す（10/30 修正） */
.bdash_form dl.page-item {
  display: block !important;
  width: 100% !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}
.bdash_form dl.page-item[style*="none"], .bdash_form dl.page-item.bd-param-hidden { display: none !important; }
.bdash_form dt.page-item-label {
  display: block;
  width: 100% !important;
  margin: 0 0 4px !important;
  padding: 8px 0 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f1530 !important;
  text-align: left !important;
}
.bdash_form .page-item-required { color: #de3824 !important; margin-left: 2px; }
.bdash_form dt, .bdash_form dd { flex: none !important; max-width: 100% !important; }
.bdash_form dd { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.bdash_form dd > input.form-control { display: block !important; }

/* 入力欄 */
.bdash_form input.form-control,
.bdash_form select,
.bdash_form textarea {
  width: 100% !important;
  height: 42px;
  padding: 8px !important;
  font-size: 14px !important;
  color: #5b5b5f !important;
  background: #fff !important;
  border: 1px solid #e7e7e7 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.bdash_form textarea { height: 100px; }
.bdash_form input::placeholder, .bdash_form textarea::placeholder { color: #b5b5b5 !important; }
.bdash_form input.form-control:focus, .bdash_form select:focus, .bdash_form textarea:focus {
  border-color: #1e5bff !important;
  outline: none;
}

/* 補足（備考）・エラー */
.bdash_form .detail-info, .bdash_form .detail-info *,
.bdash_form .page-item-description, .bdash_form .page-item-description * {
  font-size: 12px !important; color: #5b5b5f !important; margin: 4px 0 0 !important; height: auto !important;
}
.bdash_form label, .bdash_form label * { color: #0f1530 !important; }
.bdash_form .page-item-message, .bdash_form .page-item-message * { color: #de3824 !important; font-size: 12px !important; }

/* 同意書 */
.bdash_form .agreement-text {
  font-size: 12px !important; line-height: 1.6; margin-bottom: 6px;
  border: 1px solid #e7e7e7 !important; border-radius: 8px; padding: 8px !important;
}
.bdash_form .form-item-agreement label { font-size: 14px !important; }
/* 同意書の枠に「個人情報の取り扱いについて」の全文を入れる（11/1）。テンプレートは枠の高さが画面幅の 10%（狭い枠だと3行も出ない）なので、高さを決めてスクロールさせ、改行を残す */
.bdash_form .page-item .page-item-info .agreement-text {
  max-height: 160px !important; overflow-y: auto !important; white-space: pre-line;
}
.bdash_form .agreement-text p { font-size: 12px !important; margin: 0 !important; }

/* 送信ボタン：今のサイトの青い丸ボタン */
.bdash_form .bdash_form_button_input { text-align: center; margin: 16px 0 24px !important; }
.bdash_form input.bdash_form_commit_button {
  width: 100% !important;
  max-width: 400px;
  height: 64px !important;
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: #1e5bff !important;
  border: 1px solid #1e5bff !important;
  border-radius: 50px !important;
  cursor: pointer;
  transition: opacity .3s;
}
.bdash_form input.bdash_form_commit_button:hover { opacity: .8; }

/* 完了画面・エラー画面：テンプレートが文字を白にしている（.bdash-form-submit span { color:#fff !important }）ので、白い背景で見えるように戻す（11/1） */
.bdash-form-submit .bdash_form span, .bdash-not-found .bdash_form span { color: #0f1530 !important; }
/* 確認画面：テンプレートが回答の文字を白にしている（.bdash-form-confirm … .page-item-info { color:#fff }）ので戻す（11/1） */
.bdash-form-confirm .bdash_form .page-item-info, .bdash-form-confirm .bdash_form .page-item-info * { color: #0f1530 !important; }

/* 11/2 直し：ご要望の欄を 72px に（テンプレートの height:15vw に勝つよう .page-item を付ける）／同意書を読みやすく（pre-line だと頭に空行が出るので戻し、字を 13px・行間を広げる） */
.bdash_form .page-item textarea { height: 72px; min-height: 72px; resize: vertical !important; }
.bdash_form .page-item .page-item-info .agreement-text { white-space: normal !important; font-size: 13px !important; line-height: 1.7 !important; max-height: 180px !important; padding: 10px 12px !important; }
.bdash_form .agreement-text p, .bdash_form .agreement-text span { font-size: 13px !important; line-height: 1.7 !important; }

/* 11/2 直し：入力中にご要望の枠が消える（テンプレートが textarea:focus の枠を白にしている）のを戻す */
.bdash_form .page-item textarea:focus { border-color: #1e5bff !important; }

/* 11/2 15:30 直し：ご要望の右下の△で枠を伸ばせるように戻す（height を !important にしていたので、伸ばしても戻されていた） */
