@charset "utf-8";
/* 반응형 보조 스타일: 980px 이상(PC)은 layout.css 그대로, 아래 미디어쿼리에서만 덮어쓴다 */

.m-nav-toggle, .m-nav {display:none;}

@media (max-width: 979px) {
	html, body {overflow-x:hidden;}
	html>/**/body {overflow-y:auto;}
	.blind {position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;}

	/* 공통 폭 해제 */
	#main-top, #main-middle, #sub-middle, #main-footder .copy {width:auto; min-width:0;}
	#main-container, #s-container {float:none; width:auto;}
	#main-top, #main-middle, #sub-middle {padding:0 15px;}
	#main-top, #main-middle, #sub-middle, #main-container, #s-container, #s-left, #s_right, #contents, #title {box-sizing:border-box;}

	/* 헤더: 이미지 메뉴 → 햄버거 메뉴 */
	#main-top {height:95px;}
	#wrapper {background-position:50% 95px;}
	#logo {width:auto; margin-top:6px;}
	#top-menu, #main-menu {display:none;}

	.m-nav-toggle {display:block; position:absolute; right:15px; top:28px; width:42px; height:38px; padding:9px 8px; border:1px solid #d5dde3; border-radius:4px; background:#fff; cursor:pointer;}
	.m-nav-toggle__bar {display:block; height:2px; margin:0 0 6px; background:#1d6fb8; transition:transform .2s, opacity .2s;}
	.m-nav-toggle__bar:last-of-type {margin-bottom:0;}
	.m-nav-open .m-nav-toggle__bar:nth-child(1) {transform:translateY(8px) rotate(45deg);}
	.m-nav-open .m-nav-toggle__bar:nth-child(2) {opacity:0;}
	.m-nav-open .m-nav-toggle__bar:nth-child(3) {transform:translateY(-8px) rotate(-45deg);}

	.m-nav {position:absolute; left:0; right:0; top:95px; z-index:5000; max-height:calc(100vh - 95px); overflow-y:auto; background:#fff; border-top:3px solid #1d6fb8; box-shadow:0 6px 12px rgba(0,0,0,.15); text-align:left;}
	.m-nav-open .m-nav {display:block;}
	.m-nav__item {border-bottom:1px solid #e5e9ec;}
	.m-nav__row {display:flex; align-items:center;}
	#m-nav .m-nav__link {flex:1; display:block; padding:13px 18px; font:bold 15px "맑은 고딕", "Malgun Gothic", sans-serif; color:#333 !important;}
	.m-nav__sub-toggle {position:relative; width:48px; height:46px; border:0; border-left:1px solid #eef1f3; background:none; cursor:pointer;}
	.m-nav__sub-toggle:before, .m-nav__sub-toggle:after {content:""; position:absolute; left:50%; top:50%; width:12px; height:2px; margin:-1px 0 0 -6px; background:#777;}
	.m-nav__sub-toggle:after {transform:rotate(90deg); transition:transform .2s;}
	.m-nav__item.is-open .m-nav__sub-toggle:after {transform:rotate(0);}
	.m-nav__sub {display:none; padding:4px 0 8px; background:#f6f8fa;}
	.m-nav__item.is-open .m-nav__sub {display:block;}
	#m-nav .m-nav__sub a {display:block; padding:9px 18px 9px 30px; font:14px "맑은 고딕", "Malgun Gothic", sans-serif; color:#555 !important;}
	#m-nav .m-nav__sub .m-nav__depth2 a {padding-left:44px; font-size:13px; color:#777 !important;}
	.m-nav__util {display:flex; flex-wrap:wrap; padding:10px 12px; background:#eef2f6;}
	#m-nav .m-nav__util li a {display:block; padding:6px 10px; font:13px "맑은 고딕", "Malgun Gothic", sans-serif; color:#466 !important;}

	/* 상단 비주얼 */
	#s-swf, #s-swf.main-hero {height:150px; background-size:cover; background-position:50% 50%;}

	/* 서브 레이아웃 */
	#s-container {padding:20px 0; overflow:hidden;}
	#s-left {width:180px;}
	#label {width:180px; height:auto;}
	#label img {max-width:100%; height:auto;}
	#submenu, #submenu .submenu, #submenu .submenu a, #submenu .submenu_here, #submenu .submenu_here a,
	#submenu .submenu2, #submenu .submenu2 a, #submenu .submenu_here2, #submenu .submenu_here2 a {width:100%;}
	#s_right {right:0; width:calc(100% - 200px);}
	#title {width:100%; height:auto; min-height:40px; overflow:hidden;}
	#contents {width:100%; top:0; padding-top:20px; float:none;}
	#contents img {max-width:100%; height:auto;}
	#contents iframe, #contents embed, #contents object, #contents video {max-width:100%;}
	.table-scroll {width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch;}

	/* 메인 */
	#main-middle {height:auto; overflow:hidden; padding-top:15px;}
	#main-container {height:auto; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start;}
	#main_tab {order:1; float:none; width:calc(100% - 205px); height:auto; min-height:150px;}
	.banner_img01 {order:2; float:none;}
	#main_photo {order:3;}
	#main_tab #tab_title {width:100%;}
	#main_tab .tab_line {display:flex; justify-content:space-between;}
	#main_tab .tab_icon {flex:1; width:auto; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;}
	#main_tab .tab_date {flex:none; padding-left:8px;}
	.banner_img01 {width:185px; height:auto;}
	#main_photo {clear:both; float:none; width:100%; height:auto; margin:15px 0; background-position:50% 0;}
	#main_photo .area {float:none; width:auto; height:auto; padding:0; display:flex; justify-content:center;}
	#main_photo .area > table, #main_photo .area > table > tbody > tr > td > div {max-width:100%;}
	#main_partner {width:auto; height:auto; overflow:hidden;}
	#main_partner ul {display:flex; align-items:flex-start;}
	#main_partner ul li {float:none; flex:none;}
	#main_partner ul li.banner {flex:1; width:auto; min-width:0; box-sizing:border-box;}

	/* 게시판 공통 (board_koren 계열 목록/상세/쓰기) */
	#contents .rwd-list .c-subject {overflow:hidden;}
	#contents .rwd-list .c-subject nobr {display:block; overflow:hidden; text-overflow:ellipsis;}
	#contents .rwd-list .c-name nobr {display:block; overflow:hidden; text-overflow:ellipsis;}
	#contents .rwd-view .view_subject, #contents .rwd-view .view_subject nobr {white-space:normal; word-break:break-all;}
	#contents .rwd-view nobr {white-space:normal; word-break:break-all;}
	#contents #articles {overflow:hidden;}
	#contents #articles img {max-width:100%; height:auto !important;}
	#contents .rwd-write input[type="text"], #contents .rwd-write input[type="file"], #contents .rwd-write input[type="password"], #contents .rwd-write select {max-width:100%; box-sizing:border-box;}
	#contents .rwd-write td[nowrap] {white-space:normal;}
	#contents .rwd-write iframe {width:100% !important;}
	#contents .rwd-open nobr {white-space:normal;}
	#contents .rwd-open .switchcontent img {max-width:100%; height:auto;}
	.tail_input {max-width:55vw;}

	/* 포토/유관기관 표 그리드: 썸네일을 칸 폭에 맞춤 */
	#contents .rwd-album .rwd-album__item {width:100% !important; max-width:100%;}
	#contents .rwd-album .rwd-album__thumb {width:100% !important; height:auto !important; aspect-ratio:4 / 3;}
	#contents .rwd-album .rwd-album__thumb img {width:100% !important; height:100% !important;}
	#contents .rwd-album .rwd-album__item img {max-width:100%; height:auto;}
	#contents .rwd-album .rwd-album__item nobr {display:block; overflow:hidden; text-overflow:ellipsis;}
	#contents .rwd-album .rwd-album__cell {padding-left:4px !important; padding-right:4px !important;}

	/* 푸터: 모바일에서는 로고 숨김 */
	#main-footder {float:none; top:0; height:auto; overflow:hidden; padding:0 0 16px; background-position:50% 0;}
	#main-footder .copy {
		width:auto; min-width:0; height:auto; margin:0 auto;
		padding:30px 15px 8px; box-sizing:border-box;
		text-align:center;
		background-image:none !important;
	}
	#main-footder address {
		display:block; text-align:center; padding:0;
		word-break:keep-all; overflow-wrap:break-word;
	}
}

@media (max-width: 767px) {
	#main-top, #main-middle, #sub-middle {padding:0 12px;}
	#logo img {max-width:160px; height:auto;}
	#logo {margin-top:14px;}
	#s-swf, #s-swf.main-hero {height:100px;}

	/* 서브: 좌우 2단 → 1단 */
	#s-left, #s_right {float:none; width:100%;}
	#label, .submenu_img {display:none;}
	#submenu {float:none; display:flex; flex-wrap:wrap; background:none; border-top:2px solid #1d6fb8;}
	#submenu .submenu, #submenu .submenu_here, #submenu .submenu2, #submenu .submenu_here2 {float:none; width:50%; height:auto; border-bottom:1px solid #e2e6ea; box-sizing:border-box;}
	#submenu .submenu a, #submenu .submenu_here a, #submenu .submenu2 a, #submenu .submenu_here2 a {float:none; display:block; width:auto; height:auto; padding:7px 4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
	#submenu .submenu_here, #submenu .submenu_here2 {background:#eef4fa;}
	#title {margin-top:15px;}
	#title .f-left, #title .f-right {float:none;}
	#title .f-right {padding:2px 0 6px;}

	/* 메인: 1단 */
	#main_tab, .banner_img01 {width:100%;}
	.banner_img01 {order:4; margin-top:10px; text-align:center;}

	/* 게시판 목록: 제목 + 날짜 카드형 (번호/작성자/파일/조회 숨김) */
	#contents table.rwd-list {display:block; width:100% !important;}
	#contents table.rwd-list > tbody {display:block;}
	#contents table.rwd-list {border-top:2px solid #8c8c8c;}
	#contents table.rwd-list col, #contents .rwd-list .rwd-list__head, #contents .rwd-list .head_top_line, #contents .rwd-list .head_tail_shadow, #contents .rwd-list .head_tail_line {display:none;}
	#contents table.rwd-list > tbody > tr {display:block;}
	#contents table.rwd-list > tbody > tr:not(.rwd-list__row) > td {display:block;}
	#contents .rwd-list .rwd-list__row {display:flex; flex-wrap:wrap; align-items:baseline; padding:9px 2px; border-bottom:1px solid #e3e6e9;}
	#contents .rwd-list .rwd-list__row > td {display:none; height:auto !important; padding:0 !important; border:0 !important; background:none !important;}
	#contents .rwd-list .rwd-list__row > td.c-subject {display:block; flex:1 1 100%; min-width:0; font-size:13px;}
	#contents .rwd-list .rwd-list__row > td.c-subject nobr {white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;}
	#contents .rwd-list .rwd-list__row > td.c-name, #contents .rwd-list .rwd-list__row > td.c-date {display:block; margin-top:3px; font-size:11px; color:#999;}
	#contents .rwd-list .rwd-list__row > td.c-name {margin-right:8px; margin-left:20px;}
	#contents .rwd-list .rwd-list__row > td.c-num input {margin-right:4px;}

	/* 상세: 제목/작성자/작성일/조회 세로 배치 */
	#contents table.rwd-view {table-layout:auto !important;}
	#contents table.rwd-view col {width:auto !important;}
	#contents .rwd-view__meta > td {display:block; text-align:left !important; padding:2px 10px !important;}
	#contents .rwd-view__buttons > td {display:block; text-align:center !important; padding:6px 0 !important; height:auto !important;}

	/* 쓰기: 라벨/입력 2열 → 입력칸 폭 100% */
	#contents .rwd-write input[type="text"], #contents .rwd-write input[type="file"] {width:100% !important;}

	/* 포토 2열, 유관기관 1열 그리드 */
	#contents table.rwd-album {display:block; width:100% !important;}
	#contents table.rwd-album > tbody {display:flex; flex-wrap:wrap; width:100%;}
	#contents table.rwd-album col {display:none;}
	#contents table.rwd-album > tbody > tr {display:contents;}
	#contents table.rwd-album > tbody > tr > td {display:block;}
	#contents table.rwd-album > tbody > tr > td[colspan] {flex:1 1 100%;}
	#contents table.rwd-album > tbody > tr > td:not([colspan]):empty {display:none;}
	#contents table.rwd-album .rwd-album__cell {width:50% !important; box-sizing:border-box;}

	/* CONTENT 레이아웃 표 세로 배치 (responsive.js가 rwd-stack 부여) */
	#contents table.rwd-stack {table-layout:auto !important;}
	#contents table.rwd-stack > tbody > tr > td {display:block; width:auto !important; height:auto !important;}
	#contents table.rwd-stack > tbody > tr > td[align="right"] {text-align:right;}

	/* 푸터 */
	#main-footder .copy {padding:30px 12px 8px; background-image:none !important;}
	#main-footder address {font-size:11px; line-height:1.6;}
}
