/*===========================================================================
	웹폰트
============================================================================*/
@font-face {
    font-family: 'SCDream3';
    src:url('../fonts/SCDream3.otf') format('woff');
}
@font-face {
    font-family: 'SCDream5';
    src:url('../fonts/SCDream5.otf') format('woff');
}
@font-face {
    font-family: 'SCDream6';
    src:url('../fonts/SCDream6.otf') format('woff');
}
/*===========================================================================
	CSS 초기화
============================================================================*/
* {box-sizing:border-box; margin:0; padding:0; }
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, em, img, strong, b, i, dl, dt, dd, ol, ul, li, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, footer, header, menu, nav, section, video, a {border:0; outline:0; font-size:100%; color:#333; line-height:1;}
html { width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {line-height:1; font-family: 'Noto Sans KR', sans-serif;  width: 100%; overflow-x: hidden; -ms-overflow-style: none; }
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {display:block;}
ul, ol, li {list-style:none;}
strong {display: inline-block;}
a {margin:0; padding:0; font-size:100%; display: block; }
table {border-collapse:collapse; border-spacing:0;}
input, select {vertical-align:middle;}
p {line-height:1.5;}
pre { font-family: 'Noto Sans KR', sans-serif; white-space: pre-line; }
img {width: 100%}
input {outline:none;}
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
button {cursor:pointer; border: 0; outline: 0; background: none;}
a {text-decoration: none;}
textarea {resize: none; font-family: 'Noto Sans KR', sans-serif;}
.col-group {display:flex;}
.container { width: 1440px; margin: 0 auto; }
.mb{display: none;}
.scd3 { font-family: 'SCDream3'; }
.scd5 { font-family: 'SCDream5'; }
.scd6 { font-family: 'SCDream6'; }

/* header */
#header { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; background: #fff;  }
.header-wrap { height: 136px; box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.16); }
.header-top { background: #0c419a; height: 48px; }
.header-top span { color: #fff; line-height: 48px; padding-left: 80px; display: inline-block; }
.header-wrap .logo { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 240px; height: 237px; background: url(../images/logo_bg.png) no-repeat; background-size: cover; background-position: center; text-align: center; display: flex; flex-flow: column; justify-content: center; }
.header-wrap .logo a { display: flex; flex-flow: column; gap: 4px; padding: 12px 0; align-items: center; margin-top: -30px; }
.header-wrap .logo img:first-child { width: 165px; }
.header-wrap .main-gnb { justify-content: space-between; gap: 240px; }
.header-wrap .gnb.left { justify-content: flex-end; width: 100%; }
.header-wrap .gnb.right {width: 100%; }
.header-wrap .gnb> li { width: 25%; height: 88px; text-align: center; position: relative; }
.header-wrap .gnb> li> a { height: 100%; line-height: 88px; font-size: 16px; color: #333; transition: .2s; display: flex; flex-flow: column; justify-content: center; position: relative; }
.header-wrap .gnb> li> a::after { content: ""; display: block; position: absolute; right: 0; top: 32px; width: 1px; height: 24px; background: #e3e3e3; }
.header-wrap .gnb> li:last-child> a::after { display: none; }
.header-wrap .gnb> li> a p { width: fit-content; margin: 0 auto; position: relative; transition: .2s; }
.header-wrap .gnb> li> a p::after { content: ""; display: block;  width: 0; height: 2px; background: #0064A2; position: absolute; bottom: -8px; transition: .2s; left: 50%; transform: translateX(-50%); }
.header-wrap .gnb> li:hover> a p, .header-wrap .gnb> li.active> a p { color: #0064A2; }
.header-wrap .gnb> li:hover> a p::after, .header-wrap .gnb> li.active> a p::after { width: 100%; }
.header-wrap .sitemap-open { position: absolute; bottom: 0; right: 0; width: 88px; height: 88px; }
.header-wrap .sitemap-open i { color: #0c419a; font-size: 40px; }
.header-wrap .sub-gnb { background-color: #f5f5f5; box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.26); display: none; background-image: url(../images/sub_gnb_bg.png); background-repeat: no-repeat; background-position: right 30px bottom; position: absolute; top: 136px; left: 0; right: 0; z-index: -1; }
.header-wrap .sub-gnb> .col-group { gap: 240px; justify-content: space-between;}
.header-wrap .sub-gnb-left { justify-content: flex-end; width: 100%; }
.header-wrap .sub-gnb-right {  width: 100%; }
.header-wrap .sub-gnb ul { width: 25%; text-align: center; padding: 15px 0; }
.header-wrap .sub-gnb ul li a { width: 100%; height: 56px; line-height: 56px; white-space: nowrap; font-size: 15px; color: #7d7d7d; transition: .2s; }
.header-wrap .sub-gnb ul li a:hover { color: #0c419a; text-decoration: underline; }

/* 사이트맵 */
#site_map { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(24px); display: none; }
#site_map .container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
#site_map .close { position: absolute; right: 0; top: -100px; transition: .3s; }
#site_map .close:hover { transform: rotate(180deg); }
#site_map .close i { color: #fff; font-size: 48px; }
#site_map .sitemap-list { flex-flow: wrap; }
#site_map .sitemap-list> li { width: calc( 100% / 6 ); border-left: 1px solid #fff; }
#site_map .sitemap-list> li:last-child { border-right: 1px solid #fff; }
#site_map .sitemap-list> li p { font-size: 20px; color: #fff; padding: 15px 40px 24px; position: relative; white-space: nowrap; }
#site_map .sitemap-list> li p::after { content: ""; display: block; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: #0c419a; top: 6px; left: 24px; z-index: -1;  }
#site_map .sitemap-sub-list li { height: 60px; transition: .1s; }
#site_map .sitemap-sub-list li:hover { background: rgba(255, 255, 255, 0.06); }
#site_map .sitemap-sub-list li a { line-height: 60px; padding: 0 40px; font-size: 16px; color: rgba(255, 255, 255, 0.6); transition: .1s; }
#site_map .sitemap-sub-list li:hover a { color: #fff; }
#site_map .sns-login-wrap{display: none;}
#site_map .mb-logo{display: none;}
#site_map .g-sans i{display: none;}

/* footer */
#footer { background: #484848; }
#footer> .container { padding: 28px 0; gap: 56px; align-items: center; }
.footer-logo { width: 332px; }
#footer p.col-group { gap: 32px; }
#footer p.col-group span { font-size: 14px; color: #fff; margin-bottom: 16px; }
#footer .copy { display: block; font-size: 14px; color: #919191; }

/* content 공통 */
#main { margin-top: 136px; min-height: calc( 100vh - 152px - 136px ); }

#sns_shortcut { position: fixed; display: flex; flex-flow: column; gap: 16px; top: 50%; transform: translateY(-25%); left: 16px; z-index: 999; }
#sns_shortcut li a { width: 48px; height: 48px; transition: .2s; }
#sns_shortcut li a:hover { opacity: .7; }

/* /////////////////////////  게시판   ////////////////////////////////////// */

/* 게시물-상단제목 */
.top-title{padding-bottom: 24px; border-bottom: 1px solid #ABABAB;  margin-bottom: 0 !important;}
.top-title .title{display: flex; align-items: center; height: auto; background-color: #0064A2; padding: 16px 0; padding-left: 24px; margin-bottom: 24px;}
.top-title .title h3{font-size: 18px; font-weight: normal; color: #fff; letter-spacing: -0.45px; line-height: 1.5;}
.top-title .writer-wrap{display: flex; justify-content: flex-end; padding-right: 24px; gap: 36px;}
.top-title .writer-wrap p{color: #C9C9C9; position: relative;}
.top-title .writer-wrap p span{color: #C9C9C9;}
.top-title .writer-wrap p::before{content: '|'; position: absolute; right: -19px; top: -1px;}
.top-title .writer-wrap p:last-child::before { display: none; }
.letter-wrap{padding: 40px 0 80px;}

/* 페이지 */
.page{display: flex; gap: 8px; justify-content: center; margin-top: 40px;}
.page li a{width: 32px; height: 32px; border: 1px solid #333; font-size: 14px; transition: .2s; display: flex; justify-content: center; align-items: center; opacity: 0.3;}
.page li a:hover{border: 1px solid #0064A2; opacity: 1; color: #fff; background-color: #0064A2;}
.page li a:hover i{color: #fff;}
.page li.now a{border: 1px solid #0064A2; opacity: 1; color: #fff; background-color: #0064A2;}
.page li.now a i{color: #fff;}

/* 패이지2 */
.page-move{display: flex; justify-content: space-between; padding-top: 30px; border-top: 1px solid #ABABAB;}
.page-move li a{width: 103px; height: 48px; border: 1px solid #C9C9C9; border-radius: 5px; display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 15px; color: #ABABAB; transition: .2s;}
.page-move li a i{font-size: 21px; color: #ABABAB;}
.page-move li a:hover{border: 1px solid #0064A2; opacity: 1; color: #fff; background-color: #0064A2;}
.page-move li a:hover i{color: #fff;}

/* /////////////////////////  게시판   ////////////////////////////////////// */

/* 활동사진 크게보기 (modal) */
#modal { position: fixed; top: 0; right: 0; left: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: none; z-index: 99999; }
#modal .modal-wrap { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
#modal .modal-wrap .close { width: 30px; height: 30px; position: absolute; top: 0; right: 0; background: #fff; }
#modal .modal-wrap .close i { font-size: 24px; }
#modal .modal-wrap .img-box { border: 5px solid #fff; border-radius: 5px; }
#modal .modal-wrap .img-box img { width: auto; object-fit: contain; max-width: 80vw; max-height: calc( 80vh - 80px );}

@media screen and (max-width:1920px) {
    .header-wrap { width: 100%; padding: 0 !important; }
}

@media screen and (max-width:1440px) {
    .header-wrap .gnb { width: calc( ( 100% - 240px ) / 2 ); }
    .header-wrap .gnb.right { margin-right: 0; }
    .header-wrap .gnb> li { width: 30%; }
    .header-wrap .sub-gnb ul { width: 30% }
    .container { width: 100%; padding: 0 16px; }
}

@media screen and (max-width:1280px) {
    #site_map .sitemap-list {  }
    #site_map .sitemap-list> li { width: calc( 100% / 3 ); border: 0; }
    #site_map .sitemap-list> li:last-child { border: 0; }
}

@media screen and (max-width:1024px) {
    /* header */
    .header-wrap { height: 56px; }
    .header-top { display: none; }
    .header-wrap .logo { position: absolute; top: 0; left: 13px; transform: unset; width: unset; height: unset; background: none; }
    .header-wrap .logo a { flex-flow: row; gap: 10px; padding: 0; height: 56px; margin-top: 0; }
    .header-wrap .logo img:first-child { width: 60px; }
    .header-wrap .main-gnb { justify-content: space-between; }
    .header-wrap .gnb { display: none; }
    .header-wrap .sitemap-open { position: absolute; bottom: 8px; right: 21px; width: 40px; height: 40px; }

    /* 사이트맵 */
    #site_map .container{ right: 0; top: 0; left: unset; transform:unset; width: 280px; padding: unset; height: 100%; background-color: #fff;}
    #site_map .close{right: 280px; top: 0; background-color: #0064a2; width: 56px; height: 56px;}
    #site_map .close i{font-size: 32px;}
    #site_map .close:hover { transform: unset; }
    #site_map .mb-logo{position: absolute; display: flex; justify-content: center; align-items: center; height: 56px; width: 100%; box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.26); }
    #site_map .mb-logo img{width: 62px;}
    #site_map .sitemap-list{flex-direction: column; z-index: 999; margin-top: 56px; max-height: calc(100% - 56px); overflow: scroll;}
    #site_map .sitemap-list> li{width: 100%; border: unset;}
    #site_map .sitemap-list> li p{color: #333; font-size: 15px; padding: 0 24px; height: 48px; display: flex; align-items: center; justify-content: space-between; line-height: 1; border-bottom: 1px solid #efefef;}
    #site_map .sitemap-list> li p.open{background-color: #0064a2; color: #fff;}
    #site_map .sitemap-list> li p i{display: inline-block;}
    #site_map .sitemap-list> li p.open i{color: #fff; transform: rotate(0.5turn);}
    #site_map .sitemap-sub-list{display: none;}
    #site_map .sitemap-sub-list li{background-color: #f5f5f5; height: 40px; border-bottom: 0.5px solid #fff;}
    #site_map .sitemap-sub-list li a{color: #7d7d7d; padding: unset; padding-left: 24px; line-height: 40px; font-size: 14px; font-weight: 300; letter-spacing: -0.35px;}
    #site_map .sitemap-sub-list li:hover a{color: #7d7d7d;}
    #site_map .sns-login-wrap{position: absolute; bottom: 0; height: 120px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; justify-content: flex-end; padding-bottom: 24px;}
    #site_map .sns-login-wrap h3{font-size: 15px; font-weight: 500; letter-spacing: -0.38px; color: #333;}
    #site_map .sns-login-wrap ul{display: flex; gap: 8px; padding: 0 16px;}
    #site_map .sns-login-wrap ul li.login-b a img{width: 48px; height: 48px;}
}

@media screen and (max-width:768px) {
    .pc { display: none; }
    .mb { display: block; }
    #main { margin-top: 56px; }
    .kakao-ch { display: none; }

    /* footer */
    #footer> .container { flex-flow: column; padding: 25px 16px 60px; gap: 24px; align-items: flex-start; }
    .footer-logo { width: 225px; }
    #footer p.col-group { gap: 3px; flex-flow: column; margin-bottom: 13px; }
    #footer p.col-group span { font-size: 12px; margin-bottom: 0; }
    #footer .copy { font-size: 12px; }

    /* content 공통 */
    #main { margin-top: 56px; min-height: calc( 100vh - 238px - 56px );  }

    #sns_shortcut { position: fixed; display: flex; flex-flow: column; gap: 16px; top: 80px; transform: none; left: 16px; z-index: 9; }
    #sns_shortcut li.open-btn { width: 48px; height: 48px; background: #48619d; border-radius: 50%; text-align: center; box-shadow: 0 0 10px 0 rgb(0 0 0 / 16%); }
    #sns_shortcut li.open-btn i { font-size: 30px; color: #fff; line-height: 48px; display: inline-block; margin-left: 3px; transition: .3s;}
    #sns_shortcut li:not(.open-btn) { transform: translateX(-100px); transition: .3s; }
    #sns_shortcut.open li:not(.open-btn) { transform: translateX(0); }
    #sns_shortcut.open li:nth-child(3) { transition-delay: .05s; }
    #sns_shortcut.open li:nth-child(4) { transition-delay: .1s; }
    #sns_shortcut.open li:nth-child(5) { transition-delay: .15s; }
    #sns_shortcut.open li:nth-child(6) { transition-delay: .2s; }
    #sns_shortcut.open li:nth-child(7) { transition-delay: .25s; }
    #sns_shortcut.open li.open-btn i { transform: rotateY(180deg) translateX(4px); }
    #sns_shortcut li:not(.open-btn) a { width: 48px; height: 48px; transition: .2s; filter: drop-shadow(0 0 10px rgba(0 0 0 / 16%)); }
    #sns_shortcut li:not(.open-btn) a:hover { opacity: .7; }

    /* /////////////////////////////////////////////////////////////// */
    /* 사진형 리스트 */
    .list-wrap{gap: 16px; margin-bottom: 40px;}
    .list-wrap li{width: 100%; height: 220px;}
    .list-wrap li .thumbnail-wrap{height: 70%;}
    .list-wrap li .title-wrap{height: 30%; padding: 0 16px; justify-content: center; gap: 8px;}
    .list-wrap li .title-wrap .title{height: unset; font-size: 14px; }
    .list-wrap li .title-wrap .day{font-size: 13px;}
    /* 게시물-상단제목 */
    .top-title{padding-bottom: 16px; }
    .top-title .title{ padding: 8px 0; padding-left: 16px; margin-bottom: 16px;}
    .top-title .title h3{font-size: 14px; margin-bottom: -3px; }
    .top-title .writer-wrap{justify-content: flex-end; flex-flow: wrap; padding-right: 0; font-size: 13px; gap: 4px 12px; }
    .top-title .writer-wrap p::before{ display: none; }
    /* 동영상 */
    .worship .video-wrap { padding: 16px 0; }
    .video-wrap .video{width: 100%; padding-top: 56.25%; position: relative; height: unset;}
    .video-wrap .video iframe { position: absolute; top: 0; right: 0; left: 0; bottom: 0; }
    .video-wrap .video-table{margin-bottom: 0;}
    .video-wrap .video-table table tr{height: 40px;}
    .video-wrap .video-table table thead th{ font-size: 12px;}
    .video-wrap .video-table table thead th:first-child{width: 50%;}
    .video-wrap .video-table table tbody td{ font-size: 11px; padding: 8px 0; line-height: 1.5; word-break: keep-all; }
    .video-wrap .letter-wrap{padding: 16px 0 0;}
    /* 페이지 */
    .page li a{width: 24px; height: 24px; font-size: 12px;}
    /* 패이지2 */
    .page-move{ padding-top: 16px;}
    .page-move li a{height: 36px; gap: 8px; font-size: 13px;}
    .page-move li a i{font-size: 16px; }
    /* 표 */
    .table1{margin-bottom: 40px;}
    .table1 table tr{height: 40px;}
    .table1 table thead tr{font-size: 13px;}
    .table1 table thead th:nth-child(2n-1){display: none;}
    .table1 table thead th:nth-child(2){width: 75%;}
    .table1 table tbody td{font-size: 12px;}
    .table1 table tbody td:nth-child(2n-1) { display: none; }
    .table1 table tbody td:nth-child(2){padding: 8px; padding-right: 0;}
    /* 게시물 글 */
    .content-wrap{padding: 16px 0;}
    /* /////////////////////////////////////////////////////////////// */

    /* 활동사진 크게보기 (modal) */
    #modal .modal-wrap .close { width: 24px; height: 24px; }
    #modal .modal-wrap .close i { font-size: 20px; margin-top: 4px; }
    #modal .modal-wrap .img-box img { max-width: calc( 100vw - 32px );  max-height: calc( 90vh - 56px );}
}
