*{box-sizing: border-box;}

html{
    font-family: 'SpoqaHanSansNeo-Regular', 'Noto Sans KR', sans-serif;
    font-size:16px;
    word-break: keep-all;
    color: #fff;
    scroll-behavior: smooth;
  }
body{
    letter-spacing: 0.5px;
    background-color: #11100C;
    text-transform:capitalize;
    overflow-x: hidden;
    width: 100%;
}
.container{
    transition: all .3s ease 0s;
}
.scriollEvent{
    transition:all 1s ease 0s;
    opacity:0;
    transform:translateY(50px);
}
.scriollEvent.on{
    opacity:1;
    transform:translateY(0);
}

header{
    width: 100%;
    position:fixed;
    top:0; left:0;
    padding:24px 64px;
    z-index: 5000;
    background:linear-gradient(#000, rgba(0,0,0,0));
}
header>nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header>nav>ul{
    line-height: 160%;
    display: flex;
}
header>nav>ul>li{
    text-align: center;
    margin-left: 48px;
}
header>nav>ul>li:first-of-type{margin-left: 0;}
header>nav>ul>li::after{
    display: block;
    content: "";
    background: #FFBA00;
    width: 0; height: 2px;
    transition: all .3s ease 0s;
}
header>nav>ul>li:hover:after{
    width: 100%;
}

/* layout */
.container{
    width: 1200px;
    margin: 0 auto;
    padding-top: 166px;
}

/* common style */
.topWrapper{
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 0 16px;
    margin-bottom: 40px;
}
.topWrapper h1{
    font: 2.85rem 'SpoqaHanSansNeo-Bold'
}
.topWrapper h1>span{
    color: #FFC93C;
}
.topWrapper h1>.banner_copy_transition{
    color: #fff;
    font: 1.5em 'InkLipquid';
    transition: all .3 ease 0s;
}
.topWrapper h3{
    font-family:'SpoqaHanSansNeo-Medium';
    line-height: 140%;
    color: #D9D8D4;
    text-align: right;
}
.topWrapper>.topWrapper_title>h4{
    font-family:'SpoqaHanSansNeo-Medium';
    line-height: 140%;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}
.topWrapper>.topWrapper_title>h4::after{
    display: block;
    content: "";
    position: absolute;
    top: 0%; right: -12%;
    background: #FFC93C;
    width: 6px; height: 6px;
    border-radius: 50%;
}
#banner,#thankYouBy,#portfolio,#aboutHanjul,#websitePortfolio{
    width: 100%;
    margin-bottom: 260px;
}

/* banner */
#banner>figure{
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 40px;
}
#banner>figure>.banner_video{
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 16px;
}
#banner>.banner_sns{
    margin: 0 16px;
}
#banner>.banner_sns>a{
    margin-left: 32px;
    position: relative;
    display: inline-block;
}
#banner>.banner_sns>a:first-of-type{
    margin-left: 0;
}
#banner>.banner_sns>a::after{
    display: none;
    content: "";
    position: absolute;
    top: 0; right: -12%;
    background: #FFC93C;
    width: 6px; height: 6px;
    border-radius: 50%;
}
#banner>.banner_sns>a:hover::after{
    display: block;
}

/* portfolio */
.portfolio_list{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}
.portfolio_list>li{
    width: 23.5%;
    margin-bottom: 40px;
}
.portfolio_list>li figure{
    width: 100%;
    height: 160px; /* 기존 유튜브 포트폴리오 고정 높이 */
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    display: inline-flex;
}
.portfolio_list>li img,.swiper-slide img{
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: all .3s ease 0s;
}
.portfolio_list>li figure:hover>img,.swiper-slide figure:hover>img{
    transform: scale(1.05);
}

