/*
 * STIGMA header & main visual
 * 2026-07-24
 */

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/roboto/RobotoVariable-Latin.woff2") format("woff2");
    unicode-range:
        U+0000-00FF,
        U+0131,
        U+0152-0153,
        U+02BB-02BC,
        U+02C6,
        U+02DA,
        U+02DC,
        U+0304,
        U+0308,
        U+0329,
        U+2000-206F,
        U+20AC,
        U+2122,
        U+2191,
        U+2193,
        U+2212,
        U+2215,
        U+FEFF,
        U+FFFD;
}

@font-face {
    font-family: "Pretendard";
    font-style: normal;
    font-weight: 45 920;
    font-display: swap;
    src: url("../fonts/pretendard/PretendardVariable.woff2") format("woff2-variations");
}

:root {
    --stigma-blue: #33449d;
    --stigma-ink: #0c1018;
    --stigma-header-height: 126px;
    --stigma-page-gutter: clamp(32px, 6.2vw, 120px);
}

html,
body,
button,
input,
select,
textarea {
    font-family: "Roboto", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
span,
strong,
small,
button,
input,
select,
textarea {
    font-family: "Roboto", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

[class^="ti-"],
[class*=" ti-"] {
    font-family: "themify" !important;
}

.fa,
[class^="fa-"],
[class*=" fa-"] {
    font-family: "FontAwesome" !important;
}

.glyphicon {
    font-family: "Glyphicons Halflings" !important;
}

body {
    letter-spacing: -0.018em;
}

/* Header */
.stigma-site-header {
    height: var(--stigma-header-height);
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1200;
    transition:
        background-color .24s ease,
        background-image .24s ease,
        box-shadow .24s ease;
}

.stigma-site-header--overlay {
    position: fixed;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, .92) 0%,
            rgba(0, 0, 0, .62) 45%,
            rgba(0, 0, 0, .25) 76%,
            rgba(0, 0, 0, 0) 100%
        );
}

.stigma-site-header--solid {
    position: relative;
    background: #fff;
    border-bottom: 1px solid #eceef2;
}

.stigma-site-header--overlay:hover,
.stigma-site-header--overlay:focus-within,
.stigma-site-header--overlay.is-scrolled,
.stigma-site-header--overlay.is-menu-open {
    background: #fff;
    box-shadow: 0 1px 0 rgba(12, 16, 24, .08);
}

.stigma-site-header__inner {
    align-items: center;
    display: flex;
    height: 100%;
    padding: 0 var(--stigma-page-gutter);
    width: 100%;
}

.stigma-site-logo {
    display: block;
    flex: 0 0 auto;
    height: 53px;
    position: relative;
    width: 170px;
    z-index: 2;
}

.stigma-site-logo img {
    display: block;
    height: 100%;
    left: 0;
    object-fit: contain;
    object-position: left center;
    position: absolute;
    top: 0;
    transition: opacity .2s ease;
    width: 100%;
}

.stigma-site-logo__white {
    opacity: 0;
}

.stigma-site-logo__color {
    opacity: 1;
}

.stigma-site-header--overlay .stigma-site-logo__white {
    opacity: 1;
}

.stigma-site-header--overlay .stigma-site-logo__color {
    opacity: 0;
}

.stigma-site-header--overlay:hover .stigma-site-logo__white,
.stigma-site-header--overlay:focus-within .stigma-site-logo__white,
.stigma-site-header--overlay.is-scrolled .stigma-site-logo__white,
.stigma-site-header--overlay.is-menu-open .stigma-site-logo__white {
    opacity: 0;
}

.stigma-site-header--overlay:hover .stigma-site-logo__color,
.stigma-site-header--overlay:focus-within .stigma-site-logo__color,
.stigma-site-header--overlay.is-scrolled .stigma-site-logo__color,
.stigma-site-header--overlay.is-menu-open .stigma-site-logo__color {
    opacity: 1;
}

