@charset "utf-8";

/* ==========================================================================
   ハピスマ会員お申し込み(page-entry.php) 2026リニューアル
   お問い合わせ(contact.css)と共通の見た目。ここには申込みフォーム固有の部分だけを書く
   (セクション見出し・ラジオボタン・数値入力+単位・規約の開閉)
   掲載情報の登録(page-contact.php)でもセクション見出し・任意・補足・ラジオボタン・規約見出しを共用する
   ========================================================================== */

/* セクション見出し(お客様情報 / お申し込みプラン) */
.en_sec_title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f3ede0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
}
.en_sec_title::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: var(--c-pink);
}
.ct_fields + .en_sec_title { margin-top: 48px; }
.mw_wp_form_confirm .ct_fields + .en_sec_title { margin-top: 40px; }
.mw_wp_form_confirm .en_sec_title { margin-bottom: 0; }

/* 任意 */
.ct_req.is-optional { background: #a8b0bb; }

/* 補足 */
.en_note {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #666;
}
.mw_wp_form_confirm .en_note { margin-top: 2px; }

/* ラジオボタン(ご利用プラン / お支払い方法) */
.en_plan .mwform-radio-field,
.en_choice .mwform-radio-field { display: block; margin: 0; }
.hs_contact_wrap .mw_wp_form .horizontal-item + .horizontal-item,
.hs_contact_wrap .mw_wp_form .vertical-item + .vertical-item { margin-left: 0; }
.en_plan .mwform-radio-field + .mwform-radio-field { margin-top: 10px; }
.en_choice { display: flex; flex-wrap: wrap; gap: 10px; }
.en_choice .error { flex-basis: 100%; }

.en_plan label,
.en_choice label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid #dde4ee;
  border-radius: 8px;
  background: #fff;
  font-size: 14.5px;
  line-height: 1.6;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.en_choice label { min-width: 190px; }
.en_plan label:hover,
.en_choice label:hover { border-color: #f8b6c5; }
.en_plan label:has(input:checked),
.en_choice label:has(input:checked) { border-color: var(--c-pink); background: #fff5f8; }

.en_plan input[type="radio"],
.en_choice input[type="radio"] {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid #b9c3cf;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s;
}
.en_plan input[type="radio"]:checked,
.en_choice input[type="radio"]:checked { border-color: var(--c-pink); }
.en_plan input[type="radio"]:checked::after,
.en_choice input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: var(--c-pink);
}
.en_plan input[type="radio"]:focus-visible,
.en_choice input[type="radio"]:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }

/* 数値入力 + 単位(従業員数 / 登録費 / 月額費) */
.en_unit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
}
.en_unit .en_note,
.en_unit .error { flex-basis: 100%; }
.ct_input input[type="number"] {
  display: block;
  width: 200px;
  max-width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid #dde4ee;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--c-text);
  transition: border-color .2s, box-shadow .2s;
}
.ct_input input[type="number"]::placeholder { color: #a8b0bb; }
.ct_input input[type="number"]:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(0,168,233,.15);
}
/* 自動入力の欄(登録費・月額費)は編集できないことが分かる見た目に */
.ct_input input[type="number"][readonly] {
  border-color: #eceff3;
  background: #f5f7fa;
  font-weight: 700;
  cursor: default;
}
.ct_input input[type="number"][readonly]:focus { border-color: #eceff3; box-shadow: none; }
.ct_input:has(.error) input[type="number"] { border-color: #f08aa2; background: #fff8fa; }
.en_unit_text { font-size: 14.5px; white-space: nowrap; }
.mw_wp_form_confirm .en_unit { gap: 0 4px; }
.mw_wp_form_confirm .en_unit_text { font-size: inherit; }

/* 規約・プライバシーポリシー本文の見出し */
.ct_policy_title { margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.ct_policy + .ct_policy { margin-top: 10px; }

/* 完了画面 */
.ct_complete_note a { color: #1a5fc8; text-decoration: underline; text-underline-offset: 3px; }
.ct_complete_note a:hover { text-decoration: none; }


/* ==========================================================================
   レスポンシブ(タブレット)
   ========================================================================== */
@media all and (max-width: 768px) {
  .ct_fields + .en_sec_title { margin-top: 40px; }
}


/* ==========================================================================
   レスポンシブ(スマホ)
   ========================================================================== */
@media all and (max-width: 520px) {
  .en_sec_title { font-size: 16.5px; margin-bottom: 18px; }
  .en_plan label,
  .en_choice label { padding: 10px 12px; font-size: 13.5px; }
  .en_choice label { min-width: 0; }
  .en_choice .mwform-radio-field { flex: 1 1 100%; } /* 2つ並べると「クレジットカード」が折り返すため縦並び */
  .ct_input input[type="number"] { width: 160px; height: 48px; font-size: 16px; } /* iOS のズーム防止で16px */
}
