/* フォームリセット */
fieldset {
  padding: 0;
  margin: 0;
  border: none;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

label,
input,
select,
textarea {
  font: inherit;
  color: #fff;
  vertical-align: top;
}
textarea {
  resize: vertical;
  height: 9.875rem;
}
[type="text"],
[type="search"],
[type="tel"],
[type="url"],
[type="email"],
[type="password"],
[type="date"],
textarea {
  background-color: rgba(255, 255, 255, 0.04);
  background-image: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: inherit;
  font-size: 0.875rem;
  width: 100%;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: none;
  background-position: right 1.2rem center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  width: 100%;
}
select option { color: #000; background-color: #fff; }

@media screen and (max-width: 767px) {
  input,
  textarea,
  select {
    font-size: 1rem;
  }
  textarea {
    height: 9rem;
  }
}

.wpcf7-form-control-wrap:has(.wpcf7-select) {
  display: block;
  position: relative;
  line-height: 1.5;
}
.wpcf7-form-control-wrap:has(.wpcf7-select)::after {
  content: "";
  background: url(../../images/pages/inquiry/icon-arrow-select.png) no-repeat center center / contain;
  width: 0.75rem;
  height: 0.4375rem;
  position: absolute;
  top: 1.5rem;
  right: 1rem;
}

/* 日付カレンダー */
input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
/* エラー */
.wpcf7-not-valid-tip {
  color:#ff4040;
  font-size: 0.75rem;
  margin-top: 1em;
}

/* ======================
申し込みフォーム　カスタム
====================== */
.wpcf7 input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.0) inset;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.0) inset;
  -webkit-text-fill-color: #fff;
  transition: background-color 5000s ease-in-out 0s;
}

.contactForm__list {
  display: flex;
  flex-direction: column;
  padding-top: 2.5rem;
}
.contactForm__list:first-of-type {
  padding-top: 3.2rem;
}

.contactForm__list label,
.label__text {
  color: #fff;
  font-size: var(--15);
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 0.0375rem;
}

.contactForm__check-wrapper .contactForm__list label {
  width: 100%;
  flex: 1;
}
/* 自動で入るspanタグ */
/* inputを横幅いっぱいに伸ばす */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* 各inputの大きさを統一する */
.contactForm__list input,
.contactForm__list textarea,
.wpcf7-select {
  flex: 1;
  padding: 0.96875rem 1.25rem;
}
.contactForm__list textarea {
  min-height: 3.3125rem;
}

.form-required {
  font-family: var(--familyNotoSans);
  display: inline-grid;
  place-items: center;
  width: 2.3125rem;
  height: 1.125rem;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 0;
  margin-left: 0.75rem;
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.025rem;
}

.contactForm__text-s {
  margin-left: 4.2rem;
  font-size: 1.2rem;
  margin-top: 0.6rem;
}

.wpcf7-form-control-wrap {
  margin-top: 0.75rem;
}

@media screen and (max-width: 767px) {
  .contactForm__list input,
  .contactForm__list textarea,
  .wpcf7-select {
    padding: 0.75em 1em;
  }
  .contactForm__list textarea {
    min-height: 2.375rem;
  }
  .contactForm__list {
    padding-top: 1.5rem;
  }
}

