@charset "utf-8";
/*==========================================================
  お問い合わせフォーム（20_contact.php / _kakunin / _soushin）
===========================================================*/

/*----------------------------------------------------------
  サイト共通の緑（基本色 #6FBF8B とその濃淡）
  色を変えるときはここだけを直す
----------------------------------------------------------*/
:root {
  --ns-green: #6fbf8b;        /* 基本の緑（文字・ボタン・枠線） */
  --ns-green-dark: #58a875;   /* ホバーなど少し濃いとき */
  --ns-green-mid: #9cd3af;    /* 飾りの丸など */
  --ns-green-light: #dcefe3;  /* 薄い枠線 */
  --ns-green-pale: #edf7f1;   /* 薄い背景 */

  /* 入力欄の枠線はグレー（緑は使わない）*/
  --cf-border: #d5d5d5;        /* 通常時 */
  --cf-border-focus: #a8aeab;  /* 入力中は少しだけ濃く */

  /* 「修正する」と「送信する」のボタン幅。2つが必ず揃うよう1か所で持つ */
  --cf-btn-w: 240px;
}


/* このサイトには全体的な box-sizing 指定が無いため、フォーム内だけ揃える */
.cf-wrap,
.cf-wrap *,
.cf-wrap *::before,
.cf-wrap *::after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.cf-wrap {
  padding: 40px 20px 90px;
}

/*---------------  見出しまわり  ---------------*/
.cf-head {
  position: relative;
  max-width: 1060px;
  margin: 0 auto 34px;
  text-align: center;
}
.cf-head_ttl {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 0 0 22px;
}
.cf-head_lbl {
  display: inline-block;
  padding: 13px 52px;
  background: var(--ns-green);
  border-radius: 999px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  letter-spacing: 0.06em;
}
/* 見出し左右の飾り丸 */
.cf-head_dots {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cf-head_dots i {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--ns-green-light);
  border-radius: 50%;
}
.cf-head_dots i:last-child {
  width: 14px;
  height: 14px;
  background: var(--ns-green-mid);
}
.cf-head_dots__right i:first-child {
  width: 14px;
  height: 14px;
  background: var(--ns-green-mid);
}
.cf-head_dots__right i:last-child {
  width: 9px;
  height: 9px;
  background: var(--ns-green-light);
}

.cf-head_lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.85;
  color: #3c423e;
}

/* ご相談無料／資料請求OK */
.cf-badges {
  position: absolute;
  top: -14px;
  right: 0;
  display: flex;
  gap: 16px;
}
.cf-badges span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 96px;
  height: 96px;
  padding: 4px;
  border: 2px solid var(--ns-green);
  border-radius: 50%;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ns-green);
  text-align: center;
}

/*---------------  カード  ---------------*/
.cf-card {
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 70px 60px;
  background: #fffdf3;
  border: 2px solid var(--ns-green);
  border-radius: 30px;
}

/*---------------  行  ---------------*/
.cf-row {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 20px;
}
.cf-row__top .cf-label {
  padding-top: 12px;
}
.cf-label {
  flex: 0 0 210px;
  padding-top: 11px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ns-green);
  text-align: right;
}
.cf-req {
  color: #ff9494;
  font-size: 15px;
  vertical-align: super;
  line-height: 1;
  margin-left: 2px;
}
/* 任意項目の「＊」の場所だけを確保する（右ぞろえの文字位置を必須項目と揃えるため）*/
.cf-req__none {
  visibility: hidden;
}
.cf-field {
  flex: 1 1 auto;
  min-width: 0;
}

