/* 기본 초기화 및 공통 */

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    margin: 0;
    padding: 0;
}

.byun_content {
    overflow-x: hidden;
    width: 100%;
display: block;
    position: relative;
	overflow: visible;
	height: auto;
	
}

.brain_box {
    position: relative;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 50px;
}
	
.brain_box h2 {
    font-size: 27px;
}	
		
.smell_box h3 {
    font-size: 19px;
    text-align: center;
    font-weight: 500;
    color: #111111;
    padding: 20px 0px 40px;
}
	
.smell_box {
    background:#f3f4f8;
}
	
.smell_box h2 {
    text-align: center;
    line-height: 1.3;
    font-weight: 700;
    color: #292929;
}
	
.smell_box h2 b {	
    color: #8d4600;
}
	
.smell_box h3 {
    text-align: center;
    font-weight: 500;
    color: #313131;
    padding: 20px 0px 40px;
}

/* 상단 사람 & 생선 아이콘 반응형 영역 */
.smell_sarambox {
    position: relative;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    text-align: center;
	overflow: hidden;
}

.smell_sarambox center img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.fisharrow-box {
    position: absolute;
    right: 5%;
    top: 80px;
    animation: fadeIn 0.3s ease-out forwards, bounce 1.5s infinite ease-in-out;
    animation-delay: 0.1s, 0.5s;
    width: 25%;
}

.fisharrow-box img, .fisharrow-box2 img {
    width: 100%;
    height: auto;
}
	
.fisharrow-box2 {
    position: absolute;
    left: 5%;
    top: 30px;
    animation: fadeIn 0.3s ease-out forwards, bounce 1.5s infinite ease-in-out;
    animation-delay: 0.1s, 0.5s;
    width: 25%;
}	

/* ==========================================
   생선 냄새 증후군 원인 반응형 영역 (CSS 말풍선 수정본)
   ========================================== */	
#smell_wonin {

    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
}
	
#smell_wonin h2 {	
font-size: 28px;
    text-align: center;
    line-height: 1.4;
    padding: 0 20px;
    word-break: keep-all;
}
	
#smell_wonin h2 b {
    color: #8d4600;
}
	
#smell_wonin_box {
    display: flex;
    flex-direction: row; /* PC에서는 가로 정렬 (왼쪽: 말풍선, 오른쪽: 이미지) */
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    position: relative;	
}

/* 말풍선 2개를 묶어주는 좌측 컨테이너 */
.malpusun_container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
    max-width: 540px;
}

#smell_wonin_box > img {
    flex: 1;
    max-width: 500px;
    width: 80%;
    height: auto;
    object-fit: contain;
}
	
/* 순수 CSS로 구현한 공통 말풍선 스타일 (기존 png 배경 제거) */
#smell_malpusun1, #smell_malpusun2 {
    position: relative;
    width: 100%;
    background: #f3f4f8; /* 말풍선 내부 색상 */
    border: 2px solid #e2e5ef; /* 말풍선 테두리 */
    border-radius: 20px;
    padding: 30px 35px;
    text-align: left;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}	

/* PC용 말풍선 우측 삼각 꼬리 효과 (가상 선택자) */
#smell_malpusun1::after, #smell_malpusun2::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 15px 0 15px 15px;
    border-style: solid;
    border-color: transparent transparent transparent #f3f4f8;
    display: block;
    width: 0;
    z-index: 2;
}

#smell_malpusun1::before, #smell_malpusun2::before {
    content: '';
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 16px 0 16px 16px;
    border-style: solid;
    border-color: transparent transparent transparent #e2e5ef;
    display: block;
    width: 0;
    z-index: 1;
}

#smell_malpusun1 h3, #smell_malpusun2 h3 {	
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px 0;
    padding: 0;
}
	
#smell_malpusun1 p, #smell_malpusun2 p {
    font-size: 17px;
    color: #444;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}
	
#smell_malpusun1 p b, #smell_malpusun2 p b {
    color: #385a87;
}
	
