/**
 * NextBio Website - 품질관리센터 페이지 스타일
 */

.quality-page {
    width: 100%;
    background: #ffffff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 160px;
    padding: 160px 0;
}

.quality-page .inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 섹션 01 (개요) */
.quality-page .section-01 {
    width: 100%;
    text-align: center;
}

.quality-page .intro-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 60px;
    color: #000000;
    margin: 0 0 48px 0;
    font-family: var(--font-family-suit);
    font-weight: 800;
}

.quality-page .intro-desc {
    font-size: 24px;
    font-weight: 500;
    line-height: 36px;
    color: #000000;
    word-break: keep-all;
    margin: 0;
    font-family: "Suit-Medium", sans-serif;
}

/* 섹션 02 (품질 경영 철학) */
.quality-page .section-02 {
    width: 100%;
}

.quality-page .sec-label {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 48px 0;
    color: #000000;
    font-family: var(--font-family-suit);
    font-weight: 700;
}

.quality-page .philosophy-grid {
    display: flex;
    gap: 24px;
}

.quality-page .card {
    flex: 1;
    border: 1px solid #dfdfdf;
    border-radius: 32px;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    box-sizing: border-box;
}

.quality-page .card-icon {
    width: 76px;
    height: 90px;
    object-fit: contain;
}

.quality-page .card-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: #000000;
    margin: 0;
    font-family: var(--font-family-suit);
    font-weight: 700;
}

.quality-page .card-desc {
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    color: #555555;
    word-break: keep-all;
    margin: 0;
    font-family: "Suit-Regular", sans-serif;
}