/* thankYouBy */
.thankYouBye_contents_commonStyle{
    display: flex;
    border: 1px solid #fff;
    border-radius: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 72px 120px;
}
.thankYouBye_contents_commonStyle figure{
    display:inline-flex ;
    width: 440px; height: 220px;
    overflow: hidden;
    border-radius: 12px;
}
.thankYouBye_contents_commonStyle figure>img{
    width: 100%;
}
.thankYouBye_contents_commonStyle_wrapper>div:first-of-type{
    margin-bottom: 32px;
}
.thankYouBye_contents_commonStyle_wrapper>div:first-of-type>h2{
    display: inline-block;
    margin-bottom: 12px;
    font-family: 'SpoqaHanSansNeo-Bold';
}
#thankYouBy .newContent_wrapper_text>h2{
    font-size: 2.2rem;
}
#thankYouBy .newContent_wrapper_text>p{
    line-height: 160%;
}
#thankYouBy .bestContent_wrapper_text>h2{
    font-size: 1.8rem;
    line-height: 130%
}
#thankYouBy .bestContent_wrapper_text>p{
    display:flex;
}
#thankYouBy .bestContent_wrapper_text span{
    font-size: 3.6rem;
    font-family: 'SpoqaHanSansNeo-Bold';
    display: flex;
    align-items: center;
    letter-spacing: 3px;
}
.bestContent_wrapper2{
    display: none;
}
#thankYouBy .bestContent_wrapper_text span:nth-last-child(3n)::before{
    content: ",";
}
#thankYouBy .bestContent_wrapper_text>p>span:last-of-type::after{
    content: "회";
    font-size: 1.7rem;
    font-family: 'SpoqaHanSansNeo-Bold';
    color: #43423E;
    margin-left: 8px;
}
.thankYouBye_contents_commonStyle_wrapper>.popoverOpen{
    color: #fff;
    border: 1px solid #fff;
    border-radius: 32px;
    display: flex;
    align-items: center;
    padding: 12px 24px;
    height: 48px;
    line-height: 160%;
}
.thankYouBye_contents_commonStyle_wrapper>.popoverOpen>svg{
    margin-left: 8px;
    fill: #FFBA00;
}
.thankYouBye_contents_newContent{
    margin-bottom: 16px;
}
#thankYouBy>.thankYouBye_contents{
    margin-bottom: 40px;
}
#thankYouBy>.thankYouBye_client,
.thankYouBye_client>ul,
.thankYouBye_client>ul>li{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#thankYouBy>.thankYouBye_client{
    justify-content: center;
    font-family: 'SpoqaHanSansNeo-Medium';
    line-height: 140%;
}
.thankYouBye_client_list>li{
    margin-left: 48px;
}
.thankYouBye_client_list a{
    width: 48px; height: 48px;
    border-radius: 16px;
    overflow: hidden;
    margin-right: 24px;
}
.thankYouBye_client_list a>img{
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: all .3s ease 0s;
}
.thankYouBye_client_list a:hover>img{
    transform: scale(1.15);
}
.thankYouBye_client_list>li>p{
    font-family: 'SpoqaHanSansNeo-Regular';
    font-size: .8rem;
}


/* about hanjul */
#aboutHanjul .swiper {
    width: 100%;
    height: 100%;
    overflow: visible;
  }
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-slide figure{
    overflow: hidden;
    border-radius: 12px;
}
.swiper-slide img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.aboutHanjul_wrapper>button{
    background: #fff;
    border-radius: 50%;
    width: 40px; height: 40px;
    color: #2A2925;
    box-shadow: 0 4px 12px rgba(0,0,0,16%);
}
.aboutHanjul_wrapper>.swiper-button-prev{
    left: -20px;
  }
.aboutHanjul_wrapper>.swiper-button-next{
    right: -20px;
}
.aboutHanjul_wrapper>.swiper-button-prev:after,
.aboutHanjul_wrapper>.swiper-button-next:after {
    font-size: 1rem;
    font-weight: bold;
}
.swiper-pagination{
    display: none
}

