#stars_hp .page_contact {
  padding: 161px 0 91px;
}

#stars_hp .page_contact .container {
  width: 700px;
}

#stars_hp .page_contact p.sub_title {
  font-size: 25px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 2px;
}

#stars_hp .page_contact h2 {
  font-size: 100px;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: #070707;
  text-align: center;
  font-weight: bold;
  margin-bottom: 69px;
  font-weight: 800;
  display: block;
}

#stars_hp .page_contact h2::after {
  display: none;
}

#stars_hp .page_contact p.contact_text,
#stars_hp .page_contact p.contact_text_confirm {
  font-size: 16px;
  text-align: center;
  line-height: 40px;
  border-bottom: 2px solid #DFDFDF;
  padding-bottom: 15px;
  font-weight: bold;
  letter-spacing: 0.07em;
  margin-bottom: 58px;
}

#stars_hp .page_contact p.contact_text_confirm {
  display: none;
}

/*デフォルトのサンクスメッセージを非表示*/
#stars_hp .wpcf7-response-output {
  display: none;
}

#stars_hp .Form,
#stars_hp .confirm_area {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/*確認画面と完了画面を非表示*/
#stars_hp .confirm_area,
#stars_hp .thanks_area {
  display: none;
}

#stars_hp .Form-Item {
  width: 570px;
  margin: 0 auto;
}

#stars_hp .Form-Item-Label {
  font-size: 18px;
  font-weight: bold;
  line-height: 170%;
  letter-spacing: 0em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 40px;
}

#stars_hp #services_check {
  display: flex;
  flex-wrap: wrap;
  gap: 1em 1em;
}

#stars_hp .wpcf7-list-item {
  margin: 0;
}

#stars_hp .Form-Item-Radio .Form-Item-Label {
  border-bottom: 2px solid #DFDFDF;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

#stars_hp .Form-Item.Form-Item-Check {
  width: 100%;
  text-align: center;
}

#stars_hp .Form-Item-Check .Form-Item-Label {
  display: block;
  font-size: 16px;
  letter-spacing: 0.07em;
  font-weight: 500;
  text-align: center;
  padding-left: 0;
  margin-top: -7px;
  margin-bottom: 32px;
}

#stars_hp .Form-Item-Check .Form-Item-Label a {
  color: #0062DD;
  text-decoration: underline;
}

#stars_hp .Form-Item-Check .wpcf7-list-item-label,
#stars_hp .confirm_area .confirm_checkbox_span {
  font-size: 16px;
  font-weight: 500;
  line-height: 170%;
  letter-spacing: 0.03em;
  color: #606060;
}

/* #stars_hp .confirm_radio_area input[type="radio"]:checked {
  accent-color: #2472E3;
} */

#stars_hp .wpcf7-form-control.wpcf7-radio,
#stars_hp .confirm_radio_area {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  padding: 0 25px;
}

#stars_hp .confirm_checkbox_area {
  display: flex;
  flex-wrap: wrap;
  gap: 1em 1em;
}

#stars_hp .wpcf7-list-item-label,
#stars_hp .confirm_radio_area label,
#stars_hp .confirm_checkbox_area label {
  font-size: 18px;
  font-weight: 500;
  line-height: 170%;
  letter-spacing: 0em;
  margin-bottom: 10px;
}

#stars_hp .Form-Item-Label-Required {
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0.07em;
  color: #fff;
  background: #606060;
  border-radius: 50px;
  padding: 5px 8px 5px;
  font-weight: 500;
}

#stars_hp input:not([type="image" i], [type="range" i], [type="checkbox" i], [type="radio" i]) {
  background: rgba(225, 232, 248, 0.2);
  border: 2px solid #DFDFDF;
  border-radius: 70px;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  font-size: 18px;
  line-height: 20px;
  letter-spacing: 0em;
  box-sizing: border-box;
  width: 100%;
}

