@import url('sub.css');



/**** S:: 텍스타일리 ****/

/* 미션·비전 (배경 이미지는 처음부터 화면 전체, 스크롤에 따라 문구만 노출) */
.company_vision{position:relative;}
.company_vision .vision_stage{position:relative; height:var(--vh); min-height:600px; overflow:hidden; container-type:size;}
/* --p : 0(시안 크기) ~ 1(화면 전체). JS 없을 때는 1, company.js 가 offset top 0 에서 0→1 로 키움 */
.company_vision .vision_box{--p:1; --w0:min(var(--w1530), 90cqw); --ratio:calc(570 / 1530); --radius:var(--borderR30); position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:calc(var(--w0) + (100cqw - var(--w0)) * var(--p)); height:calc(var(--w0) * var(--ratio) + (100cqh - var(--w0) * var(--ratio)) * var(--p)); border-radius:calc(var(--radius) * (1 - var(--p))); overflow:hidden; background:var(--black);}
.company_vision .vision_box img{display:block; width:100%; height:100%; object-fit:cover;}
.company_vision .vision_dim{position:absolute; inset:0; background:#101513; opacity:0;}
.company_vision .vision_txt{position:absolute; inset:0; z-index:2; display:flex; align-items:center; justify-content:center; pointer-events:none;}
.company_vision .vision_item{position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:90%; max-width:var(--w1530); text-align:center; color:var(--white); opacity:0;}
.company_vision .vision_item .tit{font-size:1.316rem; line-height:152%; font-weight:700;}
.company_vision .vision_item .txt{position:relative; display:inline-block; margin-top:30px; font-family:var(--kor); font-size:3.421rem; line-height:1.169; font-weight:700; letter-spacing:var(--letter-spacing-none);}
.company_vision .vision_item .txt .base{display:block; color:rgba(255,255,255,0.3);}
.company_vision .vision_item .txt .fill{position:absolute; left:0; top:0; width:100%; color:var(--white); clip-path:inset(0 100% 0 0);}
.company_vision .vision_item .txt .fill .ln{display:block; width:fit-content; margin:0 auto; white-space:nowrap; clip-path:inset(0 100% 0 0);}

/* 회사연혁 */
.company_history{padding-bottom:140px; background:var(--grayBg);}
.history_list{position:relative; padding:70px 0;}
.history_line{position:absolute; left:50%; top:0; bottom:0; width:1px; margin-left:-0.5px; background:rgba(16,21,19,0.15);}
.history_prog{position:absolute; left:50%; top:0; width:3px; height:14px; margin-left:-1.5px; background:var(--main);}
.history_prog:after{content:''; position:absolute; left:50%; bottom:-13.5px; width:27px; height:27px; margin-left:-13.5px; border-radius:50%; background:rgba(0,118,77,0.2);}
.history_prog:before{content:''; position:absolute; left:50%; bottom:-5.5px; z-index:1; width:11px; height:11px; margin-left:-5.5px; border-radius:50%; background:var(--main);}
.history_item{position:relative; width:calc(50% - 55px); text-align:left;}
.history_item + .history_item{margin-top:70px;}
.history_item.is_right{margin-left:auto;}
.history_item.is_left{text-align:right;}
.history_item:before{content:''; position:absolute; top:23px; width:30px; height:1px; background:rgba(16,21,19,0.15);}
.history_item.is_right:before{left:-55px;}
.history_item.is_left:before{right:-55px;}
.history_item h4{font-family:var(--eng); font-size:2.368rem; line-height:124%; font-weight:700; color:var(--black);}
.history_item ul{padding-top:14px;}
.history_item li{display:flex; align-items:flex-start;}
.history_item li + li{margin-top:8px;}
.history_item.is_left li{flex-direction:row-reverse;}
.history_item li em{flex:none; width:34px; font-size:1rem; line-height:158%; font-weight:600; color:var(--black);}
.history_item.is_left li em{text-align:right;}
.history_item li p{flex:1; min-width:0; font-size:0.947rem; line-height:167%; letter-spacing:var(--ls4); color:var(--basic);}

/* 미디어 */
.company_media{padding-bottom:140px;}

/* 팀 */
.company_team{padding-bottom:140px; background:linear-gradient(to top, #ffffff 0%, rgba(255,255,255,0) 100%), var(--grayBg);}
/* 팀 카드 목록 스타일은 게시판 스킨(twcenter/bbs/skin/teamBasic/style.css)에 있음 */
.team_btn{padding-top:50px; text-align:center;}
.team_btn .moreBtn{width:160px;}

/* 팀 상세 팝업 */
.team_pop{position:fixed; inset:0; z-index:10000; display:flex; align-items:center; justify-content:center; padding:20px; box-sizing:border-box; visibility:hidden; opacity:0; transition:opacity .35s ease, visibility .35s ease;}
.team_pop.on{visibility:visible; opacity:1;}
.team_pop_bg{position:absolute; inset:0; background:rgba(16,21,19,0.6);}
.team_pop_in{position:relative; display:flex; width:980px; max-width:100%; max-height:100%; border:1px solid var(--border); border-radius:var(--borderR30); box-sizing:border-box; background:var(--white) url('/company/img/popup_re.png') no-repeat right bottom/280px auto; overflow:hidden; transform:translateY(30px); transition:transform .35s ease;}
/* 내용이 팝업 높이보다 길면 안쪽만 스크롤(닫기 버튼은 제자리) */
.team_pop_scroll{flex:1; min-width:0; display:flex; align-items:flex-start; gap:60px; padding:40px; box-sizing:border-box; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;}
.team_pop.on .team_pop_in{transform:none;}
/* 팝업 세로 스크롤바 : 트랙 grayBg · 막대 메인컬러 */
.team_pop_scroll::-webkit-scrollbar{width:6px;}
.team_pop_scroll::-webkit-scrollbar-track{margin:var(--borderR30) 0; border-radius:3px; background:var(--grayBg);}
.team_pop_scroll::-webkit-scrollbar-thumb{border-radius:3px; background:var(--main);}
@supports (-moz-appearance:none){ .team_pop_scroll{scrollbar-width:thin; scrollbar-color:var(--main) var(--grayBg);} }
.team_pop_in .img{flex:none; width:360px; overflow:hidden; aspect-ratio:360 / 480; border-radius:var(--borderR10); background:rgba(25,44,38,0.15);}
.team_pop_in .img img{display:block; width:100%; height:100%; object-fit:cover;}
.team_pop_in .txt{flex:1; min-width:0;}
.team_pop_in .head{padding:10px 0 38px;}
.team_pop_in .pos{font-size:1rem; line-height:158%; font-weight:600; color:var(--main);}
.team_pop_in .name{padding-top:4px; font-size:2.368rem; line-height:124%; font-weight:700; letter-spacing:-0.05em; color:var(--black);}
.team_pop_in .detail dl{padding:25px 0; border-top:1px solid var(--border);}
.team_pop_in .detail dt{display:flex; align-items:center; gap:18px; font-size:1.316rem; line-height:144%; font-weight:700; letter-spacing:var(--ls4); color:var(--black);}
.team_pop_in .detail dt .icon{display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:var(--borderR5); background:var(--main); font-family:var(--icon); font-size:22px; font-weight:400; line-height:1; letter-spacing:0; color:var(--white); font-variation-settings:'FILL' 1;}
.team_pop_in .detail dd{position:relative; padding-left:65px; font-size:1rem; line-height:158%; letter-spacing:var(--ls5); color:var(--basic);}
.team_pop_in .detail dt + dd{margin-top:10px;}
.team_pop_in .detail dd + dd{margin-top:6px;}
.team_pop_in .detail dd:before{content:''; position:absolute; left:54px; top:14px; width:3px; height:3px; background:var(--main);}
.team_pop_close{position:absolute; right:25px; top:25px; width:54px; height:54px; padding:0; border:1px solid var(--border); border-radius:var(--borderR10); background:linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0) 100%); cursor:pointer;}
.team_pop_close:before{content:'close'; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); font-family:var(--icon); font-size:28px; line-height:1; color:var(--black); transition:transform .3s ease;}
.team_pop_close:hover:before{transform:translate(-50%,-50%) rotate(90deg);}
html.pop_open{overflow:hidden;}

