.flex{
    display: flex;
}

.wpcf7-form-control-wrap{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wpcf7 .wpcf7-form .wpcf7_lists {
    margin-bottom: 45px;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list {
    align-items: center;
    margin-bottom: 20px;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list:last-child {
    margin-bottom: 0;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dt {
    display: flex;
    justify-content: space-between;
    width: 35%;
    padding: 15px 25px;
    box-sizing: border-box;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dt span {
    font-size: 1.6rem;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dt .wpcf7_required {
    color: #ffffff;
    background: #E53935;
    padding: 0 10px 2px;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dt .wpcf7_optional {
    color: #333333;
    background: #E4E4E4;
    padding: 0 10px 2px;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd {
    width: 65%;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span {
    font-size: 1.6rem;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span input[type=text],
.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span input[type=tel],
.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span input[type=email] {
    display: block;
    width: 100%;
    font-size: 1.6rem;
    padding: 15px 20px;
    box-sizing: border-box;
    border: 1px solid #cccccc;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span input[type=text]::-moz-placeholder,
.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span input[type=tel]::-moz-placeholder,
.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span input[type=email]::-moz-placeholder {
    color: #a5a5a5;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span input[type=text]::placeholder,
.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span input[type=tel]::placeholder,
.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span input[type=email]::placeholder {
    color: #a5a5a5;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span input[type=text]:focus,
.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span input[type=tel]:focus,
.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span input[type=email]:focus {
    outline: 1px solid #333333;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span textarea {
    display: block;
    width: 100%;
    font-size: 1.6rem;
    height: 225px;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #cccccc;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span textarea::-moz-placeholder {
    color: #a5a5a5;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span textarea::placeholder {
    color: #a5a5a5;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span textarea:focus {
    outline: 1px solid #333333;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span .wpcf7-radio,
.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span .wpcf7-checkbox {
    display: block;
    width: 100%;
    padding: 15px 0 0;
    box-sizing: border-box;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span .wpcf7-radio .wpcf7-list-item,
.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span .wpcf7-checkbox .wpcf7-list-item {
    margin: 0 15px 15px 0;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span .wpcf7-select {
    display: block;
    width: 100%;
    font-size: 1.6rem;
    padding: 15px 20px;
    box-sizing: border-box;
    border: 1px solid #cccccc;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span .wpcf7-not-valid-tip {
    font-size: 1.2rem;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_zip {
    display: flex;
    align-items: center;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_zip span:first-child {
    width: 5%;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_zip span:nth-child(2) {
    width: 95%;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_date {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_date:last-child {
    margin-bottom: 0;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_date span {
    font-size: 1.6rem;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_date span:first-child {
    width: 15%;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_date span:nth-child(2) {
    width: 85%;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_date span input[type=date] {
    display: block;
    width: 100%;
    color: #333333;
    font-size: 1.5rem;
    background: #ffffff;
    padding: 15px 20px;
    box-sizing: border-box;
    border: 1px solid #cccccc;
    position: relative;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_date span input[type=date]::-webkit-calendar-picker-indicator {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_date span input[type=date]::after {
    content: "\f133";
    color: #333333;
    font-family: "Font Awesome 5 Free";
    font-size: 1.6rem;
    font-weight: normal;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    right: 20px;
    pointer-events: none;
}

.wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_date span .wpcf7-not-valid-tip {
    font-size: 1.2rem;
}

.wpcf7 .wpcf7-form .wpcf7_accepted {
    margin-bottom: 45px;
}

.wpcf7 .wpcf7-form .wpcf7_accepted .wpcf7_accepted_txt p {
    font-size: 1.6rem;
    text-align: center;
}

.wpcf7 .wpcf7-form .wpcf7_accepted .wpcf7_accepted_txt p a {
    font-size: 1.6rem;
    border-bottom: 1px solid #333333;
}

.wpcf7 .wpcf7-form .wpcf7_button {
    text-align: center;
}

.wpcf7 .wpcf7-form .wpcf7_button input[type=submit] {
    display: block;
    width: 320px;
    margin: 0 auto;
    color: #ffffff;
    font-style: normal;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    background: #222222;
    border: 2px solid #222222;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
    transition: 0.3s;
}

.wpcf7 .wpcf7-form .wpcf7_button input[type=submit]:hover {
    background: #ffffff;
    color: #222222;
}

.wpcf7-response-output{
    display: block;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    background: #222222;
    padding: 15px !important;
    box-sizing: border-box;
    border: none !important;
}

@media only screen and (max-width: 767px) {

    .wpcf7 .wpcf7-form .wpcf7_lists {
        margin-bottom: 35px;
    }

    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list {
        display: block;
        margin-bottom: 30px;
    }

    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dt {
        align-items: center;
        width: 100%;
        padding: 0;
        margin-bottom: 10px;
    }

    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dt span {
        font-size: 1.5rem;
    }

    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dt .wpcf7_required,
    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dt .wpcf7_optional {
        flex-shrink: 0;
        font-size: 1.2rem;
        line-height: 1.5;
        padding: 1px 8px 2px;
    }

    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd {
        width: 100%;
        margin: 0;
    }

    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span {
        width: 100%;
        font-size: 1.5rem;
    }

    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span input[type="text"],
    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span input[type="tel"],
    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span input[type="email"],
    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span .wpcf7-select {
        font-size: 1.6rem;
        padding: 13px 15px;
    }

    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span textarea {
        height: 180px;
        font-size: 1.6rem;
        padding: 15px;
    }

    /*
     * ラジオボタン・チェックボックス
     */
    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span .wpcf7-radio,
    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span .wpcf7-checkbox {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 5px;
    }

    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span .wpcf7-radio .wpcf7-list-item,
    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span .wpcf7-checkbox .wpcf7-list-item {
        display: block;
        width: 100%;
        margin: 0;
    }

    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd span .wpcf7-list-item label {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /*
     * 郵便番号
     */
    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_zip {
        gap: 8px;
    }

    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_zip span:first-child {
        width: auto;
        flex-shrink: 0;
    }

    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_zip span:nth-child(2) {
        width: 100%;
    }

    /*
     * 日付
     */
    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_date {
        display: block;
        margin-bottom: 20px;
    }

    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_date span:first-child {
        display: block;
        width: 100%;
        margin-bottom: 8px;
    }

    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_date span:nth-child(2) {
        display: block;
        width: 100%;
    }

    .wpcf7 .wpcf7-form .wpcf7_lists .wpcf7_list dd .wpcf7_list_date span input[type="date"] {
        font-size: 1.6rem;
        padding: 13px 15px;
    }

    /*
     * プライバシーポリシー・同意
     */
    .wpcf7 .wpcf7-form .wpcf7_accepted {
        margin-bottom: 30px;
    }

    .wpcf7 .wpcf7-form .wpcf7_accepted .wpcf7_accepted_txt p,
    .wpcf7 .wpcf7-form .wpcf7_accepted .wpcf7_accepted_txt p a {
        font-size: 1.4rem;
        line-height: 1.8;
    }

    /*
     * 送信ボタン
     */
    .wpcf7 .wpcf7-form .wpcf7_button input[type="submit"] {
        width: 100%;
        max-width: 320px;
        font-size: 1.6rem;
        padding: 17px 15px;
    }

    /*
     * 送信結果
     */
    .wpcf7-response-output {
        font-size: 1.4rem;
        line-height: 1.7;
        padding: 12px !important;
        margin: 25px 0 0 !important;
    }
}