*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

ul {
    list-style-type: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto 150px;
}

/*header, aside 시작 */
header {
    width: 100%;
    padding: 20px 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 9px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 200px;
    height: 40px;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.main-nav {
    width: 770px;
    font-size: 1.25rem;
    display: flex;
    font-weight: bold;
    align-items: center;
    justify-content: flex-end;
}

.main-nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    width: 100%;
}

.main-nav ul li a {
    color: #000;
    font-size: 1.25rem;
    font-weight: 500;
}

/* 햄버거 버튼 */
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

/* aside 메뉴 스타일 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    transition: left 0.4s ease-in-out;
    z-index: 1000;
}

.mobile-menu.active {
    left: 0;
}

.menu-inner {
    padding: 60px 45px 20px;
}

.mobile-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu nav ul li {
    margin-bottom: 16px;
}

.mobile-menu nav ul li a {
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 15px 0;
}

.mobile-menu ul ul {
    display: block !important;
    /* 항상 펼쳐진 상태 유지 */
    margin-left: 0;
}

/* 어두운 배경 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
}

.overlay.active {
    display: block;
}

.has-submenu>a {
    position: relative;
}

.submenu {
    display: none;
    padding-left: 20px;
    /* 들여쓰기 */
    margin-top: 8px;
}

.submenu li {
    margin: 5px 0;
}

.has-submenu .submenu li a {
    font-size: 0.875rem;
    /* 약간 작은 폰트 (14px) */
    color: #666;
    display: block;
    padding-left: 10px;
    /* 추가 들여쓰기 */
    font-size: 1rem;
    /* 약 12px */
}

.has-submenu.open .submenu {
    display: block;
}

@media (max-width: 768px) {
    header {
        padding: .5rem 0;
    }

    .menu-inner {
        padding: 2rem 2.5rem 2rem;
    }

    .nav-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 28px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 11;
    }

    .logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .logo img {
        height: 36px;
        max-width: 160px;
    }

    .main-nav {
        display: none;
    }
}

/* 모바일 메뉴 (aside) */
/*header, aside 끝 */

/* footer 시작 */
footer {
    width: 100%;
    padding: 20px 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
    color: #fff;
    background-color: #313131;
    padding-bottom: 50px;
}

/* 공통 설정 */
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
}

.footer-menu,
.footer-info-wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info-wrap {
    padding-top: 40px;
}

/* footer-menu 내 정렬 */
.footer-menu {
    align-items: center;
    padding-bottom: 30px;
}

.footer-nav {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    width: 535px;
    height: 40px;
    gap: 16px;
}

.footer-nav li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.footer-info {
    flex: 1;
    min-width: 260px;
}

.footer-info p {
    font-size: .9rem;
    color: #ddd;
    margin: 10px 0;
    word-break: keep-all;
}

.footer-link {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 200px;
    gap: 10px;
    color: #fff;
}

.footer-link-wrap img {
    margin-left: 6px;
}

.footer-gen {
    font-size: 2rem;
    color: #B7F64F;
    font-weight: bold;
}

/* 브라우저 전체 가로 border */
.footer-divider {
    width: 100vw;
    height: 1px;
    background-color: #fff;
    margin: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
}

@media screen and (max-width: 768px) {
    .footer-inner {
        padding: 0 5px;
    }

    .footer-menu,
    .footer-info-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding-bottom: 25px;
    }

    .footer-menu .logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .footer-nav {
        flex-direction: row;
        /* 가로 정렬 유지 */
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: auto;
        gap: 10px;
        margin-top: 10px;
    }

    .footer-nav li {
        margin: 0 6px;
    }

    .footer-nav li a {
        font-size: 0.85rem;
        /* 폰트 크기 줄이기 */
        white-space: nowrap;
    }

    .footer-info-wrap {
        padding-top: 30px;
    }

    .footer-link {
        order: -1;
        /* 위로 이동 */
        align-items: center;
    }

    .footer-link-wrap {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .footer-link-wrap img {
        margin: 0;
    }

    .footer-gen {
        font-size: 1.5rem;
        margin-top: 10px;
    }

    .footer-info {
        width: 100%;
    }

    .footer-info p {
        font-size: 0.9rem;
        word-break: keep-all;
        line-height: 1.5;
    }

    .footer-divider {
        width: 100%;
        margin: 0;
        position: relative;
        left: 0;
        right: 0;
        margin-left: 0;
    }

    .footer-txt-mobile {
        display: block;
        width: 100%;
    }

    .footer-txt-mobile-none {
        display: none;
    }
}

