/*
Theme Name: ANLAB Mobile Landing
Author: ChatGPT
Version: 1.0
*/
/* Light 버전 (두께 300) */
@font-face {
    font-family: 'GmarketSans';
    src: url('./font/Pretendard-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap; /* 폰트 로딩 중에도 글자가 먼저 보이도록 최적화 */
}

/* Medium 버전 (두께 500) */
@font-face {
    font-family: 'GmarketSans';
    src: url('./font/Pretendard-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Bold 버전 (두께 700 또는 800) */
@font-face {
    font-family: 'GmarketSans';
    src: url('./font/Pretendard-Bold.woff') format('woff');
    font-weight: 700; /* CSS에서 font-weight: 700 이나 bold를 주면 이 파일이 켜집니다 */
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'GmarketSans', 'SS', 'Lato', -apple-system, 'Apple SD Gothic Neo', 'Spoqa', sans-serif, system-ui;
    background: #f3f3f3;
    color: #111;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, li {
    list-style: none;
}

/* 전체 레이아웃 */
.layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* 브랜드 컬러 */
:root {
    --brand-main: #8FB8FF;
    --brand-light: #EEF4FF;
    --brand-deep: #355A8F;
}
/* 좌측 영역 */
.pc-side {
    width: 48%;
    height: 100vh;
    position: sticky;
    top: 0;
    background-image: linear-gradient(rgba(13, 13, 13, 0.60), rgba(13, 13, 13, 0.76)),
    url("./bg.png");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.pc-overlay {
    width: 100%;
    height: 100%;
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

/* 상단 */
.pc-top {
    display: flex;
    flex-direction: column;
}

.pc-top-sub {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-main);
    letter-spacing: 0.3px;
}

.pc-logo-wrap {
    display: flex;
    align-items: end;
    gap: 12px;
}

.pc-logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -1px;
}

.pc-main-wrap {
    margin-top: 24px;
}

/* 메인 */
.pc-main-title {
    font-size: 52px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

/* 브랜드 포인트 */
.point-color {
    color: var(--brand-main);
}

.point-effect {
    color: var(--effect);
}

.point-color-light {
    color: var(--brand-light);
    font-weight: 600;
}

.pc-desc {
    font-size: 24px;
    line-height: 36px;
    color: rgba(255, 255, 255, 0.80);
    max-width: 560px;
    margin-bottom: 40px;
    letter-spacing: -0.3px;
}

/* 경력 학력 */
.pc-info-box {
    width: 100%;
    max-width: 680px;
    margin-bottom: 20px;
    display: flex;
    align-items: stretch;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.pc-info-item {
    flex: 1;
}

.pc-info-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-main);
    margin-bottom: 12px;
}

.pc-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pc-info-list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 2px;
    font-size: 16px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.80);
}

.pc-info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-main);
}

.pc-info-line {
    width: 1px;
    background: rgba(255, 255, 255, 0.10);
    margin: 0 34px;
}

/* 하단 */
.pc-bottom {
    display: flex;
    justify-content: flex-start;
    align-items: end;
}

/* 긴급상담 */
.pc-contact-box {
    padding-bottom: 10px;
    /*border-bottom:2px solid rgba(255,255,255,0.12);*/
}

.pc-contact-text {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.68);
    letter-spacing: 0.2px;
}

.pc-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--brand-light);
    letter-spacing: -1px;
}

/* 반응형 */
@media (max-width: 1350px) {
    .pc-overlay {
        padding: 70px 32px;
    }
}

/* 우측 모바일 영역 */
.mobile-side {
    width: 52%;
    background: #fff;
    display: flex;
    justify-content: center;
}

.mobile-wrap {
    width: 100%;
    max-width: 430px;
    background: #fff;
    min-height: 100vh;
    border-left: 1px solid #ececec;
    border-right: 1px solid #ececec;
}

