@charset 'utf-8';
@font-face {
    font-family: 'GmarketSansMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'GmarketSansMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

@media all and (max-width: 768px) {
    :root {
        --font-size: 14px;
        --small-font-size: 12px;
        --big-font-size: 18px;
    }
}

/* basic layout */
body {
    font: var(--font-size)/var(--line-height) var(--font-family), sans-serif;
    color: var(--color-default);
}

#body {padding-top: 5.5em;min-height: 100vh;}
@media all and (max-width: 1280px) {
    #body {padding-top: 6.5em;}
}

/* city hall link */
#gn_link {position: absolute;right: 0;top: 23px;font-size: var(--small-font-size);display: flex;align-items: center;gap: .5em;}
#gn_link img {position: relative;width: 30px;height: unset;bottom: 1px;}

/* header */
#header {
    top: 2em;
    z-index: 999;
    margin: 0 auto;
}
#header nav {display: flex;justify-content: space-between;pointer-events: all;}
#header .img-logo {display: flex; align-items: center; gap: 1em;}

nav .menu-bar {
    width: calc(100% - 70px - 2.5rem);
    padding: 0 2.2rem;
    background: var(--color-bak);
    box-shadow: var(--box-shadow);
    border-radius: 35px;
}
nav .menu-wrapper {
    display: flex;
    position: relative;
    height: 52px;
    gap: 1.5em;
    height: 70px;
}
#gnb ul {display: flex;height: 100%;}
#gnb ul li {position: relative;display: block;padding: 0 2em;}
#gnb ul li a {
    height: 100%;
    display: flex;
    align-items: center;
}

#header .all-submenu {
    position: absolute;
    display: flex;
    width: calc(100% + 4.4rem);
    top: calc(5em - 6px);
    left: -2.2rem;
    visibility: hidden;
    opacity: 0;
    background: white;
    border-radius: 2em;
    box-shadow: var(--box-shadow);
    justify-content: center;
    transition: .3s ease;
}
#header.toggle .all-submenu {
    visibility: visible;
    opacity: 1;
}
#header .all-submenu strong {position: relative; z-index: 1;}
#header .all-submenu strong span {position: relative;}
#header .all-submenu strong span::before {
    content: '';
    position: absolute;
    left: -.3em;
    bottom: .1em;
    width: calc(100% + .6em);
    height: .5em;
    background: var(--color-main);
    opacity: .3;
    z-index: -1;
}
#header .all-submenu li {line-height: 2;}
#header .all-submenu li:not(.active):hover {font-weight: 900;}
#header .all-submenu li.active {color: var(--color-bak);white-space: nowrap;}
#header .all-submenu li.active a {
    position: relative;
    display: block;
    background: var(--color-main);
    width: 100%;
    left: -.7em;
    padding: 2px .7em 0;
    border-radius: 1em;
}

#gnb ul.only-pc li .submenu {
    position: absolute;
    background: var(--color-bak);
    border-radius: 1.5em;
    padding: .5em 0;
    width: 100%;
    margin-top: 1em;
    left: 0em;
    box-shadow: var(--box-shadow);
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}
#gnb ul.only-pc li:hover .submenu {opacity: 1; visibility: visible;}
#gnb ul.only-pc li .submenu ul {flex-direction: column;}
#gnb ul.only-pc li .submenu ul li {padding: 0;}
#gnb ul.only-pc li .submenu ul li:hover {font-weight: 900;}
#gnb ul.only-pc li .submenu ul li a {padding: .5em 1.5em;}

#gnb ul.only-pc li .submenu ul li.active {color: var(--color-bak);}
#gnb ul.only-pc li .submenu ul li.active a {
    position: relative;
    display: block;
    background: var(--color-main);
    width: calc(100% - 1em);
    left: .5em;
    padding: .6em 1em .4em 1em;
    border-radius: 1em;
}

@media all and (max-width: 1280px) {
    #gnb ul li:hover .submenu {display: none;}
    #gnb ul li:hover .submenu.show {display: block;}
}

#header #logo {max-width: 130px;}
#gn-link img {max-width: 46px; height: auto;}

/* menu toggle btn */
#header .toggle-btn {
    width: 70px;
    height: 70px;
    background: var(--color-bak);
    box-shadow: var(--box-shadow);
    border-radius: 10em;
    display: flex;
    justify-content: center;
    align-items: center;
}
#header .toggle-btn div {
    display: flex;
    width: 31px;
    height: 29px;
    align-content: center;
    gap: 7px;
    flex-wrap: wrap;
}
#header .toggle-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-default);
    border-radius: 1em;
    transition: .3s ease;
}
#header .toggle-btn {
    padding-top: 0;
    padding-bottom: 0;
    right: 0;
    top: -1.1rem;
}
#header .toggle-btn div {overflow: hidden;gap: 5px;}
#header.toggle .toggle-btn span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -5px);
    transform-origin: left;
}
#header.toggle .toggle-btn span:nth-child(2) {
    transform: translate(100%);
}
#header.toggle .toggle-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(1px, 6px);
    transform-origin: left;
}

