/* =========================================================
   랩핑기 / 테이핑기 / 제함기 / 삼면포장기
   PACK4 전용
========================================================= */

.pack4-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    box-sizing: border-box;
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
    color: #333;
}


/* =========================================================
   TAB
========================================================= */

.pack4-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 35px;

    border: 1px solid #d9dce4;
    border-radius: 8px;

    overflow: hidden;
    background: #fff;
}


.pack4-tab {
    flex: 1;
    min-width: 0;

    height: 64px;

    padding: 0 15px;

    border: 0;
    border-right: 1px solid #d9dce4;

    background: #fff;

    color: #333;

    font-size: 18px;
    font-weight: 600;

    cursor: pointer;

    word-break: keep-all;

    transition:
        background .25s ease,
        color .25s ease;
}


.pack4-tab:last-child {
    border-right: 0;
}


.pack4-tab:hover {
    background: #f3f5fa;
    color: #182754;
}


.pack4-tab.active {
    background: #182754;
    color: #fff;
}


/* =========================================================
   CONTENT
========================================================= */

.pack4-content {
    display: none;
}


.pack4-content.active {
    display: block;
}


/* =========================================================
   상단 남색 영역
========================================================= */

.pack4-top {
    position: relative;

    width: 100%;

    min-height: 640px;

    padding:
        70px
        65px
        150px;

    box-sizing: border-box;

    background: #182754;

    border-radius: 38px;

    color: #fff;

    overflow: hidden;
}


/* 배경 사선 */
.pack4-top::before {
    content: "";

    position: absolute;

    top: -240px;
    left: -100px;

    width: 1150px;
    height: 700px;

    background: rgba(255,255,255,.025);

    transform: rotate(34deg);

    pointer-events: none;
}


.pack4-top::after {
    content: "";

    position: absolute;

    right: -260px;
    bottom: -60px;

    width: 1050px;
    height: 430px;

    background: rgba(0,0,0,.08);

    transform: rotate(-19deg);

    pointer-events: none;
}


.pack4-top > * {
    position: relative;
    z-index: 2;
}


/* 제목 */
.pack4-top h2 {
    margin: 0 0 38px;

    color: #d5e5ff;

    font-size: 46px;
    line-height: 1.25;

    font-weight: 500;

    letter-spacing: -2px;
}


/* =========================================================
   특징
========================================================= */

.pack4-feature {
    margin-bottom: 43px;
}


.pack4-feature h3 {
    display: inline-block;

    margin: 0 0 18px;

    padding-bottom: 3px;

    border-bottom: 2px solid rgba(255,255,255,.9);

    color: #fff;

    font-size: 19px;
    line-height: 1.3;

    font-weight: 600;
}


.pack4-feature p {
    margin: 0 0 11px;

    color: #eef2fa;

    font-size: 18px;
    line-height: 1.65;

    font-weight: 400;

    word-break: keep-all;
}


/* =========================================================
   모델명 / 용도 / 컨트롤러
========================================================= */

.pack4-info-row {
    display: flex;
    align-items: flex-start;

    margin-top: 28px;

    font-size: 18px;
    line-height: 1.65;
}


.pack4-info-row strong {
    flex: 0 0 110px;

    color: #fff;

    font-weight: 600;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;

    word-break: keep-all;
}


.pack4-info-row span {
    flex: 1;

    min-width: 0;

    color: #eef2fa;

    word-break: keep-all;
}


/* =========================================================
   이미지 공통
========================================================= */

.pack4-image-box {
    position: relative;
    z-index: 5;

    width: calc(100% - 86px);

    height: 300px;

    margin:
        -105px
        auto
        95px;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #e2e2e2;
    border-radius: 18px;

    overflow: hidden;
}


/* =========================================================
   이미지 1개
========================================================= */

.pack4-image-single {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 20px;
}


.pack4-image-single img {
    display: block;

    width: auto !important;
    max-width: 100% !important;

    height: 100% !important;
    max-height: 100% !important;

    margin: 0 auto;

    object-fit: contain !important;
}


