@charset "UTF-8";
/*
 * 看護師特定行為研修 お申込みフォーム（期間別サービス選択UI）
 * 読み込み: functions.php（is_page( 'specifictraining-form' ) のときのみ）
 * JS: assets/js/apply-form-specifictraining.js
 */
.st-apply {
  --st-blue: #5aa9f0;
  --st-head: #b6e3e3;
  --st-teal: #3f9097;
  --st-red: #f0304a;
  --st-line: #9aa3a8;
  --st-btn-add: #d6e6fb;
  --st-btn-period: #d6f3f1;
  --st-text: #222;
  color: var(--st-text);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 40px;
  text-align: left;
}
.st-apply *,
.st-apply *::before,
.st-apply *::after { box-sizing: border-box; }

.st-apply__lead { font-size: 18px; margin: 0 0 20px; }

/* 見積番号（右寄せ） */
.st-apply__quote { margin: 0 0 40px; text-align: right; }
.st-apply__quote label,
.st-apply__quote .st-apply__quote-label { display: block; font-size: 14px; margin-bottom: 8px; }
.st-apply__quote input[type="text"] {
  font: inherit; width: 360px; max-width: 100%; height: 32px;
  border: 1px solid #888; border-radius: 4px; padding: 0 10px; background: #fff; margin: 0;
}
.st-apply__quote input[type="text"]:focus { outline: 2px solid var(--st-blue); border-color: var(--st-blue); }

/* 送信用の項目（入力画面では非表示） */
.st-apply__data { display: none; }

/* セクション */
.st-apply .st-sec { margin-bottom: 60px; }
.st-apply .st-sec:last-child { margin-bottom: 10px; }
.st-apply .st-sec__title {
  font-size: 17px; font-weight: bold; line-height: 1.4;
  border-left: 4px solid var(--st-blue); padding: 0 0 0 10px; margin: 0 0 20px;
  background: none; border-bottom: none;
}
.st-apply .st-sec__title::before,
.st-apply .st-sec__title::after { content: none; }
.st-apply .st-sec__note { font-size: 13px; margin: 0 0 10px; }