.top-banner {
    width: 100%;
    background: linear-gradient(
            135deg,
            #0f1115 0%,
            #1a202c 35%,
            #2d3748 70%,
            #1f2937 100%
    );
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 9px 20px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ========================================== */
/* 헤더 */
.header {
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* 내부 */
.header-inner {
    padding: 4px 21px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

/* 좌측 */
.header-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 로고 */
.logo {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.6px;
    line-height: 1.2;
    color: #111;
}

/* 전문분야 */
.header-category {
    margin-bottom: 4px;
    font-size: 14px;
    color: #888;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ========================================== */
/* 네비 */
.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav a {
    font-size: 13px;
    color: #555;
    font-weight: 700;
}

/* ========================================== */
/* 상담 버튼 */
.call-btn {
    flex-shrink: 0;
    height: 54px;
    padding: 0 18px;
    /*border-radius:14px;*/
    /*background: #fff;*/
    /*border:1px solid rgba(0,0,0,0.08);*/
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
    /*box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);*/
    transition: 0.25s;
}

/* hover */
.call-btn:hover {
    transform: translateY(-1px);
}

/* 상담 텍스트 */
.call-label {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    line-height: 1;
}

/* 번호 */
.call-number {
    margin-top: 5px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    color: #111;
}

/* 공통 섹션 */
.section {
    padding: 70px 22px;
}

.section-title {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: -3px;
}

.section-desc {
    font-size: 19px;
    line-height: 1.8;
    color: #666;
}

/* ========================================== */
/* 히어로 (전체 섹션 높이 칼고정) */
/* ========================================== */
.hero {
    position: relative;
    width: 100%;
    height: 800px; /* 📌 모바일/PC 고정 높이 사수 */
    overflow: hidden;
    color: #fff;

    /*background-image:*/
    /*        linear-gradient(*/
    /*                to bottom,*/
    /*                rgba(17, 21, 28, 0.1) 100%,*/
    /*                rgba(11, 14, 19, 0.88) 100%),*/
    /*        url('bg_m.png');*/

    /*background-size: contain;*/
    /*background-position: center center;*/
    /*background-repeat: no-repeat;*/
    /*background-color: #11151c;*/

    background-image:

        /* 어두운 오버레이 */
            linear-gradient(
                    to bottom,
                    rgba(17, 21, 28, 0.08) 0%,
                    rgba(11, 14, 19, 0.09) 72%,
                    rgba(11, 14, 19, 0.92) 100%
            ),

                /* 배경 이미지 */
            url('bg_m.png'),

                /* 최하단 베이스 컬러 질감 */
            linear-gradient(
                    to bottom,
                    #6c6a67 0%,
                    #5f5e5c 18%,
                    #3e434b 42%,
                    #1f2731 72%,
                    #11151c 100%
            );

    background-size:
            cover,
            contain,
            cover;

    background-position:
            center center,
            center center,
            center top;

    background-repeat:
            no-repeat,
            no-repeat,
            no-repeat;
}

/* 📍 텍스트와 카드를 담는 그릇 (항상 정중앙 칼고정) */
.hero-inner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

    width: calc(100% - 40px);
    max-width: 540px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    height: 85%;
    justify-content: space-between;
    gap: clamp(32px, 5vh, 50px);
}

/* 텍스트 그룹 */
.hero-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* 설명문구 */
.hero-desc {
    /*font-size: clamp(17px, 2.2vw, 21px);*/
    line-height: 36px;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

/* 메인 타이틀 */
.hero-title {
    font-size: 32px;
    /*line-height: 1.3;*/
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -2px;
    white-space: nowrap;
}
/* ==========================================
   부모 간섭 차단 및 가로 궤도 강제 활성화 CSS (유지)
   ========================================== */
.hero-result-card,
.hero-result-card.swiper {
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 0;
    background: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative;
    display: block !important;
}

.hero-result-card .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    height: 100%;
    position: relative;
    will-change: transform;
}

/* 3. 개별 슬라이드: 스크립트가 계산한 width값을 온전히 수용하도록 세팅 */
.case-slide-item.swiper-slide {
    flex-shrink: 0 !important; /* 가로 크기가 마음대로 줄어들지 않게 방어 */
    height: auto;
    display: flex;
    flex-direction: column;
}

/* 🖼️ 이미지 가두는 액자 (A4 세로 비율) */
.case-slide-item .img-box {
    position: relative; /* 좌상단 태그의 절대 기준점 */
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #f7fafc;

}

.case-slide-item .img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    display: block;
}

.img-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    /* [핵심] 위는 투명, 아래로 갈수록 어두워지는 그라데이션 */
    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%, /* 완전히 투명 */ rgba(0, 0, 0, 0.1) 30%, /* 서서히 어두워짐 */ rgba(0, 0, 0, 0.4) 100% /* 하단은 묵직하게 어두움 */
    );
    z-index: 2; /* 이미지(z-index: 1 수준)보다는 위, 태그들보다는 아래 배치 */
}

