/* *******************************************************
* 파일명 : main.css
* 작성자 : 이윤
* 작성일 : 25-11-12
* 설  명 : index파일 (메인페이지에서만 호출하는 css
           메인페이지 (index)의 스타일이 이 페이지에서 선언됨 (header/footer)
           default.css (태그의 초기화 - 브라우저 스타일 제거)
           common.css (wrapper, blind 처럼 모든 페이지에서 반복되는 기본 스타일 - 변수도 여기서 선언)
           - 변수도 여기서 선언, 변수가 너무 많으면 var이라는 파일을 분리하기도 함
           layout.css (문서의 구조에 영향을 끼치는 요소 - header/footer가 들어감)
**********************************************************/

@import url(default.css);
@import url(font.css); /* cdn 방식은 외부에서 가져오는 방식이기 때문에 없어지면 연결 안됨 */
@import url(common.css);
@import url(layout.css);

/********pc********/
.visual {
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.visual .row {
    display: flex;
    gap: 0 10px;
    justify-content: center;
    align-items: center;
    font-size: clamp(80px, 8vw, 140px);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tit);
    color: var(--color-black);
}
.visual .row strong {
    color: var(--color-point);
}
.visual .row .photo_wrap {
    display: block;
    position: relative;
    width: 3em;
    height: 1em;
    z-index: 10;
}
.visual .row .photo_wrap .photo_move {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}
.visual .row .photo_wrap .photo_move .photo_bg {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-main);
}
/* PC 이미지 기본 표시 */
.visual .row .photo_wrap .photo_move img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 모바일 이미지는 기본 숨김 */
.visual .row .photo_wrap .photo_move .mo_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

@media screen and (min-width:769px) and (max-width:1024px){
    .visual .row {
    font-size: clamp(90px, 10vw, 150px);
    }
    .visual .row#line {
        flex-direction: column;
    }
}
/**************************************768************************************************************/
@media screen and (max-width:768px) {
    .visual .row {
        font-size: 80px;
    }
    /* PC 이미지 숨김 */
    .visual .row .photo_wrap .photo_move .pc-img {
        display: none;
    }
    /* Mobile 이미지 표시 */
    .visual .row .photo_wrap .photo_move .mo-img {
        display: block;
    }
    .visual .row#line {
        flex-direction: column;
    }
}

@media screen and (min-width:290px) and (max-width:650px){
    .visual .row {
        font-size: clamp(40px, 11vw, 80px);

    }
    .visual .row#line {
        flex-direction: column;
    }
}

/******************************************intro 시작***********************************************************/
.intro {
    position: relative;
    z-index: 9;
    transition: 0.5s;
    background-color: var(--color-main);
    color: var(--color-white);
}
.intro.green {
    background-color: var(--color-main);
    color: var(--color-white);
    z-index: 11;
}
.intro .wrapper {
    height: 100%;
}
.intro .photo {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 0 75px;
    width: 80%;
    margin: 0 auto;
    transform: translateY(100px);
    opacity: 0;
    transition: 0.5s;
}
.intro.green .photo {
    transform: translateY(0);
    opacity: 1;
}
.intro .photo_left,
.intro .photo_right, 
.intro .photo_center {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    width: calc(100% / 2);
}
.intro .photo_left img,
.intro .photo_right img,
.intro .photo_center img {
    width: 100%;
}
.intro .photo_center {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 50px);
    opacity: 0;
    z-index: 10;
}
.intro .photo_center img {
    display: block;
}

/* .green이 붙으면 애니메이션 시작 */
.intro.green .photo_left {
    transition-delay: 0s;
    opacity: 1;
    transform: translateY(0);
}
.intro.green .photo_right {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}
.intro.green .photo_center {
    transform: translate(-70%, 50%);
    opacity: 1;
    transition-delay: 0.6s;
}
.intro.green .photo_left img {
    width: 100%;
    margin: 130px 0 0 0;
}
.intro.green .photo_right img {
    width: 100%;
    margin: 10px 0 0 0;
}
.intro.green .photo_center img {
    width: clamp(195px, 45vw, 729px);
    display: block;
    height: auto;
}
.intro .txt h2,
.intro .txt p {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease, transform 1s ease;
}
.intro.green .txt h2,
.intro.green .txt p {
    opacity: 1;
    transform: translateY(0);
}