/* footer 끝 */

.mr-10 {
    margin-right: 10px !important;
}

.ml-20 {
    margin-left: 20px !important;
}

.b_title {
    margin: 0;
    margin-top: 100px;
    font-size: 2.25rem;
    color: #616161;
    text-align: center;
}

.g_title {
    margin: 1rem 0 0;
    font-size: 1.75rem;
    color: #72AC14;
    text-align: center;
}

/* 반응형 */
@media screen and (max-width: 768px) {
    .b_title {
        margin-top: 4rem;
        font-size: 1.75rem;
    }

    .g_title {
        font-size: 1.25rem;
    }
}

/* 숫자/영문 전용 스타일 */
.digit {
    font-family: "Outfit", sans-serif;
}

.page-info-wrap {
    width: 100%;
    height: 350px;
    background-color: #92C938;
    display: flex;
    justify-content: center;
    /* 수평 중앙 */
    align-items: center;
    /* 수직 중앙 */
    flex-direction: column;
    /* 세로 방향 정렬 */
    text-align: center;
    padding: 0 20px;
}

/* 타이틀 */
.page-info-title {
    font-size: 4rem;
    color: #fff;
    margin-block-start: 0;
    margin-bottom: 60px;
    animation: fadeInTitle 1s ease-in-out;
}

/* breadcrumb */
.page-info-breadcrumb {
    display: flex;
    gap: 5px;
    font-size: 1rem;
    color: #fff;
}

.page-info-breadcrumb a,
.page-info-breadcrumb .page-info-location {
    color: #fff;
    text-decoration: none;
}

.page-info-breadcrumb a:hover {
    text-decoration: underline;
}

/* 반응형 */
@media screen and (max-width: 768px) {
    .page-info-wrap {
        height: 200px;
        padding: 0;
    }

    .page-info-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .page-info-breadcrumb {
        font-size: 0.875rem;
    }
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* address modal start */
.address_api_layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1060;
    display: none;
}

.address_api_layer .close {
    cursor: pointer;
    border: 0;
    background: #fff;
}

.address_api_layer_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1061;
    animation: fadeIn 0.5s ease;
}

.address_api_layer_body {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    z-index: 1062;
    /* 오버레이보다 위 */
    animation: slideFadeIn 0.5s ease;
}

.address_api_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #DDDDDD;
    margin-bottom: 1rem;
}

.address_api_title {
    margin-top: 0;
}

.address_api_footer {
    margin-top: 1rem
}

.justify-content-between {
    display: flex;
    justify-content: space-between;
}

.address_api_footer .btn-default {
    font-size: 1rem;
    padding: .5rem 1rem;
    background: #fff;
    border: 1px solid #d2d2d2;
    border-radius: .25rem;
    cursor: pointer;
}

.address_api_footer .btn-default:hover {
    color: #444;
    background: #e9ecef;
}

.modal_address_detail_layer {
    display: none;
}

.modal_address_detail_layer_inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    background: white;
    border-radius: 10px;
    padding: 40px 20px;
    z-index: 1063;
    animation: slideFadeIn 0.5s ease;
}

.modal_address_detail_layer .btn-default {
    color: #999;
}

.modal_address_detail_layer .btn-submit {
    background: #91C53C;
    color: #fff;
}

.modal_address_detail_layer_box {
    display: block;
    width: 100%;
    height: 5rem;
}

.modal_address_detail_layer_box input {
    width: 560px;
    padding: .75rem;
}

.modal_address_detail_layer_box_flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal_address_detail_layer_box_flex button {
    padding: .5rem 3rem;
    background: #fff;
    border: 1px solid #d2d2d2;
    border-radius: 10px;
    font-size: 1.5rem;
}

.modal_address_detail {
    position: absolute;
    z-index: 1063;
    background: #fff;
    padding: .5rem 1rem;
    font-size: 1.5rem;
    border: 1px solid #d2d2d2;
    border-radius: 7px;
}

.modal_address_detail_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1062;
    animation: fadeIn 0.5s ease;
}

/* fade in 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 모달 등장 애니메이션 (슬라이드 + 페이드) */
@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.address_api_layer .tabs {
    margin-top: 0px;
}