/* 📍 이미지 내부 좌상단 구석 태그 묶음 */
.tag-crime-primary {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: #0f172a; /* 깊은 다크 네이비 (고급감) */
    color: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px; /* 딱딱함을 지운 미세한 라운딩 */
    border-left: 3px solid #e2e8f0; /* 왼쪽에 깔끔한 포인트 선 */
    letter-spacing: -0.3px;
}

.center-tags-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 정확히 정중앙에 박히도록 설정 */
    z-index: 5;
    display: flex;
    flex-direction: column; /* 세로로 쌓기 */
    align-items: center; /* 가운데 정렬 */
    justify-content: center;
    /*gap: 4px; !* 작은 글씨와 큰 글씨 사이의 간격 *!*/
    /* 중앙 글씨들을 더 선명하게 보이게 하고 싶다면 배경에 어두운 오버레이를 깔아줍니다 (선택) */
    /*background: rgba(0, 0, 0, 0.1);*/
    /*padding: 15px 20px;*/
    /*border-radius: 8px;*/
    /*backdrop-filter: blur(2px); !* 부드러운 블러 효과로 처분서 위에서도 가독성 극대화 *!*/
}

/* 중앙 상단: 작은 글씨 (세부 죄명) */
.center-tags-box .tag-crime-secondary {
    color: #111111; /* 눈이 편안한 연한 그레이 */
    font-size: 16px; /* 작은 글씨 */
    font-weight: 700;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* 중앙 하단: 큰 글씨 (성공 결과 - 골드) */
.center-tags-box .tag-result {
    color: #1d4ed8; /* 묵직하고 고급스러운 리얼 골드 옐로우 */
    font-size: 42px; /* 확실하게 키운 큰 글씨 */
    font-weight: 700; /* 극강의 두께감 */
    letter-spacing: -0.5px;
    /*text-shadow: 0 2px 4px rgba(0,0,0,0.5); !* 글자 뒤 그림자로 가독성 확보 *!*/
    white-space: nowrap;
}

/* 중앙 하단: 큰 글씨 (성공 결과 - 레드) */
.center-tags-box .tag-result-red {
    color: #ef4444; /* 파괴력 있는 레드 */
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.5px;
    /*text-shadow: 0 2px 4px rgba(0,0,0,0.5);*/
    white-space: nowrap;
}

/* 하단 페이지네이션 점 */
.hero-result-card .swiper-pagination {
    bottom: 0px !important;
    position: relative;
    margin-top: 10px;
    text-align: center;
}

/* 메인 */
.hero-action-main {
    flex: 1;
    height: 58px;
    background: #111;
    color: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

/* 서브 */
.hero-action-sub {
    width: 120px;
    height: 58px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* ========================================== */
/* ========================================== */
/* 성공사례 */
.case-section {
    background: #111;
    color: #fff;
    overflow: hidden;
    padding: 0;
}

.case-section .section-sub {
    color: rgba(255, 255, 255, 0.5);
}

.case-section .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================== */
/* 변호사 박스 */
/* ========================================== */
/* 변호사 박스 (부모 그릇) */
/* ========================================== */
.case-lawyer-box {
    position: relative;
    margin-bottom: 28px;
    padding: 40px 30px; /* 위아래 패딩을 살짝 넓혀 텍스트 공간 확보 */
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;

    /* 📌 변호사님 키가 박스 높이를 결정하게 하거나, 최소 높이를 지정해 안정감 부여 */
    min-height: 520px;
    display: flex;
    align-items: center; /* 내용물이 세로 정중앙에 오도록 */
}

/* 📌 [오른쪽 타입 지정 및 이미지 쏠림 제어] */
.right-type .case-lawyer-img {
    opacity: 0.9;
    right: -115px; /* 👉 오른쪽으로 더 과감하게 먹혀 들어가도록 조절 (수정 가능) */
    bottom: -10px; /* 바닥에 딱 붙이거나 살짝 파묻히게 */
}

/* 🖼️ 이미지 레이어 (원본 사수형 absolute) */
.case-lawyer-img {
    position: absolute;
    bottom: 0;

    /* 📌 [핵심 1] 이미지가 글자 뒤에 깔려야 하므로 z-index를 1로 내립니다 */
    z-index: 1;

    /* 📌 [핵심 2] 원본 비율 그대로 풀사이즈로 나오게 크기 락 체결 */
    width: auto;
    height: 100%; /* 박스 높이에 100% 꽉 채우기 */
    max-height: 100%;

    display: flex;
    align-items: flex-end;
}

/* 🖼️ 실제 img 태그 속성 */
.case-lawyer-img img {
    /*width: auto; !* 👈 가로를 100%로 늘리지 말고 오토로 둬야 원본 비율 유지 *!*/
    /*height: 100%; !* 세로 기준 가득 채우기 *!*/
    width: 415px;
    height: 100%;
    object-fit: contain; /* 원본 잘림 절대 방지 */
    object-position: top right;
    pointer-events: none; /* 드래그할 때 글자 선택 방해 금지 */
}


/* ========================================== */
/* ✍️ 정보 영역 (글자가 이미지 위로 올라오는 구간) */
/* ========================================== */
.case-lawyer-info {
    position: relative;

    /* 📌 [핵심 3] 이미지보다 위에 둥둥 떠 있어야 하므로 z-index를 2로 격상 */
    z-index: 2;

    /* 📌 [핵심 4] 이미지가 우측에 먹혀있으므로, 글자 영역을 가로 100% 가까이 넓혀서 */
    /* 이미지 가슴이나 어깨 라인 위로 글자가 자연스럽게 오버랩(겹침)되게 만듭니다. */
    width: 100%;
    max-width: 640px; /* 텍스트가 너무 우측 끝까지 가서 터지는 것 방지 */
    text-align: left;
}

/* 라벨 (대표변호사) */
.case-lawyer-label {
    font-size: 16px;
    color: var(--brand-main, #8FB8FF); /* 👈 아까 지정한 메인 컬러로 깔끔한 포인트 */
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* 이름 (정지훈) */
.case-lawyer-name {
    font-size: 42px;
    font-weight: 700;
    line-height: 36px;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #fff;
}

/* 설명 (슬로건) */
.case-lawyer-desc {
    font-size: 24px;
    line-height: 36px;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
}
.case-lawyer-desc strong {
    color: #fff;
    font-weight: 700;
}

.case-lawyer-sub-desc{
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.3px;
}


/* ========================================== */
/* 📂 새로 추가된 경력 / 학력 리스트 스타일 */
/* ========================================== */
.case-lawyer-history-group {
    margin-top: 40px;
}

/* 주요 경력, 학력 타이틀 */
.history-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-main);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

/* 리스트 공통 */
.lawyer-career,
.lawyer-education {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.lawyer-career li,
.lawyer-education li {
    font-size: 16px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    padding-left: 14px; /* 왼쪽에 불릿 들어갈 여백 확실히 사수 */
}

/* 📌 리스트 앞에 깔끔한 로펌 스타일 스퀘어 점(dot) 박기 */
.lawyer-career li::before,
.lawyer-education li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 8px;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 1px;
}

/* ========================================== */
/* ========================================== */
/* 🛒 가로 무한 루프 컨베이어 벨트 (후기 섹션) */
/* ========================================== */
.review-flow-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    margin-bottom: 30px;
}

/* 📌 [알잘딱 디테일] 양옆 흐림(Dim) 처리로 명품 퀄리티 확보 */
.review-flow-wrap::before,
.review-flow-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}
/* 왼쪽은 어둡게 스며들고 */
.review-flow-wrap::before {
    left: 0;
    background: linear-gradient(to right, rgba(17, 17, 17, 1) 0%, rgba(17, 17, 17, 0) 100%);
}
/* 오른쪽도 어둡게 스며들고 */
.review-flow-wrap::after {
    right: 0;
    background: linear-gradient(to left, rgba(17, 17, 17, 1) 0%, rgba(17, 17, 17, 0) 100%);
}

/* 기차가 달릴 궤도 트랙 */
.review-flow-track {
    display: flex;
    width: max-content; /* 내부 카드가 압축되지 않고 본래 가로폭을 유지하도록 설정 */
}

/* 카드가 묶인 그룹 (애니메이션이 걸리는 찐 주체) */
.review-flow-group {
    display: flex;
    align-items: stretch;
    gap: 20px; /* 카드와 카드 사이 여백 */
    padding-right: 20px; /* 두 그룹 사이의 완벽한 이음새 여백 */

    /* 📌 [요청사항 반영] 속도를 기존보다 조금 빠르게 튜닝 (기존 6s -> 대용량 가로 스크롤 기준 22s로 알잘딱 조율) */
    /* 카드가 10개 수준으로 많고 가로 길이가 길기 때문에, 너무 빠르면 눈이 아프므로 22초가 '경쾌하게 흐르는 최적의 속도'입니다. */
    animation: conveyorLoop 32s linear infinite;
    will-change: transform;
}

/* ========================================== */
/* 💳 개别 후기 카드 디자인 (가로형 최적화) */
/* ========================================== */
.review-card {
    flex-shrink: 0;
    width: 320px; /* 👈 카드가 너무 넓지도 좁지도 않게 고정 가로폭 락 */
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* 따옴표 아이콘 */
.quote-icon {
    font-family: serif;
    font-size: 38px;
    color: var(--brand-main, #8FB8FF); /* 등록하신 브랜드 메인 컬러 연동 */
    line-height: 1;
    margin-bottom: -10px;
    opacity: 0.7;
}

/* 후기 본문 */
.review-text {
    font-size: 16px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    word-break: keep-all; /* 한글 단어 단위 예쁘게 줄바꿈 */
}

/* 하단 꼬리표 묶음 */
.review-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}

/* 승소 죄명 태그 */
.review-tag {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    /* 다이나믹함을 원하셨으니 여기에 그라데이션을 은은하게 포인트 주면 예쁩니다 */
    background: var(--effect);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 의뢰인 정보 */
.review-name {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
}


/* ========================================== */
/* ♾️ 끊김 없는 무한 롤링 애니메이션 핵심 공식 */
/* ========================================== */
@keyframes conveyorLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%); /* 📌 원본 세트가 정확히 화면 왼쪽으로 다 지나갔을 때 0px로 순간 워프시킵니다. 복사본이 뒤를 받쳐주고 있어서 사용자는 눈치채지 못합니다. */
    }
}

/* 📌 마우스 올리면 고객들이 후기를 편하게 읽을 수 있도록 롤링이 일시정지되는 센스 기능 */
.review-flow-track:hover .review-flow-group {
    animation-play-state: paused;
}

/* 카드 */
.case-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    /*border-radius:24px;*/
    padding: 22px;
}

