.form_header {
  padding: 30px 36px 26px 36px;
}

.br_pc {
  display: block;
}

@media (max-width: 900px) {
  .br_pc {
    display: none;
  }
}

.form_container-base {
  max-width: 1078px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.form_body {
  background-color: #FFFBE9;
  padding: 61px 0 49px 0;
}

.form_title {
  font-size: 30px;
  font-weight: 700;
  color: #0B94E0;
  text-align: center;
}

.form_heading {
  font-size: 20px;
  font-weight: 400;
  color: #636363;
  text-align: center;
  margin-top: 20px;
}

.contact_form {
  width: 100%;
  padding: 49px 62px 39px 62px;
  margin-top: 60px;
  margin-bottom: 55px;
  background-color: #fff;
  border-radius: 10px;
}

.contact_error {
  display: none;
  font-size: 16px;
  text-align: center;
  color: #FF686B;
  margin-top: 10px;
}

.contact_error.is-show {
  display: block;
}

.thanks_message {
  font-size: 16px;
  text-align: center;
  color: #636363;
}

.thanks_message .btn_wrap {
  margin: 20px auto 0;
  text-align: center;
  justify-content: center;
}

.back-button,
.confirm-button,
.submit_button {
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background-color: #C7C8C8;
  border: none;
  border-radius: 30px;
  cursor: not-allowed;
  display: block;
  text-align: center;
  margin: 0 auto;
  margin-top: 40px;
  transition: background-color 0.3s;
  width: 348px;
}

.back-button,
.confirm-button,
.submit_button.enabled {
  background-color: #007bff;
  cursor: pointer;
}

.consent_label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.consent_label input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #C7C8C8;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  display: inline-block;
  position: relative;
}

.consent_label input[type="checkbox"]:checked {
  border-color: #FF9D00;
  background-color: #FF9D00;
}

.consent_label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 7px;
  width: 7px;
  height: 12px;
  border-width: 0 3px 3px 0;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.divider {
  display: inline-block;
  width: 16px;
  height: 2px;
  background-color: #000;
  vertical-align: middle;
  margin: 0 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

td {
  padding: 28px 0;
  vertical-align: middle;
}


.contact_form table tr:first-child td {
  padding-top: 0;
}

.padding-bottom_none {
  padding-bottom: 0;
}

@media (min-width: 901px) {
  tr:not(:last-child) {
    border-bottom: 1px solid #C7C8C8;
  }
}


tr td:first-child {
  width: 32.35%;
}

tr td:last-child {
  padding-left: 18px;
}

label,
td {
  font-size: 16px;
  color: #636363;
}

.label-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-flex_bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.label-flex_bottom a {
  text-decoration: underline;
  font-size: 16px;
  color: #636363;
}

.required-label {
  padding: 2px 6px;
  background-color: #FF9D00;
  color: #fff;
  font-size: 14px;
  border-radius: 4px;
  font-weight: 600;
  flex-shrink: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
  color: #aaa;
}

input::placeholder,
textarea::placeholder {
  font-size: 16px;
  color: #B8B8B8;
}



textarea {
  height: 100px;
}

td input[type="text"] {
  /* width: 48%; */
}

td input[type="text"]:last-child {
  margin-right: 0;
}

td .hyphen {
  margin: 0 8px;
}

td input[type="tel"],
td input[type="text"] {
  /* width: 25%; */
}

.preferred_date_group {
  display: flex;
  flex-direction: column;
}

.preferred_date_item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.preferred_date_item:last-child {
  margin-bottom: 0;
}

.preferred_label {
  white-space: nowrap;
  width: 16%;
  font-size: 16px;
}

.preferred_date_item_flex {
  display: flex;
  gap: 10px;
}

.date-input,
.time_select {
  padding: 11px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  color: #aaa;
}

@media (max-width: 600px) {

  .date-input,
  .time_select {
    /* padding: 3px; */
    padding: 6px 10px;
  }
}

.preferred_date_item input[type="date"] {
  /* width: 48%; */
}

select {
  appearance: none;
  padding-right: 40px;
  background-image: url('../../assets/img/home/form_arrow.svg');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.border_none {
  border-bottom: none;
}

.hyphen {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.preferred_date_item_flex {
  gap: 5px;
  width: 100%;
}

#last_name {
  /* width: 36.1%; */
  margin-right: 13px;
}

#first_name {
  /* width: 36.1%; */
}

#referrer_last_name,
#furigana_last {
  /* width: 36.1%; */
  margin-right: 13px;
}