/* =========================================================
   제함기 - 이미지 2개
========================================================= */

.pack4-image-two {
    display: flex !important;

    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center;
    justify-content: center;

    padding: 0;
}


.pack4-image-two .pack4-img-item {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 50%;

    width: 50%;
    height: 100%;

    min-width: 0;

    margin: 0;
    padding: 10px;

    box-sizing: border-box;

    overflow: hidden;
}


.pack4-image-two .pack4-img-item img {
    display: block;

    width: 100% !important;
    max-width: 100% !important;

    height: 100% !important;
    max-height: 100% !important;

    margin: 0 !important;

    object-fit: contain !important;
}


/* =========================================================
   삼면포장기 - 가로형 사진
========================================================= */

.pack4-image-wide {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 320px;

    padding: 0;
}


.pack4-image-wide img {
    display: block;

    width: 100% !important;
    max-width: 100% !important;

    height: 100% !important;

    object-fit: cover !important;

    margin: 0;
}


/* =========================================================
   제품 사양표
========================================================= */

.pack4-spec {
    width: 86%;
    max-width: 760px;

    margin: 0 auto 80px;
}


.pack4-spec-long {
    max-width: 820px;
}


.pack4-spec-row {
    display: grid;

    grid-template-columns:
        155px
        minmax(0, 1fr);

    column-gap: 18px;

    align-items: center;

    min-height: 55px;
}


/* 왼쪽 남색 라벨 */
.pack4-spec-row strong {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 6px 12px;

    box-sizing: border-box;

    background: #182754;

    border-radius: 30px;

    color: #fff;

    font-size: 19px;
    line-height: 1.2;

    font-weight: 600;

    white-space: nowrap;
}


/* 오른쪽 사양 */
.pack4-spec-row span {
    display: flex;

    align-items: center;

    min-height: 55px;

    padding: 6px 5px;

    box-sizing: border-box;

    border-bottom: 1px dotted #65708d;

    color: #363636;

    font-size: 20px;
    line-height: 1.4;

    word-break: keep-all;
}