/* フォーカス時（背景100%） */
#stars_hp input:not([type="image" i], [type="range" i], [type="checkbox" i], [type="radio" i]):focus,
#stars_hp textarea:focus {
  background: rgba(225, 232, 248, 1);
}

#stars_hp textarea {
  background: rgba(225, 232, 248, 0.2);
  border: 2px solid #DFDFDF;
  border-radius: 70px;
  padding: 40px 40px;
  height: unset;
  min-height: 780px;
  font-size: 18px;
  line-height: 20px;
  letter-spacing: 0em;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 100%;
}

#stars_hp .Form .button-wrap {
  width: 310px;
  height: 60px;
  margin: 8px auto 0;
  text-align: center;
}

#stars_hp .Form .confirm_btn {
  background: url(../img/confirm_btn.png) no-repeat center center;
  background-size: contain;
  border: none !important;
  width: 310px;
  height: 75px;
  text-indent: -9999px;
  cursor: pointer;
  transition: opacity 0.3s;
}

#stars_hp .Form .confirm_btn:hover {
  opacity: 0.8;
}

#stars_hp .confirm_area .wpcf7-submit {
  background: url(../img/submit_btn.png) no-repeat center center / contain !important;
  background-size: contain;
  border: none !important;
  width: 310px;
  height: 75px;
  text-indent: -9999px;
  cursor: pointer;
  padding: 0;
  margin: 0 auto 20px;
  transition: opacity 0.3s;
}

#stars_hp .confirm_area .wpcf7-submit:hover {
  opacity: 0.8;
}

#stars_hp .confirm_area .back_button {
  font-size: 18px;
  line-height: 170%;
  letter-spacing: 0em;
  text-decoration: underline;
  border: none !important;
  background: none !important;
  width: auto;
  height: auto;
  cursor: pointer;
  padding: 0;
  margin: 0 auto;
  transition: opacity 0.3s;
}

#stars_hp .confirm_area .back_button:hover {
  opacity: 0.8;
}

#stars_hp .wpcf7-not-valid-tip {
  display: none;
}

#stars_hp .error-message {
  color: red;
  margin-top: 5px;
  display: block;
  padding-left: 40px;
  font-size: 12px;
}

#stars_hp #checkbox .error-message {
  position: absolute;
  bottom: -25px;
  padding-left: 25px;
}

#stars_hp #services_check .error-message {
  position: absolute;
  bottom: -30px;
  left: 0;
}

#stars_hp #services_check label,
#stars_hp .confirm_area .Form-Item-Radio label {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 丸いチェックボックス共通スタイル */
#stars_hp #services_check input[type="checkbox"],
#stars_hp .confirm_area .Form-Item-Radio input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  /* ← これで丸くする */
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

#stars_hp #services_check .wpcf7-list-item-label {
  margin-bottom: 0;
}

/* チェック時のスタイル */
#stars_hp #services_check input[type="checkbox"]:checked {
  /* border-color: #007bff;
  background-color: #007bff; */
}

/* チェックマーク（中の点）を擬似要素で表現 */
#stars_hp #services_check input[type="checkbox"]:checked::after,
#stars_hp .confirm_area .Form-Item-Radio input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  background: #007bff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#stars_hp .confirm_radio_area label {
  pointer-events: none;
  cursor: default;
}

#stars_hp .confirm_radio_area input[type="radio"] {
  pointer-events: none;
  cursor: default;
}

#stars_hp .confirm_area input[type="checkbox"] {
  pointer-events: none;
  cursor: default;
}

#stars_hp .confirm_area label {
  pointer-events: none;
  cursor: default;
}

#stars_hp .confirm_area input:not([type="image" i], [type="range" i], [type="checkbox" i], [type="radio" i]),
#stars_hp .confirm_area textarea {
  background: rgba(225, 232, 248, 0.2);
}

#stars_hp .confirm_area input:focus,
#stars_hp .confirm_area textarea:focus {
  outline: none;
  border: 2px solid #DFDFDF;
  box-shadow: none;
  cursor: default;
}

