* {
    --common-width : 1000px; /* 최대넓이 */
    --header-height: 6rem; /* 상단바 높이 */
    --footer-height: 6.5rem; /* 하단바 높이 */
    --common-color : #fff;
}
body {background-color: var(--common-color);}
main {
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    max-width: var(--common-width);
    padding-top: var(--header-height);
    padding-bottom: 1rem;
    background-color: var(--common-color);
    transition: .3s cubic-bezier(.1,.46,.65,1.09);
}
header {
    width: 100%;
    z-index: 100;
    position: fixed;
    left: 50%;top: 0;
    transform: translateX(-50%);
    height: var(--header-height);
    max-width: var(--common-width);
    border-bottom: 1px solid #eee;
    background: var(--common-color) url(../img/top-img.png) no-repeat center / cover;
    transition: .3s cubic-bezier(.1,.46,.65,1.09);
    display: flex;justify-content: space-between;align-items: center;
}
header h1 {color: #383838;line-height: 1.4;font-size: 1.8rem;}
header .logo {height: calc(var(--header-height) / 3);width: fit-content;object-fit: contain;margin: 0 1.5rem;}
header .open {cursor: pointer;width: var(--header-height);height: var(--header-height);background:url('../img/btn-menu.png') no-repeat center / 2rem;}


/* 스크롤 효과 */
body.scroll header {top: calc(var(--header-height) * -1);}
body.scroll footer {bottom: calc(var(--header-height) * -1);}



/* 햄버거 기능 */
nav .inner {
    transition: all .5s cubic-bezier(0.175, 0.885, 0.32, 1);
    background-color: #fff;
    overflow-y: scroll;
    position:fixed;
    z-index: 1000;
    right:-100%;
    height:100%;
    width:70%;
    top:0;
}
nav .outer {
    z-index: 999;
    display: none;
    position: fixed;
    left: 0;top: 0;width: 100%;height: 100%;
    background-color: rgba(0, 0, 0, .3);
}
nav.on .inner {right: 0;}
nav.on .outer {display: block;}
nav .nav_header {
    position: relative;
    height: var(--header-height);
    display: flex;align-items: center;justify-content:end;
}
nav .nav_header img {
    height: calc(var(--header-height) / 3);
    width: fit-content;
    object-fit: contain;
    margin: 0 1.5rem;
}
nav .nav_header .close {
    opacity: .5;
    cursor: pointer;
    width: var(--header-height);
    height: var(--header-height);
    background:url('../img/close.png') no-repeat center / 2rem;
}
nav .content {
    width: 100%;height: calc(100% - var(--header-height));
}
nav .content p {
    color: #222;
    line-height: 1.4;
    font-weight: 900;
    font-size: 1.8rem;
    margin: 2rem 1.5rem 1.5rem;
}
nav .content p:nth-of-type(2) {margin-top: 3rem;}
nav .content li a {
    height: 7rem;width: 100%;
    padding-left: 6rem;
    color: #151618;
    line-height: 1.4;
    font-weight: bold;
    font-size: 1.8rem;
    border-bottom: 1px solid #d1d1d1;
    display: flex;align-items: center;
    background: url(../img/menu-icon.png) no-repeat 3rem center / 1.5rem;
}
nav .content li:first-of-type a {border-top: 1px solid #d1d1d1;}
nav .content li a.on {
    background-color: #c5cfe2;
}










/* 하단바 */
footer {
    width: 100%;
    z-index: 100;
    position: fixed;
    left: 50%;bottom: 0;
    background-color: var(--common-color);
    height:var(--footer-height);
    transform: translateX(-50%);
    max-width: var(--common-width);
    transition: .3s cubic-bezier(.1,.46,.65,1.09);
}
footer ul {display: flex;justify-content: space-between;align-items: center;height: 100%;width: 100%;}
footer li {height: 100%;width: 100%;}
footer a {
    color: #333;
    font-size: 1.4rem;
    padding-top: 2.6rem;
    position: relative;
    height: 100%;width: 100%;
    transition: .3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;justify-content: center;align-items: center;
}
footer a.on {color: #15b07c;}
footer a::before {content: "";position: absolute;left: 50%;top:1rem;transform: translateX(-50%);width: 2rem;height: 2rem;}
footer li:nth-of-type(1) a::before {background: url(../img/menu-btn-off-1.png) no-repeat center / contain;}
footer li:nth-of-type(2) a::before {background: url(../img/menu-btn-off-2.png) no-repeat center / contain;}
footer li:nth-of-type(3) a::before {background: url(../img/menu-btn-off-3.png) no-repeat center / contain;}
footer li:nth-of-type(1) a.on::before {background: url(../img/menu-btn-on-1.png) no-repeat center / contain;}
footer li:nth-of-type(2) a.on::before {background: url(../img/menu-btn-on-2.png) no-repeat center / contain;}
footer li:nth-of-type(3) a.on::before {background: url(../img/menu-btn-on-3.png) no-repeat center / contain;}





/* ================ */
.common_h2 {
    color: #333;
    font-size: 2rem;
    font-weight: 900;
    margin: 2rem 1.5rem 1rem;
    display: flex;align-items: center;gap: .5rem;
}
.common_h3 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 3rem 1.5rem 1rem;
    display: flex;align-items: center;gap: .5rem;
}
.common_h2 b, .common_h3 b {
    line-height: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: #0e46a3;
}
.common_p {
    color: #333;
    margin: 0 1.5re,;
    line-height: 1.2;
    font-size: 1.4rem;
    margin: 0 1.5rem 3rem;
}




/* ================ */
#home {}
#home .common_h2 {
    margin-top: 4rem;
}
.tbB {
    margin: 1rem 1.5rem 3rem;
    max-height: 35rem;
    overflow-y: scroll;
}
.tbB::-webkit-scrollbar {
    background-color: #eee;
    width: .3rem;
}
.tbB::-webkit-scrollbar-thumb {background-color: #00679d;}
.tbB li {
    display: flex;align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.tbB li p {
    color: #333;
}
.tbB li p b {
    line-height: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
}
.tbB li p:nth-of-type(1){
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    width: 5%;
    margin-left: 2rem;
}
.tbB li p.warn {
    color: #fff;
    min-width: 8rem;
    width: fit-content;
    font-size: 1.4rem;
    padding: .5rem 1rem;
    margin: 0;
    border-radius: .2rem;
    background-color: #27599b;
}
.tbB li p.warn1 {background-color: #f56965;}
.tbB li p.warn2 {background-color: #14a476;}
.tbB li p.warn3 {background-color: #f56965;}
.tbB li p.warn4 {background-color: #939393;}
.tbB li p.warn5 {background-color: #00679d;}
.tbB li p.warn6 {background-color: #00679d;}
.tbB li p:nth-of-type(2){
    width: 35%;
    font-weight: bold;
    line-height: 1.4;
    font-size: 1.5rem;
    text-align: center;
    word-break: break-all;
}
.tbB li p:nth-of-type(2) b {
    display: block;
}
.tbB li p:nth-of-type(3){
    display: flex;justify-content: space-between;align-items: center;
    width: 65%;
    font-weight: bold;
    font-size: 1.6rem;
}
.tbB li p:nth-of-type(3) b {
    color: #333;
    width: 50%;
    font-size: inherit;
    text-align: center;
    padding: .5rem 0;
    border-radius: .2rem;
}
/* .tbB li.green p:nth-of-type(3) b {
    background-color: #14a476;
}
.tbB li.red p:nth-of-type(3) b {
    background-color: #f56965;
} */






/* tabs1 */
#tabs1 {
    padding: 2rem 1.5rem 0;
    border-top: 5px solid #dfe8f7;
    width: 100%;height: var(--header-height);
    display: flex;justify-content: space-between;align-items: center;
}
#tabs1 .tab1 {
    width: 30%;
    color: #a7a7a8;
    padding: .7rem 0;
    font-size: 1.8rem;
    font-weight: bold;
    position: relative;
    text-align: center;
    border-radius: 10rem;
    border: 1px solid #a5a5a6;
    display: flex;justify-content: center;align-items: center;
}
#tabs1 .tab1.on {
    color: #fff;
    background-color: #0e46a3;
    box-shadow: .15rem .2rem .3rem rgba(0, 0, 0, .2);
}
#tabs1 .search {
    width: 5rem;
    height: 100%;
    display: flex;
    align-items: center;
}
#tabs1 .search img {
    width: 100%;
    height: 4rem;
    padding: .5rem;
    object-fit: contain;
}





/* tabs2 */
#tabs2 {
    border-top: 5px solid #dfe8f7;
    padding: 2rem 1.5rem;
    display: flex;gap: .5rem;
    align-items: center;
}
#tabs2 .tab2 {
    color: #bbbbbc;
    font-size: 2rem;
    font-weight: 800;
    padding-right: 1.5rem;
}
#tabs2 .tab2.on {
    color: #053f9f;
}
#coin #tabs2 {
    border-top: none;
    margin-top: 5rem;
}




