@charset "utf-8";

/* =============================================================================
   v3_factory.css — 공장 페이지 2종 공용 CSS (신규 테마 ver 3.0)
   261113 김동현 클로드활용 수정: 새로 만듦
   - skin/board/factory_page/list.skin.php (공장소개), skin/board/factory_page_planning/list.skin.php (제조공정) 가 불러옴.
     예전엔 두 스킨 파일 안에 <style> 로 박혀 있던 CSS 를 그대로 옮기되 아래만 바꿈:
       1) 색을 새 테마 색(--color-point #4E8B79, --color-deep #1F4D3F)으로 통일 — 아래 --fx-* 변수만 고치면 전체가 바뀜
       2) 옛 숨김 규칙(#sub_visual, #bo_title 등: 새 테마에 없는 요소)과 안 쓰는 규칙 정리
       3) 품질 관리 시스템 도표를 이미지(SVG)에서 HTML/CSS(.fx-*)로 새로 만듦 (반응형)
       4) [data-aos="line-trigger"] 의 !important 규칙은 제조공정 페이지에만 적용되도록 범위를 좁힘
          (두 스킨이 같은 파일을 쓰게 되면서 공장소개의 세로선 애니메이션을 깨뜨리지 않도록)
   - 문구·이미지·애니메이션(AOS) 구조는 그대로. AOS 와 Font Awesome 7(fa-solid)은 새 테마 head.php / head.sub.php 가 불러옴
   ============================================================================= */

/* 페이지 배경을 메인·서브 상단과 같은 색(#FCFBFA)으로. 이 CSS 는 공장 페이지에서만 불러오므로 이 페이지에만 적용됨 */
body {
    background: var(--color-white);
}