/**** E:: 텍스타일리 ****/



/**** 반응형 ****/
@media all and (max-width:1400px){
.company_vision .vision_item .txt{font-size:2.8rem;}
.team_pop_scroll{gap:40px;}
.team_pop_in .img{width:300px;}
}

@media all and (max-width:980px){
.company_vision .vision_stage{min-height:500px;}
.company_vision .vision_box{--ratio:calc(9 / 16); --radius:var(--borderR22);}
.company_vision .vision_item .txt{margin-top:20px; font-size:2.4rem;}
.company_vision .vision_item .txt br{display:none;}
.company_history{padding-bottom:100px;}
.history_list{padding:50px 0;}
.history_item{width:calc(50% - 40px);}
.history_item + .history_item{margin-top:50px;}
.history_item:before{width:20px;}
.history_item.is_right:before{left:-40px;}
.history_item.is_left:before{right:-40px;}
.history_item h4{font-size:2rem; line-height:141%;}
.history_item:before{top:24px;}
.company_media, .company_team{padding-bottom:100px;}
.team_pop_in{width:640px; background-size:200px auto;}
.team_pop_scroll{display:grid; grid-template-columns:150px minmax(0,1fr); align-content:start; grid-auto-rows:max-content; align-items:start; gap:24px 28px; padding:32px;}
.team_pop_in .txt{display:contents;}
.team_pop_in .img{grid-column:1; grid-row:1; width:150px; height:200px; border-radius:var(--borderR10);}
.team_pop_in .head{grid-column:2; grid-row:1; align-self:end; padding:0 50px 4px 0;}
.team_pop_in .name{font-size:2rem; line-height:135%;}
.team_pop_in .detail{grid-column:1 / -1;}
.team_pop_in .detail dl{padding:20px 0;}
.team_pop_in .detail dl:last-child{padding-bottom:0;}
.team_pop_in .detail dt{gap:12px; font-size:1.2rem; line-height:147%;}
.team_pop_in .detail dt .icon{width:30px; height:30px; font-size:18px;}
.team_pop_in .detail dd{padding-left:52px; line-height:165%;}
.team_pop_in .detail dt + dd{margin-top:8px;}
.team_pop_in .detail dd + dd{margin-top:4px;}
.team_pop_in .detail dd:before{left:42px; top:13px;}
.team_pop_close{right:20px; top:20px; z-index:1; width:44px; height:44px; background:var(--white);}
.team_pop_close:before{font-size:24px;}
}