/* 상단 */
.case-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 날짜 */
.case-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

/* 결과 */
.case-result {
    height: 28px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
}

/* 제목 */
.case-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 14px;
}

/* 내용 */
.case-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.68);
}

/* ========================================== */
/*  성공 사례 애니메이션 */
@keyframes caseFlow {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes caseFlowReverse {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

/* ========================================== */
/* 변호인단 */
.team-section {
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
    padding: 70px 0;
}

/* ========================================== */
/* 헤더 */
.team-head {
    margin-bottom: 34px;
    padding: 0 20px;
}

/* 라인 */
.team-line {
    width: 46px;
    height: 2px;
    background: #111;
    margin-bottom: 22px;
}

/* 타이틀 */
.team-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -1.8px;
    color: #111;
    margin-bottom: 16px;
}

/* 설명 */
.team-desc {
    font-size: 16px;
    line-height: 24px;
    color: #666;
}

/* ========================================== */
/* 👥 변호인단 2x2 그리드 레이아웃 */
/* ========================================== */

/* 📌 지저분한 스크롤 대신 칼정렬 Grid 판 구축 */
.team-grid-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 👈 정확히 2열(가로로 2개씩) 배치 */
    gap: 4px; /* 카드 사이 컴팩트한 간격 */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 💳 개별 변호사 포스터 카드 */
.team-card {
    position: relative;
    width: 100%;
    /* 📌 변호사님 전신/반신 컷이 가장 이상적으로 표현되는 A4 감각의 세로 비율 락 */
    aspect-ratio: 3 / 4;
    background: #161b22; /* 이미지 로드 전 임시 베이스 암전 컬러 */
    overflow: hidden;
    display: block;
}

/* 🖼️ 배경 인물 이미지 액자 */
.team-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* 이미지 바닥에 깔기 */
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 카드 공간에 빈틈없이 꽉 채우기 */
    /*object-position: top center; !* 인물 얼굴 사수를 위해 상단 기준 정렬 *!*/
    transition: transform 0.5s ease; /* 호버 시 스무스한 효과용 */
}