/* 期間ブロック */
.st-apply .st-period { border: 1px solid var(--st-line); margin-bottom: 30px; background: #fff; }
.st-apply .st-period__head,
.st-apply .st-row,
.st-apply .st-addrow { display: flex; align-items: center; min-height: 30px; }
.st-apply .st-period__head { background: var(--st-head); }
.st-apply .st-row,
.st-apply .st-addrow { border-top: 1px solid var(--st-line); padding: 3px 0; }
.st-apply .st-lbl { width: 200px; flex-shrink: 0; text-align: center; align-self: stretch; display: flex; align-items: center; justify-content: center; border-right: 1px solid #fff; }
.st-apply .st-rg { flex: 1; min-width: 0; padding: 3px 0; }
.st-apply .st-act { width: 180px; flex-shrink: 0; text-align: center; }
.st-apply .st-rm { width: 50px; flex-shrink: 0; text-align: center; line-height: 0; }
.st-apply .st-row__main { flex: 1; min-width: 0; padding-left: 40px; }
.st-apply .st-addrow { padding-left: 40px; }

.st-apply .st-range { display: flex; align-items: center; gap: 8px; padding-left: 10px; white-space: nowrap; }
.st-apply .st-rg-item { display: inline-flex; align-items: center; gap: 8px; }
.st-apply .st-end-auto { font-size: 12px; color: #555; margin-left: 12px; white-space: nowrap; }

/* プルダウン */
.st-apply select {
  font: inherit; color: var(--st-text); border: 1px solid #888; border-radius: 4px; background-color: #fff;
  height: 26px; padding: 0 6px; margin: 0; max-width: 100%; line-height: normal;
}
.st-apply select option { color: var(--st-text); }
.st-apply select.st-month { width: 120px; text-align: center; }
.st-apply select.st-month--single { width: 200px; margin-left: 32px; }
.st-apply select.st-month:disabled { background-color: #eee; cursor: not-allowed; }
.st-apply select.st-subject { width: 100%; }
.st-apply select.is-empty { color: #999; }
.st-apply select.is-dup { color: var(--st-red); border-color: var(--st-red); background-color: #fff2f4; font-weight: bold; }
.st-apply select.is-error { border-color: var(--st-red); background-color: #fff2f4; }
.st-apply .st-dup-msg,
.st-apply .st-err-msg { color: var(--st-red); font-size: 12px; margin: 2px 0; }

/* ボタン */
.st-apply .st-btn {
  font: inherit; font-size: 14px; border: none; border-radius: 3px; cursor: pointer; color: #fff;
  width: 80px; height: 24px; padding: 0; line-height: 24px; margin: 0;
}
.st-apply .st-btn--clear { background: var(--st-teal); }
.st-apply .st-btn--del { background: var(--st-red); }
.st-apply .st-btn:hover { filter: brightness(1.08); }
.st-apply .st-btn-add {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; color: var(--st-text);
  border: 1px solid #9bb; border-radius: 3px; cursor: pointer; height: 26px; padding: 0 14px 0 10px; margin: 0;
}
.st-apply .st-btn-add--subj { background: var(--st-btn-add); }
.st-apply .st-btn-add--period { background: var(--st-btn-period); }
.st-apply .st-btn-add:disabled { opacity: .45; cursor: not-allowed; }
.st-apply .st-plus {
  width: 18px; height: 18px; border-radius: 50%; background: var(--st-blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1;
}
.st-apply .st-minus {
  width: 20px; height: 20px; border-radius: 50%; background: #e00; color: #fff; border: none;
  cursor: pointer; font-size: 16px; line-height: 1; padding: 0; margin: 0;
}

/* 送信前エラー */
.st-apply .st-errors {
  display: none; border: 1px solid var(--st-red); background: #fff2f4; color: var(--st-red);
  border-radius: 6px; padding: 12px 16px; margin: 0 0 24px; font-size: 14px;
}
.st-apply .st-errors.is-visible { display: block; }
.st-apply .st-errors ul { margin: 6px 0 0; padding-left: 20px; }

/* 確認画面（JS が動かない場合も MW WP Form の確認画面クラスで非表示にする） */
.mw_wp_form_confirm .st-apply__lead,
.mw_wp_form_confirm .st-app,
.mw_wp_form_complete .st-apply__lead,
.mw_wp_form_complete .st-app { display: none; }
.mw_wp_form_confirm .st-apply__data { display: block; }
.mw_wp_form_confirm .st-apply__quote { text-align: left; margin-bottom: 24px; }
.mw_wp_form_confirm .st-apply__quote:has(input[type="hidden"][value=""]) { display: none; }
.mw_wp_form_confirm .st-apply:has(.st-apply__quote input[type="hidden"][value=""]) .st-apply__data-title { display: none; }
.mw_wp_form_confirm .st-apply__data:has(input[type="hidden"][value=""]) { display: none; }
.st-apply.is-no-quote .st-apply__quote,
.st-apply.is-no-quote .st-apply__data-title,
.st-apply.is-no-data .st-apply__data { display: none; }
.st-apply.is-confirm .st-apply__lead,
.st-apply.is-confirm .st-app { display: none; }
.st-apply.is-confirm .st-apply__quote { text-align: left; margin-bottom: 24px; }
.st-apply.is-confirm .st-apply__data { display: block; }
.st-apply .st-apply__data-title { font-weight: bold; border-left: 4px solid var(--st-blue); padding-left: 10px; margin: 0 0 10px; }


/* ===== スマホ ===== */
@media (max-width: 767px) {
  .st-apply__lead { font-size: 15px; }
  .st-apply__quote { margin-bottom: 28px; }
  .st-apply__quote label,
  .st-apply__quote .st-apply__quote-label { font-size: 12px; }
  .st-apply__quote input[type="text"] { width: 100%; }
  .st-apply .st-sec { margin-bottom: 40px; }
  .st-apply .st-sec__title { font-size: 16px; }
  .st-apply .st-period { margin-bottom: 20px; }

  /* 期間ヘッダー：1段目「(−) 契約期間 … クリア」、2段目以降に年月 */
  .st-apply .st-period__head { flex-wrap: wrap; padding: 8px 10px; gap: 8px 0; }
  .st-apply .st-period__head .st-rm { order: 0; width: auto; margin-right: 8px; }
  .st-apply .st-period__head .st-rm:empty { display: none; }
  .st-apply .st-period__head .st-lbl { order: 1; flex: 1; width: auto; justify-content: flex-start; border-right: none; font-weight: bold; }
  .st-apply .st-period__head .st-act { order: 2; width: auto; }
  .st-apply .st-period__head .st-rg { order: 4; width: 100%; flex: 0 0 100%; padding: 0; }
  .st-apply .st-range { flex-wrap: wrap; padding-left: 0; gap: 6px; white-space: normal; }
  .st-apply .st-range .st-tilde { display: none; }
  .st-apply .st-rg-item { display: flex; width: 100%; }
  .st-apply .st-rg-lbl { width: 64px; flex-shrink: 0; font-size: 13px; }
  .st-apply .st-range select.st-month { flex: 1; min-width: 0; width: auto; }
  .st-apply select.st-month--single { flex: 1; width: auto; margin-left: 0; }
  .st-apply .st-end-auto { margin-left: 0; width: 100%; }

  /* 科目行：プルダウン＋削除 */
  .st-apply .st-row { gap: 8px; padding: 6px 10px; }
  .st-apply .st-row__main { padding-left: 0; }
  .st-apply .st-row .st-act { width: auto; }
  .st-apply .st-row .st-rm { display: none; }
  .st-apply .st-addrow { padding: 8px 10px; }
  .st-apply select { height: 32px; }
  .st-apply .st-btn { width: 64px; height: 30px; line-height: 30px; }
  .st-apply .st-btn-add { height: 32px; }
}
