@charset "utf-8";

@import url("default.css");
@import url("font.css");


.scroll_table{overflow:hidden;overflow-x:hidden;}
.scroll_table table, table.type2 {min-width:500px;}

@font-face {
    font-family: 'YeogiOttaeJalnan';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_four@1.2/JalnanOTF00.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

@media screen and (max-width: 980px) {
    .scroll_table{overflow:hidden;overflow-x:auto;}
    .scroll_table table{min-width:1000px;}
    .scroll_table table td { font-size: 16px;}
    .scroll_table table tbody tr td:first-child { font-size: 16px;}
    
    .scroll_table table.table_packed{min-width:100% !important;}
    .scroll_table table.table_packed{width:auto !important;}
    .scroll_table table.table_packed th,
    .scroll_table table.table_packed td{padding-left:10px;padding-right:10px;white-space:nowrap;}
}

a.link-red {
    background: #f8f9fb;
    padding: 10px 10px;
    color: #233052 !important;
    display: block;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #f8f9fb;
}

a.link-red:hover {
    background: #fff;
    border: 1px solid #f8f9fb;
}

/* ===== 헤더 + 로고 가운데 정렬 ===== */
#header {
    background: url(../images/top_bg.jpg) no-repeat center center;
    background-size: cover;
    height: 240px;

    display: flex;
    align-items: center;      /* 세로 가운데 */
    justify-content: center;  /* 가로 가운데 */
}

p.top-img {
    margin: 0;
    max-width: 1200px;
    text-align: center;
    padding: 0;              /* 위쪽 여백 제거 */
}

/* 모바일에서 헤더 높이 줄이고 싶으면 */
@media screen and (max-width: 768px) {
    #header {
        height: 160px;
    }

    /* 로고 양옆 여백 주기 */
    p.top-img {
        padding: 0 16px;  /* ← 좌우 16px 여백 */
    }

    /* 로고를 살짝 작게 보이게 */
    p.top-img img {
        max-width: 94%;   /* 전체의 94%만 쓰기 → 양옆 여유 */
        height: auto;
    }
}

.more_btn {
    border: 1px solid #233052;
    color: #fff;
    padding: 5px 40px 5px 20px;
	font-weight: 400;
    letter-spacing: -0.03em;
	background: url(../images/btn_ico.png) no-repeat right 17px top 12px #233052;
}

.more_btn:hover {
    border: 1px solid #6d6d6d;
    color: #233052;
    font-weight: 600;
	background: url(../images/btn_ico_b.png) no-repeat right 17px top 12px #fff;
}

