/* ==============================================================
   기본 세팅
============================================================== */
body {
    color: #333;
    margin: 0;
    background-color: #F4F6F8;
}

main {
    width: 100%;
    overflow: hidden;
}

/* 공통 구조 */
.wrap {
    width: 1120px;
    max-width: 90%;
    margin: 0 auto;
    position: relative;
}


.fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==============================================================
   메인 비주얼 영역 (통 이미지 + 고정 카드형)
============================================================== */
#main-visual {
    position: relative;
    width: 100%;
    height: 380px; /* PC 기본 */
}

#main-visual .main-visual,
#main-visual .swiper-wrapper,
#main-visual .swiper-slide {
    height: 100%;
}

#main-visual .swiper-slide {
    background-size: cover;
    background-position: center;
}

#main-visual .swiper-slide.slide-1 {
    background: url('/images/content/main/main_visual_full.png') no-repeat center / cover;
}

#main-visual .swiper-slide.slide-2 {
    background: url('/images/content/main/main_visual_full_2.png') no-repeat center / cover;
}

#main-visual .wrap {
    position: relative;
    width: 1120px;
    max-width: 92%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    z-index: 2;
}

#main-visual .left {
    flex: 1;
    z-index: 2;
}

#main-visual h2 {
    color: #111;
    font-size: 36px;
    font-family: "LINE Seed Sans KR";
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 16px;
}

#main-visual h3 {
    color: #4B4B4B;
    font-size: 14px;
    font-family: "LINE Seed Sans KR";
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 32px;
}

.main-slide-control {
    position: relative;
    height:0;
}
.main-slide-control .wrap {
    position:absolute;
    top:-80px;
    display: flex;
    gap:8px;
    align-items: center;
    justify-content: flex-start !important;
}
.main-slide-control .page {
    font-size: 12px;
    font-family: "LINE Seed Sans KR";
    font-weight: 400;
    color: #222;
}

.main-slide-control button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.main-slide-control button img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.main-slide-control button:focus {
    outline: none;
}


.visual-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.visual-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.visual-slide.active {
    opacity: 1;
    pointer-events: auto;
}

#main-visual .login-wrap {
    position:absolute;
    top:0;
    right:0;
    left:0;
    bottom:auto;
    height:0;
    margin:auto;
}
#main-visual .login-card {
    position: absolute;
    top: 30px;
    right: 0;
    width: 370px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #DBDDED;
    background: #FFF;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.12);
     z-index: 3;
}

#main-visual .card-top {
    height:190px;
    background: #F3F5F8;
    padding: 32px 32px 12px;
    text-align: center;
}

#main-visual .card-top .login-text {
    color: #000;
    font-size: 18px;
    font-family: "LINE Seed Sans KR";
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: -0.36px;
    margin-bottom: 16px;
}

#main-visual .card-top .btn-login {
    display: block;
    width: 100%;
    background: #264993;
    color: #fff;
    font-weight: 500;
    font-family: "LINE Seed Sans KR";
    border-radius: 8px;
    font-size: 1.4rem;
    padding: 12px 0;
    text-decoration: none;
    transition: 0.2s;
}

#main-visual .card-top .btn-login:hover {
    background: #163379;
}

#main-visual .card-top .link-join {
    display: inline-block;
    margin-top: 10px;
    font-size: 1.3rem;
    font-family: "LINE Seed Sans KR";
    color: #666;
    text-decoration: none;
}

#main-visual .card-top .link-join:hover {
    text-decoration: underline;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 24px;
}

.card-bottom .btn-image {
    flex: 1;
    display: flex;
    justify-content: center;   /* ★ 내부 그룹(btn-inner)을 버튼 중앙에 위치 */
    align-items: center;
    height: 76px;
    padding: 0 24px;
    border-radius: 24px 4px;
    overflow: hidden;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-bottom .btn-image:hover {
    transform: translateY(-3px);    /* ★ 살짝 위로 띄우기 */
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);   /* ★ 그림자 깊이 */
}

.card-bottom .btn-image:first-child {
    background: url('/images/content/main/btn-start-bg.png') no-repeat center / cover;
}

.card-bottom .btn-image:last-child {
    background: url('/images/content/main/btn-report-bg.png') no-repeat center / cover;
}

.card-bottom .btn-inner {
    display: flex;
    align-items: center;
    /* gap: 4px; */
}

.card-bottom .btn-text {
    white-space: nowrap;        /* 두 줄 방지 */
    font-size: 14px;
    font-weight: 400;
    font-family: "LINE Seed Sans KR";
}

.card-bottom .btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;             /* ★ 아이콘 찌그러짐 방지 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-bottom .btn-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;        /* ★ 비율 유지 */
}


#main-visual .esg-summary-box {
    border-radius: 4px;
    /* padding: 12px 16px; */
    width: 100%;
    font-family: "Pretendard", sans-serif;
}

#main-visual .esg-summary-box .greeting {
    color: var(--000000, #000);
    font-size: 18px;
    line-height: 140%; /* 25.2px */
    margin-bottom: 16px;
}
#main-visual .esg-summary-box .status-list {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid #DBDDED;
}
#main-visual .esg-summary-box .status-list li {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}
#main-visual .esg-summary-box .status-list li:last-child {
    border-bottom: none;
}
#main-visual .esg-summary-box .status-list .title {
    color: #555;
    font-size: 14px;
}
#main-visual .esg-summary-box .status-list .count {
    font-weight: 600;
    color: #333950;
}
#main-visual .esg-summary-box .status-list .count.zero {
    color: #999;
}