/* ----- 색 변수: 새 테마 색을 따르고, 못 읽으면 기본값 ----- */
.contents-factory-1,
.contents-factory-2,
.card-popup {
    --fx-point: var(--color-point, #4E8B79);
    --fx-point-hover: var(--color-point-hover, #43856f);
    --fx-deep: var(--color-deep, #1F4D3F);
    --fx-mint: #D3E2DD;
    /* 연한 민트: 카드 배경 띠·아이콘 칸·알약 */
    --fx-line: #C9DAD3;
    /* 연결선·테두리 */
    --fx-line-strong: #A9C7BC;
    /* 화살표·점선 */

    /* 위아래 여백: 화면 폭에 따라 줄어듦. 여기 값만 고치면 두 페이지의 여백이 함께 바뀜 */
    --fx-gap-section: clamp(96px, 11vw, 180px);
    /* 큰 구역 사이 */
    --fx-gap-block: clamp(72px, 9vw, 160px);
    /* 공장소개 첫째·둘째 소개 사이 */
    --fx-gap-end: clamp(72px, 9vw, 140px);
    /* 맨 아래(푸터와의 간격) */

    /* 글자 체계: 메인(css/v3_main.css)의 크기·굵기·줄간격·자간과 같은 기준.
       제목 700 / 소제목·카드 이름 600 / 본문 400, 줄간격 1.65, 제목 자간 -0.02em · 본문 -0.01em */
    --fx-fs-title: clamp(24px, 20.5px + 0.4vw, 28px);
    /* 구역 제목 (메인 .news_title) */
    --fx-fs-sub: clamp(20px, 15px + 0.68vw, 24px);
    /* 소제목 (메인 .section_title 보다 한 단계 작게) */
    --fx-fs-card: clamp(18px, 16.3px + 0.19vw, 20px);
    /* 카드 이름 (메인 .biz_card_title) */
    --fx-fs-desc: clamp(15px, 14.4px + 0.14vw, 18px);
    /* 구역 설명 (메인 .section_desc) */
    --fx-fs-body: 16px;
    /* 본문 */
    --fx-fs-small: 14px;
    /* 카드 안 작은 글 */
}

/* ===== 공통 ===== */
.contents-factory-1,
.contents-factory-2 {
    color: #333;
    /* 위아래 여백이 "마진" 으로만 되어 있으면 안쪽 마진이 바깥 틀로 새어 나가(겹침) 미리보기·실제 틀에 따라 사라지거나 달라질 수 있음.
       flow-root 로 이 영역 안에 가두고, 맨 아래 여백은 padding 으로 확실히 줌 */
    display: flow-root;
    padding-bottom: var(--fx-gap-end);
}

/* 서브 상단 아래 틀(.content_wrap .txtCon)이 이미 위쪽 여백 60px 을 주는데, 스킨 안쪽에 같은 틀이 한 번 더 있어 여백이 두 배가 됨 → 안쪽 틀의 위쪽 여백은 0.
   (제조공정은 맨 위 안내 문장 아래 간격을 .sub-text-top 의 margin-bottom 이 대신 줌) */
.contents-factory-1>.txtCon,
.contents-factory-2>.txtCon {
    display: flow-root;
    max-width: none;
    padding: 0;
}

/* [너비] 메인·언론보도·제품 목록과 같은 틀: 화면 폭 − 좌우 여백(--header-gap), 최대 1440px (css/v3_common.css 의 .v3_inner 와 같은 식).
   바깥 틀(.content_wrap .txtCon)은 옛 값(최대 1200px, 좌우 10px)이라 그 폭 밖으로 넓힘 — left:50% + translateX(-50%) 로 화면 가운데 정렬 (언론보도·제품 목록과 같은 방식).
   인증서 팝업(.card-popup)은 이 영역 바깥에 있어 영향 없음 */
.contents-factory-1,
.contents-factory-2 {
    position: relative;
    left: 50%;
    width: min(100vw - var(--header-gap) * 2, var(--content-w));
    transform: translateX(-50%);
}

.contents-factory-1 .sub-title,
.contents-factory-2 .sub-title {
    text-align: center;
    color: #222 !important;
    font-weight: 700;
    font-size: var(--fx-fs-title);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 100px;
}

/* [문단 간격] 새 테마의 css/default.css 는 p 의 마진을 0 으로 지우지만(p {margin:0;padding:0}), 옛 운영 테마에는 그 규칙이 없어서
   이 페이지는 브라우저 기본 문단 간격(위아래 1em)에 기대어 만들어졌음. 그대로 두면 제목과 문단, 문단과 문단이 붙어 보이므로 같은 간격을 명시함.
   (제목 h1~h6 의 마진 0 은 옛 테마도 같아서 건드리지 않음) */
.contents-factory-1 .sub-title .sub-text {
    margin: 1em 0;
    font-size: var(--fx-fs-desc);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.01em;
    color: var(--color-text-sub, #666);
}

.contents-factory-1 .txt-point,
.contents-factory-2 .txt-point {
    color: var(--fx-point);
}

.contents-factory-1 .content {
    margin-bottom: var(--fx-gap-section);
}

.contents-factory-2 .section {
    margin-bottom: var(--fx-gap-section);
}

/* 마지막 구역의 아래 여백은 위 padding-bottom(--fx-gap-end) 이 대신 줌 (여백이 두 번 더해지지 않게) */
.contents-factory-1 .content:last-child,
.contents-factory-2 .section:last-child {
    margin-bottom: 0;
}

/* 제조공정 맨 위 안내 문장: 아래 간격을 직접 줌 */
.sub-text-top {
    margin: 0 0 clamp(40px, 5vw, 64px);
    font-size: var(--fx-fs-desc);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--color-text-sub, #666);
}

/* =============================================================================
   공장소개 (factory_page) — content-1: 공장·품질 소개 2단
   ============================================================================= */
.contents-factory-1 .content-1 li {
    display: flex;
    gap: 40px;
    position: relative;
}

.contents-factory-1 .content-1 li:nth-child(1) {
    margin-bottom: var(--fx-gap-block);
}

.contents-factory-1 .content-1 .img-box {
    flex: 1;
    /* 예전엔 높이 386px 고정(폭 1200px 기준 약 3:2). 틀이 넓어져도 같은 비율을 유지하도록 비율로 지정 */
    height: auto;
    aspect-ratio: 3/2;
    background-color: #666;
    border-radius: 16px;
    overflow: hidden;
}

.contents-factory-1 .content-1 .img-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contents-factory-1 .content-1 .line-box {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: var(--fx-line);
    transform-origin: top;
    transform: translateX(-50%) scaleY(0);
}

.contents-factory-1 .content-1 .line-box.aos-animate {
    transform: translateX(-50%) scaleY(1);
}

.contents-factory-1 .content-1 .text-box {
    flex: 1;
    align-self: center;
}

/* 틀이 넓어도 한 줄이 너무 길어지지 않게 글 덩어리에 최대 폭을 줌.
   (칸 자체에 주면 사진과 글 칸의 비율이 어긋나 가운데 세로선이 사진을 가로지르므로, 칸은 반반으로 두고 안쪽 글에만 줌) */
.contents-factory-1 .content-1 .text-box>div {
    max-width: 600px;
}

.contents-factory-1 .content-1 .text-box h3 {
    font-size: var(--fx-fs-sub);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.contents-factory-1 .content-1 .text-box p {
    margin: 1em 0;
    /* 위 [문단 간격] 설명 참고 */
    font-size: var(--fx-fs-body);
    line-height: 1.65;
    letter-spacing: -0.01em;
    text-align: left;
    /* 예전엔 양쪽 정렬(justify) → 글꼴이 Pretendard 로 바뀌며 단어 간격이 들쭉날쭉해 보여 왼쪽 정렬로 */
}

/* =============================================================================
   공장소개 — content-3: 품질 인증 카드 4장 + 인증서 팝업
   ============================================================================= */
.contents-factory-1 .content-3 .cardwrap {
    /* 예전 12px → 14px: 카드 설명이 너무 작아 읽기 힘들었음 */
    font-size: var(--fx-fs-small);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.contents-factory-1 .content-3 .cardwrap ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
}

.contents-factory-1 .content-3 .cardwrap ul li {
    flex: 1;
}

.contents-factory-1 .content-3 .cardwrap .card {
    position: relative;
    width: 100%;
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    border: 1px solid #C4C4C4;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.contents-factory-1 .content-3 .cardwrap .card:hover {
    border: 1px solid var(--fx-mint);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.contents-factory-1 .content-3 .cardwrap .card-con {
    border-radius: 16px;
    padding: 24px;
    background-color: #fff;
    height: 100%;
}

.contents-factory-1 .content-3 .cardwrap .card-bg {
    background-color: var(--fx-mint);
    width: 100%;
    height: calc(100% - 20px);
    border-radius: 16px;
    position: absolute;
    left: 0;
    top: -6px;
    z-index: -1;
    transition: all .3s ease;
}

.contents-factory-1 .content-3 .cardwrap li:hover .card-bg {
    background-color: var(--fx-point);
}

.contents-factory-1 .content-3 .cardwrap .no {
    color: #808080;
    font-weight: 600;
}

.contents-factory-1 .content-3 .cardwrap .codename {
    color: var(--fx-deep);
    font-size: 13px;
    font-weight: 600;
    margin: 32px 0 10px 0;
}

.contents-factory-1 .content-3 .cardwrap .name {
    font-size: var(--fx-fs-card);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    height: 58px;
}

.contents-factory-1 .content-3 .cardwrap li:hover .name {
    color: var(--fx-point);
}

.contents-factory-1 .content-3 .cardwrap .txt {
    font-weight: 400;
    line-height: 1.65;
    margin: 10px 0 20px 0;
    height: 130px;
    /* 글자를 14px 로 키웠으므로 줄 수가 늘어도 들어가는 높이. 같은 줄의 카드 구분선 위치를 맞추려고 고정 */
}

.contents-factory-1 .content-3 .cardwrap .mid-line {
    background-color: #D4D4D4;
    width: 100%;
    height: 1px;
}

.contents-factory-1 .content-3 .cardwrap .cert {
    color: #808080;
    margin: 20px 0 10px;
    font-size: 12px;
    font-weight: 600;
}

.contents-factory-1 .content-3 .cardwrap .cert-name {
    font-size: var(--fx-fs-small);
    font-weight: 600;
    margin-bottom: 20px;
}

.contents-factory-1 .content-3 .cardwrap .my-btn {
    color: #808080;
    font-weight: 600;
}

.contents-factory-1 .content-3 .cardwrap li:hover .my-btn {
    color: var(--fx-point);
}

/* ----- 인증서 팝업 ----- */
.card-popup {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    /* safari 호환 */
}

.card-popup.show {
    visibility: visible;
    opacity: 1;
}

.card-popup .content {
    display: flex;
    flex-direction: column;
    max-width: 896px;
    width: 100%;
    height: 90%;
    background-color: #F9FAFB;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: absolute;
    left: 50%;
    top: 50%;
    overflow: hidden;
    transform: translate(-50%, -45%) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.card-popup.show .content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.card-popup .content .head {
    padding: 24px;
    background-color: #fff;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    box-sizing: border-box;
}

.card-popup .content .head .codename {
    font-size: 14px;
    font-weight: 600;
    color: var(--fx-deep);
    margin-bottom: 4px;
}

.card-popup .content .head .name {
    font-size: var(--fx-fs-sub);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #333;
}

.card-popup .content .head .close {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    aspect-ratio: 1 / 1;
    transition: transform .4s ease;
    cursor: pointer;
}

.card-popup .content .head .close:hover {
    transform: translateY(-50%) rotate(90deg);
}

.card-popup .content .head .close::after,
.card-popup .content .head .close::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 100%;
    height: 2px;
    background-color: #7F7F7F;
}

.card-popup .content .head .close::before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.card-popup .content .main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
    flex-grow: 1;
    width: 100%;
    min-height: 0;
}

.card-popup .content .main>div {
    height: 100%;
    padding: 16px;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    background-color: #fff;
    box-sizing: border-box;
}

.card-popup .content .main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-popup .content .footer {
    padding: 24px;
    background-color: #fff;
    border-top: 1px solid #f3f4f6;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 600;
    color: #808080;
}

.card-popup .content .footer span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* =============================================================================
   공장소개 — content-2: 품질 관리 시스템 도표 (예전 SVG 이미지 → HTML/CSS)
   261113 김동현 클로드활용 수정: 원래 도표의 스타일(지그재그 흐름 · 선 위의 점 · 점선으로 내려오는 알약 · 가운데 점선을 낀 검사 항목 글)을 살리되
   답답하지 않게 다듬음: 카드 사이 간격을 넓히고, 글자는 600 이하로 가볍게, 검사 항목은 상자 없이 글만(원본과 같음), 위아래 여백을 넉넉히.
   점선 정리: 모든 점선을 같은 패턴(4px 선 + 4px 간격)으로 통일. 점 → 알약 / 점 → "적합" 알약은 점 둘레를 비운 자리에서 시작해 알약에 닿는 선으로 끝나고,
   검사 항목은 한글 열 | 긴 점선 하나 | 영문 열 로 나란히 두어 정렬이 맞고, 긴 점선이 품질검사 알약 아래에서 나와 목록 전체를 관통함(칸마다 끊긴 테두리 아님).
   단계·관문·검사 항목 문구는 list.skin.php 맨 위 배열($fx_steps)에서 관리.
   - 가로(PC, 1025px 이상): 윗줄 01→02→03, 오른쪽에서 아래로(적합), 아랫줄 04→05→06 (왼쪽으로 진행)
   - 세로(1024px 이하): 01 → 06 이 한 줄로 내려가는 흐름
   ============================================================================= */
.fx-flow {
    --fx-h: 168px;
    /* 단계 카드 높이 */
    --fx-dash-v: repeating-linear-gradient(to bottom, var(--fx-line-strong) 0 4px, transparent 4px 8px);
    /* 세로 점선 무늬 */
    --fx-dash-h: repeating-linear-gradient(to right, var(--fx-line-strong) 0 4px, transparent 4px 8px);
    /* 가로 점선 무늬 */
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    /* 아래 padding 은 아랫줄 검사 항목 글이 카드 줄 아래로 내려오는 만큼의 자리 (margin 은 다음 구역의 간격과 겹쳐 합쳐지지 않으므로 padding) */
    padding: 22px 16px 190px;
    display: flow-root;
}

.fx-row {
    display: flex;
    align-items: stretch;
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 아랫줄은 오른쪽(04)에서 왼쪽(06)으로 진행 */
.fx-row-b {
    flex-direction: row-reverse;
}

/* ----- 단계 카드 ----- */
.fx-step {
    flex: 0 0 23%;
    min-width: 0;
    list-style: none;
}

/* 호버 효과는 안쪽 .fx-card 에 줌 (바깥 li 는 AOS 가 transform·transition 을 쓰기 때문에 호버가 느려짐) */
.fx-card {
    position: relative;
    display: flex;
    height: var(--fx-h);
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 24px 0 30px;
    box-sizing: border-box;
    border: 2px solid var(--fx-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(31, 77, 63, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.fx-card:hover {
    transform: translateY(-4px);
    border-color: var(--fx-point);
    box-shadow: 0 14px 30px rgba(31, 77, 63, 0.1);
}

/* 번호: 카드 왼쪽 위 모서리에 걸친 동그라미 */
.fx-no {
    position: absolute;
    top: -18px;
    left: -12px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 2px solid var(--fx-line);
    border-radius: 50%;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #707876;
}

.fx-txt {
    min-width: 0;
}

.fx-txt strong {
    display: block;
    font-size: clamp(19px, 1.7vw, 22px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #222;
    word-break: keep-all;
}

.fx-txt em {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    font-style: normal;
    line-height: 1.4;
    color: #7a807e;
}

.fx-ico {
    display: grid;
    flex: none;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 16px;
    background: var(--fx-mint);
    font-size: 28px;
    color: var(--fx-deep);
}

/* 시작(01)과 끝(06) 단계는 초록으로 강조 (원본의 01 강조와 같은 방식) */
.fx-step.is-edge .fx-card {
    border-color: var(--fx-point);
}

.fx-step.is-edge .fx-no {
    border-color: var(--fx-point);
    background: var(--fx-point);
    color: #fff;
}

.fx-step.is-edge .fx-ico {
    background: var(--fx-point);
    color: #fff;
}

/* ----- 단계 사이 연결: 가로선 · 점 · 점선 · 알약 · 검사 항목 ----- */
.fx-link {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    list-style: none;
}

/* 가로선 */
.fx-link::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 2px;
    margin-top: -1px;
    background: var(--fx-line);
}

/* 점에서 알약으로 내려오는 점선: 점 둘레 비운 자리(중심에서 13px)에서 시작해 알약 윗면(중심에서 33px)에 닿음. 길이 20px = 선·간격·선·간격·선 으로 딱 맞게 */
.fx-link::after {
    content: "";
    position: absolute;
    top: calc(50% + 13px);
    left: 50%;
    width: 2px;
    height: 20px;
    margin-left: -1px;
    background: var(--fx-dash-v);
}

.fx-dot {
    position: absolute;
    z-index: 1;
    /* 점 둘레(비운 자리)가 점선·가로선 시작 부분을 가리도록 위에 놓음 */
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--fx-mint);
    box-shadow: 0 0 0 6px var(--color-white, #fff);
}

.fx-link-ok .fx-dot {
    background: var(--fx-point);
}

/* 진행 방향 화살표: 윗줄은 오른쪽, 아랫줄은 왼쪽 */
.fx-arrow {
    position: absolute;
    top: 50%;
    right: 3px;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--fx-line-strong);
    border-right: 2px solid var(--fx-line-strong);
    transform: translateY(-50%) rotate(45deg);
}

.fx-row-b .fx-arrow {
    right: auto;
    left: 3px;
    transform: translateY(-50%) rotate(-135deg);
}

/* 알약 + (있으면) 검사 항목을 한 묶음으로 선 중앙 아래에 놓음. 알약 바로 아래에 검사 항목이 이어짐 */
.fx-drop {
    position: absolute;
    top: calc(50% + 33px);
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
}

/* 알약: 품질검사(민트) / 적합(초록). 위에 영문 작게, 아래에 한글 */
.fx-pill {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 132px;
    flex-direction: column;
    align-items: center;
    padding: 9px 18px 10px;
    box-sizing: border-box;
    border-radius: 18px;
    background: var(--fx-mint);
    color: var(--fx-deep);
    text-align: center;
    line-height: 1.25;
}

.fx-pill small {
    font-size: 11.5px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0.85;
}

.fx-pill b {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.fx-link-ok .fx-pill {
    background: var(--fx-point);
    color: #fff;
}

/* 검사 항목: 상자 없이 글만. 한글 열 | 긴 점선 하나 | 영문 열.
   긴 점선(::before)은 이 묶음의 맨 위(= 알약 아래 끝)에서 시작해 마지막 줄 아래까지 내려가므로 알약에서 나와 목록을 관통하는 한 줄로 보임 */
.fx-detail {
    position: relative;
    display: grid;
    width: 390px;
    margin: 0;
    padding: 22px 0 8px;
    gap: 13px;
}

.fx-detail::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: var(--fx-dash-v);
}

.fx-detail div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: baseline;
}

.fx-detail dt {
    margin: 0;
    padding-right: 18px;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    color: #333;
}

.fx-detail dd {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.4;
    color: #7a807e;
}

/* 03 → 04: 오른쪽(03 카드 가운데)에서 아래로 내려가는 연결. 점에서 오른쪽 점선으로 "적합" 알약 */
.fx-down {
    position: relative;
    height: 236px;
}

.fx-down::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 88.5%;
    width: 2px;
    margin-left: -1px;
    background: var(--fx-line);
}

/* 점 둘레 비운 자리(중심에서 13px)에서 시작해 알약(중심에서 41px)에 닿음. 길이 28px = 선·간격·선·간격·선·간격·선 */
.fx-down::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(88.5% + 13px);
    width: 28px;
    height: 2px;
    margin-top: -1px;
    background: var(--fx-dash-h);
}

.fx-down .fx-dot {
    top: 50%;
    left: 88.5%;
}

.fx-down .fx-pill {
    position: absolute;
    top: 50%;
    left: calc(88.5% + 41px);
    min-width: 100px;
    padding-right: 14px;
    padding-left: 14px;
    transform: translateY(-50%);
}

.fx-down .fx-arrow {
    top: auto;
    right: auto;
    bottom: 3px;
    left: 88.5%;
    margin-left: -5px;
    transform: rotate(135deg);
}

/* =============================================================================
   제조공정 (factory_page_planning) — sec-1 세로 타임라인 / sec-2 영상
   ============================================================================= */
.contents-factory-2 .sec-1 .content-wrap {
    position: relative;
}

.contents-factory-2 .sec-1 .content-wrap .con {
    display: flex;
    padding: 100px 0;
    box-sizing: border-box;
    width: 100%;
    align-items: center;
    position: relative;
}

.contents-factory-2 .sec-1 .content-wrap .con:first-child {
    padding: 0 0 100px 0;
}

.contents-factory-2 .sec-1 .content-wrap .con::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: var(--fx-line);
    z-index: -1;
    /* 애니메이션: 위에서 아래로 선이 자라남 */
    transform-origin: top;
    transform: translateX(-50%) scaleY(0);
    transition: transform .8s ease-in-out;
}

.contents-factory-2 .sec-1 .content-wrap .con:first-child::before {
    top: 40%;
    height: 60%;
}

.contents-factory-2 .sec-1 .content-wrap .con:last-child::before {
    height: 50%;
}

/* 이 페이지의 .con 자체는 AOS 가 투명/이동시키지 않도록 (선은 ::before 가 따로 움직임). 공장소개의 선(.line-box)에는 영향 없게 범위를 좁힘 */
.contents-factory-2 [data-aos="line-trigger"] {
    opacity: 1 !important;
    transform: none !important;
}

.contents-factory-2 .sec-1 .content-wrap .con.aos-animate::before {
    transform: translateX(-50%) scaleY(1);
}

.contents-factory-2 .sec-1 .content-wrap .con-r {
    flex-direction: row-reverse;
}

.contents-factory-2 .sec-1 .text-box {
    width: calc(50% - 20px);
    padding: 0 62px 0 102px;
    box-sizing: border-box;
}

.contents-factory-2 .sec-1 .text-box .title {
    font-size: var(--fx-fs-card);
    font-weight: 600;
    letter-spacing: -0.02em;
    padding-bottom: 24px;
    position: relative;
}

.contents-factory-2 .sec-1 .text-box .title::after {
    content: "";
    display: none;
    width: 100%;
    height: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #686868;
}

.contents-factory-2 .sec-1 .text-box .title>span:nth-child(2) {
    font-size: var(--fx-fs-sub);
    margin: 0 8px;
}

.contents-factory-2 .sec-1 .text-box .title>span:nth-child(3) {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    color: #808080;
}

.contents-factory-2 .sec-1 .text-box .txt {
    font-size: var(--fx-fs-body);
    line-height: 1.65;
    letter-spacing: -0.01em;
    text-align: left;
    /* 예전엔 양쪽 정렬(justify) → 왼쪽 정렬 */
}

.contents-factory-2 .sec-1 .dot {
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.contents-factory-2 .sec-1 .dot::after {
    content: "";
    background-color: var(--fx-point);
    width: 12px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    transform: scale(0);
    transition: transform .3s .5s ease;
}

.contents-factory-2 .sec-1 .con:first-child .dot::after {
    transition: transform .3s ease;
}

.contents-factory-2 .sec-1 .con.aos-animate .dot::after {
    transform: scale(1);
}

.contents-factory-2 .sec-1 .dot::before {
    content: "";
    width: 24px;
    border: 2px solid var(--fx-line);
    background-color: #fff;
    aspect-ratio: 1/1;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: -1;
    transition: transform .3s .5s ease;
}

.contents-factory-2 .sec-1 .con:first-child .dot::before {
    transition: transform .3s ease;
}

.contents-factory-2 .sec-1 .con.aos-animate .dot::before {
    transform: translate(-50%, -50%) scale(1);
}

.contents-factory-2 .sec-1 .img-box {
    width: calc(50% - 20px);
    padding-left: 102px;
    box-sizing: border-box;
}

.contents-factory-2 .sec-1 .img-box div {
    background-color: #555;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
}

.contents-factory-2 .sec-1 .img-box img {
    display: block;
    width: 100%;
}

.contents-factory-2 .sec-1 .con-r .img-box {
    padding-right: 102px;
    padding-left: unset;
}

.contents-factory-2 .sec-2 .video-box {
    width: 100%;
    max-width: 976px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
}

.contents-factory-2 .sec-2 .video-box iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* =============================================================================
   반응형
   ============================================================================= */
@media screen and (max-width: 1024px) {

    .contents-factory-1 .sub-title,
    .contents-factory-2 .sub-title {
        margin-bottom: 80px;
    }

    /* ----- 공장소개 ----- */
    .contents-factory-1 .content-1 li {
        gap: 28px;
        flex-direction: column;
        align-items: center;
    }

    .contents-factory-1 .content-1 .img-box {
        flex: none;
        width: 100%;
        max-width: 600px;
        height: auto;
        aspect-ratio: 4/3;
        background-color: #666;
    }

    .contents-factory-1 .content-1 .line-box {
        display: none;
    }

    .contents-factory-1 .content-1 .text-box {
        flex: unset;
        align-self: unset;
        max-width: 600px;
    }

    .contents-factory-1 .content-1 li:nth-child(1) {
        margin-bottom: 80px;
    }

    .contents-factory-1 .content-3 .cardwrap ul {
        gap: 28px;
        flex-wrap: wrap;
    }

    .contents-factory-1 .content-3 .cardwrap ul li {
        width: calc(50% - 14px);
        flex: none;
    }

    .contents-factory-1 .content-3 .cardwrap .txt {
        height: 100px;
    }

    /* ----- 품질 관리 시스템 도표: 01 → 06 한 줄로 내려가는 흐름 ----- */
    .fx-flow {
        max-width: 520px;
        padding: 22px 8px 0;
    }

    .fx-row,
    .fx-row-b {
        flex-direction: column;
        align-items: stretch;
    }

    .fx-step {
        flex: none;
        width: 100%;
    }

    .fx-card {
        height: auto;
        min-height: 112px;
        padding: 26px 22px 26px 28px;
    }

    .fx-link,
    .fx-down {
        display: flex;
        height: auto;
        flex-direction: column;
        align-items: center;
        padding: 42px 0;
    }

    /* 가로 → 세로 선 */
    .fx-link::before,
    .fx-down::before {
        top: 0;
        right: auto;
        bottom: 0;
        left: 50%;
        width: 2px;
        height: auto;
        margin: 0 0 0 -1px;
    }

    .fx-link::after,
    .fx-down::after,
    .fx-dot {
        display: none;
    }

    .fx-arrow,
    .fx-row-b .fx-arrow,
    .fx-down .fx-arrow {
        top: auto;
        right: auto;
        bottom: 3px;
        left: 50%;
        margin: 0 0 0 -5px;
        transform: rotate(135deg);
    }

    /* 알약(+검사 항목) 묶음은 세로 흐름 안에 그대로 놓음 */
    .fx-drop {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }

    .fx-pill,
    .fx-down .fx-pill {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        box-shadow: 0 0 0 7px var(--color-white, #fff);
        /* 가운데 세로선을 알약 둘레에서 끊어 줌 */
    }

    /* 검사 항목: 알약 아래에서 점선이 이어지도록 배경으로 아래의 실선을 가리고 점선이 그 자리에서 이어짐 */
    .fx-detail {
        width: min(100%, 360px);
        background: var(--color-white, #fff);
    }

    .fx-detail dd {
        padding-left: 14px;
    }

    .fx-detail dt {
        padding-right: 14px;
    }

    /* ----- 제조공정 ----- */
    .contents-factory-2 .sec-1 .content-wrap {
        margin: 100px 0 100px 0;
    }

    .contents-factory-2 .sec-1 .content-wrap .con {
        flex-direction: column;
        align-items: stretch;
        padding: 0 0 100px 0;
        gap: 32px;
    }

    .contents-factory-2 .sec-1 .content-wrap .con::before {
        left: 30px;
    }

    .contents-factory-2 .sec-1 .content-wrap .con:first-child::before {
        top: 0;
        height: 100%;
    }

    .contents-factory-2 .sec-1 .content-wrap .con:last-child::before {
        height: 100%;
    }

    .contents-factory-2 .sec-1 .text-box,
    .contents-factory-2 .sec-1 .img-box,
    .contents-factory-2 .sec-1 .con-r .text-box,
    .contents-factory-2 .sec-1 .con-r .img-box {
        width: 100%;
        padding: 0 10px 0 102px;
    }

    .contents-factory-2 .sec-1 .dot {
        position: absolute;
        left: 30px;
        top: 20px;
        transform: translateX(-50%);
    }

    .contents-factory-2 .sec-1 .dot::after {
        transition: transform .3s ease;
    }

    .contents-factory-2 .sec-1 .dot::before {
        transition: transform .3s ease;
    }

    .contents-factory-2 .sec-1 .text-box .title {
        padding-bottom: 12px;
    }

    .contents-factory-2 .sec-1 .text-box .title::after {
        content: "";
        display: block;
        width: 100%;
        height: 2px;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #686868;
    }

    .contents-factory-2 .sec-1 .text-box .txt {
        padding-top: 12px;
    }
}

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

    .contents-factory-1 .sub-title,
    .contents-factory-2 .sub-title {
        margin-bottom: 60px;
    }

    /* 글자 크기는 공통 변수(clamp)가 화면 폭에 맞춰 알아서 줄이므로 여기서 따로 줄이지 않음 */
    .contents-factory-1 .content-3 .cardwrap ul {
        flex-wrap: wrap;
        gap: 16px;
    }

    .contents-factory-1 .content-3 .cardwrap ul li {
        width: calc(100% - 8px);
        flex: none;
    }

    .contents-factory-1 .content-3 .cardwrap .name {
        height: unset;
    }

    .contents-factory-1 .content-3 .cardwrap .txt {
        height: unset;
    }

    /* 도표: 카드를 조금 작게 */
    .fx-card {
        padding: 22px 18px 22px 26px;
    }

    .fx-ico {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .fx-detail dd {
        font-size: 12.5px;
    }
}
