@charset "UTF-8";

:root {
    --cont-width: 1390px;
    --key-color: #3268f0;
    --header-height: 90px;
}

.en-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh; /* height: 100% 대신 min-height 사용 권장 */
    position: relative;
}

/* --- Header --- */
header {
    background-color: #fff;
    position: relative;
    z-index: 100; /* 메뉴가 오버레이보다 위에 있어야 함 */
    height: 90px;
}
body.sub header {
    border-bottom: 1px solid #ddd;
}
header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--cont-width); /* width -> max-width */
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px; /* 좌우 여백 추가 */
}
header h1 a {
    display: flex;
    align-items: center;
}
/* 로고 이미지 반응형 */
header h1 a img {
    height: 40px; /* 로고 높이 제어 */
    width: auto;
}

/* Desktop GNB */
.en-gnb {
    display: flex;
    align-items: center;
    gap: 30px;
}
.en-gnb > li > a {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    height: var(--header-height);
    padding: 0 10px 6px; /* border-bottom 고려 */
    transition: 0.3s;
    color: #333;
}
.en-gnb > li > a:hover {
    color: var(--key-color);
}
.en-gnb > li.active > a {
    color: var(--key-color);
    font-weight: 700;
    height: var(--header-height);
    border-bottom: 6px solid var(--key-color);
    padding-bottom: 0;
}

.uMenu {
    display: flex;
}
.uMenu a {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 16px;
    line-height: 1;
    padding: 0 14px;
    transition: 0.3s;
    color: #555;
}
.uMenu a:last-child {
    border-left: 1px solid #ccc;
    padding-right: 0;
}
.uMenu a:hover {
    text-decoration: underline;
}

/* --- Mobile Menu Elements (Hidden on Desktop) --- */
.mo-menu-btn {
    display: none; /* 데스크탑에서 숨김 */
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    padding: 0;
}
.mo-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: 0.3s;
}
.mo-menu-btn span:nth-child(1) {
    top: 4px;
}
.mo-menu-btn span:nth-child(2) {
    top: 14px;
}
.mo-menu-btn span:nth-child(3) {
    top: 24px;
}

/* 햄버거 버튼 활성화 애니메이션 */
.mo-menu-btn.active span:nth-child(1) {
    top: 14px;
    transform: rotate(45deg);
}
.mo-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mo-menu-btn.active span:nth-child(3) {
    top: 14px;
    transform: rotate(-45deg);
}

/* 모바일 네비게이션 컨테이너 수정 */
.mo-gnb-wrapper {
    display: none;
    /* absolute -> fixed로 변경하여 헤더 높이에 상관없이 화면 위에 뜨게 함 */
    position: fixed;
    top: 60px; /* 헤더 높이만큼 띄움 */
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    /* 애니메이션 및 높이 제어 */
    max-height: 0;
    overflow-y: auto; /* 내용이 길면 메뉴 내부에서 스크롤 생김 */
    transition: max-height 0.4s ease-in-out;
    z-index: 99;
}
/* 활성화 시 스타일 */
.mo-gnb-wrapper.active {
    max-height: 370px;
}

.mo-gnb-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 모바일 메뉴 오버레이 (Dimmed Effect) */
.dim-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90; /* 헤더(100)보다 아래, 컨텐츠보다 위 */
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.dim-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Main --- */
main {
    flex: 1;
    background-color: #fff;
    width: 100%;
}

.sub main {
    width: 100%;
    max-width: var(--cont-width);
    margin: 0 auto;
    padding: 50px 20px 80px; /* 좌우 패딩 추가 */
}

main.mainpage {
    display: flex;
    justify-content: center;
    align-items: center;
    /* 배경 이미지 경로는 실제 환경에 맞춰주세요. 예시로 색상 대체 */
    background: #333 url(../img/en-mVisual.jpg) no-repeat center center;
    background-size: cover;
}
.mVisual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 60px 20px;
}

.mv-container {
    margin-top: 10px;
    width: 100%;
    max-width: var(--cont-width);
}

.mv-copy {
    color: #fff;
    text-align: center;
}
.mv-copy .big {
    font-size: 50px;
    font-weight: 600;
    line-height: 1.2;
}
.mv-copy .small {
    font-size: 24px;
    font-weight: 400;
    padding: 20px 0 70px;
    line-height: 1.5;
    opacity: 0.9;
}

.iconLink {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* 줄바꿈 허용 */
    gap: 30px;
}
.iconLink > li {
    display: flex;
    justify-content: center;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    box-sizing: border-box; /* content-box -> border-box 권장 */
    transition: 0.3s;
}
.iconLink > li:hover {
    background-color: rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}