/* contactUs, footer common style */
#contactUs, footer{
    width: 100vw;
    padding: 96px 120px;
}
.contactUs_container,
footer>.footer_container{
    width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* contactUs */
#contactUs{
    background-color: #FFBA00;
}
.contactUs_container_wrapper{
    color: #11100C;
}
.contactUs_container_wrapper>h1{
    font: 2.8rem 'SpoqaHanSansNeo-Bold';
    margin-bottom: 24px;
}
.contactUs_container_wrapper_call{
    display: flex;
}
.contactUs_container_wrapper_call>div{
    display: flex;
}
.contactUs_container_wrapper_call p{
    margin-left: 8px;
    font-size: 14px;
    line-height: 160%;
}
.contactUs_container_wrapper_call>p{
    color: #AF6B00;
}
.contactUs_container_wrapper_call figure{
    width: 24px; height: 24px;
}
.contactUs_container_qr{
    max-width: 112px;
    max-height: 112px;
}
.contactUs_container_wrapper_call figure>img, .contactUs_container_qr>img{
    width: 100%; height: 100%;
    object-fit: contain;
}

/* footer */
footer{
    background-color: #2A2925;
    font-size: 14px;
    line-height: 160%;
    color: #F2F1ED;
}
.footer_container_info>h1{
    margin-bottom: 24px;
}
.footer_container_info_address>span{
    color: #C0BFBB;
}
.footer_container_copy{
    height: 100%;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.footer_container_copy>h2{
    font-family: 'SpoqaHanSansNeo-Medium';
    line-height: 140%;
    font-size: 1.4rem;
    color: #fff;
}
.footer_container_copy>p{
    color: #C0BFBB;
}
.footer_container_copy>h2>span{
    color: #FFBA00;
}

/* youtubePopup */
.youtubePopup.on{
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    z-index: 9999999
}
.youtubePopup .video-wrapper {
    position: relative;
    width: 80%;
    padding-bottom: 45%;
    z-index: 10
}
.youtubePopup .video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
}
.youtubePopup.on .youtubePopup_closer{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .6);
}

/* 웹사이트 포트폴리오 섹션 제목 좌측 정렬 - 더 강력한 선택자 */
.websitePortfolio .section_title,
.websitePortfolio h2,
.websitePortfolio .title,
.websitePortfolio .main-title,
section.websitePortfolio .section_title,
section.websitePortfolio h2,
section.websitePortfolio .title,
section.websitePortfolio .main-title {
    text-align: left !important;
}

/* 혹시 인라인 스타일이나 다른 CSS가 우선순위를 가질 경우 */
.websitePortfolio * {
    text-align: left !important;
}

/* 특정 요소만 제외하고 (포트폴리오 아이템 제목은 가운데 정렬 유지) */
.websitePortfolio .websitePortfolio_list h3 {
    text-align: center !important;
}
section.websitePortfolio,
.websitePortfolio,
#websitePortfolio {
    margin-bottom: 260px !important;
    padding-bottom: 0 !important;
}

/* 혹시 다른 클래스와 함께 있을 경우 */
section[class*="websitePortfolio"],
section[id*="websitePortfolio"] {
    margin-bottom: 140px !important;
    padding-bottom: 0 !important;
}

/* 웹사이트 포트폴리오 섹션 - 기존 톤앤매너 유지 */
.websitePortfolio_list{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0; /* 섹션 하단 여백 제거 */
}

.websitePortfolio_list>li{
    width: 32%; /* 3개씩 배치 */
    margin-bottom: 60px;
    position: relative;
    cursor: pointer;
}

/* 마지막 줄 아이템들의 하단 여백 제거 */
.websitePortfolio_list>li:nth-last-child(-n+3) {
    margin-bottom: 0;
}

.websitePortfolio_list>li figure{
    width: 100%;
    height: 280px; /* 큰 사이즈 */
    margin-bottom: 16px;
    border-radius: 12px; /* 기존과 동일한 테두리 */
    overflow: hidden;
    display: inline-flex;
    position: relative;
}