.quality-page .point-orange {
    color: var(--point-01, #f5821f);
}

.quality-page .point-blue {
    color: var(--point-02, #00aeef);
}

/* 섹션 03 (SUPER 원칙) */
.quality-page .section-03 {
    width: 100%;
}

.quality-page .section-03.last {
    padding-bottom: 0;
}

.quality-page .super-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.quality-page .super-list {
    flex: 0 0 586px;
    display: flex;
    flex-direction: column;
}

.quality-page .super-item {
    border-bottom: 1px solid #dfdfdf;
    padding: 24px 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, padding-left 0.25s ease;
}

.quality-page .super-item:first-child {
    border-top: 1px solid #dfdfdf;
}

/* 오른쪽 노드 호버 시 왼쪽 해당 텍스트 튀어나오는 효과 (표 텍스트 순서에 맞춤) */
.quality-page .super-content:has(.node-s:hover) .super-list .super-item:nth-child(1),
.quality-page .super-content:has(.node-u:hover) .super-list .super-item:nth-child(5),
.quality-page .super-content:has(.node-p:hover) .super-list .super-item:nth-child(2),
.quality-page .super-content:has(.node-e:hover) .super-list .super-item:nth-child(4),
.quality-page .super-content:has(.node-r:hover) .super-list .super-item:nth-child(3) {
    transform: translateX(12px);
    box-shadow: 4px 0 0 0 var(--main, #8dc63f);
    padding-left: 16px;
    background-color: rgba(141, 198, 63, 0.06);
}

.quality-page .super-name {
    font-size: 20px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 6px 0;
    font-family: "Suit-Regular", sans-serif;
}

.quality-page .super-name .green {
    color: var(--main, #8dc63f);
    font-weight: 600;
    font-family: var(--font-family-suit);
    font-weight: 600;
}

.quality-page .super-desc {
    font-size: 16px;
    color: #555555;
    line-height: 24px;
    word-break: keep-all;
    margin: 0;
    font-family: "Suit-Regular", sans-serif;
}

/* 원형 그래픽 영역 */
.quality-page .super-graphic {
    width: 732px;
    height: 732px;
    position: relative;
    flex-shrink: 0;
}

.quality-page .graphic-bg {
    width: 100%;
    height: auto;
    display: block;
}

.quality-page .center-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 264px;
    height: 264px;
    background: var(--main, #8dc63f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    z-index: 5;
    font-family: var(--font-family-suit);
    font-weight: 700;
    box-sizing: border-box;
    padding: 20px;
}

.quality-page .node {
    position: absolute;
    width: 220px;
    text-align: center;
    font-size: 20px;
    line-height: 28px;
    color: #000000;
    font-family: "Suit-Regular", sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.quality-page .node:hover {
    transform: scale(1.05);
}
/* 오른쪽 표 Professional(전문적인) 노드는 호버 시 고정, 확대 없음 */
.quality-page .node.node-r:hover {
    transform: translateX(-50%);
}

.quality-page .node:hover strong {
    color: var(--main, #8dc63f);
}

.quality-page .node strong {
    color: var(--main, #8dc63f);
    font-weight: 600;
    font-family: var(--font-family-suit);
    font-weight: 600;
}

.quality-page .node-keyword {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: var(--main, #8dc63f);
    font-family: var(--font-family-suit);
}

/* 각 노드 위치값 */
.quality-page .node-s {
    left: 94px;
    top: 130px;
}

.quality-page .node-u {
    left: 418px;
    top: 130px;
}

.quality-page .node-p {
    left: 0px;
    top: 420px;
}

.quality-page .node-e {
    right: 0px;
    top: 420px;
}

.quality-page .node-r {
    left: 50%;
    transform: translateX(-50%);
    top: 596px;
}

/* 반응형 */
@media (max-width: 1440px) {
    .quality-page .inner {
        padding: 0 120px;
    }
    
    .quality-page .super-graphic {
        transform: scale(0.8);
        margin-right: -100px;
    }
}

@media (max-width: 1200px) {
    .quality-page {
        padding: 120px 0;
        gap: 120px;
    }
    
    .quality-page .super-graphic {
        transform: scale(0.9);
        margin-right: -50px;
    }
}

@media (max-width: 1024px) {
    .quality-page {
        padding: 100px 0;
        gap: 100px;
    }
    
    .quality-page .inner {
        padding: 0 40px;
    }
    
    .quality-page .philosophy-grid {
        flex-direction: column;
    }
    
    .quality-page .super-content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .quality-page .super-list {
        flex: none;
        width: 100%;
    }
    
    .quality-page .super-graphic {
        transform: scale(1);
        margin-right: 0;
        width: 100%;
        max-width: 500px;
        height: 500px;
    }
    
    /* 원형 그래픽 내 글씨 크기 통일 */
    .quality-page .center-circle {
        width: 180px;
        height: 180px;
        font-size: 18px;
        line-height: 24px;
    }
    
    .quality-page .node {
        font-size: 18px;
        line-height: 24px;
        width: 150px;
    }
    
    .quality-page .node-keyword {
        font-size: 18px;
        line-height: 24px;
    }
    
    /* 태블릿 노드 위치 재조정 */
    .quality-page .node-s {
        left: 10%;
        top: 15%;
    }
    
    .quality-page .node-u {
        right: 10%;
        top: 15%;
        left: auto;
    }
    
    .quality-page .node-p {
        left: 0;
        top: 50%;
    }
    
    .quality-page .node-e {
        right: 0;
        top: 50%;
    }
    
    .quality-page .node-r {
        bottom: 0;
        top: auto;
    }
}

@media (max-width: 768px) {
    .quality-page {
        padding: 60px 0;
        gap: 60px;
    }
    
    .quality-page .inner {
        padding: 0 20px;
    }
    
    .quality-page .intro-title {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 32px;
    }
    
    .quality-page .intro-desc {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .quality-page .sec-label {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .quality-page .card {
        padding: 40px 24px;
        gap: 20px;
    }
    
    .quality-page .card-icon {
        width: 60px;
        height: 70px;
    }
    
    .quality-page .card-title {
        font-size: 20px;
        line-height: 1.4;
    }
    
    .quality-page .card-desc {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* 식품안전(SUPER) 5대원칙: 왼쪽 표 위 → 원형 그래픽 아래 */
    .quality-page .section-03 .inner {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .quality-page .super-content {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        justify-content: flex-start;
    }
    
    .quality-page .super-list {
        width: 100%;
        max-width: 100%;
        order: 1;
    }
    
    .quality-page .super-item {
        padding: 12px 0;
    }
    
    /* 위쪽 표 텍스트와 원형 그래픽 텍스트 크기 통일 (모바일) */
    .quality-page .super-name {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 4px;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    .quality-page .super-desc {
        font-size: 12px;
        line-height: 18px;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    .quality-page .super-graphic {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
        order: 2;
    }
    
    .quality-page .graphic-bg {
        width: 100%;
        height: auto;
        display: block;
    }
    
    /* 원형 그래프: 모바일에서 중앙 원·노드 텍스트가 도형 안에 배치 (PC와 동일) */
    .quality-page .center-circle {
        width: 32%;
        height: 32%;
        min-width: 64px;
        min-height: 64px;
        font-size: 14px;
        line-height: 20px;
        padding: 6px;
        box-sizing: border-box;
        word-break: keep-all;
        overflow-wrap: break-word;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .quality-page .node,
    .quality-page .node .node-keyword {
        font-size: 14px;
        line-height: 20px;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    .quality-page .node {
        width: 28%;
        max-width: 72px;
        box-sizing: border-box;
        padding: 4px 2px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        /* 노드 박스 중심이 부채꼴 안에 오도록 transform 적용 */
    }
    
    .quality-page .node-keyword {
        font-size: 9px;
        line-height: 12px;
        margin-top: 1px;
    }
    
    /* 모바일: 각 노드를 해당 도형(부채꼴) 안에 배치 – left/top은 세그먼트 중심, transform으로 노드 중앙 정렬 */
    .quality-page .node-s { left: 24%; top: 24%; right: auto; transform: translate(-50%, -50%); }
    .quality-page .node-u { left: 76%; top: 24%; right: auto; transform: translate(-50%, -50%); }
    .quality-page .node-p { left: 16%; top: 56%; right: auto; transform: translate(-50%, -50%); }
    .quality-page .node-e { left: 84%; right: auto; top: 56%; transform: translate(-50%, -50%); }
    .quality-page .node-r { left: 50%; top: 82%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
}

/* 480px 이하: 더 축소 */
@media (max-width: 480px) {
    .quality-page .super-list {
        max-width: 100%;
    }
    
    .quality-page .super-name {
        font-size: 13px;
        line-height: 18px;
    }
    
    .quality-page .super-desc {
        font-size: 11px;
        line-height: 16px;
    }
    
    .quality-page .super-graphic {
        max-width: 240px;
    }
    
    /* 원형 그래프 텍스트를 표와 같은 크기로 통일 (초소형 화면) */
    .quality-page .center-circle {
        font-size: 13px;
        line-height: 18px;
        min-width: 52px;
        min-height: 52px;
    }
    
    .quality-page .node,
    .quality-page .node-keyword {
        font-size: 12px;
        line-height: 16px;
    }
    
    .quality-page .node {
        max-width: 64px;
        width: 26%;
    }
    
    .quality-page .node-keyword {
        font-size: 8px;
        line-height: 11px;
    }
}
