#page {
  overflow: hidden;
}

main * {
  box-sizing: border-box;
}

main {
  background: #f2f2f0;
}

body {
  background: #fff;
  color: #231815;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.application {
  padding: clamp(3.75rem, 8.9286vw, 6.25rem) 1.25rem;
}

.application.thankyou {
  background: #f2f2f0;
  min-height: calc(100dvh - 16.875rem);
}

.application__notice {
  text-align: center;
}

.form__row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: clamp(11.875rem, 21.4286vw, 15rem) 1fr;
  padding: 1.5rem 0;
}

.form__label {
  letter-spacing: 0.1em;
}

.form__label .required {
  background: #e00000;
  color: #fff;
  font-size: 0.75rem;
  margin-left: clamp(1rem, 1.7857vw, 1.25rem);
  padding: 0.125rem 0.25rem;
}

.applicationForm input[type="text"],
.applicationForm input[type="tel"],
.applicationForm input[type="email"],
.applicationForm input[type="date"],
.applicationForm textarea {
  background: #fff;
  border: 1px solid #d2d2d2;
  color: #000;
  letter-spacing: 0.1em;
  padding: 1rem 0.625rem 1rem 1rem;
  width: 100%;
}

.applicationForm textarea {
  resize: vertical;
}

.applicationForm input[type="date"] {
  padding-left: 2.625rem;
}

.applicationForm input[type="text"]::placeholder,
.applicationForm input[type="tel"]::placeholder,
.applicationForm input[type="email"]::placeholder,
.applicationForm input[type="date"]::placeholder,
.applicationForm textarea::placeholder {
  color: rgba(0,0,0,0.3);
}

.isTypeDate {
  position: relative;
}

.isTypeDate::after {
  align-items: center;
  background: #fff;
  color: rgba(0, 0, 0, 0.3);
  content: "選択してください";
  display: flex;
  height: calc(100% - 0.25rem);
  pointer-events: none;
  position: absolute;
  right: 2px;
  top: 0.125rem;
  transition: 0.2s;
  width: calc(100% - 2.8rem);
}

.isTypeDate::before {
  background: url(../../images/ed-business/icon-calendar.svg) no-repeat center / cover;
  content: "";
  display: block;
  height: 1.5rem;
  left: 0.9rem;
  opacity: 0.3;
  position: absolute;
  top: 49.2%;
  transform: translateY(-50%);
  transition: 0.2s;
  width: 1.5rem;
  z-index: 1;
}

.changed.isTypeDate::after {
  opacity: 0;
}

.changed.isTypeDate::before {
  opacity: 1;
}

.applicationForm input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}

.form__confirm {
  margin: 2.5rem auto 0;
  width: fit-content;
}

.form__confirm a {
  color: #231815;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__submit {
  margin: 1.5rem auto 0;
  max-width: 17.75rem;
  position: relative;
  width: 100%;
}

.form__submit::before {
  background: url(../../images/ed-business/icon-chevron.svg) no-repeat center / cover;
  content: "";
  height: 0.75rem;
  position: absolute;
  right: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.2s;
  width: 0.5rem;
  z-index: 2;
}

.form__submit:hover::before {
  background: url(../../images/ed-business/icon-chevron_red.svg) no-repeat center / cover;
}

.form__submit .wpcf7-submit {
  border-radius: 0.3125rem;
  height: 3.75rem;
  width: 100%;
}

.form__submit .wpcf7-spinner {
  position: absolute;
}

.wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.wpcf7-radio .wpcf7-list-item,
.wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.wpcf7-radio .wpcf7-list-item label,
.wpcf7-acceptance .wpcf7-list-item label {
  cursor: pointer;
  padding-left: 2.125rem;
  position: relative;
}

.wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.wpcf7-radio .wpcf7-list-item label::before {
  background: #fff;
  border: 1px solid #d2d2d2;
  border-radius: 50%;
  box-sizing: content-box;
  content: "";
  height: 1.5rem;
  left: 0;
  position: absolute;
  top: 0;
  transition: 0.2s;
  width: 1.5rem;
}

.wpcf7-radio .wpcf7-list-item:has(input:focus) .wpcf7-list-item-label,
.wpcf7-acceptance .wpcf7-list-item:has(input:focus) .wpcf7-list-item-label {
  outline: 2px solid #0060df;
}

.wpcf7-not-valid-tip {
  position: absolute;
}

.wpcf7-acceptance .wpcf7-list-item label::before {
  background: #fff;
  border: 1px solid #d2d2d2;
  border-radius: 0.25rem;
  box-sizing: content-box;
  content: "";
  height: 1.5rem;
  left: 0;
  position: absolute;
  top: 0.0625rem;
  transition: 0.2s;
  width: 1.5rem;
}

.wpcf7-radio .wpcf7-list-item:has(input:checked) label::before {
  background: #000;
  border-color: #000;
}

.wpcf7-acceptance .wpcf7-list-item:has(input:checked) label::before {
  background: #00b393;
}

.wpcf7-radio .wpcf7-list-item label::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 0.75rem;
  left: 0.4375rem;
  position: absolute;
  top: 0.4375rem;
  width: 0.75rem;
}

.wpcf7-acceptance .wpcf7-list-item label::after {
  background: url(../../images/ed-business/icon-tick.svg) no-repeat center / cover;
  content: "";
  display: block;
  height: 0.9375rem;
  left: 0.1875rem;
  position: absolute;
  top: 0.375rem;
  width: 1.25rem;
}

.wpcf7-radio input,
.wpcf7-acceptance input {
  opacity: 0;
  position: absolute;
}

.confirm__notice {
  /* Max 24 Min 18 */
  font-size: clamp(1.125rem, 0.823rem + 0.97vw, 1.5rem);
  font-weight: 700;
  text-align: center;
}

.confirmForm {
  margin-top: 2.5rem;
}

.confirm__row {
  border-bottom: 1px solid #e9e8e5;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: clamp(12.5rem, 21.4286vw, 15rem) 1fr;
  padding: 1.5rem 0;
}

.confirm__label,
.confirm__contents {
  font-weight: 500;
  letter-spacing: 0.1em;
}

.confirm__buttons {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem auto 0;
  max-width: 15.5rem;
}

#content .thankyou__title {
  /* Max 26 Min 20 */
  font-size: clamp(1.25rem, 0.948rem + 0.97vw, 1.625rem);
  font-weight: 700;
  text-align: center;
}

.thankyou__text {
  letter-spacing: 0.1em;
  line-height: 2;
  margin-top: 2rem;
  text-align: center;
}

.thankyou .edCTA {
  margin: 3.75rem auto 0;
  max-width: 15.5rem;
  width: 100%;
}

@media screen and (max-width: 767px) {
  .form__row {
    gap: 0.5rem;
    grid-template-columns: 1fr;
    padding: 1rem 0;
  }
  .wpcf7-radio .wpcf7-list-item label::after {
    height: 0.625rem;
    left: 0.375rem;
    top: 0.5625rem;
    width: 0.625rem;
  }
  .wpcf7-radio .wpcf7-list-item label::before {
    height: 1.25rem;
    left: 0;
    top: 0.1875rem;
    width: 1.25rem;
  }
  .applicationForm {
    margin-top: 1.5rem;
  }
}