#referrer_first_name,
#furigana_first {
  /* width: 36.1%; */
}

#email {
  width: 84.7%;
}

#email_confirm {
  width: 84.7%;
}

#prefecture {
  width: 48.41%;
}

#postal_code1 {
  width: 21.1%;
}

#postal_code2 {
  width: 21.1%;
}

#station {
  width: 84.7%;
}

/* #phone1 {
  width: 20.99%;
}

#phone2 {
  width: 20.99%;
}

#phone3 {
  width: 20.99%;
} */

#contact_time {
  width: 48.36%;
}

#request {
  width: 84.78%;
}

/* #preferred_date1 {
  width: 40.28%;
  margin-right: 13px;
}

#preferred_time1 {
  width: 40.28%;
}

#preferred_date2 {
  width: 40.28%;
  margin-right: 13px;
}

#preferred_time2 {
  width: 40.28%;
}

#preferred_date3 {
  width: 40.28%;
  margin-right: 13px;
}

#preferred_time3 {
  width: 40.28%;
} */

.vertical-align-top {
  vertical-align: top;
}

.additional_text {
  font-size: 14px;
  color: #636363;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .contact_form {
    padding: 22px 20px;
    margin-bottom: 26px;
  }

  .thanks_message {
    font-size: 14px;
    text-align: left;
  }

  tr {
    display: block;
    border: none;
  }

  tr td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  tr td:last-child {
    padding-left: 0;
    padding-right: 0;
  }

  td {
    border-bottom: none;
    padding: 0;
    padding-bottom: 11px;
  }

  td:last-child {
    padding-bottom: 24px;
  }

  .label-flex {
    justify-content: left;
    gap: 8px;
  }

  tr td:first-child {
    width: 100%;
  }

  .submit_button {
    width: 208px;
    margin-top: 22px;
  }

  .label-flex_bottom {
    gap: 5px;
  }

  select {
    appearance: none;
    padding-right: 40px;
    background-image: url('../../assets/img/home/form_arrow_sp.svg');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
}

.submit_button {
  padding: 21px 30px 19px 30px;
  font-size: 16px;
  color: #fff;
  background-color: #C7C8C8;
  border: none;
  border-radius: 30px;
  cursor: not-allowed;
  display: block;
  text-align: center;
  margin: 0 auto;
  margin-top: 40px;
  transition: background-color 0.3s;
}

@media (max-width: 768px) {
  .form_body {
    padding-top: 21px;
  }

  .form_title {
    font-size: 18px;
  }

  .form_heading {
    font-size: 14px;
  }

  .contact_form {
    margin-top: 22px;
  }

  .contact_error {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 19px 5px 14px 15px;
  }

  label {
    font-size: 15px;
  }

  .header_wrapper {
    justify-content: center;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="number"],
  select,
  textarea {
    width: 100%;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
  }

  .preferred_label {
    font-size: 14px;
  }

  .preferred_date_item {
    flex-direction: column;
    gap: 5px;
    align-items: start;
    margin-bottom: 17px;
  }

  /* .date-input,
  .time_select {
    width: 49%;
  }

  #last_name {
    width: 49%;
  }

  #first_name {
    width: 49%;
  }

  #furigana_last {
    width: 49%;
  }

  #furigana_first {
    width: 49%;
  } */

  #email {
    width: 100%;
  }

  #email_confirm {
    width: 100%;
  }

  #prefecture {
    width: 100%;
  }

  /* #postal_code1 {
    width: 29%;
  }

  #postal_code2 {
    width: 29%;
  } */

  #station {
    width: 100%;
  }

  /* #phone1 {
    width: 28%;
  }

  #phone2 {
    width: 28%;
  }

  #phone3 {
    width: 28%;
  }

  #contact_time {
    width: 76%;
  } */

  #request {
    width: 100%;
    height: 136px;
  }

  /* #preferred_date1 {
    width: 49%;
  }

  #preferred_time1 {
    width: 49%;
  }

  #preferred_date2 {
    width: 49%;
  }

  #preferred_time2 {
    width: 49%;
  }

  #preferred_date3 {
    width: 49%;
  }

  #preferred_time3 {
    width: 49%;
  } */

}