.iconLink > li > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* 수직 중앙 정렬 개선 */
    text-align: center;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    width: 100%;
    height: 100%;
    padding: 0 10px; /* 텍스트 넘침 방지 */
}
.iconLink > li > a img {
    margin-bottom: 18px;
    height: 60px; /* 아이콘 크기 예시 */
}
.iconLink > li > a > p {
    margin: 0;
    line-height: 1.3;
}

/* --- Footer --- */
footer {
    color: #fff;
    background-color: #212430;
    padding: 40px 0;
}
footer > div {
    text-align: center;
    max-width: var(--cont-width);
    width: 100%;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 400;
    margin: 0 auto;
}
footer > div > ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* 모바일 대응 */
    gap: 10px 20px; /* gap 활용 */
    padding: 30px 0 15px;
}
footer > div > ul > li {
    line-height: 1.4;
    padding: 0;
    position: relative;
}
/* 기존 border 방식 대신 가상요소로 구분선 처리 (반응형 대응 용이) */
footer > div > ul > li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    margin-left: 20px;
    vertical-align: middle;
}
footer > div > p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.5;
}

.container {
    width: 100%;
    margin: 0 auto;
}
.container h3 > span {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 40px;
    color: var(--key-color);
}
.container h3 > span::before {
    content: "";
    display: block;
    width: 40px;
    height: 5px;
    background-color: var(--key-color);
}

.content {
    margin-top: 40px;
}

.org {
    padding-top: 40px;
}
.org > img {
    width: 100%;
}
.org .pc {
    display: block;
}
.org .mo {
    display: none;
}

input[name="tabs"] {
    display: none;
}
.tab-menu {
    display: flex;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 20px;
}
.tab-menu label {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    font-size: 24px;
    font-weight: 600;
    color: #555;
    height: 80px;
    cursor: pointer;
    transition: 0.3s;
}
.tab-menu label:hover {
    color: var(--key-color);
}
.tab-content .item {
    display: none;
    padding: 60px 0;
    border-top: none;
}
#tab1:checked ~ .tab-menu label[for="tab1"],
#tab2:checked ~ .tab-menu label[for="tab2"],
#tab3:checked ~ .tab-menu label[for="tab3"] {
    color: #fff;
    background-color: var(--key-color);
    font-weight: 600;
    border-radius: 10px;
}
#tab1:checked ~ .tab-content #content1,
#tab2:checked ~ .tab-content #content2,
#tab3:checked ~ .tab-content #content3 {
    display: block;
}
.greeting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}
.greeting .big {
    font-size: 23px;
    font-weight: 500;
    margin-bottom: 40px;
}
.greeting .cman {
    font-size: 16px;
    text-align: center;
}
.greeting .cman strong {
    display: inline-block;
    line-height: 0.8rem;
    border-left: 1px solid #ddd;
    padding-left: 10px;
    margin-left: 10px;
}

.bizStat {
    font-size: 18px;
    margin-bottom: 30px;
}
.bizStat h3 {
    font-size: 26px;
    margin-bottom: 30px;
}
.bizStat .box {
    background-color: #f2f2f2;
    border-radius: 10px;
    padding: 20px 30px;
}
.bizStat .box strong {
    display: block;
    font-size: 20px;
    font-weight: 600;
    padding: 5px 0;
}
.bizStat .detail {
    padding: 20px;
}
.bizStat .detail li {
    list-style: decimal;
    padding: 5px 0;
    margin-left: 20px;
}

.location {
    font-size: 20px;
    border-bottom: 1px solid #e5e5e5;
    padding: 40px 0;
}
.location > dl {
    display: flex;
    align-items: center;
}
.location > dl > dt {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 25%;
    font-size: 24px;
    font-weight: 600;
    padding-left: 14px;
}
.location .discStyle > li,
.station {
    display: flex;
    padding: 5px 0;
}
.location .discStyle > li::before,
.station::before {
    content: "•";
    color: #333;
    margin-right: 5px;
    align-items: center;
    flex-shrink: 0;
    text-align: right;
}
.location .discStyle > li {
    flex-wrap: wrap;
}
.location .fLine {
    display: flex;
    gap: 30px;
}
.location .fLine > li {
    margin: 8px 0;
}
.visionImg {
    text-align: center;
    padding: 20px 0;
}
.visionImg > img {
    width: 100%;
}