/* 🔥 [알잘딱 가독성 치트키] 하단 딤 오버레이 */
/* 이미지가 밝으면 글씨가 절대 안 보입니다. 바닥부터 진하게 타오르는 그라데이션 선글라스를 씌웁니다. */
.team-dim {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%; /* 텍스트가 걸쳐지는 하단 80% 영역을 묵직하게 보정 */
    background: linear-gradient(to top, rgba(11, 14, 19, 0.95) 0%, rgba(11, 14, 19, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* ========================================== */
/* ✍️ 이미지 위에 얹어질 프로필 텍스트 그룹 */
/* ========================================== */
.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px; /* 모바일 맞춤형 컴팩트 내측 여백 */
    box-sizing: border-box;
    z-index: 3; /* 이미지(1)와 딤(2)을 뚫고 최상단 격상 */
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 이름 & 라벨 정렬 라인 */
.team-main {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    line-height: 24px;
}

/* 변호사 이름 */
.team-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* 직책 (대표변호사) */
.team-position {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

/* 📜 주요 이력 리스트 클래스 */
.team-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.team-history-list li {
    font-size: 14px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.75);
    word-break: keep-all;
    letter-spacing: -0.3px;
}

/* 📌 "(2025.12 퇴임)" 같은 보조설명 문구는 톤을 살짝 다운시키는 디테일 */
.team-history-list li:contains("(2025") {
    color: rgba(255, 255, 255, 0.4);
}


/* ========================================== */
/* ✨ 호버 인터랙션 보너스 (모바일 터치/PC 마우스 대응) */
/* ========================================== */
.team-card:hover .team-image img {
    transform: scale(1.05); /* 마우스 올리면 인물이 아주 미세하게 줌인되는 프리미엄 효과 */
}

/* ========================================== */
/* ========================================== */
/* 상담 섹션 */
.contact-section {
    background: #111;
    color: #fff;
    overflow: hidden;
}

/* ========================================== */
/* 헤더 */
.contact-head {
    margin-bottom: 38px;
}

/* 타이틀 */
.contact-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -1.4px;
    margin-bottom: 16px;
}

/* 설명 */
.contact-desc {
    font-size: 16px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.68);
}

/* ========================================== */
/* 폼 */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 그룹 */
.contact-input-group {
    display: flex;
    flex-direction: column;
}

/* 라벨 */
.contact-input-label {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 10px;
}

/* 인풋 */
.contact-input,
.contact-textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    /*border-radius:20px;*/
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.06)
    );
    color: #fff;
    padding: 18px 20px;
    font-size: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 24px rgba(0, 0, 0, 0.18);
    outline: none;
    transition: border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