@media (max-width: 600px) {
  .form_body {
    background-color: #FFFBE9;
    padding: 21px 0 23px 0;
  }

  tr td {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }



  .border_none {
    display: flex;
    flex-direction: column;
  }

  .required-label {
    padding: 1px 6px;
    background-color: #FF9D00;
    color: #fff;
    font-size: 10px;
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0;
  }

  .additional_text {
    font-size: 14px;
    color: #636363;
    margin-top: 7px;
    margin-bottom: 12px;
  }

  .form_header {
    padding: 19px 36px 14px 36px;
  }

  .submit_button {
    margin-top: 22px;
  }

  .label-flex_bottom a {
    font-size: 14px;
  }

  .preferred_date_item_flex {
    height: 36px;
  }

  td:last-child {
    padding-bottom: 24px;
  }

  .padding-bottom_none {
    padding-bottom: 0 !important;
  }
}

/* 規約 */

.terms_content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s ease;
  padding: 0 15px;
}

.terms_content.open {
  padding-top: 15px;
  padding-bottom: 15px;
}

.terms_header {
  margin-top: 20px;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: bold;
}

.terms_paragraph {
  margin-bottom: 10px;
  font-weight: 400;
  line-height: 1.6;
}

.terms_list_item {
  font-weight: 400;
  margin-bottom: 10px;
}

.terms_toggle {
  cursor: pointer;
  text-decoration: underline;
}

.caution {
  display: block;
}

/* 数値フォーム */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

/* 電話番号 */
.hyphen .wpcf7-form-control-wrap {
  max-width: 160px;
}

/* 郵便番号 */
.zip {
  width: 100%;
}

/* 日付選択 */
input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
}

input[type="date"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type="date"]::-webkit-clear-button {
  -webkit-appearance: none;
}

input[type="date"] {
  cursor: pointer;
  position: relative;
}

/* お住まいの都道府県 */
#prefectures {
  max-width: 160px;
}

/* 紹介者氏名 */
.referrer-name {
  gap: 5px;
}

.referrer-name .wpcf7-form-control-wrap {
  width: calc(50% - 5px);
}

.referrer-name .wpcf7-form-control-wrap:last-child {
  /* margin-top: 10px; */
}

/* フレックス用 */
.d-flex {
  display: flex;
  gap: 5px;
}

/* CF7 */
.wpcf7-form-control-wrap {
  width: 100%;
}

.d-flex .wpcf7-form-control-wrap {
  width: calc(50% - 5px);
}

/* エラーメッセージ */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
  border: none;
  color: #f30;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.wpcf7 form .wpcf7-response-output {
  border: none;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
  border: none;
}

.wpcf7 .wpcf7-spinner {
  display: none;
}

/*--------------------------------------------------
ローディング表示
--------------------------------------------------*/
.l-loading {
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: none;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  flex-direction: column;
  -webkit-box-pack: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  width: 100%;
  position: fixed;
  inset: 0;
}

.l-loading .l-loading__spinner img {
  -webkit-animation: spin 1.8s linear infinite;
  animation: spin 1.8s linear infinite;
  height: 32px;
  width: 32px;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.l-loading .l-loading__text {
  font-size: 16px;
  font-weight: 500;
}

/* 送信ボタンの連打防止 */
.wpcf7 .wpcf7-submit.js-prevent-click {
  pointer-events: none;
  opacity: 0.4;
}