input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    color: #020018;
    background-color: #fff;
    border: solid 1px #e1e1e1;
    border-radius: 4px;
}

@media (max-width: 768px) {
  input,
  textarea,
  select {
    padding: 12px;
    font-size: 16px;
  }
}
input::placeholder,
textarea::placeholder,
select::placeholder {
  padding-top: 0.3em;
  color: #d0d0d0;
}

.p-form .wpcf7-not-valid-tip {
  padding-top: 2px;
  font-size: 12px;
  color: #a00000;
}
.p-form .wpcf7-not-valid:where(input, select, textarea) {
  border: solid 1px #a00000;
}

.p-form-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 640px) {
  .p-form-body {
    gap: 16px;
  }
}

.p-form-item__head {
  position: relative;
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 13px;
}
.p-form-item__head ._req,
.p-form-item__head ._any {
  padding: 4px 5px;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  border-radius: 2px;
}
.p-form-item__head ._req {
  background-color: #a00000;
}
.p-form-item__head ._any {
  background-color: #c0c0c0;
}
.p-form-item__head + * {
  margin-top: 8px;
}

.p-form-item__input.__has-unit > p {
  display: flex;
  gap: 8px;
}
.p-form-item__input.__has-unit .__unit {
  padding-top: 5px;
}
.p-form-item__input.__date {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (max-width: 640px) {
  .p-form-item__input.__date {
    gap: 8px;
  }
}
.p-form-item__input.__date .__block > p {
  display: flex;
  gap: 12px;
}
@media (max-width: 640px) {
  .p-form-item__input.__date .__block > p {
    flex-wrap: wrap;
    gap: 2px 12px;
  }
}
.p-form-item__input.__date .__block .datepicker,
.p-form-item__input.__date .__block select {
  width: 120px;
}
@media (max-width: 640px) {
  .p-form-item__input.__date .__block .datepicker,
  .p-form-item__input.__date .__block select {
    width: 140px;
  }
}
.p-form-item__input.__date .__block .datepicker {
  cursor: pointer;
  background-color: #fff;
  background: linear-gradient(rgba(#FFF, 0.9), rgba(#FFF, 0.9)),url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="%23555"><path d="M0 0h24v24H0z" fill="none"/><path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/></svg>') center right 8px/16px no-repeat;
}
.p-form-item__input.__date .__date-head {
  padding-top: 12px;
  font-size: 13px;
}
@media (max-width: 640px) {
  .p-form-item__input.__date .__date-head {
    flex: 0 0 auto;
    width: 100%;
  }
}
.p-form-item__input .__short {
  width: 100px;
}

.p-form-item__caption {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.p-form-item__checkbox-and-radio * {
  display: block;
  padding: 0;
  margin: 0;
}
.p-form-item__checkbox-and-radio .wpcf7-form-control {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
@media (max-width: 768px) {
  .p-form-item__checkbox-and-radio .wpcf7-form-control {
    flex-direction: column;
    gap: 12px;
  }
}
.p-form-item__checkbox-and-radio .wpcf7-list-item > label {
  position: relative;
}
.p-form-item__checkbox-and-radio .wpcf7-list-item > label input + span {
  display: flex;
  gap: 8px;
  align-items: center;
  user-select: none;
}
.p-form-item__checkbox-and-radio .wpcf7-list-item > label input + span::before {
  display: block;
  width: 24px;
  aspect-ratio: 1/1;
  content: '';
  background-color: #fff;
  border: solid 1px #e1e1e1;
}
.p-form-item__checkbox-and-radio .wpcf7-list-item > label input[type='checkbox'] + span::before {
  border-radius: 2px;
}

.p-form-item__checkbox-and-radio .wpcf7-list-item > label input[type='checkbox']:checked + span::before {
  background: #fff url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M47.567%2C97.112a1.107%2C1.107%2C0%2C0%2C1-.326.786l-8.9%2C8.9a1.111%2C1.111%2C0%2C0%2C1-1.572%2C0l-4.448-4.448a1.112%2C1.112%2C0%2C1%2C1%2C1.572-1.572l3.662%2C3.663%2C8.11-8.11a1.111%2C1.111%2C0%2C0%2C1%2C1.9.785Z%22%20transform%3D%22translate(-29.5%20-91.572)%22%20fill%3D%22%234395c9%22%2F%3E%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E') center/20px no-repeat;
}

.p-form-item__checkbox-and-radio .wpcf7-list-item > label input[type='radio'] + span::before {
  border-radius: 100vmax;
}

.p-form-item__checkbox-and-radio .wpcf7-list-item > label input[type='radio']:checked + span::before {
  background-color: #00913a;
  border: solid 4px #fff;
  outline: solid 1px #00913a;
}

.p-form-agree {
  padding: 24px 20px;
  background-color: #f5f5f5;
}

.p-form-agree__input {
  display: flex;
  justify-content: center;
}
.p-form-agree__input .wpcf7-not-valid-tip {
  text-align: center;
}

.p-form-agree__link {
  display: flex;
  justify-content: center;
}
.p-form-agree__link a {
  padding-right: 14px;
  margin-top: 16px;
  font-size: 12px;
  text-decoration: underline;
  background: url('../img/icon/newtab.svg') right center/12px no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .p-form-agree__link a:hover {
    text-decoration: none;
  }
}

.p-form-footer {
  margin-top: 26px;
}
@media (max-width: 640px) {
  .p-form-footer {
    margin-top: 24px;
  }
}

.p-form-footer__submit {
  position: relative;
  display: flex;
  justify-content: center;
  width: 240px;
  margin: 0 auto 50px;
  background: #025824;
  border-radius: 5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.p-form-footer__submit p{
  margin: 0;
}
.p-form-footer__submit [type='submit'] {
  position: relative;
  width: 100%;
  min-width: 200px;
  padding: 22px 24px;
  font-size: 18px;
  font-weight: bold;
  font-family: "Noto Serif JP", serif, sans-serif ;
  font-weight: 700;
  color: #fff;
  text-align: center;
  cursor: pointer;
  background-color: transparent;
  border: none;
}
.p-form-footer__submit .wpcf7-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
}

.p-form-footer__recaptcha {
  margin-top: 20px;
  font-size: 13px;
  color: #c0c0c0;
}
@media (max-width: 640px) {
  .p-form-footer__recaptcha {
    font-size: 12px;
  }
}
.p-form-footer__recaptcha a {
  text-decoration: underline;
}
@media (hover: hover) and (pointer: fine) {
  .p-form-footer__recaptcha a:hover {
    text-decoration: none;
  }
}

.wpcf7 form .wpcf7-response-output {
  display: block;
  max-width: 928px;
  padding: 1em;
  margin: 40px auto 0;
  font-size: 13px;
  color: #a00000;
  text-align: center;
  background-color: rgba(160, 0, 0, 0.1);
  border: none;
}
@media (max-width: 768px) {
  .wpcf7 form .wpcf7-response-output {
    width: 100%;
  }
}

.wpcf7 form.sent .wpcf7-response-output {
  color: #00b002;
  background-color: rgba(0, 176, 64, 0.1);
}

.grecaptcha-badge {
  visibility: hidden;
}

.p-thanks {
  padding-top: 80px;
  padding-bottom: 80px;
}

.p-thanks__content {
  font-size: 15px;
  text-align: center;
}
@media (max-width: 768px) {
  .p-thanks__content {
    text-align: left;
  }
}

.p-thanks__link {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
@media (max-width: 640px) {
  .p-thanks__link {
    display: block;
  }
}
