#form_wrap {
    font-size: 16px;
}
#form_wrap .check input , #form_wrap .radio input {
    margin-right: 5px;
}
#form_wrap .contact_txt {
    text-align: center;
}
#form_wrap {
}
#form_wrap .footer_bottom {
    padding-bottom: 20px !important;
}
#form_wrap h3 {
    text-align: center;
    margin-bottom: 20px;
}

/* media query : mobile
---------------------------------------------*/
@media screen and (max-width: 768px) {
    .sp_mr {
        margin-top: 10px !important;
    }
    .form {
        width: auto;
        box-sizing: border-box;
    }
    .form .title {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        width: 100vw;
        height: 220px;
        text-align: center;
        margin: 0 calc(50% - 50vw) 50px;
        background-color: #ffffff;
    }
    .form .title:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }
    .form .title h2 {
        font-size: 1.9rem;
        margin-bottom: 0;
    }
    .form form {
        margin-top: 30px;
    }
    .form .input-wrap {
        padding-bottom: 25px;
        margin-bottom: 20px;
        border-bottom: 1px solid #e3e3e3;
    }
    .form .input-wrap:first-of-type {
        padding-top: 20px;
        border-top: 1px solid #e3e3e3;
        border-bottom: 1px solid #e3e3e3;
    }
    .form .input-wrap label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: justify;
        width: 100%;
        margin-bottom: 10px;
        box-sizing: border-box;
    }
    .form .input-wrap label .required {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 21px;
        font-size: 0.8rem;
        color: #fff;
        padding: 3px 7px;
        background-color: #c8161d;
        border-radius: 2px;
    }
    .form .input-wrap div.input {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        flex-direction: column;
    }
    .form .input-wrap div.input input::placeholder {
        font-size: 1rem;
    }
    .form .input-wrap div.input > input,
    .form .input-wrap div.input > textarea {
        width: 100%;
        font-size: 1rem;
        padding: 15px;
        box-sizing: border-box;
    }
    .form .input-wrap div.input div {
        display: flex;
        justify-content: left;
    }
    .form .privacy_02 .input-wrap div.input div {
        width: 100% !important;
    }
    .form .input-wrap div.input select {
        width: 70%;
        font-size: 1rem;
        padding: 15px;
        box-sizing: border-box;
    }
    .form .input-wrap div.input select option {
        padding: 3px 7px;
    }
    .form .form-submit_button {
        margin-top: 40px;
    }
    .form .button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 220px;
        height: 59px;
        font-size: 1rem;
        color: #fff;
        border-radius: 10px;
        margin-left: auto;
        margin-right: auto;
        border: 0 !important;
         background-image: linear-gradient(90deg, #3bb094, #1182ab);
        filter: drop-shadow(0 5px 0 rgb(24, 61, 71, 1));
        border: 0;
    }

    .form dl.confirm {
        display: flex;
        flex-wrap: wrap;
        box-sizing:border-box !important;
        margin-top: 30px;
    }
    .form dl.confirm dt,
    .form dl.confirm dd {
        display: flex;
        box-sizing:border-box !important;
        margin: 0 !important;
        flex-wrap: wrap;
        padding: 25px 0;
        border-bottom: 1px solid #e3e3e3;
        box-sizing: border-box;
    }
    .form dl.confirm dt:first-of-type,
    .form dl.confirm dd:first-of-type {
        border-top: 1px solid #e3e3e3;
        border-bottom: 1px solid #e3e3e3;
    }
    .form dl.confirm dt {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 30%;
        box-sizing: border-box;
    }
    .form dl.confirm dd {
        width: 70%;
        padding-left: 15px;
        box-sizing: border-box;
        margin-left: 0 !important;
    }
    .form .form-submit_button {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .form p.form-submit_button .button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: calc(50% - 7.5px);
        height: 59px;
        font-size: 1rem;
        color: #fff;
        border-radius: 10px;
        background-color: #D70019;
        filter: drop-shadow(0 5px 0 rgb(128, 0, 15, 1));
    }
    dd {
        margin-inline-start: 0 !important;
    }

    .form.complete .content {
        max-width: 780px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    } 
    .form .return_button {
        margin-top: 40px;
    }
    .form .return_button a {
        color: #fff;
    }
}