/*---------------  入力部品  ---------------*/
.cf-input,
.cf-select {
  width: 100%;
  height: 46px;
  padding: 0 22px;
  background: #fff;
  border: 1px solid var(--cf-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  color: #3c423e;
  -webkit-appearance: none;
  appearance: none;
}
.cf-textarea {
  width: 100%;
  min-height: 220px;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid var(--cf-border);
  border-radius: 26px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  color: #3c423e;
  resize: vertical;
}
/* 入力中は枠線がわずかに濃くなるだけ（緑のフチ・光彩は出さない）*/
.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
  outline: none;
  border-color: var(--cf-border-focus);
}
/* キーボード操作のときだけ、現在位置が分かるよう枠を出す */
.cf-input:focus-visible,
.cf-select:focus-visible,
.cf-textarea:focus-visible {
  outline: 2px solid var(--cf-border-focus);
  outline-offset: 1px;
}
.cf-input::placeholder,
.cf-textarea::placeholder {
  color: #b7c2bc;
}

/* select の ▼ */
.cf-selectwrap {
  position: relative;
}
.cf-selectwrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 0;
  height: 0;
  margin-top: -4px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 11px solid #c9d3ce;
  pointer-events: none;
}
.cf-select {
  padding-right: 52px;
}
.cf-select::-ms-expand {
  display: none;
}

/*---------------  詳細項目（複数選択のチェックボックス）  ---------------*/
.cf-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 16px;
  padding-left: 8px;
}
/* display:grid が hidden 属性より強いので明示的に打ち消す */
.cf-opts[hidden] {
  display: none;
}
.cf-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.4;
  color: #3c423e;
  cursor: pointer;
}
.cf-opt input {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  background: #fff;
  border: 1.5px solid var(--cf-border);
  border-radius: 5px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: 0.2s;
}
.cf-opt input:checked {
  background: var(--ns-green);
  border-color: var(--ns-green);
}
.cf-opt input:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6.5px;
  width: 5px;
  height: 11px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
}
.cf-opt input:focus-visible {
  outline: 2px solid var(--cf-border-focus);
  outline-offset: 2px;
}

/*---------------  同意チェック  ---------------*/
.cf-consent {
  margin: 34px 0 0;
  text-align: center;
}
.cf-consent label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  line-height: 1.5;
  color: #3c423e;
  cursor: pointer;
}
.cf-consent input {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin: 0;
  background: #fff;
  border: 1.5px solid var(--cf-border);
  border-radius: 5px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
  transition: 0.2s;
}
.cf-consent input:checked {
  background: var(--ns-green);
  border-color: var(--ns-green);
}
.cf-consent input:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 8px;
  width: 6px;
  height: 13px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
}
.cf-consent input:focus-visible {
  outline: 2px solid var(--cf-border-focus);
  outline-offset: 2px;
}
.cf-consent a {
  color: var(--ns-green);
  text-decoration: underline;
}
.cf-consent_note {
  margin: 10px 0 0;
  font-size: 14px;
  color: #7c8781;
}

/*---------------  reCAPTCHA  ---------------*/
.cf-recaptcha {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

/*---------------  ボタン  ---------------*/
.cf-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}
/* LP の「販売パートナー様へ」ボタンと同じデザイン。
   LP/css/hoiku-lp.css の .fv-hoiku_btn ＋ .fv-hoiku_btn--partner をそのまま移植。
   幅だけは LP の width:100%（2カラムいっぱい）ではなく、
   カード中央に置くため min-width 指定にしている */
.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: var(--cf-btn-w);
  padding: 14px 32px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: linear-gradient(180deg, #5aab7c 0%, #96e0ae 100%);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25),
    inset 0 2px 3px rgba(255, 255, 255, 0.5),
    inset 0 -3px 5px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s, transform 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.cf-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.cf-submit_icon {
  flex: 0 0 auto;
}
/* LP の「修正する」ボタンと同じデザイン。
   LP/css/hoiku-lp.css の .fv-confirm_back をそのまま移植 */
.cf-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--cf-btn-w);
  /* 送信ボタンと高さを揃える（送信は上下14px＋枠2px）*/
  padding: 14px 32px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #eef7f1 100%);
  color: #4f9b6d;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  /* 送信ボタンと同じ質感の影を付ける */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18),
    inset 0 2px 3px rgba(255, 255, 255, 0.9),
    inset 0 -3px 5px rgba(79, 155, 109, 0.18);
  transition: transform 0.2s, opacity 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
