.section2, .section2_2 {
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column; /* 세로 방향 정렬 */
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 125px); 
}

.btn_wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3열 레이아웃 */
    gap: 30px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px;
}
.btn_wrap3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3열 레이아웃 */
    gap: 30px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px;
}

.btn_wrap a,.btn_wrap3 a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.3;
    padding: 30px;
    background-color: #fff;
    border-radius: 15px;
    width: 100%;
    font-weight: 600;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    gap: 10px;
}

.btn_wrap a div,.btn_wrap3 a div  {
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    padding: 1rem;
}

.btn_wrap .background1, .btn_wrap3 .background1 {
    background-color: #f43d3f;
    width: 100px;
    height: 100px;
}
.btn_wrap .background2, .btn_wrap3 .background2 {
    background-color: #fad300;
    width: 100px;
    height: 100px;
}
.btn_wrap .background3, .btn_wrap3 .background3 {
    background-color: #51df35;
    width: 100px;
    height: 100px;
}
.btn_wrap .background4, .btn_wrap3 .background4 {
    background-color: #f97a0f;
    width: 100px;
    height: 100px;
}
.btn_wrap .background5 {
    background-color: #9abdf3;
    width: 100px;
    height: 100px;
}
.btn_wrap .background6 {
    background-color: #ffa6ea;
    width: 100px;
    height: 100px;
}

.btn_wrap a img, .btn_wrap3 a img {
    width: auto;
    height: 90%;
    object-fit: cover;
}

@media (min-width: 768px) and (max-width: 1200px) {
    .section2 {
        min-height: unset;
        margin-top: 30px;
    }

    .btn_wrap {
        grid-template-columns: repeat(2, 1fr); /* 2열 레이아웃 */
        gap: 20px;
    }

    .btn_wrap a,.btn_wrap3 a {
        font-size: 16px;
        padding: 15px 20px;
        gap: 10px;
        justify-content: center;
        border-radius: 5px;
    }

    .btn_wrap a div,.btn_wrap3 a div {
        margin-bottom: 1px;
        border-radius: 5px;
    }

    .btn_wrap .background1, .btn_wrap .background2, .btn_wrap .background3,
    .btn_wrap .background4, .btn_wrap .background5, .btn_wrap .background6 {
        width: 50px;
        height: 50px;
    }
    .btn_wrap3 .background1, .btn_wrap3 .background2, .btn_wrap3 .background3,
    .btn_wrap3 .background4 {
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 767px) {
    .section2 {
        min-height: unset;
        margin-top: 30px;
    }

    .btn_wrap {
        grid-template-columns: repeat(2, 1fr); /* 2열 레이아웃 */
        gap: 20px;
    }

    .btn_wrap a,.btn_wrap3 a {
        font-size: 16px;
        padding: 15px 20px;
        gap: 10px;
        justify-content: center;
        border-radius: 5px;
    }

    .btn_wrap a div,.btn_wrap3 a div {
        margin-bottom: 1px;
        border-radius: 5px;
    }

    .btn_wrap .background1, .btn_wrap .background2, .btn_wrap .background3,
    .btn_wrap .background4, .btn_wrap .background5, .btn_wrap .background6 {
        width: 50px;
        height: 50px;
    }
    .btn_wrap3 .background1, .btn_wrap3 .background2, .btn_wrap3 .background3,
    .btn_wrap3 .background4 {
        width: 50px;
        height: 50px;
    }
}