.em_b_red { color: #d6382c; font-weight: 600;}
.red {color: #d6382c !important; font-weight: inherit;}


img {
    max-width: 100%;
    border: 0 none;
}

/* 콘텐츠 목록 이미지 */
.contimg { margin-top: 80px;}
@media screen and (max-width: 768px) {
  .contimg { margin-top: 40px;}

}

#content {
    width: 100%;
    margin: 0 auto 50px;
    background: #fff;
}


#content-body {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

.infoText {
    clear: both;
}

.content-wrap {
    margin: 0 auto;
    overflow: hidden;
    padding: 0 20px;
    background: #ffffff;
}

/*.content-wrap > div{padding-top:40px;}*/
.content-wrap > div > h3:first-child{margin-top:40px;}

/* 제목 스타일*/
h3 {
    position: relative;
    display: block;
    content: "";
    font-size: 24px;
    padding-left: 30px;
    font-weight: 600;
    /*margin-top: 80px;*/
    letter-spacing: -0.05em;
    color: #41454d;
    background-repeat: no-repeat;
    background-position: left 5px;
    background-image: url(../images/template.png);
}

h4 {
    display: block;
    font-size: 20px;
    margin: 20px 0 10px 35px;
    letter-spacing: -0.1em;
    font-weight: 600;
    color: #71747A;
}

/* 테이블 기본 */
table { position:relative; width:100%; margin:5px 0 10px; border-top:2px solid #333;}
table a { color: #333;}
table th, table td { text-align: center; border:1px solid #d2d3d9; vertical-align:middle;}
table thead th { padding:15px 0; border:1px solid #d2d3d9; font-size:18px; color:#333; font-weight:600 !important;}
table thead tr:first-child th { border-bottom:1px solid #d2d3d9;}
table thead tr:last-child th { border-bottom:none;}
table thead th[rowspan] { border-bottom:none !important;}
table th { background:#f2f4f7;}
table th:first-child, table td:first-child { border-left:none}
table th:last-child, table td:last-child { border-right:none;}
table tbody th { font-weight:600; color:#000;}
table tbody td { padding:10px 0; line-height: 28px; font-size: 16px;}

table th.w15 { width: 15%;}
table th.w20 { width: 20%;}
.table2 tbody td { text-align: left; padding: 20px;}
.table2 tbody td span { padding-left: 20px;}

.txt_list li { font-size: 16px; line-height: 2;}


/* sns btn */
.floating_btn {
    position: fixed;
    right: 10px;
    bottom: 10px;
}

.top_btn {
    margin-top: 10px;
}

.sns_wrap {
    display: none;
}

.sns_wrap>li {
    margin-bottom: 8px;
}

.snsBtn_close {
    display: none;
}
/* sns btn 끝 */

/* 서브(추가) 텍스트*/
.content-wrap p.sub_txt {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    line-height: 30px;
    margin-top: 10px;
    text-align: right;
}

/* 굥통정보안내+종합안내 */
.call_list {
    position: relative;
    overflow: hidden;
    padding: 25px 0;
     
}

.call_list li {
    float: left;
    width: calc(20% - 20px);
    padding-top: 15px;
    margin: 0px 10px 15px 10px;
    text-align: center;
    font-weight: 600;
}

.call_list li a { display: block; color: #666;}
.call_list li img { display:block; margin:0 auto 15px;}
.call_list li span { display: block;}
.call_list li span em { 
    font-style: normal; 
    padding-left: 20px; 
    background-repeat: no-repeat; 
    background-position: top 7px left;
}

.call_list li img:hover {
    transform: rotateY(360deg);
    transition: transform 500ms ease-in-out;
}

.call_list.type1 { background-color: #F7F7FF;}
.call_list.type2 { background-color: #F4F8FF;}
.call_list.type3 { background-color: #F0F9F3;}
.call_list.type4 { background-color: #FFF6F5;}
.call_list.type5 { background-color: #Fff9f5;}
.call_list.type6 { background-color: #FFFEE9;}
.call_list.type7 { background-color: #F4F4F4;}
.call_list.type1 li span { color: #8888BE;}
.call_list.type2 li span { color: #479fda;}
.call_list.type3 li span { color: #21984f;}
.call_list.type4 li span { color: #F3A79D;}
.call_list.type5 li span { color: #eda868;}
.call_list.type6 li span { color: #737336;}
.call_list.type7 li span { color: #555555;}
.call_list.type1 li span em { background-image: url(../images/ico_call1.png);}
.call_list.type2 li span em { background-image: url(../images/ico_call2.png);}
.call_list.type3 li span em { background-image: url(../images/ico_call3.png);}
.call_list.type4 li span em { background-image: url(../images/ico_call4.png);}
.call_list.type5 li span em { background-image: url(../images/ico_call5.png);}
.call_list.type6 li span em { background-image: url(../images/ico_call6.png);}
.call_list.type7 li span em { background-image: url(../images/ico_call7.png);}

/* 메인 메뉴*/
div.fixed_wrap {
    background: #315714;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
    height:0;
    overflow:hidden;
}
div.fixed_wrap.show {
    opacity: 1;
    pointer-events: auto;
    margin: 0;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:auto;
    overflow:auto;
    z-index:100;
}

.menu{display:flex;max-width:1200px;margin:0 auto;}
.menu li {
    color: #ffffff;
    height: 60px;
    width: 20%;
}

.menu li a {
    color: #ffffff;
    display: block;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    height: 60px;
    line-height: 60px;
}

.menu li a:hover {
    background-color: #c1df5d;
    color: #1B3C53;
}

.menu li:first-child {
    margin-left: 0;
}

.menu li a,
.menu li img {
    display: block;
    width: 100%;
}

/* 행사 목록 */
.event { margin: 0 auto; overflow: hidden; max-width:1200px;}
.event li {
    float: left;
    width: 31%;
    margin: 0px 12px 20px;
    border-radius: 10px;
}

.event li a { display: block;}
.event li:last-child a { margin-right: 0;}

.event li div.info-wrap {
    padding: 12px 15px 6px 15px !important;
}

.event li div.info-wrap div.red-tit {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    letter-spacing: -0.1em;
    height: 50px;
    margin-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

div.event_list {
    border: 1px dotted #D3D4D6;
    height: 427px;
}

div.event_list img {
    width: 100%;
}

/* ========== 카드 전체 감싸는 ul ========== */
.top_btnc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    padding: 0;
    list-style: none;

    /* 꽃 구분선용 위치 기준 */
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 80px;   /* 꽃 라인 들어갈 자리 */
}
  
.top_btnc > li {
    width: calc(25% - 10px);
}
  
@media screen and (max-width: 900px) {
    .top_btnc > li {
      width: calc(50% - 10px);
    }
}
@media screen and (max-width: 480px) {
    .top_btnc > li {
      width: 100%;
    }
}
  
/* ========== 카드 기본 스타일 (flex로 가운데 채우기) ========== */
.egen_btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    height: 140px;
    border-radius: 20px;
    padding: 16px 12px 18px;
    overflow: hidden;
    text-align: center;
    font-weight: 700;
    color: #fff;
    transition: all 0.3s ease;
}

/* 제목 */
.egen_btn strong {
    font-size: 26px;
    font-family: "YeogiOttaeJalnan";
    line-height: 1.2;
    margin-bottom: 8px;
    z-index: 2;
}

/* 설명 영역: p가 1개든 3개든 가운데 정렬 */
.egen_btn > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    z-index: 2;
}

/* 설명 텍스트 */
.egen_btn > div p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #222;
    text-align: center;
}
  
/* 무상교통 빼고 카드 설명 글자만 키우기 */
.egen_btn.child > div p,
.egen_btn.youth > div p,
.egen_btn.old > div p {
    font-size: 18px;  
}

/* ========== SVG 테두리 스타일 ========== */
.border_svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
  
.border_svg rect {
    width:calc(100% - 4px);
    height:calc(100% - 4px);
    stroke-width: 4;
    fill: none;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1s ease;
}
  
.egen_btn:hover .border_svg rect {
    stroke-dashoffset: 0;
}
  
/* ========== 개별 테마 ========== */
  
/* 아동 */
.egen_btn.child {
    background-color: #FBD2D2;
}
.egen_btn.child strong {
    color: #E6477C;
}
.egen_btn.child .border_svg rect {
    stroke: #E6477C;
}
  
/* 청소년·청년 */
.egen_btn.youth {
    background-color: #D3F8E2;
}
.egen_btn.youth strong {
    color: #1B8D75;
}
.egen_btn.youth .border_svg rect {
    stroke: #1B8D75;
}
  
/* 어르신 */
.egen_btn.old {
    background-color: #FFE5B4;
}
.egen_btn.old strong {
    color: #D17A00;
}
.egen_btn.old .border_svg rect {
    stroke: #D17A00;
}
  
/* 무상교통 */
.egen_btn.free {
    background-color: #E6E6FA;
}
.egen_btn.free strong {
    color: #5A4FCF;
}
.egen_btn.free .border_svg rect {
    stroke: #5A4FCF;
}

/* ===== .top_btnc 아래 꽃 패턴 구분선 (가운데, 반복) ===== */
.top_btnc::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);

    width: 87%; 
    height: 40px;        /* 꽃 이미지 높이에 맞게 조절 */

    background-image: url("../images/flower_line.png");
    background-repeat: repeat-x;       /* 가로 방향으로 반복 */
    background-position: center left;
    background-size: auto;
}

@media screen and (max-width: 768px) {
    .top_btnc::after {
      width: 90%;
      max-width: 420px;
      height: 30px;
    }
}

/* 본문 아이콘 */
.btn_map {
    background:url(../images/icon_map.png) no-repeat right center;
    padding: 5px 30px 5px 0;
}

.btn_jucha {
    background:url(../images/juca.png) no-repeat center;
    background-size: 28px 28px;
    padding: 14px;
    color: transparent;
    font-size: 0;
}

.btn_jucha_off {
    background:url(../images/juca_off.png) no-repeat center;
    background-size: 28px 28px;
    padding: 14px;
    color: transparent;
    font-size: 0;
}

.btn_garbage {
    background:url(../images/ico_garbage.png) no-repeat center;
    background-size: 28px 28px;
    padding: 14px;
    color: transparent;
    font-size: 0;
}

.btn_garbage_off {
    background:url(../images/ico_garbage_off.png) no-repeat center;
    background-size: 28px 28px;
    padding: 14px;
    color: transparent;
    font-size: 0;
}
/* // 본문 아이콘 끝 */