.pack4-spec-row:last-child span {
    border-bottom: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 1024px) {

    .pack4-wrap {
        padding:
            25px
            20px
            65px;
    }


    .pack4-tab {
        height: 58px;

        padding: 0 10px;

        font-size: 16px;
    }


    .pack4-top {
        min-height: 580px;

        padding:
            55px
            48px
            135px;

        border-radius: 30px;
    }


    .pack4-top h2 {
        margin-bottom: 32px;

        font-size: 38px;
    }


    .pack4-feature p,
    .pack4-info-row {
        font-size: 16px;
    }


    .pack4-image-box {
        width: calc(100% - 60px);

        height: 275px;

        margin:
            -92px
            auto
            75px;
    }


    .pack4-image-wide {
        height: 290px;
    }


    .pack4-spec {
        width: 90%;
    }


    .pack4-spec-row {
        grid-template-columns:
            145px
            minmax(0, 1fr);

        column-gap: 15px;
    }


    .pack4-spec-row strong {
        font-size: 17px;
    }


    .pack4-spec-row span {
        font-size: 18px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 768px) {

    .pack4-wrap {
        padding:
            15px
            14px
            50px;
    }


    /* -------------------------
       모바일 탭 2 × 2
    -------------------------- */

    .pack4-tabs {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 6px;

        padding: 6px;

        margin-bottom: 25px;

        border: 0;

        border-radius: 10px;

        background: #f2f3f7;

        overflow: visible;
    }


    .pack4-tab {
        width: 100%;

        height: 48px;

        padding: 5px 7px;

        border: 0;

        border-radius: 7px;

        background: #fff;

        font-size: 14px;
        line-height: 1.25;
    }


    .pack4-tab.active {
        background: #182754;

        color: #fff;
    }


    /* -------------------------
       상단
    -------------------------- */

    .pack4-top {
        min-height: auto;

        padding:
            36px
            23px
            80px;

        border-radius: 22px;
    }


    .pack4-top h2 {
        margin-bottom: 27px;

        font-size: 29px;

        letter-spacing: -1px;
    }


    .pack4-feature {
        margin-bottom: 28px;
    }


    .pack4-feature h3 {
        margin-bottom: 14px;

        font-size: 16px;
    }


    .pack4-feature p {
        margin-bottom: 8px;

        font-size: 14px;
        line-height: 1.65;
    }


    /* 모델명 / 용도 */
    .pack4-info-row {
        display: block;

        margin-top: 23px;

        font-size: 14px;
        line-height: 1.6;
    }


    .pack4-info-row strong {
        display: block;

        margin-bottom: 7px;

        font-size: 14px;
    }


    .pack4-info-row span {
        display: block;
    }


    /* -------------------------
       이미지 영역
    -------------------------- */

    .pack4-image-box {
        width: calc(100% - 28px);

        height: auto;
        min-height: 210px;

        margin:
            -46px
            auto
            50px;

        border-radius: 14px;
    }


    /* 한 장 이미지 */
    .pack4-image-single {
        height: 235px;

        padding: 12px;
    }


    .pack4-image-single img {
        width: auto !important;

        max-width: 100% !important;

        height: 100% !important;

        object-fit: contain !important;
    }


    /*
      ★ 제함기 2장은 모바일에서도
      상하 배치하지 않고 좌우 2장 유지
    */
    .pack4-image-two {
        display: flex !important;

        flex-direction: row !important;
        flex-wrap: nowrap !important;

        height: 205px;

        padding: 0;
    }


    .pack4-image-two .pack4-img-item {
        flex:
            0
            0
            50% !important;

        width: 50% !important;
        max-width: 50% !important;

        height: 100%;

        padding: 5px;
    }


    .pack4-image-two .pack4-img-item img {
        width: 100% !important;

        height: 100% !important;

        object-fit: contain !important;
    }


    /* 삼면포장기 */
    .pack4-image-wide {
        height: 210px;

        min-height: 0;

        padding: 0;
    }


    .pack4-image-wide img {
        width: 100% !important;

        height: 100% !important;

        /*
        모바일에서는 전체 사진이 보이도록
        contain 사용
        */
        object-fit: contain !important;
    }


    /* -------------------------
       사양표
    -------------------------- */

    .pack4-spec {
        width: 100%;

        margin-bottom: 45px;
    }


    .pack4-spec-row {
        grid-template-columns:
            110px
            minmax(0, 1fr);

        column-gap: 10px;

        min-height: 50px;
    }


    .pack4-spec-row strong {
        min-height: 37px;

        padding: 5px 6px;

        font-size: 14px;
    }


    .pack4-spec-row span {
        min-height: 50px;

        padding: 6px 3px;

        font-size: 15px;
        line-height: 1.4;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media screen and (max-width: 480px) {

    .pack4-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }


    .pack4-tab {
        height: 45px;

        font-size: 13px;
    }


    .pack4-top {
        padding:
            30px
            18px
            73px;

        border-radius: 18px;
    }


    .pack4-top h2 {
        font-size: 25px;
    }


    .pack4-feature p,
    .pack4-info-row {
        font-size: 13px;
    }


    .pack4-image-box {
        width: calc(100% - 18px);

        margin-top: -40px;
    }


    .pack4-image-single {
        height: 205px;
    }


    .pack4-image-two {
        height: 165px;
    }


    .pack4-image-wide {
        height: 175px;
    }


    .pack4-spec-row {
        grid-template-columns:
            96px
            minmax(0, 1fr);

        column-gap: 8px;
    }


    .pack4-spec-row strong {
        min-height: 35px;

        padding: 5px 4px;

        font-size: 13px;
    }


    .pack4-spec-row span {
        min-height: 48px;

        font-size: 13px;

        word-break: normal;
    }

}