/* 생선냄새증후군 변화 반응형 영역 */	
#smell_byunwha {
    background: #eef2fb;
    padding-top: 60px;
}

#smell_byunwha_box {
    position: relative;
    width: 100%;
    max-width:900px;
    margin: 0 auto;
}

#smell_byunwha_box > img {
    display: block;
    width: 100%;
    height: auto;
}

#smell_byunwha_box h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
    word-break: keep-all;
}
	
#smell_byunwha_box h2 b {
    color:#5062ab;
}

#smell_list {	
    position: absolute;
    top: 130px;
    left: 80px;
    z-index: 2;
}
	
#smell_list h3 {
    font-size: 35px;
    text-align: center;
    line-height: 1.3;
    margin-top: 40px;
    word-break: keep-all;
}
	
#smell_list span {
    font-size: 20px;
    font-weight: 500;
    color: #6d6d6d;
    display: block;
    margin-top: 10px;
}
	
#smell_list p {
    font-size: 30px;
    font-weight: 700;
    background: #7d8ece;
    width: 340px;
    color: #fff;
    text-align: center;
    border-radius: 100px;
    line-height: 2;
    margin-bottom: 10px;
}	
	
/* 화살표 */
.arrow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: 100px;
    margin: 0 auto;
}

.step-arrow {
    width: 100px;
    height: 100px;
}

.arrow-part {
    fill: #b1cbff;	
    animation: pulseDown 2s infinite ease-in-out;
}

.p1 { animation-delay: 0s; }
.p2 { animation-delay: 0.3s; }
.p3 { animation-delay: 0.6s; }
.p4 { animation-delay: 0.9s; }

@keyframes pulseDown {
    0%, 100% {
        fill: #b1cbff;
        opacity: 0.6;
    }
    35% {
        fill: #4d7fff;	
        opacity: 1;
    }
}
	
/* 치료 리스트 */	
#skin_chiro_list {	
    margin-top: 50px;	
}

#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: #8d4600;
    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;
}

.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);
    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: #8d4600;
    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;
}

.biman_jindan {
    padding-bottom: 40px;
}
	
.smell_jindan {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-top: 60px;
    padding-left: 20px;
    padding-right: 20px;
}
	
.smell_jindan h2 {	
    font-size: 26px;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 30px;
    word-break: keep-all;
}

.smell_jindan h2 b {	
    color: #8d4600;
}
	
/* 생선냄새 진단*/	
.byun_jindan_grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.byun_jindan_grid .grid_item {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    background: #f3f4f8;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
	
.byun_jindan_grid .grid_item img {
    width:100%;
    height: auto;
}
	
.grid_item_txt {
    height: auto;
    padding: 25px 20px;
    text-align: center;
}
	
.grid_item_txt h4 {
    font-size: 20px;
    font-weight: 700;
    color: #141414;
    margin: 0 0 10px 0;
}

.grid_item_txt p {
    font-size: 15px;
    color: #555555;
    line-height: 1.4;
    margin: 0;
    word-break: keep-all;
}
	
.ps_txt {
    background: #f4f4f4;
    color: #616775;
    font-size: 14px;
    line-height: 1.5;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 35px;
    text-align: center;
    word-break: keep-all;
}	
	
/* ==========================================
   [미디어 쿼리 수정] 태블릿 & 모바일 반응형
   ========================================== */

@media screen and (min-width: 1024px) {
    .byun_jindan_grid { 
        flex-direction: row; 
        justify-content: space-between; 
        gap: 20px; 
    }
    .byun_jindan_grid .grid_item { 
        flex: 1; 
        max-width: 380px; 
        margin: 0; 
    }

    .smell_jindan h2 {
        font-size: 32px;
        margin-bottom: 50px;
    }   
	#smell_wonin h2{       
		font-size: 30px;
	}
}
	