/* table */
.table_wrap {
    overflow-y: auto;
    max-height: 35rem;
    margin: 0 1.5rem 5rem;
}
.table_wrap::-webkit-scrollbar {
    background-color: #eee;
    width: .3rem;
}
.table_wrap::-webkit-scrollbar-thumb {background-color: #00679d;}
#table {width: 100%;border-collapse: collapse;}
#table .labels {
    top: 0;
    z-index: 1;
    position: sticky;
    padding-right: .3rem;
    background-color: #fff;
    position: relative;
}
#table .labels::after {
    content: "";
    position: absolute;
    left: 0;top: 0;
    border-radius: .5rem;
    border: 1px solid #7e8ea1;
    width: calc(100% - 3px);height: 100%;
    z-index: -1;
}
#table .labels th {
    font-weight: bold;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 1rem 0;
    color: #003b9e;
}
#table .labels th img {width: .8rem;margin-left: .5rem;}
#table td {
    border-bottom: 1px solid #eee;
    word-break: break-all;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.2;
    cursor: pointer;
    padding: 1rem 0;
    color: #333;
}
#table .labels th:first-of-type {border-left: none;width: 30%;}











/* 배너 */
.banners {display: grid;gap: 1rem;margin: 2rem 1.5rem 4rem;grid-template-columns: repeat(3, 1fr);}
.banners a {
    display: flex;flex-direction: column;justify-content: space-between;
    overflow: hidden;
    border-radius: .5rem;
    padding: 1rem;
    box-shadow: .1rem .15rem .3rem rgba(0, 0, 0, .3);
    width: 100%;
    min-height: 12rem;
    font-size: 1.6rem;
    font-weight: bold;
    color: #1b1c1e;
    line-height: 1.4;
}
.banners a img {
    display: block;
    margin: 0 0 0 auto;
    object-fit: contain;
    height: 4rem;width: 5rem;
}



