
[hidden] {
    display: none !important;
}

.site-nav {
    background: #fff;
    border-bottom: 1px solid rgb(0 0 0 / 10%);
}

.site-nav .pcNav a {
    color: #000;
}

.site-nav.nav-dark {
    background: transparent;
    border-color: rgb(255 255 255 / 30%);
}

.site-nav.nav-dark .pcNav a {
    color: #fff;
}

.site-nav .logo-light,
.site-nav.nav-dark .logo-default {
    display: none;
}

.site-nav.nav-dark .logo-light {
    display: block;
}

#nav-icon3 {
    background: transparent;
    border: 0;
    padding: 0;
}

@media (min-width: 1346px) {
    .home-scroll {
        height: 100vh;
        overflow-y: auto;
    }
}

[data-carousel] {
    position: relative;
}

[data-carousel="hero"] .swiper-wrapper,
[data-carousel="hero"] .swiper-slide {
    position: absolute;
    inset: 0;
}

/* The incoming slide fades in on top; the outgoing one stays underneath until the fade ends. */
[data-carousel="hero"] .swiper-slide {
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 0s .8s, visibility 0s .8s;
}

[data-carousel="hero"] .swiper-slide-active,
[data-carousel="hero"]:not(:has(.swiper-slide-active)) .swiper-slide:first-child {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

[data-carousel="hero"] .swiper-slide-active {
    transition: opacity .8s ease, visibility 0s;
}

/* Looping card carousels: core layout rules of Swiper 8, scoped to them. Visual rules are in legacy.css. */
.solutionback [data-solution-swiper] {
    z-index: 1;
}

.ex [data-case-swiper] {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

:is([data-solution-swiper], [data-case-swiper]) .swiper-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    transition-property: transform, height;
}

:is([data-solution-swiper], [data-case-swiper]) .swiper-slide {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: auto;
}

:is([data-solution-swiper], [data-case-swiper]).swiper-pointer-events {
    touch-action: pan-y;
}

/* The cards are links here; the original used divs. */
.solutionback .solutions {
    display: block;
}

.solutionback .solutions:focus-visible {
    filter: none;
}

.solutionback .solutions:focus-visible .hoverTextWrap {
    opacity: .92;
}

.solution-card-action {
    display: inline-block;
}

.solution-card-action > span {
    display: block;
    padding: 12px 27px;
}

.solution-card-action svg {
    margin-left: 8px;
}

[data-link],
[data-gallery],
[data-feature],
[data-video],
[data-inquiry] {
    cursor: pointer;
}

.funcList li:has([data-feature][data-active="true"]) {
    border: 1px solid #ff4938;
}

.funcList [data-feature][data-active="true"] {
    color: #ff4938;
}

.videoList li:has([data-video][data-active="true"]) {
    background: #ee3523;
}

.videoList [data-video][data-active="true"] {
    color: #fff;
}

#map {
    position: relative;
    background: #f2f2f2;
}

.map-canvas {
    position: absolute;
    inset: 0;
}

.map-fallback {
    display: inline-block;
    padding: 1rem;
    text-decoration: underline;
}

/* As on the original page: the text starts 377px below the top of the video frame.
   (legacy.css already uses .news-video for a different, absolutely positioned block.) */
.news-embed {
    height: 377px;
}

.news-embed iframe {
    position: static;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Match the original h4 and div that this page's h1 and time replace. */
#ReportTemplate_news_subject {
    margin: 0;
}

.ReportTemplate_date {
    display: block;
}

a.ReportTemplate_news_list {
    display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
    [data-carousel="hero"] .swiper-slide {
        transition: none;
    }
}

.hero-swiper {
    overflow: hidden;
    background: #242932;
}

/* Zoom-in-to-centre and text slide-in come from legacy.css (.bg, .txtBox p). */
.hero-swiper .bg {
    object-fit: cover;
    object-position: top center;
}

.svg-inline--fa {
    display: inline-block;
    height: 1em;
    width: 1em;
    overflow: visible;
    vertical-align: -0.125em;
}

@media (prefers-reduced-motion: reduce) {
    .hero-swiper .bg,
    .hero-swiper .txtBox p {
        transform: none;
        transition: none;
    }
}

a.ReportTemplate_news_list {
    background: #ee3523;
    color: #fff;
}

.skip-link {
    position: fixed;
    z-index: 110;
    inset: 12px auto auto 12px;
    padding: 12px 16px;
    color: #fff;
    background: #212121;
    border-radius: 4px;
    transform: translateY(calc(-100% - 14px));
}

.skip-link:focus {
    transform: translateY(0);
}

.hero-swiper .mainButtonBox {
    display: flex;
    gap: 20px;
    width: fit-content;
}

.hero-swiper .mainButtonBox button {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    margin: 0;
}

.hero-swiper .mainButtonBox svg {
    width: auto;
}

@media (prefers-reduced-motion: reduce) {
    .solutionback .solutions,
    .solutionback .swiper-slide::before {
        transition: none;
    }
}

/* Error pages (templates/error). The red circle is the one behind the active card on the home page. */
.error-view {
    word-break: keep-all;
}

.error-view-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 24px;
}

.error-view-hero {
    overflow: hidden;
    padding: 190px 0 110px;
    color: #fff;
    background: #151515;
}

.error-view-hero .error-view-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 64px;
}

.error-view h1 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.error-view-text {
    max-width: 34em;
    margin-top: 20px;
    color: #c9c9c9;
    font-size: 17px;
    line-height: 1.75;
    text-wrap: pretty;
}

.error-view-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.error-view-actions > * {
    min-width: 164px;
    padding: 15px 30px;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 45px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    transition: background-color .2s ease-out, border-color .2s ease-out;
}