/* ================================== */
/* ラジオボタン、チェックボックス */
/* ================================== */
.wpcf7-radio,
.wpcf7-checkbox {
  display: flex;
  column-gap: 2rem;
  row-gap: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.wpcf7-list-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wpcf7-list-item-label {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 2.14286;
  padding-left: 2.625rem;
  padding-block: 0.5rem;
}

/* radio,チェックボックス 共通枠 */
.wpcf7-list-item-label::before {
  content: "";
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 0;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* チェックボックス アイコン */
.wpcf7-checkbox .wpcf7-list-item input:checked + .wpcf7-list-item-label::after {
  content: "";
  background: url(../../images/pages/inquiry/icon-checked.svg) no-repeat center center / contain;
  width: 0.8125rem;
  height: 0.625rem;
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ラジオボタン */
.wpcf7-radio .wpcf7-list-item-label {
  color: #fff;
  min-height: 2rem;
}
.wpcf7-radio .wpcf7-list-item-label::before {
  border-radius: 50%;
}
.wpcf7-radio .wpcf7-list-item-label::after {
  content: "";
  background-color: #fff;
  border-radius: 50%;
  width: 0.5rem;
  height: 0.5rem;
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}
.wpcf7-radio input:checked + .wpcf7-list-item-label::after {
  opacity: 1;
}

@media screen and (max-width: 767px) {
  .wpcf7-list-item-label {
    padding-left: 2.25rem;
  }
  .wpcf7-list-item-label::before {
    width: 1.75rem;
    height: 1.75rem;
  }
  .wpcf7-radio, .wpcf7-checkbox {
    column-gap: 1.5rem;
  }
  /* ラジオボタン */
  .wpcf7-radio .wpcf7-list-item-label {
    min-height: 1.75rem;
  }
  .wpcf7-radio .wpcf7-list-item:nth-of-type(2) .wpcf7-list-item-label {
    margin-left: 0;
  }
  .wpcf7-radio .wpcf7-list-item-label::after {
    width: 0.375rem;
    height: 0.375rem;
    left: 0.6875rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* 同意チェック */
.wpcf7-acceptance .wpcf7-list-item-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 3rem;
  line-height: 1.8;
}

.wpcf7-acceptance .wpcf7-list-item-label::before {
  display: inline-block;
}

.wpcf7-acceptance input:checked + .wpcf7-list-item-label::after {
  content: "";
  background: url(../../images/pages/inquiry/icon-checked.svg) no-repeat center center / contain;
  width: 0.8125rem;
  height: 0.625rem;
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
}

@media screen and (max-width: 767px) {
  .wpcf7-acceptance .wpcf7-list-item-label {
    padding-left: 2.375rem;
  }
  .wpcf7-acceptance .wpcf7-list-item-label::before {
    display: inline-block;
    content: "";
    width: 1.75rem;
    height: 1.75rem;
  }
  .wpcf7-acceptance input:checked + .wpcf7-list-item-label::after {
    left: 0.5rem;
  }
}

/* ================================== */
/* （デフォルト）送信ボタン */
/* ================================== */
[type="submit"],
.form__button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: inherit;
  -webkit-box-shadow: none;
  box-shadow: none;
  display: inline-block;
  text-align: center;
}
/* デフォルト　送信ボタンについて */
.wpcf7-submit:disabled {
  cursor: not-allowed; /* カーソルを禁止マークに変更 */
}
.wpcf7-submit,
.contactForm__btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: var(--15);
  text-align: left;
  padding: 0 1.5rem;
  cursor: pointer;
  border: none;
  max-width: 100%;
  width: 20rem;
  line-height: 3.5625rem;
  margin-right: auto;
  margin-left: auto;
  transition: 0.1s ease-out;
}
.wpcf7-submit:hover {
  /* color: #343d5c;
  background-color: #fff; */
}
.contactForm__btn {
  width: fit-content;
  position: relative;
  margin-right: auto;
  margin-left: auto;
}
.wpcf7-mail-sent-ok .wpcf7-submit {
  background: #343d5c; /* 送信完了後の色 */
  cursor: default;
}

.contactForm__btn-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.4rem;
  text-align: center;
  margin: 2.5rem auto 0 auto;
  width: fit-content;
}
.contactForm__btn-wrapper.dotted--white::after {
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
}
.contactForm__btn-wrapper.dottedHoverScale:hover::after {
    box-shadow: 0 0 0 1rem rgba(255,255,255,.1);
}
@media screen and (max-width: 767px) {
  .contactForm__btn-wrapper {
    width: 100%;
    margin-top: 2rem;
  }
  .contactForm__btn {
    width: 100%;
    max-width: 40rem;
  }
  .wpcf7-submit {
    width: 100%;
  }
}

/* 送信ローダーの位置調整 */
.wpcf7 .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%);
  transform: translate(-4rem, -50%);
}
/* 個人情報チェック調整 */
.contactForm__agree-wrapper {
  margin-top: 5rem;
  text-align: center;
}
.contactForm__agree-wrapper a {
  font-size: 0.875rem;
  line-height: 2.14286;
  text-decoration-line: underline;
  text-underline-offset: 24%;
  text-decoration-thickness: 4%;
}
.contactForm-agree .wpcf7-form-control-wrap {
  width: fit-content;
}
.contactForm__link-wrapper {
  margin-left: 4rem;
}
.contactForm__link-wrapper a {
  display: inline-block;
  text-decoration: underline;
  color: #000;
  margin-right: 0.4rem;
}
.contactForm__link-wrapper a:visited {
  color: #660099;
}
.contactForm-agree {
  width: fit-content;
  margin: 0 auto;
  display: block;
}
.wpcf7-list-item {
  margin: 0;
}
.wpcf7-list-item > label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.checklist__margin input[type="radio"],
.checklist__margin input[type="checkbox"] {
  margin: 0 0 0 2.4rem;
}
.checklist__margin .wpcf7-list-item.first input[type="radio"],
.checklist__margin .wpcf7-list-item.first input[type="checkbox"] {
  margin-left: 0;
}

.wpcf7 form .wpcf7-response-output {
  color: #fff;
  font-size: 0.75rem;
}
.wpcf7 form.sent .wpcf7-response-output {
  display: none;
}

@media not screen and (min-width: 768px) {
  /* labelとinputの余白 */
  .wpcf7-form-control-wrap:first-of-type {
    margin-top: 0.5rem;
  }
  .contactForm-agree .wpcf7-form-control-wrap:first-of-type {
    margin-top: 0;
  }
  /* チェックボックスリストの上下間隔 */
  .contactForm__check-wrapper .contactForm__check {
    margin-top: 0.8rem;
  }
  .contactForm__agree-wrapper {
    margin-top: 1.5rem;
  }
  .contactForm__agree-wrapper a {
    font-size: 0.8125rem;
  }
}
