/* ========== color ========== */
:root {
    --black: #191919;
    --white: #ffffff;
}

/* ==================== common ==================== */
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: inherit;
}

body {
    position: relative;
    font-family: "Montserrat", "Pretendard Variable", Pretendard,
    -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--black);
    font-weight: 400;
    font-size: 1em;
}


a {
    color: var(--black);
    text-decoration: none;
}

ul {
    padding-left: 0;
    margin-bottom: 0;
    list-style-position: inside;
}

li {
    list-style: none;
}
h1,h2,h3,h4,h5,h6,p{
    margin-bottom: 0;
}

/* ==================== Header ==================== */

.site-header {
    width: 100%;
    height: 100px;
    box-sizing: border-box;
    
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 800;

    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* 스크롤 후 상단 고정 상태 */
.site-header.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white); 
}
@keyframes header-slide-down {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}
/* is-fixed 되면서 한 번만 재생되는 애니메이션 상태 */
.site-header.is-fixed.header-animate {
    animation: header-slide-down 0.3s ease;
}

.site-header.is-fixed{
    height: 80px;
}

.site-header-logo{
    background-image: url('../img/logo-nonebg-w.svg');
    background-size: 60px;
    background-position: left center;
    background-repeat: no-repeat;
    width: 100px;
    height: 100px;
}

.site-header.is-fixed .site-header-logo{
    background-image: url('../img/logo-b-home.svg');
    width: 80px;
    height: 80px;
    background-size: 50px;
}

.site-header-inner {
    padding: 0 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



.nav-group {
    display: flex;
    align-items: center;
    gap: 80px;
}

.site-header-toggle {
    display: block;
    width: 32px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1002;
}

.site-header-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--black);
    margin-bottom: 6px;
    transition: opacity 0.2s ease;
}

.site-header-toggle span:last-child {
    margin-bottom: 0;
}

/* 헤더 안 메뉴 (가로 메뉴) */
.site-nav-list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 80px;
}

.site-nav-link {
    display: flex;
    padding: 20px 0;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    color: var(--black);
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    position: relative;
}
.site-header.is-fixed .site-nav-link{
    padding: 24px 0;
}

.site-nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: var(--black);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.site-nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.site-nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ==================== Side nav (오른쪽 드로어) ==================== */
.side-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 80%;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 50px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* 열렸을 때 */
.side-nav.is-open {
    transform: translateX(0);
}

/* 사이드 메뉴의 리스트 */
.side-nav-list {
    margin-top: 100px; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 사이드 메뉴 안에서는 밑줄 애니메이션 제거 */
.side-nav .site-nav-link::after {
    display: none;
}

/* 사이드 메뉴 X 버튼 */
.side-nav-close {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

/* X 모양 두 줄 */
.side-nav-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 3px;
    background: var(--black);
    border-radius: 999px;
    transform-origin: center;
}

.side-nav-close::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    border-radius: 4px;
}

.side-nav-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.side-nav-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 딤 처리 */
.site-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 900;
}

.site-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* body 스크롤 잠그기 */
body.nav-open {
    overflow: hidden;
}