.intro.green .txt {
    text-align: center;
    margin-top: clamp(150px, 20vw, 330px);
    padding-bottom: clamp(60px, 10vw, 142px);
}
.intro.green .txt h2 {
    font-size: var(--font-size-tit);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tit);
    transition-delay: 1s;
    padding: 0 0 33px 0;
}
.intro.green .txt strong {
    color: var(--color-point2);
}
.intro.green .txt p {
    transition-delay: 1.2s;
}
/*****************************************1024********************************************************/
@media screen and (max-width:1024px) {
    /* photo wrapper 간격 축소 */
    .intro .photo {
        gap: 0 40px;
        transform: translateY(50px);
    }
    /* 좌우 사진 위치 동일하게 조정 */
    .intro.green .photo_left img,
    .intro.green .photo_right img {
        margin-top: 60px;
    }
    /* 가운데 사진은 내려주기 */
    .intro.green .photo_center {
        transform: translate(-50%, 45%);
    }
    /* 텍스트 영역 상단 간격 축소 */
    .intro .txt,
    .intro.green .txt {
        margin-top: 220px;
        padding-bottom: 100px;
    }
}
/*****************************************768********************************************************/
@media screen and (max-width:768px) {
    .intro .photo {
        gap: 0 20px;
    }
    .intro.green .photo_left img,
    .intro.green .photo_right img {
        margin-top: 40px;
    }
    .intro.green .photo_center {
        transform: translate(-50%, 80%);
    }
    .intro .txt,
    .intro.green .txt {
        margin-top: 150px;
        padding-bottom: 60px;
    }
}
/*******************************************360*********************************************************/
@media screen and (max-width:460px) {
    .intro.green .photo_center {
        transform: translate(-70%, 80%);
    }
}
/******************************************mission 시작***********************************************************/
.mission {
    background-color: var(--color-main);
    padding: 0 0 clamp(80px, 9vw,183px) 0;
    color: var(--color-white);
}
.mission h2 {
    display: inline-block;
    position: relative;
    font-size: var(--font-size-tit);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tit);
    margin: 0 0 17px 0;
}
.mission h2::before {
    position: absolute;
    content: "";
    right: -0.775em;
    top: 0.275em;
    width: 0.368em;
    height: 0.625em;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 15 25' fill='%23ffffff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.21875 25L0 22.7813L10.2813 12.5L0 2.21875L2.21875 0L14.7188 12.5L2.21875 25Z' /%3E%3C/svg%3E%0A");
}
.mission .list ul li {
    border-top: 1px solid var(--color-white);
}
.mission .list ul li a {
    display: flex;
    gap: 0 315px;
    padding: 34px 0 34px 0;
    align-items: center;
}
.img_open {
    display: none;
    position: fixed;
    z-index: 999;
    pointer-events: none;
    width: 400px;
    height: auto;
}
.img_open img {
    width: 200px;
    height: auto;
}
.mission .list ul li a.img_popup1 {
    position: relative;
}
.mission .list ul li a.img_popup1:hover .img_open {
    display: block;
}
.mission .list ul li a.img_popup2 {
    position: relative;
}
.mission .list ul li a.img_popup2:hover .img_open {
    display: block;
}
.mission .list ul li a.img_popup3 {
    position: relative;
}
.mission .list ul li a.img_popup3:hover .img_open {
    display: block;
}
.mission .list ul li a h3 {
    font-size: var(--font-size-sub);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-basic);
    width: 140px;
}
.mission .list ul li a p {
    width: 520px;
}