/* media query : desktop
---------------------------------------------*/
@media screen and (min-width: 769px) {
    .form {
        margin: 0 auto;
    }
    .form form {
        margin-top: 50px;
    }
    .form .input-wrap {
        display: flex;
        padding-bottom: 25px;
        margin-bottom: 25px;
        border-bottom: 1px solid #e3e3e3;
    }
    .form .input-wrap:first-of-type {
        padding-top: 25px;
        border-top: 1px solid #e3e3e3;
        border-bottom: 1px solid #e3e3e3;
    }
    .form .input-wrap label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: justify;
        width: 210px;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .form .input-wrap label .required {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 23px;
        font-size: 0.8rem;
        color: #fff;
        padding: 3px 7px;
        background-color: #c8161d;
        border-radius: 2px;
    }
    .form .input-wrap div.input {
        display: flex;
        flex: 1;
        padding: 0 15px;
        box-sizing: border-box;
        flex-direction: column;
        align-items: flex-start;
    }
    .form .input-wrap div.input input::placeholder {
        font-size: 1rem;
    }
    .form .input-wrap div.input > input,
    .form .input-wrap div.input > textarea {
        width: 100%;
        font-size: 1rem;
        padding: 18px;
        box-sizing: border-box;
    }
    .form .input-wrap div.input div {
        display: flex;
    }
    .form .privacy_02 .input-wrap div.input div  {
        width: 100%;
        align-items: center;
    }
    .form .input-wrap div.input select {
        width: 33.33%;
        font-size: 1rem;
        padding: 18px;
        box-sizing: border-box;
    }
    .form .input-wrap div.input select option {
        padding: 3px 7px;
    }
    .form div.form-submit_button {
        margin-top: 50px;
    }
    .form .button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 255px;
        height: 64px;
        font-size: 1rem;
        color: #fff;
        border-radius: 10px;
        border:0 !important;
        margin-top: -5px;
        margin-left: auto;
        margin-right: auto;
        background-image: linear-gradient(90deg, #3bb094, #1182ab);
        filter: drop-shadow(0 5px 0 rgb(24, 61, 71, 1));
        border: 0;
        border-color: #00498a !important;
        transition: all 0.3s ease;
    }
    .form .button:hover {
        margin-top: 0;
        margin-bottom: -5px;
        filter: drop-shadow(0 0 0 rgb(24, 61, 71, 1));
        cursor: pointer;
    }

    .form dl.confirm {
        display: flex !important;
        flex-wrap: wrap;
        margin-top: 50px;
    }
    .form dl.confirm dt,
    .form dl.confirm dd {
        padding: 35px 15px;
        border-bottom: 1px solid #e3e3e3;
        box-sizing: border-box !important;
        margin-left: 0 !important;
    }
    .form dl.confirm dt:first-of-type,
    .form dl.confirm dd:first-of-type {
        border-top: 1px solid #e3e3e3;
        border-bottom: 1px solid #e3e3e3;
    }
    .form dl.confirm dt {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 25%;
        box-sizing: border-box !important;
    }
    .form dl.confirm dd {
        width: 75%;
        box-sizing: border-box !important;
        margin-left: 0 !important;
    }
    .form .form-submit_button {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
    }

    .form.complete .content {
        max-width: 780px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    } 
    .form .return_button {
        margin-top: 50px;
    }
    .form .return_button a {
        color: #fff;
    }
}


input[type="submit"] {
    border: 0;
    box-shadow: 0;
}
input[type="button"] {
    border: 0;
    box-shadow: 0;
}
.form div.validation-error {
    display: block;
    color: #d00303;
    text-align: justify;
    padding-left: 10px;
}
.form .error-message {
    background-color: #efefef;
    color: #d00303;
}
#form_wrap input , #form_wrap textarea , #form_wrap select {
    border: 1px solid #2E2722;
}

#form_wrap .btn {
    border: 3px solid #D70019;
    border-radius: 10px;
    color: #D70019;
    margin: 5rem auto 0 auto;
    text-align: center;
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 1rem 0;
    text-decoration: none !important;
}
#form_wrap .btn:hover {
    color: #fff;
    background-color: #D70019;
}

#header_contact {
    text-align: center;
    padding: 50px;
    margin: 0;
}
#header_contact h1 {
    line-height: 0;
    margin: 0;
}

.privacy_01 , .privacy_02 {
    text-align: justify;
    padding-bottom: 1rem;
}
.error-message {
    list-style: none;
    padding: 1rem;
}
h2 {
    color: #1182ab;
    display: block;
    line-height: 0;
    font-size: 30px;
}

#header_contact {
    text-align: center;
    background-color: #fff;
    padding: 50px 0;
}
#main {
        background-color: #edf4f3;
}
.input-wrap button, .input-wrap input, .input-wrap select, .input-wrap textarea {
    background-color: #fff !important;
}

/* 個人情報の取り扱いについてのスタイル */
.privacy_info {
    border: 2px solid #1182ab;
    background-color: #f8fdff;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.privacy_info h3 {
    background-color: #1182ab;
    color: #fff;
    margin: 0;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
}

.privacy_content {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
    line-height: 1.6;
}

.privacy_content h4 {
    color: #1182ab;
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: bold;
}

.privacy_content h4:first-of-type {
    margin-top: 0;
}

.privacy_content p {
    margin-bottom: 12px;
    color: #333;
}

.privacy_list {
    margin: 10px 0;
    padding-left: 20px;
    list-style: none;
}

.privacy_list li {
    margin-bottom: 5px;
    color: #555;
    position: relative;
    padding-left: 15px;
}

.privacy_list li:before {
    content: "•";
    color: #1182ab;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.contact_info {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-top: 15px;
}

.contact_info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #333;
}

.contact_info p.p_bold {
    font-weight: bold;
    color: #1182ab;
    margin-bottom: 10px;
}

/* スクロールバーのスタイリング */
.privacy_content::-webkit-scrollbar {
    width: 8px;
}

.privacy_content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.privacy_content::-webkit-scrollbar-thumb {
    background: #1182ab;
}

.privacy_content::-webkit-scrollbar-thumb:hover {
    background: #0a5a7a;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .privacy_info h3 {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .privacy_content {
        max-height: 250px;
        padding: 15px;
    }
    
    .contact_info {
        padding: 12px;
    }
    
    .contact_info p {
        font-size: 0.85rem;
    }
}