@media all and (max-width:768px){
.history_line{left:13px;}
.history_item, .history_item.is_left, .history_item.is_right{width:auto; margin-left:60px; text-align:left;}
.history_item.is_left li{flex-direction:row;}
.history_item.is_left li em{text-align:left;}
.history_item:before, .history_item.is_right:before, .history_item.is_left:before{left:-47px; right:auto; width:24px;}
}

@media all and (max-width:680px){
.company_vision .vision_stage{min-height:0;}
.company_vision .vision_box{--ratio:calc(3 / 4);}
.company_vision .vision_item .tit{font-size:1.2rem; line-height:167%;}
.company_vision .vision_item .txt{margin-top:15px; font-size:clamp(1.6rem, 7vw, 2.2rem);}
.company_history{padding-bottom:80px;}
.history_list{padding:40px 0;}
.history_item, .history_item.is_left, .history_item.is_right{margin-left:50px;}
.history_item + .history_item{margin-top:40px;}
.history_item:before, .history_item.is_right:before, .history_item.is_left:before{left:-37px;}
.history_item h4{font-size:1.867rem; line-height:164%;}
.history_item:before{top:23px;}
.history_item ul{padding-top:8px;}
.history_item li{align-items:baseline;}
.history_item li em{width:30px;}
.history_item li p{font-size:0.933rem; line-height:1.6;}
.company_media, .company_team{padding-bottom:80px;}
.team_btn{padding-top:40px;}
.team_btn .moreBtn{width:160px;}
.team_pop{padding:16px;}
.team_pop_in{background-size:150px auto;}
.team_pop_scroll{display:grid; grid-template-columns:minmax(0,1fr); align-content:start; grid-auto-rows:max-content; align-items:start; gap:16px; padding:20px 18px 26px;}
.team_pop_in .txt{display:contents;}
.team_pop_in .img{grid-column:1; grid-row:1; width:100%; height:auto; aspect-ratio:360 / 480;}
.team_pop_in .head{grid-column:1; grid-row:2; align-self:auto; padding:0;}
.team_pop_in .pos{font-size:0.867rem; line-height:154%;}
.team_pop_in .name{padding-top:2px; font-size:1.6rem; line-height:142%;}
.team_pop_in .detail{grid-column:1 / -1;}
.team_pop_in .detail dl{padding:16px 0;}
.team_pop_in .detail dl:last-child{padding-bottom:0;}
.team_pop_in .detail dt{gap:8px; font-size:1.067rem; line-height:162%;}
.team_pop_in .detail dt .icon{width:24px; height:24px; font-size:15px;}
.team_pop_in .detail dd{padding-left:42px; font-size:0.933rem; line-height:171%;}
.team_pop_in .detail dt + dd{margin-top:8px;}
.team_pop_in .detail dd + dd{margin-top:4px;}
.team_pop_in .detail dd:before{left:32px; top:11px;}
.team_pop_close{right:12px; top:12px; z-index:1; width:34px; height:34px; background:var(--white);}
.team_pop_close:before{font-size:20px;}
}

/* 등장 효과 — 제목 → 목록 순서로 묶음째 나타남(카드 하나씩 X). 목록이 나타날 때 사진은 살짝 줌아웃 */
@media (prefers-reduced-motion:no-preference){
.md_list.aos-init li .img img, .team_list.aos-init li .img img{transform:scale(1.12); transition:transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);}
.md_list.aos-animate li .img img, .team_list.aos-animate li .img img{transform:none;}
}

/* 미션·비전 고정 : 스크립트 pin 대신 sticky (company.js 가 is_sticky 와 영역 높이를 붙임) */
.company_vision.is_sticky .vision_stage{position:sticky; top:0;}

/**** E:: 텍스타일리 등장 효과 ****/