/************************************1024~900********************************************************/
@media screen and (max-width: 1091px) {
    .mission .list ul li a {
        gap: 180px; /* 315px → 180px 정도로 자연스럽게 압축 */
    }
}
@media screen and (max-width: 900px) {
    .mission .list ul li a {
        gap: 120px; 
    }
}
/************************************768********************************************************/
@media screen and (max-width: 768px) {
    .mission .list ul li a {
        flex-direction: row;    
        align-items: flex-start;
        gap: 20px;
        padding: 24px 0;
    }
    .mission .list ul li a h3 {
        font-size: 20px;
        line-height: 1.3;
        max-width: 110px; 
        /* heck */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: keep-all;
        width: 110px;
    }
    .mission .list ul li a p {
        font-size: 14px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
/******************************************artwork 시작***********************************************************/
.artwork .list ul {
    display: flex;
    flex-wrap: wrap;
    /* 기존 column-gap: 190px; → 반응형 */
    column-gap: clamp(40px, 10vw, 120px);
    /* 세로 갭은 필요하면 유지 */
    row-gap: 120px;
    margin: 0 0 clamp(80px, 8vw, 156px) 0;
}

.artwork .list ul li {
    width: calc((100% - clamp(40px, 10vw, 120px)) / 2);
}

.artwork .list ul li:nth-child(2),
.artwork .list ul li:nth-child(4) {
    margin-top: 120px; /* 기존 offset 유지 */
}

.artwork .list ul li a {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.artwork .photo {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.artwork .photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.artwork .photo:hover img {
    transform: scale(1.05);
}

.artwork .photo .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #DA081E;
    color: #ffffff;
    opacity: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: var(--font-size-sub);
    line-height: 1.5;
    transition: opacity 0.3s ease;
}

.artwork .photo:hover .overlay {
    opacity: 1;
}

/* 텍스트 영역 */
.artwork h2{
    display: inline-block;
    font-size: var(--font-size-tit);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tit);
    color: var(--color-black);
    margin: clamp(80px, 8vw, 156px) 0 clamp(10px, 2vw, 52px) 0;
    position: relative;
}
.artwork h2::before {
    position: absolute;
    content: "";
    right: -0.775em;
    top: 0.275em;
    width: 0.368em;
    height: 0.625em;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 15 25' fill='%231d1d1d' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.21875 25L0 22.7813L10.2813 12.5L0 2.21875L2.21875 0L14.7188 12.5L2.21875 25Z' /%3E%3C/svg%3E%0A");
}
.artwork .txt {
    padding: 10px 0;
    font-size: clamp(14px, 1.2vw, var(--font-size-sub));
}

.artwork .txt .tit_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 36px 0 0 0;
}

.artwork .list .txt h3 {
    font-weight: var(--font-weight-bold);
    font-size: clamp(18px, 1.6vw, var(--font-size-tit));
    line-height: var(--line-height-tit);
    color: var(--color-black);
}

.artwork .list .txt span {
    display: inline-block;
    background-color: var(--color-point);
    padding: clamp(4px, 0.5vw, 6px) clamp(14px, 1.5vw, 20px);
    border-radius: 10px;
    color: var(--color-white);
    font-size: clamp(12px, 1vw, var(--font-size-basic));
    line-height: var(--line-height-basic);
}
/************************************768********************************************************/
@media screen and (max-width: 768px) {
    .artwork .list ul {
        flex-direction: column;
        column-gap: 0;  
        gap: 60px;
    }
    .artwork .list ul li {
        width: 100%;
    }
    .artwork .list ul li a {
        display: block;
        width: 100%;
    }
    /* offset 제거 */
    .artwork .list ul li:nth-child(2),
    .artwork .list ul li:nth-child(4) {
        margin-top: 0;
    }
    .artwork .photo {
        width: 100%;
    }
    /* 이미지 100% 자연 반응형 */
    .artwork .photo img {
        width: 100%;
        height: auto;
        display: block;
    }
    /* 텍스트 사이즈 좀 더 안정화 */
    .artwork .txt {
        width: 100%;
        margin-top: 20px;
    }
    /* 텍스트 내부 정렬 안정화 */
    .artwork .txt .tit_wrap {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
    .artwork .list .txt h3 {
        font-size: clamp(18px, 4vw, 22px);
        line-height: 1.3;
    }
    .artwork .list .txt span {
        font-size: clamp(11px, 3vw, 13px);
        padding: 6px 14px;
    }
}
/******************************************contact 시작***********************************************************/
.contact {
    min-height: clamp(500px, 80vw, 800px);
    color: var(--color-white);
    background: url(../images/contact01.jpg) no-repeat center center / cover;
}
.contact .wrapper {
    position: relative; /* 제출하기 정렬의 기준 */
}
.contact h2 {
    display: inline-block;
    font-size: clamp(20px, 3vw, 40px);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tit);
    margin: clamp(60px, 15vw, 156px) 0 clamp(20px, 5vw, 51px) 0;
    position: relative;
}
.contact h2::before {
    position: absolute;
    content: "";
    right: -0.775em;
    top: 0.275em;
    width: 0.368em;
    height: 0.625em;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 15 25' fill='%23ffffff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.21875 25L0 22.7813L10.2813 12.5L0 2.21875L2.21875 0L14.7188 12.5L2.21875 25Z' /%3E%3C/svg%3E%0A");
}
.contact .index { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    gap: 0 clamp(20px, 4vw, 87px);
}
.contact .index .tit {
    font-weight: var(--font-weight-bold); 
    line-height: var(--line-height-tit);
}
.contact .index .tit h3 {
    font-size: clamp(24px, 4vw, 60px); /* 최소24px, 최대60px, 화면비율에 따라 변화 */
    line-height: 1.2;
}
.contact .index .tit h3 span {
    color: var(--color-point2);
}
.contact .list {
    flex: 1 1 350px;  /* 최소 350px까지 버티도록 설정 → 368px 목표 충족 */
    max-width: 500px;
    margin-top: -100px;
}
.contact .list ul li {
    border-top: 1px solid var(--color-white);
}
.contact .list ul li:first-child {
    border-top: none;
}
.contact .list ul li label {
    display: block;
    font-size: clamp(14px, 2.5vw, 24px);
    font-weight: var(--font-weight-basic);
    line-height: var(--line-height-basic);
    color: var(--color-white);
    margin: clamp(15px, 2.5vw, 29px) 0 clamp(7px, 1.4vw, 15px) 0;
}
.contact .list ul li:first-child label {
    margin-top: 0;
}
.contact .list ul li input {
    width: 100%;
    margin: 0 0 21px 0;
    padding: 0;
    height: auto;
    line-height: 1.4;
    font-size: clamp(16px, 1vw, 17px);
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
}
.contact .list ul li input::placeholder {
    line-height: 1.4;
    color: rgba(255,255,255,0.5);
}
/***************.editable 클래스가 추가되었을때**********************/
.contact .list ul li input.editable {
    cursor: text;
    color: rgba(255, 255, 255, 0.5);
}
.contact .apply_pc {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2.4em;
    z-index: 11;
}
.contact .apply_pc button strong {
    font-size: clamp(14px, 3vw, 20px);           /* 글자도 줄어들도록 */
    padding: clamp(6px, 0.8vw, 11px) clamp(20px, 3vw, 42px); /* 버튼 폭도 함께 축소 */
    background-color: var(--color-basic);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}
.contact .apply_pc button:hover strong {
    background-color: var(--color-point);
}
/********************************************1280*************************************************/
@media screen and (max-width:1280px){
    .contact .list {
        padding-right: 10px; /* 내부 여백 줄이기 */
    }
    .contact .list ul li label,
    .contact .list ul li input {
        margin-right: 0; /* 텍스트 오른쪽 여백 줄이기 */
    }
}
@media screen and (min-width:769px) {
    .contact .apply_mo {
        display: none;
    }
}
@media screen and (max-width:768px) {
    .contact .apply_pc {
        display: none;
    }
    .contact {
        height: clamp(750px, 120vw, 850px);
    }
    .contact .index {
        display: flex;
        flex-direction: column;
        gap: 150px 0;
    }
    .contact .list {
        max-width: none;
    }
    .contact .apply_mo {
        text-align: center;
    }
    .contact .apply_mo button {
        display: inline-block;
        font-size: clamp(14px, 3vw, 20px);           /* 글자도 줄어들도록 */
        padding: clamp(6px, 0.8vw, 11px) clamp(20px, 3vw, 42px); /* 버튼 폭도 함께 축소 */
        background-color: var(--color-basic);
        border-radius: 10px;
        transition: background-color 0.3s ease;
    }
    .contact .apply_mo button:hover {
    background-color: var(--color-point);
}
}
/******************************************640****************************************************/
@media screen and (max-width:640px) {
    .contact {
        height: clamp(680px, 120vw, 750px);
    }
}
/******************************************520****************************************************/
@media screen and (max-width:520px) {
    .contact {
        height: clamp(600px, 140vw, 700px);;
    }
    .contact .index {
        flex-wrap: wrap;
        gap: 25px;
    }
    .contact .tit,
    .contact .list {
        flex: 1 1 100%;
        min-width: auto;
        margin-top: 0;
    }
    .contact .tit h3 {
        font-size: clamp(20px, 6vw, 40px);
        line-height: 1.25;
    }
    .contact .list ul li label {
        font-size: clamp(13px, 3vw, 18px);
    }
    .contact .list ul li input {
        font-size: clamp(12px, 2.5vw, 16px);
    }
}