#stars_hp .page_contact_footer {
  text-align: center;
  font-size: 13px;
  line-height: 25px;
  letter-spacing: 0.07em;
}

/* プライバシーポリシー同意チェック */
#stars_hp #checkbox input[type="checkbox"],
#stars_hp .confirm_area .Form-Item-Check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #606060;
  border-radius: 2px;
  background: none;
  position: relative;
  cursor: pointer;
  margin-top: 4px;
}

/* チェック時の状態 */
#stars_hp #checkbox input[type="checkbox"]:checked::after,
#stars_hp .confirm_area .Form-Item-Check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4.5px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #606060;
  border-bottom: 2px solid #606060;
  transform: rotate(45deg);
}

/* チェック中も背景は透明のまま */
#stars_hp #checkbox input[type="checkbox"]:checked,
#stars_hp .confirm_area .Form-Item-Check input[type="checkbox"]:checked {
  background: none;
}

#stars_hp #checkbox label,
#stars_hp .confirm_area .confirm_checkbox_span {
  display: flex;
  /* align-items: center; */
  gap: 10px;
  justify-content: center;
}

@media (max-width: 768px) {
  #stars_hp .page_contact p.sub_title {
    font-size: 18px;
  }

  #stars_hp .page_contact h2 {
    font-size: 40px;
    line-height: normal;
    letter-spacing: 0.05em;
    margin-bottom: 60px;
  }

  #stars_hp .page_contact .container {
    width: calc(100% - 32px);
  }

  #stars_hp .page_contact p.contact_text,
  #stars_hp .page_contact p.contact_text_confirm {
    font-size: 14px;
    line-height: 25px;
    letter-spacing: 0em;
    padding-bottom: 14px;
    margin-bottom: 39px;
  }

  #stars_hp .Form-Item {
    width: 100%;
  }

  #stars_hp .page_contact {
    padding: 99px 0 40px;
  }

  #stars_hp .Form-Item-Label {
    font-size: 16px;
    padding-left: 19px;
    margin-bottom: 7px;
  }

  #stars_hp .Form-Item-Label-Required {
    font-size: 10px;
  }

  #stars_hp input:not([type="image" i], [type="range" i], [type="checkbox" i], [type="radio" i]) {
    height: 61px;
    padding: 0 17px;
    font-size: 16px;
  }

  #stars_hp .Form,
  #stars_hp .confirm_area {
    gap: 30px;
  }

  #stars_hp .Form-Item-Radio .Form-Item-Label {
    border-bottom: 2px solid #DFDFDF;
    padding-bottom: 8px;
    margin-bottom: 19px;
  }

  #stars_hp .wpcf7-form-control.wpcf7-radio,
  #stars_hp .confirm_radio_area {
    padding: 0 13px;
    gap: 16px;
  }

  #stars_hp .wpcf7-list-item-label,
  #stars_hp .confirm_radio_area label {
    font-size: 16px;
  }

  #stars_hp textarea {
    border-radius: 30px;
    font-size: 16px;
    padding: 20px 18px;
  }

  #stars_hp .Form-Item-Check .Form-Item-Label {
    font-size: 13px;
    line-height: 180%;
    letter-spacing: 0em;
    margin-top: -17px;
    margin-bottom: 18px;
  }

  #stars_hp .Form-Item-Check .wpcf7-list-item-label,
  #stars_hp .confirm_area .confirm_checkbox_span {
    font-size: 14px;
  }

  #stars_hp .Form .confirm_btn {
    width: 300px;
    height: 73px;
  }

  #stars_hp .error-message {
    padding-left: 20px;
  }

  #stars_hp #checkbox .error-message {
    bottom: -25px;
    padding-left: 0px;
  }

  #stars_hp #checkbox input[type="checkbox"], #stars_hp .confirm_area .Form-Item-Check input[type="checkbox"]{
    margin-top: 2px;
  }

  #stars_hp #services_check .error-message{
    bottom: -22px;
  }
}