/* placeholder */
.contact-input::placeholder,
.contact-textarea::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

/* focus */
.contact-input:focus,
.contact-textarea:focus {
    border-color: rgba(255, 255, 255, 0.28);
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.14),
            rgba(255, 255, 255, 0.09)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 34px rgba(0, 0, 0, 0.24);
}

/* textarea */
.contact-textarea {
    min-height: 130px;
    resize: none;
    line-height: 1.7;
}

/* textarea */
.contact-textarea {
    min-height: 140px;
    resize: none;
    line-height: 1.7;
}

/* placeholder */
.contact-input::placeholder,
.contact-textarea::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

/* 버튼 */
.contact-submit {
    width: 100%;
    height: 54px;
    border: none;
    /*border-radius:999px;*/
    letter-spacing: -1.6px;
    background: #1d4ed8;
    color: #fff;
    font-size: 21px;
    font-weight: 500;
    cursor: pointer;
    transition: transform .2s ease,
    opacity .2s ease;
}

.contact-submit:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

/* 안내 */
.contact-notice {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.42);
    text-align: center;
}

/* ========================================== */
/* 모바일 */
@media (max-width: 991px) {
    .contact-title {
        font-size: 30px;
        letter-spacing: -1.2px;
    }
}

/* 푸터 */
.footer {
    padding: 50px 22px 90px;
    background: #111;
    color: #fff;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1.6px;
}

