.viyum_section1{
    background: #010101;
}
	
.brain_box {
    position: relative;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 50px;
}
	
.brain_box h2 {
    font-size: 27px;
}	
	
.viyum_section1 h2{
    text-align: center;
    color: #fff;
}
	
.viyum_section1 h3{
    text-align: center;
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    padding: 20px 0px 40px;
}
	
.viyum_section1 h2 b {
    color:#81ed40;
    font-weight: 700;
}
	
/* 코 바이러스 */
.image-container {
    position: relative;
    max-width: 1000px;  /* 최대 너비 제한 */
    width: 100%;        /* 화면이 좁아지면 100%로 유연하게 축소 */
    aspect-ratio: 1000 / 705; /* PC/모바일 언제나 1000:705 가로세로 비율 유지 */
    background-image: url(https://www.okbyun.co.kr/img/byunhom/viyum/viyum_img.jpg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin: 0 auto;
}
	
/* 1. 코 위치 중심점 (반응형 좌표 유지) */
.nose-vortex {
    position: absolute;
    top: 30%;   /* 이미지 내 코의 y축 위치 (퍼센트 유지) */
    left: 54%;  /* 이미지 내 코의 x축 위치 */
    width: 1px;
    height: 1px;
}

/* 코 주변 은은한 초록색 발광 효과 */
.nose-vortex::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -40px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgb(251 36 36 / 50%) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}

/* 2. 바이러스 입자 공통 스타일 */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #b5ff60 0%, #1e6b00 80%);
    border-radius: 50%;
    box-shadow: 0 0 12px #52ff00, 0 0 4px #fff;
    opacity: 0;
      
    /* 인라인 변수 수신 및 애니메이션 적용 */
    animation: inhale var(--duration, 2.5s) infinite linear;
    animation-delay: var(--delay, 0s);
}

/* 3. 애니메이션 핵심 Keyframes */
/* 입자가 외부(--x, --y)에서 중심점(0, 0)으로 빨려 들어오는 효과 */
@keyframes inhale {
    0% {
        transform: translate(var(--x), var(--y)) scale(1.8);
        opacity: 0;
    }
    15% {
        opacity: 1; /* 날아오기 시작할 때 선명해짐 */
    }
    85% {
        opacity: 0.9;
    }
    100% {
        transform: translate(0, 0) scale(0.1); /* 코 안으로 들어가며 작아짐 */
        opacity: 0;
        filter: blur(1px);
    }
}

/* 코 내부 가스 잔상/소용돌이 느낌의 펄스 */
@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 0.8; }
}
	
/* 코 알레르기 */
#viyum_wonin {
    max-width: 900px; /* 고정 width를 max-width로 변경 */
    width: 100%;
    height: 790px;
    margin: 0 auto;
    padding-top: 90px;
    position: relative;
    box-sizing: border-box;
}

#viyum_wonin h2 {
    font-size: 32px; 
    text-align: left;
    line-height: 1.2;
    margin: 0;
    padding: 0 20px; /* 모바일 좌우 여백 대비 */
}
	
#viyum_wonin h2 b {	
    color: #b32319;	
}
		
#viyum_wonin_img {
    border-radius: 20px;
    position: absolute;
    top: 250px;
    left: 20px;
    max-width: 50%; /* 왼쪽 설명 이미지가 우측 인물 이미지 영역을 침범하지 않도록 제한 */
    height: auto;
}
	
.viyum_saimg {
    width: 494px;
    height: 684px;
    position: absolute;
    top: 106px; /* h2 밑으로 자연스럽게 위치 정렬 */
    right: 10px;
}
	
/* 깜빡깜빡 */	
.highlight {
    position: absolute;
    border-radius: 50%;
    animation: blink 2s infinite;
}

.highlight.gut {	
    width: 130px;
    height: 130px;
    background-color: rgb(255 25 25 / 56%);
    filter: blur(15px);
    top: 490px;
    left: 150px;
    z-index: 2;
}
	
@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}	
	
#mun_01 { right: 4px; position: absolute; top: 270px; }
#mun_02 { top: 0px; left: 100px; position: absolute; }
#mun_03 { position: absolute; left: 280px; top: 90px; }
#mun_04 { position: absolute; left: 360px; top: 0px; }
	