.error-view-actions > .error-view-back:hover {
    border-color: #fff;
    background: rgb(255 255 255 / 12%);
}

.error-view-actions > .error-view-home {
    border-color: #fff;
    background: #fff;
    color: #151515;
}

.error-view-actions > .error-view-home:hover {
    border-color: #e4e4e4;
    background: #e4e4e4;
}

.error-view-contact {
    margin-top: 36px;
    color: #c9c9c9;
    font-size: 15px;
}

.error-view-contact a {
    margin-left: 6px;
    color: #fff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-underline-offset: 4px;
}

.error-view-contact a:hover {
    text-decoration: underline;
}

.error-view-signal {
    display: grid;
    place-items: center;
    width: clamp(240px, 30vw, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ee3523;
    animation: error-view-grow .8s cubic-bezier(.16, 1, .3, 1) both;
}

.error-view-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.error-view-code {
    font-size: clamp(68px, 8vw, 96px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

@keyframes error-view-grow {
    from {
        transform: scale(.82);
    }
}

.error-view-map {
    padding: 88px 0 104px;
}

.error-view-map h2 {
    margin: 0 0 32px;
    color: #111;
    font-size: 28px;
    line-height: 1.35;
    text-wrap: balance;
}

.error-view-map .error-view-inner > ul {
    display: block; /* legacy.css makes every ul a flex row */
    border-top: 2px solid #111;
}

.error-view-map .error-view-inner > ul > li {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 8px 24px;
    padding: 12px 0;
    border-bottom: 1px solid #e6e6e6;
}

.error-view-map ul ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: 36px;
}

.error-view-map a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #474747;
    font-size: 16px;
    text-underline-offset: 5px;
}

.error-view-map a.error-view-section {
    color: #111;
    font-size: 18px;
    font-weight: 800;
}

.error-view-map a:hover {
    color: #c62818;
    text-decoration: underline;
}

.error-view ::selection {
    color: #fff;
    background: #c62818;
}

.error-view-hero ::selection {
    color: #151515;
    background: #fff;
}

.error-view :focus-visible {
    outline: 3px solid #c62818;
    outline-offset: 3px;
}

.error-view-hero :focus-visible {
    outline-color: #fff;
}

@media (max-width: 760px) {
    .error-view-hero {
        padding: 119px 0 64px;
    }

    .error-view-hero .error-view-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .error-view-signal {
        order: -1;
        width: 168px;
    }

    .error-view-code {
        font-size: 56px;
    }

    .error-view-text {
        margin-top: 14px;
        font-size: 15px;
    }

    .error-view-actions {
        margin-top: 28px;
    }

    .error-view-actions > * {
        flex: 1 1 140px;
        min-width: 0;
        padding-inline: 16px;
    }

    .error-view-map {
        padding: 56px 0 64px;
    }

    .error-view-map h2 {
        margin-bottom: 24px;
        font-size: 21px;
    }

    .error-view-map .error-view-inner > ul > li {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .error-view-map ul ul {
        column-gap: 24px;
    }

    .error-view-map a {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .error-view-signal {
        animation: none;
    }
}

/* 개인정보 처리방침: 푸터 링크와 본문(왼쪽 목차 고정) */
.footerback a.footer-policy {
    display: inline-block;
    margin-left: 14px;
    padding-left: 15px;
    border-left: 1px solid #b9bfcb;
    line-height: 16px;
    font-weight: 800;
    color: #111;
    text-decoration: underline 2px #ee3523;
    text-underline-offset: 4px;
}

.footerback a.footer-policy:hover {
    color: #ee3523;
}

.policy-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 20px 90px;
}

.policy-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.policy-toc {
    position: sticky;
    top: 124px;
    max-height: calc(100vh - 148px);
    overflow-y: auto;
    border-top: 2px solid #111;
}

.policy-toc a {
    display: block;
    padding: 8px 10px 8px 20px;
    border-bottom: 1px solid #e6e9ef;
    font-size: 14.5px;
    color: #555;
}

.policy-toc a.policy-toc-chapter {
    padding-left: 10px;
    font-weight: 700;
    color: #111;
    background: #f6f7f9;
}

.policy-toc a:hover,
.policy-toc a[aria-current="true"] {
    color: #ee3523;
    font-weight: 700;
}

.policy-toc a[aria-current="true"] {
    background: #fff2f0;
}

.policy-body {
    font-size: 16px;
    line-height: 1.8;
    color: #3a3f49;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.policy-chapter + .policy-chapter {
    margin-top: 56px;
}

.policy-body h3 {
    padding-bottom: 12px;
    border-bottom: 2px solid #111;
    font-size: 24px;
    color: #111;
    scroll-margin-top: 124px;
}

.policy-body h4 {
    margin: 32px 0 10px;
    font-size: 19px;
    color: #111;
    scroll-margin-top: 124px;
}

.policy-table {
    margin-top: 20px;
    overflow-x: auto;
}

.policy-table table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
    font-size: 15px;
}

.policy-table th,
.policy-table td {
    padding: 11px 12px;
    border: 1px solid #dde1e8;
    text-align: left;
    vertical-align: top;
}

.policy-table th {
    background: #f6f7f9;
    color: #111;
}

@media (max-width: 1000px) {
    .policy-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .policy-toc {
        position: static;
        max-height: 240px;
    }
}

@media (max-width: 760px) {
    .policy-inner {
        padding: 36px 16px 56px;
    }

    .policy-body {
        font-size: 15px;
    }

    .policy-body h3 {
        font-size: 20px;
    }

    .policy-body h4 {
        font-size: 17px;
    }

    .footerback a.footer-policy {
        display: block;
        width: max-content;
        margin: 10px 0 0;
        padding-left: 0;
        border-left: 0;
        line-height: 24px;
    }
}
