/* ====================================================================
   footer.css — HEE&LAB 공통 푸터 (main.png 네이비 푸터 기준)
   ==================================================================== */
footer {background:var(--c_base3); color:rgba(255,255,255,.72);}
footer a {color:inherit;}

/* 관계기관 로고 (FAQ 아래, 전 페이지 공통) */
.footer-org {padding:28px 0; background:#fff; border-top:1px solid var(--border1);}
.footer-org-wrap {--org-gap:56px; display:flex; justify-content:center; overflow:hidden;}
.footer-org-track {display:flex; flex:none; width:max-content;}
.footer-org-list {display:flex; flex:none; align-items:center; gap:var(--org-gap); margin:0; padding:0; list-style:none;}
.footer-org-list + .footer-org-list {display:none;}
.footer-org-list a {display:block; opacity:.85; transition:opacity .2s;}
.footer-org-list a:hover, .footer-org-list a:focus {opacity:1;}
.footer-org-list img {display:block; width:auto; height:auto; max-height:36px;}	/* 원본보다 키우지 않음 (흐림 방지) */
/* 화면 폭보다 로고가 길 때 (footer.js 가 .is-loop 부여) : 한 줄 무한 루프, 마우스 올리면 멈춤 */
.footer-org-wrap.is-loop {justify-content:flex-start;}
.footer-org-wrap.is-loop .footer-org-list {padding-right:var(--org-gap);}
.footer-org-wrap.is-loop .footer-org-list + .footer-org-list {display:flex;}
.footer-org-wrap.is-loop .footer-org-track {animation:orgLoop 30s linear infinite;}
.footer-org-wrap.is-loop:hover .footer-org-track, .footer-org-wrap.is-loop:focus-within .footer-org-track {animation-play-state:paused;}
@keyframes orgLoop {to {transform:translateX(-50%);}}
@media (prefers-reduced-motion: reduce) {
	.footer-org-wrap.is-loop {overflow-x:auto;}
	.footer-org-wrap.is-loop .footer-org-track {animation:none;}
}
@media screen and (max-width: 767px) {
	.footer-org {padding:22px 0;}
	.footer-org-wrap {--org-gap:32px;}}

/* 주소 · TEL · E-mail : 항목 간 간격 유지 (확대·좁은 화면에서 줄바꿈돼도 붙지 않도록) */
.footer-addr {display:flex; flex-wrap:wrap; gap:2px 20px;}
.footer-addr span {display:inline-block; word-break:keep-all;}

/* 패밀리사이트 셀렉트 (공통) */
.footer-family {position:relative; flex-shrink:0;}
.family-btn {display:flex; align-items:center; justify-content:space-between; width:100%; height:52px; padding:0 20px; border:1px solid rgba(255,255,255,.25); border-radius:6px; background:transparent; color:#fff; font-size:var(--fs14); font-weight:600; letter-spacing:1px; cursor:pointer; transition:border-color .2s, background .2s;}
.family-btn::after {content:""; width:8px; height:8px; margin-top:-4px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); transition:transform .25s;}
.family-btn:hover, .footer-family.on .family-btn {border-color:rgba(255,255,255,.6); background:rgba(255,255,255,.05);}
.footer-family.on .family-btn::after {margin-top:4px; transform:rotate(-135deg);}
ul.family-list {position:absolute; left:0; right:0; bottom:calc(100% + 6px); z-index:10; max-height:280px; overflow-y:auto; padding:8px 0; border-radius:6px; background:#fff; box-shadow:0 10px 30px rgba(0,0,0,.25); opacity:0; visibility:hidden; transform:translateY(8px); transition:all .25s;}
.footer-family.on .family-list {opacity:1; visibility:visible; transform:translateY(0);}
.family-list li a {display:block; padding:10px 20px; font-size:var(--fs14); color:#333; transition:all .2s;}
.family-list li a:hover, .family-list li a:focus {background:#f2f4f8; color:var(--c_base2);}

/* 데스크탑 (1200px~) */
@media screen and (min-width: 1200px), print {
	.footer-wrap {display:flex; justify-content:space-between; gap:60px; padding:36px 0 60px;}
	.footer-logo {margin-bottom:24px !important;}
	.footer-logo img {height:60px; width:auto;}
	.footer-addr {font-size:var(--fs15); line-height:1.6; color:rgba(255,255,255,.78);}
	.footer-tel {font-size:var(--fs15); margin-top:6px; color:rgba(255,255,255,.78);}
	.footer-copy {margin-top:12px !important; font-size:var(--fs14); color:rgba(255,255,255,.45);}
	.footer-copy a {color:rgba(255,255,255,.7); font-weight:600;}
	.footer-copy a:hover {color:var(--c_base2);}

	.footer-family {width:260px; align-self:flex-start;}

	.gotop {position:fixed; right:30px; bottom:30px; width:52px; height:52px; z-index:900; border-radius:50%; background:var(--c_base2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M12 19V5M6 11l6-6 6 6'/></svg>") center/22px no-repeat; box-shadow:0 8px 20px rgba(13,37,54,.28); opacity:0; visibility:hidden; transition:all .3s;}
	.gotop.on {opacity:1; visibility:visible;}
}

/* 태블릿 이하 (~1199px) */
@media screen and (max-width: 1199px) {
	.footer-wrap {padding:24px 30px 40px;}
	.footer-logo {margin-bottom:20px;}
	.footer-logo img {height:40px; width:auto;}
	.footer-addr, .footer-tel {font-size:var(--fs15); line-height:1.7; color:rgba(255,255,255,.78);}
	.footer-copy {margin-top:22px; font-size:var(--fs13); color:rgba(255,255,255,.45);}
	.footer-copy a {color:rgba(255,255,255,.7); font-weight:600;}

	.footer-family {width:260px; margin-top:30px;}

	.gotop {position:fixed; right:20px; bottom:20px; width:48px; height:48px; z-index:900; border-radius:50%; background:var(--c_base2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M12 19V5M6 11l6-6 6 6'/></svg>") center/20px no-repeat; box-shadow:0 8px 20px rgba(13,37,54,.28); opacity:0; visibility:hidden; transition:all .3s;}
	.gotop.on {opacity:1; visibility:visible;}
}

/* 모바일 (~767px) */
@media screen and (max-width: 767px) {
	.footer-wrap {padding:20px 20px 32px;}
	.footer-addr {flex-direction:column;}
	.footer-family {width:100%;}
}
