/*----------------
フォーム
----------------*/
.form_body {
  background-color: #FFEFE0;
  padding-top: 77px;
  padding-bottom: 75px;
}

@media (max-width: 768px) {
  .form_body {
    padding-top: 40px;
    padding-bottom: 50px;
  }
}

.form_title {
  font-size: 34px;
  font-weight: 700;
  color: rgba(62, 62, 62, 1);
  text-align: center;
  margin-bottom: 75px;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .form_title {
    font-size: 20px;
    margin-bottom: 30px;
  }
}

.required {
  position: relative;
}

.required::after {
  content: "必須";
  position: absolute;
  font-size: 14px;
  font-weight: 700;
  color: #FF686B;
  bottom: 0;
  left: 0;
  letter-spacing: 0.05em;
}

@media (max-width: 920px) {
  .required::after {
    font-size: 16px;
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
  }
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  height: 60px;
  padding: 10px 24px;
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
  background: white;
  color: #3E3E3E;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#postalCode,
#prefectures {
  max-width: 160px;
  width: 100%;
}

textarea {
  height: 200px;
}

@media (max-width: 920px) {
  textarea {
    height: 160px;
  }
}

.select_wrap {
  position: relative;
  width: 100%;
  max-width: 160px;
}

@media (max-width: 920px) {
  .select_wrap {
    width: 100%;
  }
}

.select_wrap::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  right: 24px;
  width: 0;
  height: 0;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top: 8px solid #000;
  border-bottom-width: 0;
}

.additional_text {
  font-size: 16px;
  color: #636363;
  margin: 0;
}

.preferred_date_item {
  display: flex;
  margin-bottom: 30px;
}

@media (max-width: 920px) {
  .preferred_date_item {
    margin-bottom: 16px;
  }
}

.preferred_date_item:last-child {
  margin-bottom: 0;
}

.label-flex_bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.label-flex_bottom a {
  text-decoration: underline;
  font-size: 16px;
  font-weight: 400;
  color: #636363;
}

.consent_label {
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
}

.consent_label input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #000000;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  display: inline-block;
  position: relative;
  margin: 0;
}

.consent_label span {
  font-weight: 400;
}

.submit_button {
  width: 100%;
  height: 80px;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background-color: #57AE1D;
  border: none;
  border-radius: 500px;
  cursor: pointer;
  margin: 30px auto 0;
  transition: background-color 0.3s;
}

@media (min-width: 768px) {
  .submit_button {
    width: 100%;
    max-width: 480px;
    font-size: 18px;
    margin: 60px auto 0;
  }
}

.reset_button {
  margin: 23px auto 0;
  width: 100%;
  height: auto;
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  border: 0;
  background: transparent;
  cursor: pointer;
}

@media (min-width: 920px) {
  .reset_button {
    margin: 33px auto 0;
  }
}

tbody {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

@media (max-width: 920px) {
  tbody {
    gap: 40px;
  }
}

tr {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  gap: 32px;
}

@media (max-width: 920px) {
  tr {
    flex-direction: column;
    gap: 25px;
  }
}

tr td {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  gap: 20px;
  padding: 0;
}

@media (max-width: 920px) {
  tr td {
    gap: 11px;
  }
}

tr td:first-child {
  width: 100%;
  flex: 0 1 300px;
  min-width: 300px;
}

@media (max-width: 920px) {
  tr td:first-child {
    flex: 0 1 auto;
  }
}

tr td:last-child {
  padding-left: 0;
  flex: 1 1 0%;
}

@media (max-width: 920px) {
  tr td:last-child {
    flex: 0 1 auto;
  }
}

td {
  padding: 28px 0;
  vertical-align: middle;
  border-bottom: 0;
}

@media (max-width: 920px) {
  td {
    padding: 0 0 31px;
  }
}

td:last-child {
  padding-bottom: 0;
}

.label-flex {
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 920px) {
  .label-flex {
    height: auto;
  }
}

#last_name,
#first_name,
#furigana_last,
#furigana_first {
  width: 100%;
  margin-right: 0;
}

