/* 전체 페이지 스타일 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    max-width: 1024px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center; /* 텍스트 중앙 정렬 */
    margin-left: auto;
    margin-right: auto; /* 중앙 정렬 */
}

img {
    display: block;
    padding: 0;
    margin: 0;
}
/* 헤더 */
.header {
    top: 0;
    left: 50%;  /* 화면의 중앙으로 위치 */
    transform: translateX(-50%); /* 정확히 중앙으로 정렬 */
    z-index: 1000;  /* 다른 요소들보다 위에 표시 */
    position: fixed;  /* 헤더를 고정 */
    background-color: #ffffff;
    color: #686868;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1024px;
    max-width: 1024px;
}

/* 회사 이름 */
.company-name {
    font-size: 28px;
	margin-left : 10px;
    /*font-weight: bold;*/
	cursor: pointer;  /* 마우스 오버 시 손 모양 커서로 변경 */
}

/* 컨테이너 */
.container {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    max-width: 1024px;
}


.menu-container {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 75px;
	left: 50%;
	transform: translateX(-50%);
	width: 1024px;
	max-width: 1024px;
	overflow: hidden;
	z-index: 999;
	background-color: transparent;
	transition: background 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

.menu-container.scrolled {
	background-color: rgba(0, 0, 0, 0.85);  /* ✅ 진한 검정 반투명 배경 */
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	border-radius: 6px;
}

/* 스크롤 시 메뉴 텍스트 색상 흰색으로 변경 */
.menu-container.scrolled .menu-item {
	color: #ffffff;
}



.menu-list {
	overflow: hidden;
	width: 934px;
	background-color: transparent;   /* ✅ 리스트도 투명하게 */
	border: none;
}

.menu-track {
	display: flex;
	transition: transform 0.3s ease;
	background-color: transparent;   /* ✅ 트랙도 투명하게 */
	border: none;
    justify-content: center;
}

.menu-item {
	width: auto;
	margin: 10px;
	padding: 10px;
	background-color: transparent;   /* ✅ 흰 배경 제거 */
	color: #686868;
	cursor: pointer;
	border-radius: 5px;
	font-size:17px;
	text-align: center;
	flex: 0 0 auto;
	border: none;
}
.menu-item:nth-child(4) {
	/* width: 160px;   여성 및 소아 비뇨질환 글자 수 때문에 강제로 늘림 */
}

.arrow {
	width: 105px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background-color: rgba(255, 255, 255, 0.1); /* 🔹 흐린 흰색 배경 */
	border: 1px solid rgba(255, 255, 255, 0.2); /* 🔹 흐린 테두리 */
	border-radius: 50%;                        /* 🔹 원형 버튼 */
	padding: 0px;
	margin-bottom: 0px;
	transition: background-color 0.3s ease;
}

.arrow:hover {
	background-color: rgba(255, 255, 255, 0.2); /* 🔹 hover 시 조금 더 밝게 */
}

.arrow img {
	width: 105px;
	height: 34px;
	object-fit: contain;
}


.menu-item.active {
	font-weight: bold;
	color: #000000;
}





/* 이미지 콘텐츠 */
.image-container {
    margin: 0;
    padding: 0;
    margin-top: 140px;
}

.image-container img {
    max-width: 100%;
    height: auto;
    display: block;
}
#image-show {
    padding: 0;
    margin: 0;
}
#image-show .btn-wrap {
    display: flex;
}
#image-show .btn-wrap button {
    background: none;
    border: 0px;
    padding: 0;
    margin: 0;
    cursor: pointer;
}
#image-show .btn-wrap button img {
    width: 100%;
}
.img-show2-1,
.img-show2-2 {
  display: none;
}
.img-show2-1.active,
.img-show2-2.active {
  display: block;
}
.img-show-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.img-show-1 button {
    width: 10%;
    border: 0;
    background: none;
    cursor: pointer;
}
.img-show-1 button img {
    width: 100%;
}

/* 작은 이미지 스타일 */
.small-images {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
}


.thumbnail {
    width: 66px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: transform 0.3s ease-in-out;
}

.thumbnail:hover {
    transform: scale(1.1);
    border-color: #007BFF;
}


.footer {
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* 공통 스타일 */
.floating-icons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-icons a {
    display: block;
    width: 65px;
    height: 65px;
    position: relative;
}

.floating-icons a img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform-origin: right center;
    cursor: pointer;
}
  





   /* 팝업 스타일 */
   .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7); /* 어두운 배경 */
    z-index: 999;
  }

  .popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  .popup-content h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
  }

  .popup-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
  }

  .phone-number {
    font-size: 18px;
    color: green; /* 전화번호는 녹색 */
  }

  .popup-content button {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  .popup-content button:hover {
    background-color: #45a049;
  }

@media (min-width: 769px) {
    .floating-icons a img {
        width: 65px;
        height: 65px;
        object-fit: contain;
        transition: transform 0.3s ease;
        transform-origin: right center;
    }

    .floating-icons a img:hover {
        transform: scale(2.0); /* ✅ 전체 확대 */
        z-index: 10;
    }

    .floating-icons a:nth-child(3) img:hover {
        transform: scale(1.5); /* ✅ 마지막 아이콘은 덜 확대 */
    }
}



/* === 모바일 대응 (768px 이하) === */
@media (max-width: 768px) {
	
	


	
    .company-name {
        font-size: 20px;
        vertical-align: middle;
        display: inline-flex;
        align-items: center; /* 수직 정렬 */
    }

    .company-name img {
        margin-right: 1px; /* 이미지와 글씨 간격 */
        vertical-align: middle;
		  transform: scale(0.7); /* ✅ 전체 확대 */
    }
    .menu-container {
        width: 100%;
    }
    .menu-list {
     
        width: 500px;
    }
    .menu-item {
        font-size: 14px;
        width: auto;
        margin: 5px;
        padding: 5px;
    }
    .menu-item:nth-child(4) {
        width: auto;   /* 여성 및 소아 비뇨질환 글자 수 때문에 강제로 늘림*/
    }
	
	
    .menu-container{
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 20px;
        display: block;
        white-space: nowrap;
    
        /* 스크롤바 숨김 처리 */
        scrollbar-width: none; /* Firefox */
        
	}

    .arrow {
		display: none;
    }
	
	.image-container {
		margin-top: 100px;
	}


    .footer {
        height: 50px;  /* 필요시 조정 */
    }

    .floating-icons {
        right: 10px;
        bottom: 10px;
    }

    .floating-icons a {
        width: 50px;
        height: 50px;
    }

    .floating-icons a img {
        width: 50px;
        height: 50px;
        transform: none !important;   /* 🔥 확대 제거 */
    }

  
/* 마지막 아이콘만 별도 처리 */
.floating-icons a:nth-child(3) img:hover {
    transform: scaleX(1.0); /* 확대 없음 */
}
    

    .popup-content {
        width: 90%;
        padding: 15px;
    }

    .popup-content h2 {
        font-size: 16px;
    }

    .popup-content p,
    .phone-number,
    .popup-content button {
        font-size: 14px;
    }
}