/* qna */
.toggle {margin: 1.5rem;border: 1px solid #c0c0c1;border-radius:.5rem;overflow: hidden;display: block;}
.toggle span {display: block;}
.toggle .ques {cursor: pointer;color: #1b1c1e;font-weight: bold;line-height: 1.4;font-size: 1.6rem;padding: 1.5rem 4rem 1.5rem 1.5rem;background: url(../img/arrow-down.png) no-repeat calc(100% - 2rem) center / 1.5rem;}
.toggle .ans {color: #212225;display: none;line-height: 1.4;font-size: 1.6rem;padding: 1.5rem;border-top: 1px solid #c0c0c1;background-color: #dfe8f7;}
.toggle .ans b {
    line-height: inherit;
    font-weight: 800;
    font-size: inherit;
    color: #323437;
}
.toggle.on .ques {background: url(../img/arrow-up.png) no-repeat calc(100% - 2rem) center / 1.5rem;}
.toggle.on .ans {display: block;}
.toggle:first-of-type {margin-top: 2rem;}
#qna p {color: #333;margin-left: 3.8rem;font-size: 1.4rem;}


.paging {display: flex;justify-content: center;}
.paging a {margin: 0 0 2rem;padding: 1rem;color: #8697ae;font-size: 1.6rem;}
.paging a.on {font-weight: 800;color: #333;}


.warn1 {background-color: #f56965 !important;}
.warn2 {background-color: #14a476 !important;}
.warn3 {background-color: #f56965 !important;}
.warn4 {background-color: #939393 !important;}
.warn5 {background-color: #00679d !important;}
.warn6 {background-color: #00679d !important;}


/* coin */
#coin {}
#coin .title {
    padding: 1.5rem;
    background-color: #dfe8f7;
    display: flex;justify-content: space-between;
}
#coin .warn {
    width: fit-content;
    line-height: inherit;
    padding: .4rem 1rem;
    border-radius: 10rem;
    font-weight: normal;
    font-size: 1.4rem;
    color: #fff;
    height: fit-content;
}
#coin .title .left {width: 50%;}
#coin .title .right {width: 50%;
    gap: .5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    align-content: flex-start;
}
#coin h2 {
    color: #333;
    font-weight: 800;
    line-height: 1.2;
    font-size: 1.8rem;
    display: flex;align-items: center;justify-content: start;
}
#coin .title h2 b {
    background-color: #f56965;
    line-height: inherit;
    padding: .4rem 1rem;
    border-radius: .1rem;
    border-radius: 10rem;
    font-weight: normal;
    margin-left: 1rem;
    font-size: 1.4rem;
    color: #fff;
}
#coin h3 {
    display: flex;justify-content: space-between;align-items: center;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.4;
    color: #333;
}
#coin h4 {
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.4;
    color: #333;
}
#coin .desc {
    font-weight: 300;
    margin: 0 1.5rem;
}


#favorite {
    display: block;
    height: 3rem;width: 3rem;
    background: url(../img/favo-off.png) no-repeat center 30% / 2rem;
}
#favorite.on {
    background: url(../img/favo-on.png) no-repeat center 30% / 2rem;
    animation: fabo_ani .3s cubic-bezier(0.075, 0.82, 0.165, 1);
}
@keyframes fabo_ani {
    0% {background-size: 2rem;}
    40% {background-size: 2.5rem;}
    100% {background-size: 2rem;}
}
#coin .scores {
    display: flex;gap: .5rem;margin: 1rem 1.5rem;
    justify-content: space-between;
}
#coin .scores p {
    color: #333;
    word-break: break-all;
    width: fit-content;
    font-size: 1.6rem;
    font-weight: bold;
    display: flex;
}
#coin .scores p b {
    line-height: inherit;
    font-weight: 800;
    font-size: inherit;
    color: inherit;
    margin-right: .5rem;
}
#coin .scores p:nth-of-type(1) b {color: #1a1b1d;}
#coin .scores p:nth-of-type(2) b {color: #00389c;}
#coin .scores p:nth-of-type(3) b {color: #f5635f;}
#coin .banner {display: block;margin: 1.5rem 1.5rem 6rem;}
#coin .banner img {width: 100%;}
#tabForm {
    position: relative;
}
#tabForm select {
    border: 1px solid #1a1b1d;
    background:url(../img/arrow-down.png) no-repeat calc(100% - 1rem) center / 1.3rem;
    border-radius: 10rem;
    font-size: 1.6rem;
    padding: .5rem 3rem .5rem 5rem;
}
#tabForm .select_name {
    content: "구분";
    font-size: 1.6rem;
    position: absolute;
    left: 1rem;
    top: 50%;
    font-weight: bold;
    color: #222;
    transform: translateY(-50%);
}
#tabForm select option {font-size: 1.6rem;background-color: #dfe8f7;color: #053f9f;}
.chart {
    display: block;
    margin: 0 auto 2rem;
    width: calc(100% - 3rem);
}