/* ==================== footer ==================== */
footer{
    display: flex;
    padding: 40px 120px;
    align-items: center;
    gap: 40px;
    align-self: stretch;
    justify-content: space-between;
    background-color: #252E3D;
}
footer .left{
    display: flex;
    align-items: center;
    gap: 20px;
}
footer .left .footer-logo{
    width: 100px;
    height: 100px;
    background-image: url('../img/logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
footer .left h2{
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
}

footer .right{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
}
footer .right li{
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 400;
}
footer .right li span{
    font-weight: 600;
}


/* ==================== Scroll Top Button ==================== */

.scroll-top{
    position: fixed;
    right: 40px;
    bottom: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: #DAC99D;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    background-image: url('../img/scroll-top.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;

    /* 처음엔 숨김 (시각적으로 + 클릭 안 되게) */
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);

    z-index: 850; 
    transition: opacity 0.25s ease, transform 0.25s ease;

    z-index: 100;
}

/* 보여줄 때 상태 */
.scroll-top.is-visible{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}




/* ==================== Index ==================== */

.main-banner {
    background-image: url('../img/main-banner.png');
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 1080px;
    margin-top: -100px;
}
.main-banner .banner-title{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 320px 120px 0;
}
.main-banner .banner-title h2{
    font-size: 50px;
    font-weight: 700;
    line-height: 62px;
}
.main-banner .banner-title p{
    font-size: 24px;
    font-weight: 400;
    line-height: 34px;
}


/* community slider */
.communities{
    padding: 120px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    align-self: stretch;
}

.title{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.title h2{
    font-size: 32px;
    line-height: 42px;
    font-weight: 700;
}
.title p{
    font-size: 18px;
    font-weight: 400;
}

.communities-slider {
    position: relative;
    touch-action: pan-y;

    width: calc(100% - 120px);
    margin-left: 120px;
}

.communities-track-wrapper {
    position: relative;
    overflow: hidden;
}

/* 오른쪽 흰색 그라데이션 */
.communities-track-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 160px; 
    height: 100%;
    pointer-events: none;
    background: linear-gradient(270deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%);
    z-index: 4;
}

/* 실제 슬라이드 트랙 */
.communities-track {
    display: flex;
    gap: 32px;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* 카드 하나 – 폭 고정 */
.community-card {
    flex: 0 0 648px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 카드 안쪽 스타일 */
.community-image {
    position: relative;
    overflow: hidden;
}

.community-image img {
    display: block;
    width: 100%;
    height: auto;
}

.community-badge {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: var(--white);
    display: flex;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    background-color: #252E3D;
    font-size: 14px;
    font-weight: 600;
}

.community-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.community-name {
    font-size: 18px;
    font-weight: 400;
}
.community-location {
    font-size: 20px;
    font-weight: 600;
}
.community-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 26px; 
}

/* ================== 화살표 버튼 ================== */

.communities-arrow {
    position: absolute;
    top: calc(50% - 66px);
    transform: translateY(-50%);
    border-radius: 50%;
    border: none;
    background: rgba(37, 46, 61, 0.70);
    background-size: 40px;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--white);
    font-size: 24px;
    display: flex;
    width: 60px;
    height: 60px;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
    cursor: pointer;
    z-index: 5;

}
.communities-prev {
    left: 0;
    background-image: url('../img/arrow-prev.svg');
}
.communities-next {
    right: 120px;
    background-image: url('../img/arrow-next.svg');
}

.bottom-work{
    display: flex;
    padding: 120px 120px 150px;
    flex-direction: column;
    align-items: center;
    gap: 150px;
    align-self: stretch;
    background-color: #F6F6F6;
}
.icon-group{
    display: flex;
    width: 80%;
    justify-content: space-between;
    align-items: center;
}
.icon-box{
    display: flex;
    width: 100px;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    flex-shrink: 0;
}
.icon-box img{
    display: flex;
    width: 100px;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    flex-shrink: 0;
}
.icon-box p{
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}



/* ==================== About ==================== */

.section-more{
    display: none;
    padding: 12px;
    justify-content: center;
    align-items: center;
    gap: 15px;
    align-self: stretch;
    border-radius: 999px;
    border: 1px solid #252E3D;
    font-size: 16px;
    font-weight: 700;
    background-color: transparent;
    width: 100%;
}

/* 서브 배너 */
.sub-banner{
    display: flex;
    width: 100%;
    height: 500px;
    padding: 120px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    margin-top: -100px;
    background-size: cover;
    background-repeat: no-repeat;
}
.sub-banner .banner-title h2{
    font-size: 50px;
    font-weight: 700;
    line-height: 62px;
}
.sub-banner.about{
    background-image: url('../img/about-banner.png');
}

/* 섹션 공통 */
.section{
    display: flex;
    padding: 120px 120px 150px 120px;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    align-self: stretch;
}

.img-grid{
    display: flex;
    align-items: center; 
    gap: 40px;
    align-self: stretch;
}
.img-grid.has-expanded{
    align-items: flex-start;
}

.img-grid .img{
    width: 50%;
    height: 500px;
    flex: 1 0 0;
    background-color: #ededed;
}
.img-grid .img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-grid .desc{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    flex: 1 0 0;
}

.img-grid .desc .title{
    font-size: 28px;
    font-weight: 700;
    line-height: 40px; 
}

.img-grid .desc .group{
    
    position: relative;
}

.img-grid .desc .group-inner{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    align-self: stretch;
    width: 100%;
    transition: max-height 0.25s ease;
}

/* 소제목 */
.img-grid .desc .sub-title{
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
}

/* 본문 텍스트 */
.img-grid .desc .txt{
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    margin-bottom: 26px;
}

/* ...more / close 공통 */
.img-grid .desc .txt-more{
    font-weight: 700;
    line-height: 26px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: underline;
}

/* ── 접힌 상태 (is-clamped) ── */
.img-grid .desc .group.is-clamped .group-inner{
    overflow: hidden;
}

.img-grid .desc .group.is-clamped .txt-more{
    position: relative;
    left: 0;
    bottom: 0;
}

/* ── 펼친 상태 (is-expanded) ── */
.img-grid .desc .group.is-expanded .group-inner{
    max-height: none;
    overflow: visible;
}

.img-grid .desc .group.is-expanded .txt-more{
    position: static;
    background: none;
}

/* 회색 배경 섹션 */
.section.grey-sect{
    background-color: #F4F4F4;
}

.grey-text-group{
    display: flex;
    justify-content: center;
    align-items: stretch; 
    gap: 40px;
    align-self: stretch;
}

/* 카드 한 개 */
.grey-text-group .icon-box{
    position: relative; 
    display: flex;
    padding: 40px 0;
    flex-direction: column;
    gap: 40px;
    flex: 1 0 0;
    background: var(--white);
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* 아이콘 */
.grey-text-group .icon-box img{
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
}

/* 타이틀 */
.grey-text-group .icon-box h4{
    text-align: center;
    font-size: 20px;
    line-height: 32px;
    font-weight: 700;
    padding: 0 20px;
}

/* 본문 텍스트 */
.grey-text-group .icon-box p{
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    text-align: left;
    padding: 0 40px;
    position: relative;
    margin-bottom: 0;
}

/* ...more / close 공통 스타일 */
.grey-text-group .icon-box .txt-more{
    font-weight: 700;
    line-height: 26px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: underline;
}

/* 접힌 상태: 줄 수 기준으로 잘라내기 */
.grey-text-group .icon-box.is-clamp-lines p{
    overflow: hidden;
}

.grey-text-group .icon-box.is-clamp-lines .txt-more{
    position: absolute;
    right: 40px;
    bottom: 0;
    padding-left: 24px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0),
        #ffffff 40%
    );
}