.stigma-primary-nav {
    margin-left: auto;
    margin-right: clamp(100px, 10vw, 200px);
    width: min(900px, 45vw);
}

.stigma-primary-nav__list,
.stigma-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stigma-primary-nav__list {
    align-items: stretch;
    display: flex;
    gap: 0;
    justify-content: space-between;
}

.stigma-nav-item {
    align-items: center;
    display: flex;
    height: var(--stigma-header-height);
    position: relative;
}

.stigma-nav-link {
    align-items: center;
    background: none;
    border: 0;
    color: var(--stigma-ink);
    cursor: pointer;
    display: inline-flex;
    font-family: "Roboto", sans-serif !important;
    font-size: 24px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: -.025em;
    line-height: 1;
    padding: 0;
    text-decoration: none;
    white-space: nowrap;
}

.stigma-nav-link:hover,
.stigma-nav-link:focus {
    color: var(--stigma-blue);
    outline: none;
    text-decoration: none;
}

.stigma-language-link {
    gap: 9px;
}

.stigma-language-link .ti-world {
    font-size: 23px;
    line-height: 1;
}

.stigma-site-header--overlay:not(:hover):not(:focus-within):not(.is-scrolled):not(.is-menu-open) .stigma-nav-link {
    color: #fff;
}

.stigma-nav-caret {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    display: block;
    height: 8px;
    margin-top: -4px;
    transform: rotate(45deg);
    transition: transform .2s ease;
    width: 8px;
}

.stigma-nav-item.is-open .stigma-nav-caret {
    margin-top: 3px;
    transform: rotate(225deg);
}

.stigma-submenu {
    background: #fff;
    box-shadow: 0 12px 28px rgba(12, 16, 24, .12);
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    transform: translate(-50%, -8px);
    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
    visibility: hidden;
}

.stigma-submenu--about {
    width: 214px;
}

.stigma-submenu--product {
    width: 300px;
}

.stigma-submenu--product-en {
    width: 360px;
}

.stigma-submenu-item--nested {
    position: relative;
}

.stigma-submenu-parent-row {
    align-items: stretch;
    display: flex;
}

.stigma-submenu-parent-row > a {
    flex: 1 1 auto;
    justify-content: flex-start;
    padding-right: 8px;
    text-align: left;
}

.stigma-level2-trigger {
    align-items: center;
    background: #fff;
    border: 0;
    color: #10131a;
    cursor: pointer;
    display: flex;
    flex: 0 0 50px;
    justify-content: center;
    padding: 0;
}

.stigma-level2-trigger span {
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    display: block;
    height: 8px;
    transform: rotate(45deg);
    transition: transform .18s ease;
    width: 8px;
}

.stigma-submenu-parent-row:hover > a,
.stigma-submenu-parent-row:focus-within > a,
.stigma-submenu-parent-row:hover > .stigma-level2-trigger,
.stigma-submenu-parent-row:focus-within > .stigma-level2-trigger {
    background: var(--stigma-blue);
    color: #fff;
}

.stigma-submenu-level2 {
    background: #fff;
    box-shadow: 12px 16px 30px rgba(12, 16, 24, .14);
    left: 100%;
    list-style: none;
    margin: 0;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translateX(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    visibility: hidden;
    width: 300px;
}

.stigma-submenu--product-en .stigma-submenu-level2 {
    width: 350px;
}

.stigma-submenu-item--nested:hover > .stigma-submenu-level2,
.stigma-submenu-item--nested:focus-within > .stigma-submenu-level2,
.stigma-submenu-item--nested.is-level2-open > .stigma-submenu-level2 {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
}

.stigma-nav-item--submenu:hover > .stigma-submenu,
.stigma-nav-item--submenu:focus-within > .stigma-submenu,
.stigma-nav-item--submenu.is-open > .stigma-submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    visibility: visible;
}

.stigma-submenu li {
    margin: 0;
}