.footer-info {
    font-size: 14px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.7);
}

/*======================================*/
.consult-bar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    /*max-width:430px;*/
    height: 64px;
    background: #fff;
    /*border-top:1px solid #e9e9e9;*/
    display: flex;
    z-index: 9999;
}

/* 공통 */
.consult-phone,
.consult-kakao {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

/* 좌측 */
.consult-phone {
    background: #1d4ed8;
    color: #fff;
}

/* 우측 */
.consult-kakao {
    background: #f7f7f7;
    color: #111;
}

/* 작은 텍스트 */
.consult-label {
    font-size: 16px;
    opacity: 0.65;
    /*margin-bottom:6px;*/
    letter-spacing: -0.2px;
}

/* 메인 텍스트 */
.consult-bar strong {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* 모바일 영역에 맞춤 */
@media (min-width: 1196px) {
    .consult-bar {
        left: auto;
        transform: none;
        width: 430px;
        right: calc((52% - 430px) / 2);
    }
}

/* 모바일 */
@media (max-width: 1195px) {
    .layout {
        display: block;
    }

    .pc-side {
        display: none;
    }

    .hero{
        background-size: contain;
    }

    .mobile-side {
        width: 100%;
    }

    .mobile-wrap {
        max-width: 100%;
        border: none;
    }

}

@media (max-width: 480px) {
    .hero{
        background-size: cover;
    }
}
@media (max-width: 380px) {
    .center-tags-box .tag-result {
        font-size: 32px;
    }
}

/* ========================================== */
/* 영상 섹션 */
.media-section {
    background: #111;
    color: #fff;
}

/* 헤더 */
.media-head {
    margin-bottom: 34px;
}

.media-line {
    width: 42px;
    height: 2px;
    background: #fff;
    margin-bottom: 18px;
}

.media-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -1.4px;
    margin-bottom: 14px;
}

.media-desc {
    font-size: 16px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.68);
}

