.formItem {
}
.formItem label {
    margin-bottom: 8px;
    display: block;
    color: #333;
    font-size: 18px;
    font-weight: 500;
}
.formItem label span {
    padding: 0 12px;
    background: #FCA400;
    margin-left: 12px;
    color: #fff;
    font-size: 14px;
    display: inline-block;
    border-radius: 20px;
    position: relative;
    top: -2px;
}
.formItem input[type="text"],
.formItem input[type="email"],
.formItem input[type="tel"],
.formItem textarea {
    padding: 16px;
    width: 100%;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    color: #333;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: .02em;
    background: #eee;
    appearance: none;
    border: none;
    border-radius: 8px;
}
/* Chrome, Safari, Opera */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #aaa !important;
}
/* Firefox 19+ */
input::-moz-placeholder,
textarea::-moz-placeholder {
  color: #aaa !important;
}
/* Firefox 4 - 18 */
input:-moz-placeholder,
textarea:-moz-placeholder {
  color: #aaa !important;
}
/* Internet Explorer 10+ */
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: #aaa !important;
}
.formItem select {
    padding: 16px;
    width: 100%;
    position: relative;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    color: #333;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: .02em;
    background: #eee;
    appearance: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.formItem.selectItem {
    position: relative;
}
.formItem.selectItem:before {
    content: '';
    width: 32px;
    height: 32px;
    background: url(../images/svg/bottom-arrow-black.svg) no-repeat center/contain;
    position: absolute;
    top: 56px;
    right: 20px;
    z-index: 1;
}
.formItem textarea {
    height: 240px;
}
.formItem .ageItem {
    display: flex;
    flex-direction: row;
    column-gap: 16px;
}
.formItem .ageItem > div {
    width: 100%;
    position: relative;
}
.formItem .ageItem > div:before {
    content: '';
    width: 24px;
    height: 24px;
    background: url(../images/svg/bottom-arrow-black.svg) no-repeat center/contain;
    position: absolute;
    top: 22px;
    right: 24px;
    z-index: 1;
}
.submitBtn > p {
    display: flex;
    justify-content: center;
}
.submitBtn {
    position: relative;
}
.submitBtn input {
    padding: 8px 32px 10px;
    background: #138995;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: #fff;
    border-radius: 60px;
    cursor: pointer;
}
.formItem .wpcf7-not-valid-tip {
    color: #D93D69;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
}
.ageItem .wpcf7-not-valid-tip {
    display: none;
}
.wpcf7-spinner,
.wpcf7-response-output {
    display: none;
}
.formItem br {
    display: none;
}
/* 元のチェックボックスを隠す */
.wpcf7 input[type="checkbox"] {
    margin-right: 8px;
  appearance: none;
  -webkit-appearance: none;
  width: 25px;
  height: 25px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #eee;
  position: relative;
  bottom: -6px;
  cursor: pointer;
}


/* チェックマーク */
.wpcf7 input[type="checkbox"]:checked::after {
  content: '';
    width: 20px;
    height: 20px;
    background: url(../images/svg/check-form.svg) no-repeat center/contain;
  position: absolute;
  top: 2px;
  left: 2px;
}

/* チェックされたときの背景 */
.wpcf7 input[type="checkbox"]:checked {
  background-color: #138995; /* 任意の色 */
  border-color: #138995;
}


@media screen and (max-width:767px) {
    .formItem label {
        font-size: 16px;
    }
    .formItem input[type="text"],
    .formItem input[type="email"] {
        padding: 12px;
    }
    .formItem select {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .formItem.selectItem:before {
        top: 48px;
    }
}