.arrow-box {
    right: 380px;
    top: 220px;
    animation: fadeIn 0.3s ease-out forwards, bounce 2s infinite ease-in-out;
    animation-delay: 0.1s, 0.5s;
}	

/* 비염 면역반응 */	
#viyum_munyuck {
    background: #f3f4f8;
    padding: 50px 0;
    height: auto;
}

.viyum {
    max-width: 750px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 0 20px;
}

.viyum__tab-container { width: 48%; }
.viyum__image-container { width: 48%; }

.viyum__tab-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #eaeaea;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.viyum__tab-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 24px;
    font-size: 22px;
    font-weight: bold;
    color: #333333;
}

.viyum__arrow {
    position: absolute; right: 24px;
    width: 28px; height: 28px; background: #eaeaea; color: #666;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 14px; transition: transform 0.3s;
}

.viyum__tab-content {
    max-height: 0; opacity: 0; padding: 0 24px;
    color: #666666; font-size: 19px; text-align: center;
    transition: all 0.3s ease;
}

/* 활성화 상태 */
.viyum__tab-item--active { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.viyum__tab-item--active .viyum__tab-content {
    max-height: 100px; opacity: 1; padding-bottom: 20px; padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}
.viyum__tab-item--active .viyum__arrow {
    background: #bb3333; color: #fff; transform: rotate(90deg);
}

/* 이미지 기본 속성 (PC 대응) */
.viyum__allergy-img { display: none; width: 100%; height: auto; border-radius: 16px; }
.viyum__allergy-img--active { display: block; animation: vFade 0.4s ease-in-out; }

/* PC 전용: 탭 내부 모바일 이미지 영역은 기본 숨김 */
.viyum__mobile-img-box { display: none; }

@keyframes vFade {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* 피부질환 치료 */	
#skin_chiro_list {	
    margin-top: 50px;	
    box-sizing: border-box;
}

/* 기존 고정 높이 제거 */
#skin_chiro_list ul {
    position: relative;
    max-width: 900px;
    width: 100%;
    height: auto !important; 
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px;
    padding: 0;
    list-style: none;
}

#skin_chiro_list ul li {
    position: relative;
    flex: 1;
    margin-left: 0 !important; 
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

#skin_chiro_list ul li img {
    width: 100%;
    height: auto;
    display: block;
}

#skin_chiro_list ul li h3 {
    text-align: center;
    font-size: 22px;
    background: #dc2b43;
    color: #fff;
    line-height: 2;
    margin: 0;
}

/* --- 치료 결과 사진 영역 --- */
#skin_chiro_cul {
    position: relative;
    max-width: 1200px;
    width: 100%;
    height: auto !important; 
    margin: 50px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    box-sizing: border-box;
}

.skin_atopy {	
    flex: 1;
    min-width: 280px;
    max-width: 590px;
    height: auto !important;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    box-sizing: border-box;
    margin-left: 0 !important;
}

.skin_atopy h3 {
    font-size: 22px;
    text-align: center;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
}

.skin_atopy img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.skin_chiro_list_txt {
    background: #fff;
    padding: 20px;
    padding-right: 32px;
}	
.skin_chiro_list_txt p {
    background: #dc2b43;
    font-size: 18px;
    color: #fff;
    text-align: center;
    width: 150px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: 600;
}	
.skin_chiro_list_txt span {
    font-size: 18px;
}

	
#viyum_munyuck h2 {
    font-size: 32px;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 40px;
}
	
	
/* ==========================================
  모바일 & 태블릿 구간 최적화 미디어 쿼리 (1100px / 1000px 통합 대응)
   ========================================== */
