/* BASIC css start */
.add_content {max-width:860px; margin:0 auto;}
.add_if_con { width:100%; height:300px; margin:20px auto; text-align:center; background:#f5f5f5; }

.contents01 {position:relative;}
.contents01 div.imageMap { position:absolute; width:860px; height:100%; bottom:0;}
.contents01 div.imageMap img {display:block;}
.contents01 div.imageMap .link1 {position:absolute; left:40%; width:14.5%; height:100%; bottom:0; border:2px solid white;}
.contents01 div.imageMap .link2 {position:absolute; left:55%; width:14.5%; height:100%; bottom:0; border:2px solid white;}
.contents01 div.imageMap .link3 {position:absolute; left:70%; width:14.5%; height:100%; bottom:0; border:2px solid white;}
.contents01 div.imageMap .link4 {position:absolute; left:85%; width:14.5%; height:100%; bottom:0; border:2px solid white;}

.contents02 {position:relative;}
.contents02 div.imageMap {position:absolute; width:860px; height:100%; bottom:0;}
.contents02 div.imageMap img {display:block;}
.contents02 div.imageMap .link1 {position:absolute; right:85%; width:14.5%; height:100%; bottom:0; border:2px solid white;}
.contents02 div.imageMap .link2 {position:absolute; right:70%; width:14.5%; height:100%; bottom:0; border:2px solid white;}
.contents02 div.imageMap .link3 {position:absolute; right:55%; width:14.5%; height:100%; bottom:0; border:2px solid white;}
.contents02 div.imageMap .link4 {position:absolute; right:40%; width:14.5%; height:100%; bottom:0; border:2px solid white;}



/* 모바일 */
@media (max-width: 767.98px) {
iframe {display:none;}
#contentWrap {width:100%;}
#contentWrap img {width:100%;}
}
/* =====================================
   마켓오지상 조리교육 PC / 모바일 최종 CSS
===================================== */

/* 조리교육 전체 영역 */
#productClass .add_content {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* 이미지 반응형 */
#productClass .add_content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* 신청하기 이미지 링크 */
#productClass .add_content center > a {
    display: block;
    width: 100%;
}

/* 기타 콘텐츠 */
#productClass .add_if_con {
    width: 100%;
    height: 300px;
    margin: 20px auto;
    text-align: center;
    background: #f5f5f5;
}

/* =====================================
   유튜브 영상 영역
===================================== */

/* 이미지 + 영상 공통 */
#productClass .contents01,
#productClass .contents02 {
    position: relative !important;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    overflow: hidden;
}

/* 배경 이미지 */
#productClass .contents01 > img,
#productClass .contents02 > img {
    display: block;
    width: 100%;
    height: auto;
}

/* 영상 배치 영역 */
#productClass .contents01 .imageMap,
#productClass .contents02 .imageMap {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 5;
}

/* 유튜브 공통 */
#productClass .imageMap iframe {
    position: absolute !important;
    display: block !important;
    width: 14.5% !important;
    height: 100% !important;
    bottom: 0 !important;
    border: 2px solid #ffffff;
    box-sizing: border-box;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* =====================================
   contents01 : 오른쪽 영상 4개
===================================== */

#productClass .contents01 .imageMap .link1 {
    left: 40% !important;
}
#productClass .contents01 .imageMap .link2 {
    left: 55% !important;
}
#productClass .contents01 .imageMap .link3 {
    left: 70% !important;
}
#productClass .contents01 .imageMap .link4 {
    left: 85% !important;
}

/* =====================================
   contents02 : 왼쪽 영상 4개
===================================== */

#productClass .contents02 .imageMap .link1 {
    left: 0.5% !important;
    right: auto !important;
}
#productClass .contents02 .imageMap .link2 {
    left: 15.5% !important;
    right: auto !important;
}
#productClass .contents02 .imageMap .link3 {
    left: 30.5% !important;
    right: auto !important;
}
#productClass .contents02 .imageMap .link4 {
    left: 45.5% !important;
    right: auto !important;
}

/* =====================================
   모바일 최적화
===================================== */

@media screen and (max-width: 767.98px) {

    /* 콘텐츠 전체 너비 */
    #productClass {
        width: 100% !important;
    }

    #productClass .add_content {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 이미지 */
    #productClass .add_content img {
        width: 100% !important;
        height: auto !important;
    }

    /* 영상 영역 */
    #productClass .contents01,
    #productClass .contents02 {
        width: 100% !important;
        max-width: 100% !important;
    }

    #productClass .imageMap {
        width: 100% !important;
        height: 100% !important;
    }

    /* 모바일 유튜브 표시 */
    #productClass .imageMap iframe {
        display: block !important;
        width: 14.5% !important;
        height: 100% !important;
        border: 1px solid #ffffff !important;
    }

    /* 기존 모바일 iframe 숨김 방지 */
    #productClass iframe {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* =====================================
       상단 메뉴 3개 + 1개
    ===================================== */

    #productClass .tab_menu {
        display: flow-root !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 30px !important;
        overflow: visible !important;
    }

    #productClass .tab_menu .menu_list {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        list-style: none !important;
    }

    /* 회색 네모 메뉴 */
    #productClass .tab_menu .menu_list li {
        display: block !important;
        float: none !important;
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid #cccccc !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        box-sizing: border-box;
        text-align: center;
    }

    /* 메뉴 글씨 */
    #productClass .tab_menu .menu_list li a {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 44px !important;
        padding: 8px 2px !important;
        box-sizing: border-box;
        border: none !important;
        background: transparent !important;
        color: #333333 !important;
        font-size: 12px !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
        white-space: nowrap;
    }

    /* 선택 메뉴 회색 배경 */
    #productClass .tab_menu .menu_list li.on {
        background: #eeeeee !important;
        border-color: #cccccc !important;
    }

    /* 선택 메뉴 빨간 글씨 */
    #productClass .tab_menu .menu_list li.on a {
        color: #e60012 !important;
        font-weight: 700 !important;
    }

    /* 기존 구분선 제거 */
    #productClass .tab_menu .menu_list li::before,
    #productClass .tab_menu .menu_list li::after,
    #productClass .tab_menu .menu_list li a::before,
    #productClass .tab_menu .menu_list li a::after {
        content: none !important;
        display: none !important;
    }

    /* 메뉴 아래 이미지 겹침 방지 */
    #productClass .add_content {
        clear: both !important;
        margin-top: 20px !important;
    }
}
/* BASIC css end */