/* search.php */
#search {
    display: flex;flex-direction: column;
}
#search .content1 {order: 1;}
#search .content2 {order: 2;}
#search .content3 {order: 3;}
#searchForm {margin: 2rem 1.5rem;position: relative;height: 4rem;}
#searchForm input[type="text"] {width: 100%;height: 100%;padding: 0 7rem 0 1.5rem;color: #333;font-size: 1.6rem;border: 2px solid #111;}
#searchForm input[type="text"]::placeholder {color: #666;}
#searchForm input[type="submit"] {position: absolute;top: 0;right: 0;height: 100%;width: 6rem;background: #111 url(../img/search.png) no-repeat center / 2rem;}


#search ul li a {line-height: inherit;font-weight: inherit;font-size: inherit;color: inherit;width: 100%;margin-right: 1rem;}


#search .history {margin: 0 1.5rem;display: flex;flex-wrap: wrap;gap: 1rem;}
#search .history li {max-width: 50%;width: fit-content;color: #111;line-height: 1.2;font-size: 1.6rem;padding: .6rem 1rem .4rem;border-radius: 10rem;background-color: #efefef;display: flex;align-items: center;}
#search .history li a {width: calc(100% - 3rem);}
#search .history li .del {height: 2rem;display: block;background: url(../img/close1.png) no-repeat center / 1.3rem;width: 2rem;object-fit: contain;}


