* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f3f3f3;
    color: #111111;
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
}

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

.at-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.pc-header {
    background: #ffffff;
    border-bottom: 1px solid #dde1e8;
}

.pc-header .at-container,
.m-header .at-container {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pc-header .at-container {
    min-height: 190px;
    padding: 30px 0 32px;
    position: relative;
    justify-content: center;
}

.pc-header .header-telegram {
    position: absolute;
    left: 0;
    top: 30px;
}

.pc-header .header-keyword {
    position: absolute;
    right: 0;
    top: 50%;
    width: 300px;
    transform: translateY(-50%);
}

.header-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-logo-img {
    display: block;
    width: 260px;
    height: 130px;
    object-fit: contain;
}

.header-shortcut-links,
.mobile-shortcut-links {
    display: grid;
    gap: 6px;
    justify-items: start;
}

.mobile-shortcut-links {
    display: none;
}

.header-shortcut-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 280px;
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 4px;
    background: #f33222;
    color: #ffffff;
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

.telegram-shortcut {
    background: #075bb7;
    color: #ffffff;
}

.telegram-mark {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #1688d8;
    flex: 0 0 auto;
}

.telegram-mark svg {
    width: 14px;
    height: 14px;
    display: block;
    fill: currentColor;
}

.thisTime,
.m-time {
    display: grid;
    gap: 4px;
    color: #1c2d4f;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
}

.today,
.today2 {
    min-width: 280px;
    color: #111111;
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}

.clock,
.clock2 {
    color: #f37021;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

.m-header {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid #dde1e8;
}

.at-menu {
    min-height: 10px;
    background: #222936;
}

.jusohub-main {
    padding-bottom: 38px;
}

.at-footer {
    margin-top: 0;
    border-top: 1px solid #eef0f2;
    background: #ffffff;
}

.footer-info-band {
    position: relative;
    background: #ffffff;
}

.footer-info-inner {
    min-height: 106px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.footer-info-inner p {
    margin: 0;
    color: #161616;
    font-size: 15px;
    font-weight: 900;
}

.footer-info-inner span {
    color: #8f8f8f;
    font-size: 11px;
    font-weight: 800;
}

.footer-top-button {
    position: absolute;
    right: 20px;
    top: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 2px solid #9a9a9a;
    background: #ffffff;
    color: #999999;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 900px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    html.jusohub-popup-open,
    body.jusohub-popup-open {
        overflow: hidden;
    }

    #thema_wrapper,
    .wrapper {
        max-width: 100%;
        overflow-x: clip;
    }

    #hd_pop {
        position: fixed;
        inset: 0;
        z-index: 10000;
        width: 100%;
        max-width: 100%;
        height: 100%;
        margin: 0;
        pointer-events: none;
    }

    #hd_pop::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.58);
        opacity: 0;
        pointer-events: none;
    }

    #hd_pop.jusohub-popup-visible::before {
        opacity: 1;
    }

    @supports selector(:has(*)) {
        #hd_pop:has(.hd_pops:not([style*="display: none"]))::before {
            opacity: 1;
        }
    }

    .hd_pops {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto;
        z-index: 10001;
        width: min(86vw, 360px);
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 48px);
        overflow: hidden;
        transform: translate(-50%, -50%);
        border: 0;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
        pointer-events: auto;
    }

    .hd_pops.jusohub-popup-queued {
        display: none !important;
    }

    .hd_pops_con {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        max-height: calc(100vh - 106px);
        overflow: auto;
        background: #ffffff;
    }

    .hd_pops_con p,
    .hd_pops_con a {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .hd_pops_con a:has(img) {
        display: block;
        line-height: 0;
    }

    .hd_pops_con img + br {
        display: none;
    }

    .hd_pops_con img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    .hd_pops_footer {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: 0;
        background: #172233;
        color: #ffffff;
    }

    .hd_pops_footer button {
        min-width: 0;
        margin: 0;
        padding: 0 18px;
        border: 0;
        background: transparent;
        color: #ffffff;
        font-size: 0;
        font-weight: 900;
        line-height: 1.2;
        white-space: normal;
    }

    .hd_pops_footer .hd_pops_reject {
        flex: 1 1 auto;
        text-align: left;
    }

    .hd_pops_footer .hd_pops_reject strong {
        display: none;
    }

    .hd_pops_footer .hd_pops_reject::after {
        content: "오늘 그만보기";
        font-size: 13px;
    }

    .hd_pops_footer .hd_pops_close {
        position: static;
        flex: 0 0 auto;
        text-align: right;
    }

    .hd_pops_footer .hd_pops_close::after {
        content: "닫기 ×";
        font-size: 13px;
    }

    .pc-header {
        display: none;
    }

    .m-header {
        display: block;
    }

    .m-header .at-container {
        min-height: 146px;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 6px;
        padding: 6px 0;
    }

    .mobile-shortcut-links {
        display: grid;
        justify-items: stretch;
        gap: 4px;
    }

    .mobile-shortcut-links .header-shortcut-link {
        width: 100%;
        height: 24px;
        padding: 0 10px;
        border: 1px solid #e0e0e0;
        border-radius: 0;
        font-size: 13px;
    }

    .header-wrap {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 6px;
    }

    .m-time {
        grid-column: 3;
        justify-self: end;
    }

    .m-header .header-logo {
        grid-column: 2;
        justify-self: center;
    }

    .header-logo a {
        justify-content: center;
    }

    .m-header .site-logo-img {
        width: 150px;
        height: 75px;
    }

    .m-time {
        font-size: 14px;
    }

    .today2 {
        min-width: 0;
        font-size: 12px;
    }

    .clock2 {
        font-size: 16px;
    }

}

@media (max-width: 620px) {
    .at-container {
        width: min(100% - 20px, 1120px);
    }

    .footer-top-button {
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 22px;
    }
}

@media (max-width: 360px) {
    .header-wrap {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 5px;
    }

    .m-header .site-logo-img {
        width: 128px;
        height: 64px;
    }

    .today2 {
        font-size: 11px;
    }

    .clock2 {
        font-size: 15px;
    }
}