.history {
    position: relative;
    display: flex;
    flex-direction: column;
}
.history::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 1px;
    height: 100%;
    background-color: #ddd;
}
.history > dl {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 30px 0;
    padding-left: calc(50% - 12px);
}
.history > dl > dt {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 30px;
    font-weight: 900;
    color: var(--menu-color);
    z-index: 2;
}
.history > dl > dt::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    background-color: #fff;
    border: 7px solid var(--menu-color);
    border-radius: 50%;
}
.history > dl > dd {
    display: flex;
    padding: 10px 36px 0;
}
.history > dl > dd > p,
.history > dl > dd li p {
    padding: 0 10px;
}
.history > dl:nth-child(2n) {
    align-items: flex-end;
    background: url(../img/bg-history.png) repeat-y top center;
    background-size: 100%;
    padding-left: 0;
    padding-right: calc(50% - 12px);
}
.history > dl:nth-child(2n) > dt {
    flex-direction: row-reverse;
}
.history > dl:nth-child(2n) > dd {
    align-items: flex-end;
    flex-direction: row-reverse;
}
.history > dl > dd li {
    display: flex;
    padding-bottom: 10px;
}

.yearArea {
    display: flex;
}
.year-img-area > img {
    width: 100%;
}
.yearTab .tab-list {
    flex-direction: column;
    gap: 10px;
}
.yearTab .tab-list > li {
    display: flex;
    height: 70px;
}
.yearTab .tab-list > li > a {
    font-weight: 700;
    color: #aaa;
    width: 180px;
    background-color: #f2f2f2;
    border-radius: 6px !important;
}
.yearTab .tab-list > li > a strong {
    font-weight: 700;
}
.yearTab .tab-list > li.active > a {
    background-color: var(--menu-color);
    color: #fff;
    border-radius: 6px 0 0 6px !important;
}
.yearTab .tab-list > li::after {
    content: "";
    display: block;
    width: 20px;
    height: 70px;
}
.yearTab .tab-list > li.active::after {
    background: url(/img/history-arrow.svg) no-repeat left center;
    background-size: cover;
}
.yearTab .tab-list > li::before {
    display: none;
}
.year-detail {
    padding: 0 30px;
}
.year-detail > ul > li {
    display: flex;
    align-items: flex-start;
    font-size: 20px;
    padding: 10px 0;
}
.year-detail > ul > li > strong {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 140px;
    font-family: Pretendard;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}
.year-detail > ul > li > strong::before {
    content: "· ";
    display: inline-block;
    font-weight: 900;
    color: var(--menu-color);
    margin-right: 3px;
}
.year-detail > ul > li > span {
    flex: 1;
}
.tab-contents {
    background-color: #fff;
    margin-bottom: 20px;
    display: none;
}
.tab-contents.active {
    display: block;
}
.tab-list {
    display: flex;
}
.tab-list > li {
    flex-shrink: 0;
    position: relative;
    height: 70px;
}
.tab-list > li > a {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    height: 100%;
    padding: 0 24px;
    border-radius: 6px;
    transition: 0.2s;
}
.tab-list > li:hover > a {
    color: #3268f0;
}
.tab-list > li.active > a,
.tab-list > li.active:hover > a {
    color: #fff;
    font-weight: 600;
    background-color: #3268f0;
    border: 1px solid #3268f0;
}
.tab-list > li::before {
    content: "";
    position: absolute;
    top: calc(50% - 8px);
    right: 0;
    width: 1px;
    height: 16px;
    background-color: #ddd;
}
.tab-list > li.active::before,
.tab-list > li:last-child::before {
    display: none;
}
.tab-list a span,
.tab-content h3 > span {
    display: inline-block;
    min-width: 20px;
    color: #333;
    font-size: var(--default-font);
    text-align: center;
    font-weight: 400;
    background-color: #e4e5eb;
    border: 1px solid #d3d6df;
    border-radius: 10px;
    padding: 1px 4px 1px 3px;
    margin-left: 4px;
}
.tab-list > li.active span {
    color: #3268f0;
    background-color: #fff;
    border-color: #fff;
}


.map-info-window {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px 10px;
    color: #333;
    min-width: 230px;
    height: 80px;
}
.map-info-window > strong {
    display: block;
}
.map-info-window strong, .map-info-window span {
    display: block;
    text-align: center;
    font-size: 16px;
    width: 100%;
    margin: 2px 0;
}