.stigma-submenu a {
    align-items: center;
    color: #10131a;
    display: flex;
    font-family: "Pretendard", sans-serif !important;
    font-size: 18px;
    font-weight: 650;
    justify-content: center;
    letter-spacing: -.035em;
    min-height: 60px;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
}

.stigma-submenu a:hover,
.stigma-submenu a:focus {
    background: var(--stigma-blue);
    color: #fff;
    outline: none;
    text-decoration: none;
}

.stigma-submenu--en a {
    font-family: "Roboto", sans-serif !important;
    letter-spacing: -.02em;
}

.stigma-mobile-toggle {
    background: transparent;
    border: 0;
    display: none;
    height: 44px;
    margin-left: auto;
    padding: 9px 5px;
    width: 44px;
}

.stigma-mobile-toggle span {
    background: #111723;
    display: block;
    height: 2px;
    margin: 6px 0;
    transition: transform .2s ease, opacity .2s ease;
    width: 30px;
}

/* Main visual */
.stigma-home-main {
    background: #05070a;
}

.stigma-hero {
    background: #05070a;
    height: 100vh;
    min-height: 660px;
    overflow: hidden;
    position: relative;
}

.stigma-hero__video {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.stigma-hero__shade {
    background: rgba(0, 0, 0, .13);
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.stigma-hero__inner {
    align-items: center;
    display: flex;
    height: 100%;
    padding: 0 var(--stigma-page-gutter) 6vh;
    position: relative;
    width: 100%;
    z-index: 2;
}

.stigma-hero__title {
    color: #fff;
    font-family: "Pretendard", sans-serif !important;
    font-size: clamp(34px, 2.25vw, 44px);
    font-weight: 750;
    letter-spacing: -.048em;
    line-height: 1.48;
    margin: 0;
    max-width: 900px;
    text-align: left;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .42);
}

.stigma-hero__title--en {
    font-family: "Roboto", sans-serif !important;
    font-size: clamp(36px, 2.35vw, 46px);
    font-weight: 500;
    letter-spacing: -.032em;
    line-height: 1.3;
    max-width: 1180px;
}

@media (max-width: 1280px) {
    :root {
        --stigma-header-height: 104px;
    }

    .stigma-site-logo {
        height: 47px;
        width: 150px;
    }

    .stigma-nav-link {
        font-size: 20px;
    }
}

@media (max-width: 991px) {
    :root {
        --stigma-header-height: 80px;
        --stigma-page-gutter: 28px;
    }

    .stigma-site-header--overlay,
    .stigma-site-header--solid {
        position: fixed;
    }

    .stigma-site-header--solid {
        box-shadow: 0 1px 0 rgba(12, 16, 24, .08);
    }

    .stigma-sub-page {
        padding-top: var(--stigma-header-height);
    }

    .stigma-site-logo {
        height: 43px;
        width: 139px;
    }

    .stigma-mobile-toggle {
        display: block;
        position: relative;
        z-index: 3;
    }

    .stigma-site-header--overlay:not(:hover):not(:focus-within):not(.is-scrolled):not(.is-menu-open) .stigma-mobile-toggle span {
        background: #fff;
    }

    .stigma-site-header.is-menu-open .stigma-mobile-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .stigma-site-header.is-menu-open .stigma-mobile-toggle span:nth-child(2) {
        opacity: 0;
    }

    .stigma-site-header.is-menu-open .stigma-mobile-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .stigma-primary-nav {
        background: #fff;
        box-shadow: 0 18px 32px rgba(12, 16, 24, .14);
        left: 0;
        margin-right: 0;
        max-height: calc(100vh - var(--stigma-header-height));
        opacity: 0;
        overflow-y: auto;
        pointer-events: none;
        position: absolute;
        right: 0;
        top: 100%;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
        visibility: hidden;
        width: auto;
    }

    .stigma-site-header.is-menu-open .stigma-primary-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
    }

    .stigma-primary-nav__list {
        align-items: stretch;
        display: block;
    }

    .stigma-nav-item {
        display: block;
        height: auto;
    }

    .stigma-nav-link,
    .stigma-site-header--overlay:not(:hover):not(:focus-within):not(.is-scrolled):not(.is-menu-open) .stigma-nav-link {
        color: var(--stigma-ink);
        font-size: 18px;
        justify-content: space-between;
        min-height: 62px;
        padding: 0 var(--stigma-page-gutter);
        width: 100%;
    }

    .stigma-submenu {
        box-shadow: none;
        display: none;
        left: auto;
        opacity: 1;
        pointer-events: auto;
        position: static;
        transform: none;
        visibility: visible;
        width: 100%;
    }

    .stigma-nav-item--submenu:hover > .stigma-submenu,
    .stigma-nav-item--submenu:focus-within > .stigma-submenu {
        display: none;
        transform: none;
    }

    .stigma-nav-item--submenu.is-open > .stigma-submenu {
        display: block;
        transform: none;
    }

    .stigma-submenu a {
        background: #f5f6f8;
        font-size: 16px;
        justify-content: flex-start;
        min-height: 54px;
        padding: 10px calc(var(--stigma-page-gutter) + 16px);
        text-align: left;
    }

    .stigma-submenu-parent-row {
        background: #f5f6f8;
    }

    .stigma-submenu-parent-row > a {
        padding-right: 8px;
    }

    .stigma-level2-trigger {
        background: #f5f6f8;
        flex-basis: 58px;
    }

    .stigma-submenu-parent-row:hover > a,
    .stigma-submenu-parent-row:focus-within > a,
    .stigma-submenu-parent-row:hover > .stigma-level2-trigger,
    .stigma-submenu-parent-row:focus-within > .stigma-level2-trigger {
        background: #eef0f4;
        color: var(--stigma-blue);
    }

    .stigma-level2-trigger span {
        transform: rotate(135deg);
    }

    .stigma-submenu-item--nested.is-level2-open .stigma-level2-trigger span {
        transform: rotate(-45deg);
    }

    .stigma-submenu-level2,
    .stigma-submenu--product-en .stigma-submenu-level2 {
        box-shadow: none;
        display: none;
        left: auto;
        opacity: 1;
        pointer-events: auto;
        position: static;
        transform: none;
        visibility: visible;
        width: 100%;
    }

    .stigma-submenu-item--nested:hover > .stigma-submenu-level2,
    .stigma-submenu-item--nested:focus-within > .stigma-submenu-level2 {
        display: none;
    }

    .stigma-submenu-item--nested.is-level2-open > .stigma-submenu-level2 {
        display: block;
    }

    .stigma-submenu-level2 a {
        background: #e9ecf2;
        font-size: 15px;
        padding-left: calc(var(--stigma-page-gutter) + 36px);
    }

    .stigma-hero {
        min-height: 600px;
    }

    .stigma-hero__inner {
        align-items: center;
        padding-bottom: 2vh;
    }

    .stigma-hero__title {
        font-size: clamp(27px, 5.4vw, 36px);
        line-height: 1.5;
        max-width: 720px;
    }

    .stigma-hero__title--en {
        font-size: clamp(27px, 4.7vw, 36px);
        line-height: 1.34;
        max-width: 820px;
    }
}

@media (max-width: 575px) {
    :root {
        --stigma-page-gutter: 22px;
    }

    .stigma-hero {
        min-height: 540px;
    }

    .stigma-hero__video {
        object-position: 58% center;
    }

    .stigma-hero__inner {
        align-items: flex-end;
        padding-bottom: 16vh;
    }

    .stigma-hero__title {
        font-size: clamp(22px, 6.1vw, 27px);
        line-height: 1.52;
    }

    .stigma-hero__title br {
        display: none;
    }

    .stigma-hero__title--en {
        font-size: clamp(23px, 6.3vw, 28px);
        line-height: 1.38;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stigma-site-header,
    .stigma-site-header *,
    .stigma-primary-nav,
    .stigma-submenu {
        transition-duration: .01ms !important;
    }
}