.address_api_layer .tabs ul {
    margin-bottom: 15px;
    padding: 0;
}

.address_api_layer .tabs>ul>li {
    font-size: 1rem;
}

.adress-input-bx {
    display: flex;
    align-items: center;
}

.adress-input-bx>p {
    flex: 20% 0 0;
}

.adress-input-bx .item {
    flex: 80% 0 0;
}

.adress-input-bx .item .input-Bx {
    border: 1px solid #DDDDDD;
    border-radius: 5px;
    padding: 5px 15px 5px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adress-input-bx .item .input-Bx input {
    border: none;
    flex: 90% 0 0;
    padding: .5rem;
}

.address_key_txt:focus {
    outline: none;
    box-shadow: none;
}

.adress-input-bx .item .input-Bx button.Srh-B {
    background: url(/img/icon-search.png)no-repeat;
    background-size: 21px 21px;
    text-indent: -9999px;
    width: 21px;
    height: 21px;
    border: 0;
}

.adress-input-bx .item em {
    font-style: normal;
    color: #999999;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.adress-result {
    border-top: 1px solid #DDDDDD;
    border-bottom: 1px solid #DDDDDD;
    margin-top: 10px;
    padding: 0;
}

.adress-result>p {
    margin: 15px 0;
    text-align: center;
    color: #999999;
    font-size: 18px;
}

.adress-result .tip-bx {
    background: #F7F7F7;
    border-radius: 5px;
    padding: 10px 20px;
}

.adress-result .tip-bx h4 {
    color: #536283;
    font-size: 20px;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 5px;
}

.adress-result .tip-bx>p {
    font-size: 18px;
    color: #666666;
}

.adress-result .tip-bx ul {
    font-size: 18px;
}

.adress-result .tip-bx ul li {
    font-size: 1rem;
    list-style: none;
    padding: 0;
}

.adress-result .tip-bx ul li p {
    margin-bottom: 0px;
    color: #666666;
}

.adress-result .tip-bx ul li em {
    font-style: normal;
    color: #8092BA;
}

/* 결과값 */
.result {
    min-height: 200px;
    max-height: 420px;
    overflow-y: scroll;
}

.result ul {
    margin: 0 !important;
}

.result ul li {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 15px 20px 15px 0;
    border-bottom: 1px solid #DDDDDD;
    cursor: pointer;
}

.result ul li:hover span {
    color: #536283;
    font-weight: 400;
}

.result ul li:last-child {
    border: none;
    padding-bottom: 0;
}

.result ul li>em {
    display: block;
    font-style: normal;
    font-size: 14px;
    color: #999999;
    flex: 15% 0 0;
}

.result ul li>.result-adress {
    flex: 80% 0 0;
}

.result-address-none {
    flex: 100% 0 0 !important;
    display: flex;
    align-items: center;
    min-height: 200px;
    justify-content: center;
    padding-bottom: 20px;
}

.result ul li>.result-adress span {
    display: block;
    font-size: 16px;
}

.result ul li>.result-adress em {
    font-style: normal;
    color: #999999;
    font-size: 14px;
}

/* 모바일 화면 대응 */
@media (max-width: 768px) {
    .address_api_layer_body {
        width: 96%;
        padding: 15px;
    }

    .address_api_title {
        font-size: 1.2rem;
    }

    .adress-input-bx>p {
        margin-bottom: .2rem;
    }

    .adress-input-bx {
        align-items: flex-start;
        flex-direction: column;
    }

    .adress-result>p {
        margin: 5px 0;
        font-size: .9rem;
    }

    .adress-result .tip-bx {
        padding: 10px 15px;
    }

    .adress-result .tip-bx>p {
        font-size: .9rem;
    }

    .adress-result .tip-bx ul {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .adress-result .tip-bx ul li {
        font-size: .9rem;
    }

    .address_api_footer {
        margin-top: .5rem;
    }

    .result ul li {
        padding: 5px 5px 5px 0;
    }

    .result ul li>em {
        display: none;
    }

    .result ul li>.result-adress {
        flex: 100% 0 0;
    }

    .modal_address_detail_layer_inner {
        padding: 20px 4%;
        width: 92%;
    }
    .modal_address_detail_layer_box {
        height:5rem;
    }
    .modal_address_detail_layer_box input {
        width:91%;
    }
}