/* 펼친 상태: 문단 끝에 인라인 붙기 */
.grey-text-group .icon-box.is-expanded .txt-more{
    position: static;
    background: none;
    padding-left: 4px;
}


.vertical-info{
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.vertical-info .title {
    font-size: 28px;
    font-weight: 700;
    line-height: 40px;
}
.vertical-info p{
    font-size: 18px;
    font-weight: 400;
}
.vertical-info .group{
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.vertical-info .group .tit{
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
}
.vertical-info .group .txt{
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

.bg-grey{
    background-color: #F4F4F4;
}



.about-bottom{
    background-image: url('../img/about-bottom.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    align-items: flex-start;
    gap: 20px;
}
.about-bottom p{
    font-size: 20px;
    font-weight: 500;
}
.about-bottom h2{
    font-size: 40px;
    line-height: 50px;
    font-weight: 700;
    margin-bottom: 40px;
}
.about-bottom .info{
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}


/* ==================== Partners ==================== */
.sub-banner.partners{
    background-image: url('../img/partners-banner.png');
}

.partners-intro{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    align-self: stretch;
}
.partners-intro img{
    width: 197px;
    height: 200px;
    aspect-ratio: 197/200;
}
.partners-intro h3{
    font-size: 28px;
    font-weight: 700;
    line-height: 40px;
}
.partners-intro p{
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    text-align: center;
}

.partners-group{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 120px;
    align-self: stretch;
}
.partners-group li{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 120px;
    flex: 1 0 0;
    text-align: center;
}
.partners-group .logo-list{
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.partners-group .logo-list img{
    mix-blend-mode: multiply;
    height: 70px;
}

/* ==================== What we do ==================== */
.sub-banner.what-we-do{
    background-image: url('../img/what-we-do-banner.png');
}

.what-we-do-intro{
    background-image: url('../img/what-we-do-intro.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

.grid-box,
.num-box{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-self: stretch;
    flex-wrap: wrap;
}
.grid-box li,
.num-box li{
    display: flex;
    height: 140px;
    padding: 0 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    border: 1px solid #dfdfdf;
    background: var(--white);
    box-shadow: 0 4px 4px 0 rgba(178, 178, 178, 0.10);
    color: var(--black);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 30px;
    align-self: stretch;
}


.num-box li{
    height: auto;
    padding: 40px;
    gap: 20px;
}
.num-box .num{
    font-size: 30px;
    font-weight: 800;
    color: #cdcdcd;
}
.num-box h5{
    font-size: 18px;
    font-weight: 700;
}
.num-box .list{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.num-box .list p{
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    padding-left: 20px;
    background-image: url('../img/dot.svg');
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: left top 7px;
}




