@media screen and (max-width: 1024px) {


    #smell_wonin_box {
        display: flex;
        flex-direction: column; /* 모바일 세로 레이아웃 */
        align-items: center;
        gap: 30px;
        margin-top: 30px;
        width: 100% !important;
    }
    #smell_wonin_box > img {
        order: 1; /* 이미지를 상단에 노출 */
        max-width:90%;
        height: auto;
    }
    
    .malpusun_container {
        order: 2; /* 말풍선 묶음을 이미지보다 하단으로 유도 */
        width: 100%;
        max-width: 100% !important;
        gap: 20px;
    }

    #smell_malpusun1, #smell_malpusun2 {
        position: relative !important;
        width: 100% !important;      
        max-width: 100% !important;  
        height: auto !important;
        margin: 0 auto;
        padding: 25px 20px;
    }
    
    /* 모바일 환경 말풍선 꼬리를 위쪽으로 조절 */
    #smell_malpusun1::after, #smell_malpusun2::after {
right: 50%;
    top: -15px; /* bottom 대신 top을 사용해 위로 올립니다 */
    bottom: unset;
    transform: translateX(50%);
    /* border 두께 방향을 뒤집어 아래쪽 테두리만 색상을 줍니다 (0 15px 15px 15px) */
    border-width: 0 15px 15px 15px; 
    border-color: transparent transparent #f3f4f8 transparent;
    }
    #smell_malpusun1::before, #smell_malpusun2::before {
  right: 50%;
    top: -18px; /* 테두리 역할을 하는 before도 위로 올립니다 */
    bottom: unset;
    transform: translateX(50%);
    /* 마찬가지로 아래쪽 테두리만 색상을 줍니다 (0 16px 16px 16px) */
    border-width: 0 16px 16px 16px;
    border-color: transparent transparent #e2e5ef transparent;
    }

    #smell_malpusun1 h3, #smell_malpusun2 h3 {
        font-size: 22px;
        padding: 0;
        margin-bottom: 10px;
		        text-align: center;
    }
    #smell_malpusun1 p, #smell_malpusun2 p {
        font-size: 16px;
        padding: 0;       
		text-align: center;
    }

    /* 2. 변화 단계 영역 모바일 정렬 개편 및 가로 폭 리셋 */
    #smell_byunwha_box h2 { font-size: 30px; }
    #smell_byunwha_box > img {
   
    }
    
    #smell_list {
        position: relative !important;
        top: unset;
        left: unset;
        margin: 0 auto;
		padding: 20px;
		width: 90%;
    }
    #smell_list p {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 22px;
    }
    #smell_list h3 {
        font-size: 26px;
    }   
}

@media screen and (max-width: 1100px) {
    .women_box {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .womenimg_box { max-width: 450px; }
    #skin_chiro_list ul, #skin_chiro_cul { flex-direction: column; align-items: center; }
    #skin_chiro_list ul li, .skin_atopy { width: 100%; max-width: 500px; }
    .uhul_box h2 { font-size: 26px; max-width: 380px; }
    .uhul_box p { font-size: 22px; }
    .uhul_box p strong { font-size: 32px; }
}

@media screen and (max-width: 768px) {
    .smell_sarambox { min-height: auto; }
    
    .women_list_box {
        padding-top: 35px;
        padding-bottom: 45px;
    }
    .urhul-main-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .anchor-tab-item {
        font-size: 13.5px;
        padding: 10px 0;
    }
    .anchor-tab-wrapper {
        padding-bottom: 15px;
        scroll-margin-top: 0;
    }
    .urhul-content-card {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
        height: auto !important;
    }
    .urhul-image-box {
        width: 100%;
    }
    .description {
        width: 100%;
        padding-left: 0;
        text-align: center;
        font-size: 17px;
    }
    .urhul-content-section {
        scroll-margin-top: 140px; 
    }

    #skin_chiro_list ul li, .skin_atopy { max-width: 100%; }
    #skin_chiro_list ul li h3, .skin_atopy h3 { font-size: 19px; }
    .smell_jindan h2 { font-size: 30px; }

}