/* BASIC css start */

/* =====================================
   포스터 이미지
===================================== */

.poster .p_img {
    margin-top: 30px;
}

.poster img {
    width: 100%;
    max-width: 860px;
}

/* =====================================
   상단 메뉴 - PC
===================================== */

.tab_menu {
    width: 100%;
    margin: 30px auto;
}

.menu_list {
    width: 100%;
    height: 30px;
    border-bottom: 1px solid #ededed;
}

.menu_list li {
    float: left;
    width: 120px;
    height: 30px;
    font-size: 15px;
    color: #000;
    line-height: 30px;
    text-align: center;
}

.menu_list .on {
    border-bottom: 1px solid red;
}

/* =====================================
   드롭박스 링크 영역
===================================== */

.contents {
    position: relative;
    max-width: 860px;
}

.contents a {
    position: absolute;
    width: 15.3%;
    height: 25.8%;
}

.contents .link01 { left: 33.5%; top: 6.7%; }
.contents .link02 { left: 49.2%; top: 6.7%; }
.contents .link03 { left: 65.1%; top: 6.7%; }
.contents .link04 { left: 80.7%; top: 6.7%; }

.contents .link05 { left: 33.5%; top: 34.2%; }
.contents .link06 { left: 49.2%; top: 34.2%; }
.contents .link07 { left: 65.1%; top: 34.2%; }
.contents .link08 { left: 80.7%; top: 34.2%; }

/* =====================================
   모바일 최종 CSS
===================================== */

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

    /* 모바일 콘텐츠 */
    #contentWrap {
        width: 100%;
    }

    #contentWrap img {
        width: 100%;
        height: auto;
    }

    /* 상단 메뉴 영역 높이 확보 */
    .tab_menu {
        display: flow-root !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 30px auto !important;
        overflow: visible !important;
    }

    /* 메뉴 3개 + 2개 정렬 */
    .tab_menu .menu_list {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px !important;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background-image: none !important;
        list-style: none;
    }

    /* 모든 메뉴 회색 테두리 */
    .tab_menu .menu_list li {
        display: block !important;
        float: none !important;
        width: auto !important;
        height: auto !important;
        min-width: 0;
        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;
    }

    /* 기본 메뉴 글씨 */
    .tab_menu .menu_list li a {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: 44px;
        padding: 8px 2px;
        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;
        white-space: nowrap;
    }

    /* 선택된 메뉴 회색 배경 */
    .tab_menu .menu_list li.on {
        background: #eeeeee !important;
        border: 1px solid #cccccc !important;
    }

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

    /* 기존 빨간색 밑줄 제거 */
    .tab_menu .menu_list li::before,
    .tab_menu .menu_list li::after,
    .tab_menu .menu_list li a::before,
    .tab_menu .menu_list li a::after {
        content: none !important;
        display: none !important;
    }

    /* 포스터 모바일 반응형 */
    .poster img,
    .contents img {
        display: block;
        width: 100%;
        height: auto;
    }
}

/* BASIC css end */