#header.toggle #gnb {
    opacity: 1;
    visibility: visible;
}

#header i {color: var(--color-main); position: relative; top: -2px;}

/* mobile menu */
@media all and (max-width: 1280px){
    #header {position: fixed;width: 100vw;top: 0;left: 0;transform: none;height: 100vh;pointer-events: none;}
    #header nav {
        display: flex;
        width: 100%;
        height: 65px;
        box-shadow: var(--box-shadow);;
        justify-content: space-between;
        align-items: center;
        padding-left: 1em;
        background: var(--color-bak);
    }
    #header nav .menu-bar {padding: 0; background: none; box-shadow: none;}
    #header .toggle-btn {
        box-shadow: none;
        background: none;
        position: fixed;
        height: 100px;
    }
    #gnb {
        position: fixed;
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        background: var(--color-bak);
        transition: .3s ease;
    }

    #gnb > ul.hide-pc {display: flex !important; width: 100%; flex-direction: column; justify-content: center; padding: 0; pointer-events: none;}
    #gnb > ul.hide-pc > li {display: flex;flex-direction: column;padding: 0; pointer-events: all;}
    #gnb > ul.hide-pc > li > a {display: block; height: unset; padding: .6rem 2rem;}
    #gnb > ul.hide-pc > li > a i {float: right;}
    
    #gnb > ul.hide-pc > li .submenu {display: none;}
    #gnb > ul.hide-pc > li .submenu ul {padding: 0;background: #EFEFEF;display: block;height: max-content;}
    #gnb > ul.hide-pc > li .submenu ul li {/* padding: 2px 1.5em 0 !important; */font-size: var(--small-font-size);}
    #gnb > ul.hide-pc > li .submenu ul li:hover {background: var(--color-grey);}
    #gnb > ul.hide-pc > li .submenu ul li a {position: relative; padding: .4rem 1.5rem;}
    #gnb > ul.hide-pc > li .submenu ul li.active a {font-weight: 900;}
    #gnb > ul.hide-pc > li .submenu ul li.active a::before {
        content: '';
        position: absolute;
        left: 1em;
        top: 16%;
        width: 0;
        height: 60%;
        border-left: 4px solid var(--color-main);
    }
    
    #header .toggle-btn {
        padding-top: 0;
        padding-bottom: 0;
        box-shadow: none;
        background: none;
        position: fixed;
        right: 0;
        top: -1.1rem;
        height: 100px;
    }
    #header .toggle-btn div {overflow: hidden;gap: 5px;}

    #header.toggle nav {height: 100%;}

    #gn_link {position: absolute;bottom: 1.1rem;right: 1.1rem;top: unset;}
}

/* footer */
#footer {
    display: flex;
    width: 100vw;
    height: 200px;
    align-items: center;
    background: #1E3A4B;
    color: #fff;
}
#footer p {padding-left: 3em;}

@media all and (max-width: 768px) {
    #footer {height: 250px;}
    #footer .fix-layout {flex-direction: column;}
    #footer p {padding: 0; padding-top: 3em;}
}

/* popup */
.popup {
    box-shadow: var(--box-shadow);
    border-bottom-left-radius: 2em;
    border-bottom-right-radius: 2em;
    background: #fff;
}

.popup.txt {width: 500px;}
.popup.txt .popup-header {
    position: relative;
    height: 40px;
    background: #d0121b url('/img/popup_header1.png') 0 0 no-repeat;
    background-size: contain;
    z-index: 1;
}
.popup.txt .popup-body {
    margin-top: -10px;
    border: 10px solid #d0121b;
    padding: 1em;
}
.popup.txt .popup-body p {margin-bottom: 0;}
.popup.txt.type2 .popup-header {background: #333 url('/img/popup_header2.png') 0 0 no-repeat; background-size: contain;}
.popup.txt.type2 .popup-body {border: 10px solid #333; overflow-wrap: anywhere;}
.popup .popup-footer {
    display: flex;
    border-top: 1px solid var(--color-grey);
    color: var(--color-default);
}
.popup .popup-footer > * {width: 50%;text-align: center;padding: 1em 0;color: inherit; font-size: 1rem;}
.popup .popup-footer > form {border-right: 1px solid var(--color-grey);}
.popup [type="checkbox"] {display: none;}

@media all and (min-width: 800px){
    .popup {max-width: 800px !important;}
}

.modal-content iframe {width: 100% !important; height: 500px;}
@media all and (max-width: 768px) {
    .popup {left: 0 !important; right: 0 !important}
    .modal-content iframe {height: 300px;}
}