/* ========================================== */
/* 플레이어 */
.media-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #000;
}

/* iframe */
.media-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    z-index: 1;
    transition: 0.35s;
    pointer-events: none;
}

/* 재생상태 */
.media-player.playing iframe {
    opacity: 1;
    pointer-events: auto;
}

/* ========================================== */
/* 커버 */
.media-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    overflow: hidden;
    transition: 0.35s;
}

/* 숨김 */
.media-player.playing .media-cover {
    opacity: 0;
    visibility: hidden;
}

/* 이미지 */
.media-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 딤 */
.media-cover-dim {
    position: absolute;
    inset: 0;
    /*background:*/
    /*        linear-gradient(*/
    /*                to top,*/
    /*                rgba(0,0,0,0.58),*/
    /*                rgba(0,0,0,0.12)*/
    /*        );*/
}

/* ========================================== */
/* 플레이 버튼 */
.media-custom-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.28s ease,
    opacity 0.28s ease;
}

/* SVG */
.media-play-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(
            0 12px 30px rgba(0, 0, 0, 0.28)
    );
}

/* hover */
.media-custom-play:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

/* active */
.media-custom-play:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* 플레이중 숨김 */
.media-player.playing .media-custom-play {
    opacity: 0;
    pointer-events: none;
}

/* ========================================== */
/* 음소거 버튼 */
.media-sound-btn {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 16px;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    cursor: pointer;
}

/* 노출 */
.media-player.playing .media-sound-btn {
    opacity: 1;
    visibility: visible;
}

/* ========================================== */
/* 썸네일 */
.media-thumb-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-top: 16px;
    padding-bottom: 8px;
}

/* 스크롤바 */
.media-thumb-track::-webkit-scrollbar {
    height: 4px;
}

.media-thumb-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
}

/* 버튼 */
.media-thumb {
    flex: 0 0 140px;
    border: none;
    background: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    opacity: 0.55;
    transition: 0.25s;
}

/* 활성 */
.media-thumb.active {
    opacity: 1;
}

/* 이미지 */
.media-thumb img {
    width: 100%;
    display: block;
    margin-bottom: 8px;
}

/* 텍스트 */
.media-thumb span {
    font-size: 12px;
    line-height: 1.5;
    color: #fff;
}

/* ====================================== */
/* 등장 애니메이션 */
.hero-ani {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFade 0.8s forwards;
}

.hero-ani-1 {
    animation-delay: 0.2s;
}

.hero-ani-2 {
    animation-delay: 0.45s;
}

.hero-ani-3 {
    animation-delay: 0.7s;
}

.hero-ani-4 {
    animation-delay: 0.95s;
}

.hero-ani-5 {
    animation-delay: 1.2s;
}

.hero-ani-6 {
    animation-delay: 1.45s;
}

.hero-ani-7 {
    animation-delay: 1.75s;
}

/* 기본 */
.reveal {
    opacity: 0;
    transition: opacity 1s ease,
    transform 1s ease;
}

/* 위로 */
.reveal-up {
    transform: translateY(60px);
}

/* 왼쪽 */
.reveal-left {
    transform: translateX(-60px);
}

/* 오른쪽 */
.reveal-right {
    transform: translateX(60px);
}

/* 등장 */
.reveal.show {
    opacity: 1;
    transform: translate(0, 0);
}

@keyframes heroFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}