@charset "UTF-8";

html {
    scroll-behavior: smooth;
}

html,
body {
    font-family: Pretendard !important;
}


.link-unstyled {
    color: inherit;
    text-decoration: none;
}

.link-unstyled:hover {
    color: inherit;
    text-decoration: none;
}


/* 글자 확대 모드 */
html.font-zoom {
    font-size: 18px;
}

/* 기본 */
html {
    font-size: 16px;
    transition: font-size .25s ease;
}

.fw-bold-extra {
    font-weight: 900!important
}

.quick-menu {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 공통 버튼 */
.quick-btn,
.quick-top {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 0;

    background: rgba(0, 0, 0, .5);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all .25s ease;
    cursor: pointer;
    text-decoration: none;
}

:root[data-bs-theme="dark"] .quick-btn,
.quick-top {
    background: rgba(0, 0, 0, .8);
}

/* 이미지 */
.quick-btn img,
.quick-top img {
    width: 48px;
    height: 48px;
    object-fit: contain;

    transition: transform .25s ease;
}

/* hover */
.quick-btn:hover {
    transform: translateY(-3px);
}

.quick-btn:hover img {
    transform: scale(1.08);
}

/* 각각 hover 컬러 */
.quick-btn.pen:hover {
    background: #111;
}

.quick-btn.insta:hover {
    background: linear-gradient(45deg,
            #f9ce34,
            #ee2a7b,
            #6228d7);
}

.quick-btn.youtube:hover {
    background: #ff0000;
}

.quick-btn.facebook:hover {
    background: #1877f2;
}

.quick-btn.share:hover {
    background: #00b894;
}

.quick-btn.print:hover {
    background: #555;
}

/* TOP 버튼 */
.quick-top {
    margin-top: 10px;
    background: #fff;
    border: 1px solid #ddd;
}

:root[data-bs-theme="dark"] .quick-top {
    background: #333;
    border: 1px solid #000;
}

.quick-top:hover {
    background: #111;
}

/* 기본 이미지 */
.quick-top img {
    content: url('../images/common/icon_q_top.png');
}

:root[data-bs-theme="dark"] .quick-top img {
    content: url('../images/common/icon_q_top_w.png');
}

/* hover 이미지 변경 */
.quick-top:hover img {
    content: url('../images/common/icon_q_top_w.png');
}

:root[data-bs-theme="dark"] .footer-logo img {
  content: url(../images/common/img_kcca_logo_footer_w.png);
}

:root[data-bs-theme="dark"] .footer-sns .sns_1 img {
  content: url(../images/common/icon_footer_insta_w.png);
}

:root[data-bs-theme="dark"] .footer-sns .sns_2 img {
  content: url(../images/common/icon_footer_youtube_w.png);
}

:root[data-bs-theme="dark"] .footer-sns .sns_3 img {
  content: url(../images/common/icon_footer_facebook_w.png);
}

:root[data-bs-theme="dark"] .footer-sns .sns_4 img {
  content: url(../images/common/icon_footer_blog_w.png);
}

:root[data-bs-theme="dark"] .footer-item, :root[data-bs-theme="dark"] .footer-text {
    color: #fff;
}

/* 모바일 */
@media (max-width: 768px) {

    .quick-menu {
        pointer-events: none;
        position: fixed;
        right: 16px;
        bottom: 20px;
        z-index: 999;
        transition: all .3s ease;
    }

    /* 숨김 상태 */
    .quick-menu.hide {
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        pointer-events: none;
    }

    .quick-btn,
    .quick-top {
        width: 48px;
        height: 48px;
    }

    .quick-btn img,
    .quick-top img {
        width: 48px;
        height: 48px;
    }

}

/* 퀵 버튼 */
.quick-btn,
.quick-top {
    position: relative;
}

/* 말풍선 */
.quick-btn::before,
.quick-top::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 999px;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    pointer-events: none;
}

.quick-btn:hover::before,
.quick-btn:hover::after,
.quick-top:hover::before,
.quick-top:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 모바일 토글 버튼 */
.quick-toggle{
    width: 48px;
    height: 48px;
    display: none;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    background:none;
    border:0;
    cursor:pointer;
    background: rgba(0,0,0,.8);
    border-radius: 50%;
}

.quick-toggle span{
    width:6px;
    height:6px;
    border-radius:50%;
    background:#fff;
    display:block;
}

/* 모바일 */
@media (max-width: 768px) {

    .quick-menu {
        right: 12px;
        bottom: 20px;
        top: auto;

        transform: none;
    }

    /* 토글 버튼 보이기 */
    .quick-toggle {
        display: flex;
        order: 999;
        pointer-events: auto;
    }

    /* 기본 숨김 */
    .quick-btn,
    .quick-top {
        opacity: 0;
        visibility: hidden;

        transform: translateY(10px);

        pointer-events: none;
    }

    /* 열렸을 때 */
    .quick-menu.active .quick-btn,
    .quick-menu.active .quick-top {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }


    .quick-menu.active {
        pointer-events: auto;
    }

    /* 토글은 항상 보이기 */
    .quick-menu .quick-toggle {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .quick-menu a,
    .quick-menu button {
        pointer-events: auto;
        touch-action: manipulation;
    }

    /* X 모양 */
    .quick-menu.active .quick-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .quick-menu.active .quick-toggle span:nth-child(2) {
        opacity: 0;
    }

    .quick-menu.active .quick-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* 모바일 말풍선 제거 */
    .quick-btn::before,
    .quick-top::before {
        display: none;
    }
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    transition: .3s ease;
}

.main-header::before {
    content: '';
    position: absolute;
    inset: 0;

    z-index: -1;
}

[data-bs-theme="dark"] .main-header::before {
    background: rgba(0, 0, 0, .72);
    border-color: rgba(255, 255, 255, .08);
}

.header-inner {
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-main {
    font-size: 2rem;
    letter-spacing: -0.03em;
    font-weight: 300;
    line-height: 1;
}

.logo-main .point {
    font-weight: 800;
}

.logo-sub {
    font-size: 1rem;
    font-weight: 300;
    white-space: nowrap;
    opacity: 0.95;
    line-height: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* 스크롤시 */
.main-header.scrolled::before {
    background: rgba(0, 0, 0, .5);
}

[data-bs-theme="dark"] .main-header.scrolled::before {
    background: rgba(0, 0, 0, .9);
}

/* 모바일 */
@media (max-width: 768px) {

    .header-inner {
        height: 72px;
    }

    .logo-main {
        font-size: 1.6rem;
    }

    .logo-sub {
        font-size: 0.9rem;
        display: none;
    }

}

.main-footer {
    position: relative;
    padding: 60px 0 80px;
    border-top: #ccc 1px solid;
    color: rgba(0, 0, 0, .9);
    overflow: hidden;
}

.main-footer a {
    text-decoration: none;
}

/* =========================
   상단
========================= */

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    max-width: 240px;
    width: 100%;
}

.footer-sns {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-sns a {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    transition:
        transform .3s ease,
        opacity .3s ease;
}

.footer-sns a:hover {
    transform: translateY(-4px);
}

.footer-sns img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================
   정보
========================= */

.footer-info {
    margin-bottom: 60px;
}

.footer-item h4 {
    margin-bottom: 12px !important;
    font-size: 1.2rem;
    font-weight: 700;

}

.footer-item p {
    margin: 0;
    line-height: 1.4;
    font-size: 1.2rem;
}

/* =========================
   하단
========================= */

.footer-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;
}

.footer-text p {
    margin-bottom: 8px;
    line-height: 1.8;
    font-size: 1.05rem;

}

.footer-issn {
    margin-top: 40px !important;
    font-size: 1.2rem !important;
}

.footer-copy {
    margin-top: 20px !important;
    margin-bottom: 0 !important;

}

.footer-open img {
    width: 260px;
    max-width: 100%;
}

/* =========================
   반응형
========================= */

@media (max-width: 1199.98px) {

    .main-footer {
        padding: 100px 0 70px;
    }

    .footer-info {
        margin-bottom: 80px;
    }

}

@media (max-width: 991.98px) {

    .main-footer {
        padding: 80px 0 60px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;

        margin-bottom: 30px;
    }

    .footer-logo img {
        max-width: 200px;
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-open {
        margin-top: 20px;
    }

}

@media (max-width: 767.98px) {

    .main-footer {
        padding: 60px 0 50px;
    }

    .footer-top {
        margin-bottom: 50px;
    }

    .footer-info {
        margin-bottom: 50px;
    }

    .footer-item h4 {
        font-size: 1.1rem;
    }

    .footer-item p,
    .footer-text p {
        font-size: .98rem;
    }

    .footer-issn {
        margin-top: 40px !important;
        font-size: 1.2rem !important;
    }

    .footer-copy {
        margin-top: 40px !important;
    }

    .footer-sns {
        gap: 16px;
    }

    .footer-sns a {
        width: 48px;
        height: 48px;
    }

    .footer-open img {
        width: 220px;
    }

}