.websitePortfolio_list>li img{
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: all .3s ease 0s;
}

.websitePortfolio_list>li figure:hover>img{
    transform: scale(1.05); /* 호버 시 확대만 */
}

.websitePortfolio_list>li h3{
    font-family: 'SpoqaHanSansNeo-Medium';
    font-size: 1.0rem; /* 적당한 크기로 조정 */
    line-height: 140%;
    color: #D9D8D4;
    margin: 0 0 40px 0; /* 제목 아래 여백 추가 */
    text-align: left; /* PC에서도 좌측 정렬 */
}

/* 모바일 반응형 - 태블릿 */
@media (max-width: 1024px) {
    .websitePortfolio_list>li{
        width: 48%; /* 2개씩 배치 */
        margin-bottom: 50px;
    }
    
    /* 태블릿에서 마지막 줄 여백 제거 */
    .websitePortfolio_list>li:nth-last-child(-n+2) {
        margin-bottom: 0;
    }
    
    .websitePortfolio_list>li figure{
        /* 비율 유지: 48% 너비에 맞춰 높이 계산 */
        aspect-ratio: 1.37 / 1; /* 기존 PC 비율과 동일 */
        height: auto;
    }
}

/* 모바일 반응형 - 스마트폰 */
@media (max-width: 768px) {
    /* 모바일에서는 모든 섹션 140px */
    #banner, #thankYouBy, #portfolio, #aboutHanjul, #websitePortfolio {
        margin-bottom: 140px !important;
    }
    
    section.websitePortfolio,
    .websitePortfolio,
    #websitePortfolio {
        margin-bottom: 140px !important; /* 모바일만 140px */
        padding-bottom: 0 !important;
    }
    
    section[class*="websitePortfolio"],
    section[id*="websitePortfolio"] {
        margin-bottom: 140px !important; /* 모바일만 140px */
        padding-bottom: 0 !important;
    }
    
    .websitePortfolio_list{
        justify-content: center;
        margin-bottom: 0; /* 모바일에서도 하단 여백 제거 */
    }
    
    .websitePortfolio_list>li{
        width: 90%; /* 1개씩 배치, 양쪽 여백 */
        margin-bottom: 30px; /* 모바일에서 여백 줄임 */
    }
    
    /* 모바일에서 마지막 아이템 여백 제거 */
    .websitePortfolio_list>li:last-child {
        margin-bottom: 0;
    }
    
    .websitePortfolio_list>li figure{
        /* 비율 유지: 90% 너비에 맞춰 높이 자동 계산 */
        aspect-ratio: 1.37 / 1; /* PC와 동일한 비율 */
        height: auto;
    }
    
    .websitePortfolio_list>li h3{
        font-size: 0.95rem;
        text-align: left; /* 모바일에서도 좌측 정렬 */
        margin: 0 0 16px 0; /* 모바일에서 제목 아래 여백 16px로 수정 */
    }
}

/* 작은 모바일 */
@media (max-width: 480px) {
    .websitePortfolio_list>li{
        width: 95%;
        margin-bottom: 25px; /* 더 작은 여백 */
    }
    
    /* 작은 모바일에서도 마지막 아이템 여백 제거 */
    .websitePortfolio_list>li:last-child {
        margin-bottom: 0;
    }
    
    .websitePortfolio_list>li figure{
        /* 비율 유지 */
        aspect-ratio: 1.37 / 1;
        height: auto;
    }
}

/* 호버 오버레이와 화살표 효과 제거 */
/*
.websitePortfolio_overlay{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.websitePortfolio_list>li:hover .websitePortfolio_overlay{
    opacity: 1;
}

.websitePortfolio_play{
    color: #fff;
    font-size: 24px;
    background: rgba(255, 186, 0, 0.8);
    padding: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    transition: all .3s ease 0s;
}

.websitePortfolio_play:hover{
    background: #FFBA00;
    transform: scale(1.1);
}
*/