/* 기존 #y-footer 스타일은 삭제했습니다. */
/* 20261008 수정 - footer */
#y-footer { background: #F4F5F6; color: #1E2124; font-size: 17px; line-height: 1.5; }
#y-footer p, #y-footer a:link, #y-footer a:visited { color: inherit; }
#y-footer .y-inner { width: 100%; max-width: 1641px; width: calc(100% - 30px); }

/* 소속·산하기관 누리집 */
#y-footer .footer-gnb { background: #fff; border-top: 1px solid #CDD1D5; border-bottom: 1px solid #CDD1D5; }
#y-footer .select-contain { float: none; display: flex; border-left: 1px solid #CDD1D5; }
#y-footer .more-box { position: relative; flex: 1; min-width: 0; border-right: 1px solid #CDD1D5; }
#y-footer .more-box .show-btn { position: relative; display: block; height: 56px; padding: 15px 56px 15px 24px; color: #1E2124; font-size: 17px; line-height: 24px; }

#y-footer .footer-gnb .select-contain .more-box a.show-btn::before,
#y-footer .footer-gnb .select-contain .more-box a.show-btn::after { content: ''; position: absolute; top: 50%; right: 24px; width: 14px; height: 2px; margin-top: -1px; background: #464c53; }
#y-footer .more-box .show-btn::after { transform: rotate(90deg); transition: transform .2s; }
#y-footer .more-box.on .show-btn { color: #1e2124; font-weight: 700; }
#y-footer .more-box.on .show-btn::after { transform: rotate(0); }

#y-footer .more-box .box { display: none; position: absolute; left: -1px; right: -1px; bottom: 100%; z-index: 20; padding: 24px; background: #fff; border: 1px solid #cdd1d5; box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); }
#y-footer .more-box.on .box { display: block; }
#y-footer .more-box .box > p { margin-bottom: 16px; color: #1e2124; font-size: 17px; font-weight: 700; }
#y-footer .more-box .list { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; width: auto; height: auto; max-height: 300px; overflow-y: auto; }
#y-footer .more-box .list a { color: #464c53; font-size: 15px; }
#y-footer .more-box .list a:hover { color: #1E2124; text-decoration: underline; }
#y-footer .more-box .close-btn { position: absolute; top: calc(100% + 1px); left: 0; right: 0; height: 56px; }

/* 기관 정보 */
#y-footer .footer-gnb .select-contain { width: 100%; }
#y-footer .footer-gnb .select-contain .more-box { background: none; }
#y-footer .footer-gnb .select-contain .more-box:nth-child(1) { border-right: 1px solid #cdd1d5; }

#y-footer .address-contain { padding: 40px 0 24px; }
#y-footer .footer-cont { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
#y-footer .footer-logo img { display: block; width: 160px; }
#y-footer .footer-addr { margin-top: 40px; }
#y-footer .footer-contact { margin-top: 16px; }
#y-footer .footer-contact li + li { margin-top: 8px; }
#y-footer .footer-contact strong { margin-right: 8px; font-weight: 700; }
#y-footer .footer-contact span + span::before { content: ''; display: inline-block; width: 1px; height: 12px; margin: 0 8px; background: #6D7882; vertical-align: -1px; }
#y-footer .footer-contact a:hover { text-decoration: underline; }
#y-footer .mark { flex-shrink: 0; display: block; width: 150px; }
#y-footer .mark img { display: block; width: 100%; }

/* 하단 링크·저작권 */
#y-footer .address-contain { background: none; }
#y-footer .address-contain p { font-size: 17px; font-weight: inherit; color: #333333; line-height: 1.5; }
#y-footer .address-contain .mark { position: relative; }
#y-footer .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 40px; margin-top: 40px; padding-top: 12px; border-top: 1px solid #cdd1d5; }
#y-footer .fgnb-list { float: none; }
#y-footer .fgnb-list ul { display: flex; flex-wrap: wrap; gap: 8px; }
#y-footer .fgnb-list a { color: #1E2124; font-size: 15px; padding: 0 2px; }
#y-footer .fgnb-list a:hover { text-decoration: underline; }
#y-footer .fgnb-list a.active { color: #052561; font-weight: 700; text-decoration: underline; }
#y-footer .fgnb-list a.active:hover { color: #1E2124; }
#y-footer .copyright { flex-shrink: 0; color: #464C53; font-size: 15px; }

/* 정부 누리집 식별자 */
#y-footer .footer-identity { display: flex; align-items: center; gap: 8px; margin-top: 40px; padding: 8px 16px; background: #fff; }
#y-footer .footer-identity img { flex-shrink: 0; display: block; height: 24px; }
#y-footer .footer-identity p { font-size: 15px; }

@media all and (max-width: 1024px) {
	#y-footer .footer-cont { flex-direction: column; align-items: flex-start; gap: 24px; }
	#y-footer .mark { width: 110px; margin-bottom: 0; }
	#y-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media all and (max-width: 768px) {
	#y-footer { font-size: 15px; }
	#y-footer .footer-gnb .y-inner { padding: 0; width: 100%; }
	#y-footer .select-contain { flex-direction: column; border-left: 0; }
	#y-footer .more-box { border-right: 0; }
	#y-footer .more-box + .more-box { border-top: 1px solid #CDD1D5; }
	#y-footer .more-box .show-btn { padding: 15px 48px 15px 16px; }
	#y-footer .more-box .show-btn::before,
	#y-footer .more-box .show-btn::after { right: 16px; }
	#y-footer .more-box .box { left: 0; right: 0; padding: 20px 16px; border-left: 0; border-right: 0; }
	#y-footer .more-box .list { grid-template-columns: 1fr; }
	#y-footer .address-contain { padding-top: 32px; }
	#y-footer .footer-logo img { width: 130px; }
	#y-footer .footer-addr { margin-top: 24px; }
	#y-footer .footer-contact strong { display: block; margin-right: 0; }
	#y-footer .fgnb-list ul { gap: 8px 16px; }
	#y-footer .fgnb-list a,
	#y-footer .copyright { font-size: 14px; }
	#y-footer .footer-identity { display: block; }
	#y-footer .footer-identity p { font-size: 14px; margin-top: 8px; }
}