@media screen and (max-width: 1100px) {
    /* 코 알레르기 원인 블록 모바일 레이아웃 고정 */
    #viyum_wonin {
        height: auto; 
        padding-top: 50px;
        padding-bottom: 50px;
        display: flex;
        flex-direction: column; 
        align-items: center; 
    }

    #viyum_wonin h2 {
        font-size: 32px; 
        text-align: center;
        margin-bottom: 30px;
        order: 1; 
    }

    .viyum_saimg {
        position: relative; 
        top: 0 !important;
        right: 0 !important;
        margin: 0 auto 40px; 
        order: 2; 
        max-width: 100%;
        width: 340px; 
        height: 430px; 
    }

    #viyum_wonin_img {
        position: relative; 
        top: 0 !important;
        left: 0 !important;
        max-width: 90%; 
        margin: 0 auto;
        order: 3; 
    }

    .viyum_saimg img:first-of-type {
        width: 100%;
        height: auto;
    }

    .highlight.gut {
        width: 90px;
        height: 90px;
        top: 330px;
        left: 100px;
    }

    #mun_01 { width: 70px; height: auto; top: 180px; right: 0px; }
    #mun_02 { width: 70px; height: auto; top: -10px; left: 50px; }
    #mun_03 { width: 70px; height: auto; top: 50px; left: 170px; }
    #mun_04 { width: 70px; height: auto; top: -10px; left: 230px; }

    /* 치료 목록 및 결과 리스트 세로 배치 전환 */
    #skin_chiro_list ul {
        flex-direction: column;
        align-items: center;
    }
    
    #skin_chiro_list ul li {
        width: 100%;
    }

    #skin_chiro_cul {
        flex-direction: column;
        align-items: center;
    }
    
    .skin_atopy {
        width: 100%;
        max-width: 500px;
    }
}
	
	

	
	
/* 탭 전환 시 사진 미출력 오류를 수정한 핵심 모바일 타겟 미디어 쿼리 */
@media screen and (max-width: 1000px) {
	#viyum_munyuck h2 { 
        font-size: 28px; 
        text-align: center; 
        padding: 0 20px;
        word-break: keep-all; /* 단어 단위 줄바꿈으로 깔끔하게 조정 */
    }
    
    .viyum { flex-direction: column; }
    .viyum__tab-container { width: 100%; }
    
    /* PC 전용 우측 이미지 독립 박스 완전 숨김 */
    .viyum__image-container { display: none !important; }

    /* 모바일 탭 내부 이미지 컨테이너 속성 최적화 (높이 유연 변환) */
    .viyum__mobile-img-box {
        display: none; 
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        padding: 0 24px;
        overflow: hidden;
    }

    /* 탭 아이템 활성화 상태 시 모바일 이미지 컨테이너 표출 */
    .viyum__tab-item--active .viyum__mobile-img-box {
        display: flex; 
        padding-bottom: 24px;
        padding-top: 10px; 
    }

    .viyum__tab-header { font-size: 19px; padding: 20px; }
    .viyum__tab-content { font-size: 17px; }
	
    /* 미출력 및 비정상 좌표 이탈 현상을 방지하기 위한 절대 좌표(absolute) 제거 설계 */
    .viyum__mobile-img-box .viyum__allergy-img {
        display: none !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 340px;
        height: auto !important;
        border-radius: 16px;
        opacity: 1 !important;
        visibility: visible !important;
    }
	
    /* 활성화 스크립트 시 부드러운 페이드인 효과만 순수하게 적용 */
    .viyum__mobile-img-box .viyum__allergy-img--active {
        display: block !important;
        animation: vFade 0.4s ease-in-out forwards;
    }
}

/* 스마트폰 전용 초소형 기기 해상도 대응 (375px 이하) */
@media screen and (max-width: 600px) {
   #viyum_munyuck h2 { 
        font-size: 22px; 
        margin-bottom: 30px;
    }
	
	#skin_chiro_list ul li,
    .skin_atopy {
        max-width: 100%; 
    }
    
    #skin_chiro_list ul li h3,
    .skin_atopy h3 {
        font-size: 19px; 
    }
}

@media screen and (max-width: 375px) {
    #viyum_wonin h2 {
        font-size: 24px; 
        padding: 0 15px;
    }

    .viyum_saimg {
        width: 230px; 
        height: 292px; 
        margin: 0 auto 25px;
    }

    #viyum_wonin_img {
        max-width: 90%;
    }

#viyum_munyuck h2  {   
	font-size: 24px; 
}

    .highlight.gut {
        width: 60px;
        height: 60px;
        top: 210px;
        left: 70px;
        filter: blur(10px); 
    }

    #mun_01 { width: 45px; top: 125px; right: -5px; }
    #mun_02 { width: 45px; top: -5px;  left: 25px; }
    #mun_03 { width: 45px; top: 35px;  left: 110px; }
    #mun_04 { width: 45px; top: -5px;  left: 155px; }
}