@media (min-width: 1440px) {

  #last_name,
  #first_name,
  #furigana_last,
  #furigana_first {
    width: 240px;
    margin-right: 0;
  }
}

#email,
#email_confirm,
#station {
  width: 34.72vw;
}

@media (max-width: 920px) {

  #email,
  #email_confirm,
  #station {
    width: 100%;
  }
}

@media (min-width: 1440px) {

  #email,
  #email_confirm,
  #station {
    width: 500px;
  }
}

#prefecture,
#contact_time {
  width: 100%;
}

@media (max-width: 920px) {

  #prefecture,
  #contact_time {
    width: 100%;
  }
}

#request {
  width: 41.67vw;
}

@media (max-width: 920px) {
  #request {
    width: 100%;
  }
}

@media (min-width: 1440px) {
  #request {
    width: 100%;
    resize: none;
  }
}

#postal_code1,
#postal_code2,
#phone1,
#phone2,
#phone3 {
  width: 100%;
}

@media (max-width: 920px) {

  #postal_code1,
  #postal_code2,
  #phone1,
  #phone2,
  #phone3 {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 1440px) {

  #postal_code1,
  #postal_code2,
  #phone1,
  #phone2,
  #phone3 {
    width: 160px;
  }
}

@media (max-width: 920px) {

  #postal_code1,
  #postal_code2 {
    width: calc((100% - 22px) / 2);
    max-width: 200px;
  }
}

.preferred_date_row {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 920px) {
  .preferred_date_row {
    flex-direction: row;
    gap: 32px;
  }
}

.preferred_date_row_flex {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 920px) {
  .preferred_date_row_flex {
    gap: 36px;
  }
}

.required_data {
  position: relative;
}

.required_data:after {
  content: "必須";
  position: absolute;
  font-size: 14px;
  font-weight: 700;
  color: #FF686B;
  top: 0;
  right: 0;
  letter-spacing: 0.05em;
}

@media (min-width: 920px) {
  .required_data:after {
    font-size: 16px;
    top: 40px;
    right: auto;
    left: 0;
  }
}

.preferred_date_item_flex {
  display: flex;
  gap: 20px;
}

.preferred_date_item .preferred_label {
  font-weight: 400;
}

.schedule_box,
.date_box {
  width: calc((100% - 20px) / 2) !important;
  height: 60px;
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
  position: relative;
}

@media (max-width: 920px) {

  .schedule_box,
  .date_box {
    width: 100% !important;
  }
}

.date_box::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  right: 24px;
  width: 0;
  height: 0;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top: 8px solid #000;
  border-bottom-width: 0;
}

.date-input {
  width: 100%;
  padding: 10px 10px 10px 24px !important;
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
  position: relative;
}

@media (max-width: 920px) {
  .date-input {
    padding: 10px 10px 10px 10px !important;
  }
}

#preferred_date1,
#preferred_date2,
#preferred_date3 {
  margin-right: 10px;
  width: 100%;
  box-sizing: border-box;
  resize: none;
}

@media (max-width: 920px) {

  #preferred_date1,
  #preferred_date2,
  #preferred_date3 {
    width: 100%;
  }
}

input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  background: transparent;
  z-index: 1;
}

input[type="date"]::after {
  content: '';
  background-image: url('../img/home/calender.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 0 0;
  width: 22px;
  height: 22px;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.time_select {
  width: 100%;
  padding: 10px 24px;
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
  position: relative;
}

/* 数値フォーム */
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;
}

/* フレックス用 */
.d-flex {
  display: flex;
  gap: 5px;
}

/* CF7 */
.wpcf7-form-control-wrap {
  display: inline-block;
  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;
}

/* 共通 */
.sp_br {
  display: inline;
}

.pc_br {
  display: block;
}

@media (max-width: 920px) {
  .sp_br {
    display: block;
  }

  .pc_br {
    display: inline;
  }
}

/* 送信ボタンの連打防止 */
.wpcf7 .wpcf7-submit.js-prevent-click {
  pointer-events: none;
  opacity: 0.4;
}