#search .result {margin: 1.5rem;}
#search .result li {
    width: 100%;
    display: flex;
    word-break: break-all;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #c0c0c1;
}
#search .result li p {
    line-height: 1.2;
    font-weight: bold;
    font-size: 1.6rem;
    color: #1a1b1d;
    display: block;
}
#search .result li p:nth-of-type(1) {width: 40%;}
#search .result li p:nth-of-type(2) {width: 60%;display: flex;align-items: center;justify-content: space-between;}
#search .result li b {
    line-height: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    width: 50%;
    text-align: center;
}
#search .result li em {
    display: block;
    width: fit-content;
    background-color: #f56965;
    line-height: inherit;
    padding: .4rem 1rem;
    border-radius: .1rem;
    border-radius: 10rem;
    font-weight: normal;
    font-size: 1.4rem;
    margin-top: .5rem;
    color: #fff;
}




.search_swiper {padding: 1.5rem;}
.search_swiper .swiper-wrapper {height: fit-content;}
.search_swiper .swiper-slide {padding: 3rem 1.5rem;border-radius: 1.5rem;display: flex;align-items: center;background: linear-gradient(90deg, #0d4c47 0%, transparent 100%);}
.search_swiper .swiper-slide p {color: #333;}
.search_swiper .swiper-slide em {line-height: inherit;font-weight: inherit;font-size: inherit;color: #666;display: block;}
.search_swiper .swiper-slide p:nth-of-type(1) {text-align: center;margin-right: 2rem;font-size: 2.2rem;font-weight: bold;width: 10%;}
.search_swiper .swiper-slide p:nth-of-type(2) {width: 35%;font-weight: 300;line-height: 1.4;font-size: 1.5rem;word-break: break-all;}
.search_swiper .swiper-slide p:nth-of-type(3) {display: flex;justify-content: space-between;align-items: center;gap: 1rem;font-size: 1.6rem;width: 65%;}
.search_swiper .swiper-slide b {color: #333;min-width: 7rem;text-align: center;width: fit-content;font-size: 1.4rem;padding: .5rem 0;word-break: break-all;border-radius: .3rem;background-color: #27599b;}
.search_swiper .swiper-slide b.green {background-color: #14a476;}
.search_swiper .swiper-slide b.red {background-color: #f56965;}










/* 띠형 자동슬라이드 */
#line_slider {
    width: 100%;
    display: block;
    margin-top: 1rem;
    overflow: hidden;
    background-color: #0e46a3;
}
#line_slider .line_slide {
    color: #fff;
    padding: 1rem 1.5rem;
    font-size: 1.4rem;
}
#line_slider .line_slider_in {
    width: max-content;
    position: relative;
    display: flex;align-items: center;
    animation: 30s line_slider linear infinite;
}

@keyframes line_slider {
    0% {
        transform: translateX(90vw);
    }
    100% {
        transform: translateX(-100%);
    }
}