@media screen and (max-width: 760px) {
    body {
        font-size: 13px;
    }
    header {
        height: 60px; /* 헤더 높이 축소 */
    }

    header h1 a img {
        height: 32px;
    }

    .mv-copy .big {
        font-size: 26px;
    }
    .mv-copy .small {
        font-size: 14px;
        padding-bottom: 40px;
    }

    /* 1. Header 구조 변경 */
    .en-gnb,
    .uMenu {
        display: none; /* 데스크탑 메뉴 숨김 */
    }
    .mo-menu-btn {
        display: block; /* 햄버거 버튼 표시 */
    }
    .mo-gnb-wrapper {
        display: block; /* 모바일 메뉴 구조 활성화 (보이는건 max-height로 제어) */
    }
    .mo-gnb-wrapper.active {
        border-top: 1px solid #eee;
    }
    .en-gnb > li > a,
    .en-gnb > li.active > a {
        height: 60px;
    }

    /* 모바일 메뉴 내부 스타일 */
    .mo-gnb-wrapper ul {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .mo-gnb-wrapper li {
        width: 100%;
    }
    .mo-gnb-wrapper li a {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        border-bottom: 1px solid #eee;
        text-align: center;
    }
    .mo-gnb-wrapper li a:hover {
        color: var(--key-color);
        background-color: #fafafa;
    }
    .mo-util-link {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }
    .mo-util-link a {
        font-size: 14px;
        color: #666;
        padding: 5px 10px;
        border: 1px solid #ddd;
        border-radius: 20px;
    }

    .mVisual {
        min-height: 660px;
        padding: 40px 10px;
    }

    .iconLink {
        gap: 10px;
    }
    .iconLink > li {
        width: 30%;
        height: 160px;
        border-radius: 20px;
    }
    .iconLink > li > a {
        font-size: 14px;
        font-weight: 500;
    }
    .iconLink > li > a img {
        margin-bottom: 18px;
        height: 40px; /* 아이콘 크기 예시 */
    }
    .iconLink > li > a > p {
        margin: 0;
        line-height: 1.3;
    }

    .sub main {
        padding: 40px 15px;
    }

    .container h3 > span {
        gap: 8px;
        font-size: 24px;
    }
    .container h3 > span::before {
        width: 30px;
        height: 3px;
    }

    .content {
        margin-top: 20px;
    }

    .greeting {
        flex-direction: column;
        gap: 20px;
    }
    .tab-content .item {
        padding: 10px 0;
    }
    .tab-menu label {
        font-size: 13px;
        text-align: center;
        padding: 0 5px;
    }
    .greeting .big {
        font-size: 16px;
    }
    .greeting .cman {
        font-size: 12px;
    }
    .greeting .cman img {
        height: 260px;
    }

    .bizStat {
        font-size: 13px;
    }
    .bizStat .box {
        padding: 15px;
    }
    .bizStat .box strong {
        font-size: 15px;
    }
    .bizStat .detail {
        padding: 10px;
    }
    .bizStat .detail li {
        margin-left: 10px;
    }
    .bizStat h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }


    .location {
        font-size: 15px;
        border-bottom: 1px solid #e5e5e5;
        padding: 20px 0;
    }
    .location > dl {
        display: flex;
        flex-direction: column;
    }
    .location > dl > dt {
        width: 100%;
        font-size: 18px;
        padding-left: 0;
    }
    .location > dl > dd {
        padding: 0 10px;
        margin-top:10px;
        width: 100%;
    }
    .location .discStyle {
        flex-direction: column;
    }
    .location .discStyle > li {
        display: flex;
        padding: 0;
    }
    .location .discStyle > li::before,
    .station::before {
        content: "•";
        color: #333;
        margin-right: 5px;
        align-items: center;
        flex-shrink: 0;
        text-align: right;
    }
    .location .discStyle strong {
        display: inline-block;
        margin-right: 5px;
    }
    .location .fLine {
        display: flex;
        gap: 0;
    }
    .location .fLine > li {
        margin: 2px 0;
    }

    .yearArea {
        flex-direction: column;
        margin-top: 30px;
    }
    .yearTab .tab-list {
        flex-direction: row;
        gap: 2px;
    }
    .yearTab .tab-list > li {
        flex: 1;
        height: 60px;
    }
    .yearTab .tab-list > li > a {
        flex-direction: column;
        width: auto;
        font-size: 12px;
        padding: 0 10px;
    }
    .yearTab .tab-list > li.active > a {
        border-radius: 6px !important;
    }
    .yearTab .tab-list > li::after {
        display: none;
    }
    .yearTab .tab-list a strong {
        display: block;
        font-weight: 700;
        padding: 0;
    }
    .year-detail {
        padding: 16px 10px 0;
    }
    .year-detail > ul > li {
        display: flex;
        align-items: flex-start;
        font-size: 12px;
        padding: 10px 0;
    }
    .year-detail > ul > li > strong {
        width: 100px;
    }
    .year-detail > ul > li > span {
        flex: 1;
    }

    .org .pc {
        display: none;
    }
    .org .mo {
        display: block;
    }

    /* Footer */
    footer {
        padding: 20px 0;
    }
    footer p img {
        height: 32px;
    }
    footer > div > ul {
        gap: 10px;
    }
    footer > div > ul > li {
        font-size: 12px;
    }
    footer > div > ul > li:not(:last-child)::after {
        display: none; /* 구분선 제거 */
    }
}
