

@media screen and (max-width: 997px){
    /* 인사말 */
    .medical-staff{
        display: none;
    }
    .about-text{
        margin-top:40px;
    }
}


/*tablet mode*/
@media screen and (max-width: 996px) {
    br{
        display: none;
    }

    /* 설립목적 및 연혁 */
    .purpose-group{
        flex-direction: column;
        gap: 30px;
        padding: 0 10px;
    }

    .purpose-header{
        gap: 12px;
    }

    .number{
        font-size: 35px;
    }

    .purpose-header h3{
        font-size: 20px;
    }

    .purpose-contents ul li{
        font-size: 18px;
    }

    .purpose-group-1{
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #dddddd;
        padding-bottom: 20px;
    }

    .purpose-card-container{
        padding: 0;
        grid-template-columns: repeat(1,1fr);
    }

    .purpose-header-box{
        font-size: 18px;
        padding-top: 20px;
    }

    .purpose-contents-group-2{
        padding-left: 0;
        /*display: grid;*/
    }

    .purpose-card{
        gap: clamp(20px, 6vw, 56px);
        padding: 0;
        width: 100%;
        display: flex;
    }

    .purpose-card-title{
        font-size: 18px;
        line-height: 1.5;
        grid-column: span 2;
        width: clamp(300px, 50%, 392px);
        margin-left: clamp(10px, 2vw, 30px);
    }

    .purpose-card ul li {
        font-size: 18px;
    }

    .purpose-contents ul > li:before{
        top: 2px;
    }
/* ci 이미지 */
    .ci-img-wrap{
        height: 280px;
    }
}


@media screen and (max-width: 768px) {
    .page-purpose h2 , .purpose-title ,
    .history-title , .history-year h2,.direction h3
    ,.ci-container-wrap h3 ,.organization-chart-image h3
    {
        font-size: 22px;
        line-height: 1.4;
    }

    .page-purpose h2,
    .organization-chart-image h3,
    .direction h3,
    .ci-container-wrap h3 {
        padding: 24px 0 18px;
    }


    .month-list h3 ,.ci-title{
        font-size: 18px;
    }

    .month-list p ,.ci-text p{
        font-size: 16px;
    }

    /* 기관소개 */
    .gemc-title h2{
        font-size: 22px;
        padding: 24px 0 18px 0;
    }

    .gemc-contents-wrap{
        padding: 0 ;
    }

    .about-text h3{
        font-size: 18px;
    }

    .about-text-1 p, .about-text-2 p{
        font-size: 16px;
    }


    /*ci 영역*/
    .ci-content-wrap{
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ci-content-1,
    .ci-content-2 {
        width: 100%;
    }

    .ci-img-wrap {
        width: 100%;
    }

    .ci-content-1 img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
        aspect-ratio: 26 / 8;
    }

    .ci-content-2 img{
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
        aspect-ratio: 7 / 1;
    }
    .direction-title p{
        font-size: 18px;
    }

    .direction-title span{
        font-size: 16px;
    }

    .contact-item p {
        font-size: 18px;
    }

    .contact-item span {
        font-size: 16px;
    }

    .contact-row {
        flex-direction: column; /* 모바일에서는 다시 세로로 */
        gap: 12px;
    }


    .history-images img{
        width: 26px;
    }

    /*  연혁  */
    .history-year{
        flex-direction: column;
    }

    .month-content{
        gap: 0;
    }

    /*.month-list h3{*/
    /*    width: 70px;*/
    /*}*/

}

@media screen and (max-width: 630px){
    /* 설립 목적 및 연혁 */
    .history-year{
        gap: 20px;
    }

    .purpose-card-title{
        font-size: 16px;
        line-height: 1.5;
        width: 350px;
    }

    .purpose-card ul li{
        font-size: 16px;
    }

    .purpose-card-title{
        width: 230px;
        flex-shrink: 0;
    }
    .purpose-card{
        /*gap: clamp(40px, 10vw, 60px);*/
    }

    .number{
        font-size: 28px;
    }

    .purpose-header h3{
        font-size: 16px;
    }

    .purpose-contents ul li{
        font-size: 16px;
    }

    .month-list p ,.ci-text p{
        font-size: 14px;
    }

    .month-list h3{
        width: 50px;
        font-size: 16px;
    }

    .month-content .day {
        font-size : 16px;
        margin-right: 10px;
    }

    .month-content .content {
        font-size: 14px;
    }

    .month-list{
        gap: 6px;
    }

    /*  아이콘 이미지 */
    .history-images img:nth-child(2) ,
    .history-images img:nth-child(1){
        width: 24px;
    }
}

@media screen and (max-width: 554px){
    .purpose-contents-group-2{
        gap: 30px;
    }
    .purpose-header-box{
        text-align: center;
        padding: 30px 0;
    }
    .purpose-card-title{
        width: 472px;
        margin-left: 0;
    }
    .purpose-card{
        flex-direction: column;
        gap: 10px;
    }
}


/*mobile mode*/
@media screen and (max-width: 480px){
    .purpose-card-title{
        width: 310px;
    }

    /* ci 이미지 */
    .ci-img-wrap{
        height: 220px;
    }

    .ci-download-wrap{
        width: 330px;
        height: 72px;
    }

}