.esg-info-wrap {
    flex-wrap: wrap;
    max-width: 1120px;
    width: 90%;
    margin: 24px auto;
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.esg-info-left {
    width: 737px;
    max-width: 100%;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(77, 83, 165, 0.20);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.esg-info-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
}

.esg-info-cards {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.esg-card {
    flex: 1;
    border-radius: 4px;
    padding: 18px;
    transition: all 0.25s ease;
}

.esg-green  {
    border: 1.5px solid rgba(25, 145, 117, 0.10);
    background: #D5E9E4;
}

.esg-green:hover {
    background: #E3EFEC;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.esg-blue   {
    border: 1.5px solid rgba(47, 137, 197, 0.10);
    background: #CEE7F3;
}

.esg-blue:hover {
    background: #DCF3FF;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.esg-purple {
    border: 1.5px solid rgba(116, 90, 155, 0.10);
    background: #E5DBF4;
}

.esg-purple:hover {
    background: #EEE9F6;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.esg-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.esg-card-title {
    color: var(--333950, #333950);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 150% */
    letter-spacing: -0.32px;
}

.esg-card-head img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.esg-card-text {
    color: var(--333950, #333950);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 150% */
    opacity: 0.6;
}

/* 카드 전체를 클릭 가능하게 변경 */
.esg-info-cards li {
    flex: 1;
}

.esg-card {
    display: block;
    flex: 1;            
    text-decoration: none;   
    color: inherit;       
    border-radius: 4px;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.esg-slide-box {
    display: block;
    width: 369px;
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(77, 83, 165, 0.20);
    background: #E2E9F6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    margin: 0 auto; 
}


.esg-slide-banner {
    width: 100%;
    height: auto;
}

.esg-slide-banner img {
    width: 100%;
    height: auto;
    padding: 8px;
}

.esg-slide-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}


.esg-slide-control .page {
    font-size: 12px;
    font-weight: 400;
    color: #222;
}

.esg-slide-control button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.esg-slide-control button img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.esg-slide-control button:focus,
.esg-slide-control button:active {
    outline: none;
    box-shadow: none;
}


.notice-box {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(77, 83, 165, 0.20);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.notice-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.notice-more {
    color: var(--4-b-4-b-4-b, #4B4B4B);
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 153.846% */
    display: flex;
    align-items: center;
    gap: 4px;
}
.notice-more img{
    width: 20px;
}
.notice-list {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-item {
    flex: 1;
}


.notice-link {
    display: block;
    border-radius: 4px;
    background: #F4F6F8;
    border: 1.5px solid var(--eaedef, #EAEDEF);
    padding: 18px;
    text-decoration: none;
    color: #333950;
    transition: all 0.25s ease;
    min-width: 221px;
}

.notice-link:hover {
    background: #efefef;
    transform: translateY(-3px);
}

.notice-text {
    color: var(--333950, #333950);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 171.429% */
    letter-spacing: -0.56px;
    margin-bottom: 4px;
}

.notice-date {
    color: #6B6B6B;
    font-size: 12px;
    font-style: normal;
    font-weight: 250;
    line-height: 18px; /* 150% */
}

.inquiry-box {
    width: 369px;
    max-width: 100%;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(77, 83, 165, 0.20);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.inquiry-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
}

.inquiry-list {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: nowrap;    
}

.inquiry-list li {
    width: 88px;
    max-width: 88px;

    display: flex;
    flex-direction: column;  /* 아이콘 아래 텍스트 */
    align-items: center;
    gap: 6px;

    text-align: center;
    font-size: 13px;
    color: #7f7f7f;
}

.inquiry-list img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}


/*반응형*/
@media (min-width: 1025px) {
    #main-visual .login-card {
        position: absolute;
        top: 30px;
        right: 0;
        width: 370px;
    }
}

@media (max-width: 767px) {

    #main-visual {
        height: auto;
        /* padding-bottom: 100px; */
    }

    #main-visual .left {
        margin-top: 56px; 
    }

    #main-visual h2 {
        font-size: 32px;   /* 원하는 크기로 변경 */
        line-height: 130%;
        margin-bottom: 12px;
    }

    #main-visual .swiper-slide {
        height: calc(100vw * 1.75);
    }

    .main-slide-control {
        display: none !important;
    }

    #main-visual .swiper-slide.slide-1 {
        background-image: url('/images/content/main/main_visual_mo.png');
    }
    #main-visual .swiper-slide.slide-2 {
        background-image: url('/images/content/main/main_visual_2_mo.png');
    }

    #main-visual .wrap {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    /* 로그인 카드 영역 정중앙 정렬 */
    #main-visual .wrap {
        align-items: center !important;
    }

    #main-visual .login-wrap {
        position: static;
        height: auto;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    #main-visual .login-card {
        position: static;  
        width: 100%;    
        /* max-width: 400px; */
        /* min-height: 320px;  */
        margin: 24px auto 0;
    }

    .esg-info-cards {
        flex-direction: column;
    }

    .notice-inquiry-wrap {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        gap: 20px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .notice-box {
        width: 100% !important;
        max-width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .notice-list {
        flex-direction: column;
        gap: 12px;
    }

    .notice-item {
        width: 100%;
        flex: none; /* flex비율 제거 → width 100% 유지 */
    }

    .notice-link {
        width: 100%;
        min-width: auto;     /* PC 고정 221px 제거 */
        box-sizing: border-box;
    }

    .inquiry-box {
        width: 100% !important;
        max-width: 100%;
        padding: 20px;
        height: auto;
        box-sizing: border-box;
    }
    
    .inquiry-list img {
        width: 40px;
        height: 40px;
    }
}