@media (hover: hover) {
  .cf-back:hover {
    opacity: 0.9;
    transform: translateY(-2px);
  }
}

/*---------------  エラー表示  ---------------*/
.cf-errors {
  max-width: 1060px;
  margin: 0 auto 24px;
  padding: 18px 26px;
  background: #fdf0ef;
  border: 1px solid #e2483f;
  border-radius: 18px;
  color: #c93a31;
}
.cf-errors ul {
  margin: 0;
  padding-left: 1.2em;
}
.cf-errors li {
  margin: 2px 0;
  font-size: 16px;
  line-height: 1.6;
}

/*---------------  確認画面  ---------------*/
.cf-confirm-lead {
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.8;
  color: #3c423e;
  text-align: center;
}
.cf-row__confirm {
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--ns-green-light);
}
.cf-row__confirm .cf-label {
  padding-top: 0;
}
.cf-value {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #3c423e;
  word-break: break-word;
}
.cf-value__empty {
  color: #a6b1ab;
}

/*---------------  送信完了  ---------------*/
.cf-done {
  max-width: 1060px;
  margin: 0 auto;
  padding: 60px 30px;
  background: #fffdf3;
  border: 2px solid var(--ns-green);
  border-radius: 30px;
  text-align: center;
}
.cf-done p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.9;
  color: #3c423e;
}
.cf-done p:first-child {
  font-size: 24px;
  font-weight: 700;
  color: var(--ns-green);
}
.cf-done_note {
  font-size: 15px !important;
  color: #7c8781 !important;
}

/*==========================================================
  タブレット
===========================================================*/
@media (max-width: 1099px) {
  .cf-badges {
    position: static;
    justify-content: center;
    margin-top: 22px;
  }
  .cf-card {
    padding: 46px 40px 50px;
  }
  .cf-label {
    flex-basis: 180px;
  }
}

/*==========================================================
  スマートフォン
===========================================================*/
@media (max-width: 767px) {
  .cf-wrap {
    padding: 24px 14px 60px;
  }
  .cf-head_ttl {
    gap: 12px;
  }
  .cf-head_lbl {
    padding: 11px 26px;
    font-size: 20px;
  }
  .cf-head_dots i,
  .cf-head_dots i:last-child,
  .cf-head_dots__right i:first-child {
    width: 7px;
    height: 7px;
  }
  .cf-head_lead {
    font-size: 16px;
    text-align: left;
  }
  .cf-badges span {
    width: 84px;
    height: 84px;
    font-size: 14px;
  }

  .cf-card {
    padding: 28px 18px 34px;
    border-radius: 20px;
  }
  .cf-row {
    display: block;
    margin-bottom: 18px;
  }
  .cf-label {
    padding-top: 0;
    margin-bottom: 7px;
    text-align: left;
    font-size: 16px;
  }
  .cf-opts {
    grid-template-columns: 1fr;
    padding-left: 0;
  }
  .cf-textarea {
    min-height: 180px;
    border-radius: 18px;
  }
  .cf-consent label {
    font-size: 15px;
    text-align: left;
  }
  .cf-recaptcha {
    /* 302px の固定幅ウィジェットを狭い画面に収める */
    transform: scale(0.88);
    transform-origin: center top;
  }
  .cf-actions {
    gap: 14px;
  }
  .cf-submit,
  .cf-back {
    width: 100%;
    min-width: 0;
  }
  .cf-row__confirm {
    padding-bottom: 14px;
  }
  .cf-done {
    padding: 36px 18px;
    border-radius: 20px;
  }
  .cf-done p {
    font-size: 16px;
  }
  .cf-done p:first-child {
    font-size: 20px;
  }
}
