@charset "utf-8";
/* ============================================================
   우석장학문화재단 - common.css
   공통 리셋 / 변수 / 헤더 / 푸터 / 전체메뉴
   Design: 1920 canvas · Content: 1440
   ============================================================ */

/* ---------- Webfont : Pretendard ---------- */
@import url("/api/modules/assets/hwashin-site/dist/sites/HSwooseok/assets/fonts/pretendard/fonts.css");

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html,body,div,span,h1,h2,h3,h4,h5,h6,p,a,em,img,strong,b,i,ul,ol,li,form,label,table,thead,tbody,tfoot,tr,th,td,article,aside,footer,header,nav,section,figure,figcaption,button{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}
article,aside,figure,figcaption,footer,header,nav,section,main{display:block}
ul,ol{list-style:none}
img{max-width:100%;vertical-align:top;border:0}
a{color:inherit;text-decoration:none}
button{background:none;cursor:pointer;font:inherit;color:inherit}
address{font-style:normal}
table{border-collapse:collapse;border-spacing:0}
/* 자간 -25 (PSD Tracking) : em 은 요소별 font-size 기준으로 계산되어야 하므로 전역 선택자 사용 */
*{letter-spacing:-0.025em}

html{font-size:10px;-webkit-text-size-adjust:100%}
body{
  font-family:"Pretendard","Pretendard Variable",-apple-system,BlinkMacSystemFont,system-ui,"Malgun Gothic","맑은 고딕",sans-serif;
  font-size:16px;line-height:1.5;color:#000;background:#fff;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
.pc-br{display:inline}
.blind{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Design tokens ---------- */
:root{
  /* Brand */
  --c-blue:#5B91C5;
  --c-mint:#4DA7B5;
  --c-purple:#9A82C2;
  --c-pink:#CF7FA8;
  --c-green:#66B79A;
  --c-cyan:#2FA6CD;          /* 햄버거 버튼 */

  /* Neutral */
  --c-black:#000000;
  --c-body:#434343;
  --c-date:#7D7D7D;
  --c-ft-bg:#292620;
  --c-ft-dim:#898989;
  --c-ft-txt:#C9C9C9;

  /* Gradient (장학사업 카드) */
  --g-scholar:linear-gradient(to bottom right,#5B91C5 0%,#4DA7B6 50%,#66B79A 100%);

  /* Layout */
  --wrap:1440px;
  --gutter:40px;
  --radius-card:10px;
  --header-h:100px;
}

/* ---------- Layout helper ---------- */
.wrap{width:var(--wrap);margin:0 auto;position:relative}

/* ============================================================
   HEADER
   1920 기준 : 로고 61px / GNB 715px / KOR 1729px / 햄버거 1820px
   flex-grow 비율(415 : 433 : 29)로 축소 시에도 비율 유지
   ============================================================ */
#header{
  position:absolute;top:0;left:0;z-index:100;
  width:100%;height:var(--header-h);
  border-bottom:1px solid rgba(255,255,255,.3);
  transition:background-color .3s ease, border-color .3s ease;
}
#header .header__inner{
  display:flex;align-items:center;
  height:100px;padding-left:61px;
}
#header .logo{flex:0 0 auto;line-height:0}
#header .logo img{width:239px;height:32px}

#header .sp1{flex:415 1 0}
#header .sp2{flex:433 1 0}
#header .sp3{flex:29 1 0}

#header .gnb{flex:0 0 auto}
#header .gnb > ul{display:flex}
#header .gnb > ul > li{width:130px}
#header .gnb > ul > li:last-child{width:auto}
#header .gnb > ul > li > a{
  display:inline-block;position:relative;
  font-size:18.6667px;font-weight:600;line-height:1;color:#fff;
  padding:8px 0;
}
#header .gnb > ul > li > a::after{
  content:"";position:absolute;left:0;bottom:2px;width:0;height:2px;
  background:#fff;transition:width .3s ease;
}
#header .gnb > ul > li:hover > a::after,
#header .gnb > ul > li.on > a::after{width:100%}

#header .util{flex:0 0 auto;display:flex;align-items:center;gap:10px}
#header .util .lang{font-size:16px;font-weight:600;line-height:1;color:#fff}
#header .util .globe{width:22px;height:22px}

#header .btn-allmenu{
  flex:0 0 auto;width:100px;height:100px;
  background:var(--c-cyan);
  display:flex;align-items:center;justify-content:center;
}
#header .btn-allmenu img{width:26px;height:20px;transition:transform .3s ease}
#header .btn-allmenu:hover img{transform:scale(1.1)}

/* 스크롤 시 화이트 헤더 (로고는 CSS filter로 임시 반전 → 컬러 로고 전달 시 교체) */
#header.is-fixed{
  position:fixed;background:#fff;border-bottom-color:rgba(0,0,0,.08);
  box-shadow:0 2px 20px rgba(0,0,0,.06);
}
#header.is-fixed .logo img{filter:brightness(0)}
#header.is-fixed .gnb > ul > li > a{color:#111}
#header.is-fixed .gnb > ul > li > a::after{background:#111}
#header.is-fixed .util .lang{color:#111}
#header.is-fixed .util .globe{filter:brightness(0)}

/* ---------- 전체메뉴 (햄버거) ---------- */
#allmenu{
  position:fixed;inset:0;z-index:200;
  background:rgba(20,18,15,.68);
  -webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);
  opacity:0;visibility:hidden;transition:opacity .35s ease,visibility .35s ease;
}
#allmenu.is-open{opacity:1;visibility:visible}
#allmenu .allmenu__head{
  display:flex;align-items:center;justify-content:space-between;
  height:100px;padding:0 0 0 61px;border-bottom:1px solid rgba(255,255,255,.2);
}
#allmenu .allmenu__head .logo img{width:239px;height:32px}
#allmenu .btn-close{
  width:100px;height:100px;background:var(--c-cyan);
  display:flex;align-items:center;justify-content:center;
  font-size:34px;line-height:1;color:#fff;font-weight:300;
}
#allmenu .allmenu__body{width:var(--wrap);margin:0 auto;padding:80px 0}
#allmenu .allmenu__body > ul{display:flex;gap:40px}
#allmenu .allmenu__body > ul > li{flex:1}
#allmenu .allmenu__body > ul > li > a.d1{
  display:block;font-size:32px;font-weight:700;color:#fff;
  padding-bottom:24px;border-bottom:1px solid rgba(255,255,255,.3);
}
#allmenu .allmenu__body > ul > li > a.d1 em{
  display:block;margin-top:6px;
  font-size:14px;font-weight:500;font-style:normal;letter-spacing:0.02em;
  color:rgba(255,255,255,.5);
}
#allmenu .allmenu__body .depth3{margin:8px 0 0 12px}
#allmenu .allmenu__body .depth3 li + li{margin-top:8px}
#allmenu .allmenu__body .depth3 a{
  position:relative;padding-left:12px;font-size:15px;color:rgba(255,255,255,.55);
}
#allmenu .allmenu__body .depth3 a::before{
  content:"";position:absolute;left:0;top:50%;width:5px;height:1px;
  background:rgba(255,255,255,.45);
}
#allmenu .allmenu__body .depth2{margin-top:24px}
#allmenu .allmenu__body .depth2 li + li{margin-top:14px}
#allmenu .allmenu__body .depth2 a{font-size:17px;font-weight:500;color:rgba(255,255,255,.72)}
#allmenu .allmenu__body .depth2 a:hover{color:#fff}
body.is-locked{overflow:hidden}

/* ============================================================
   FOOTER   (1920 기준 4458 ~ 4847 / 389px)
   ============================================================ */
#footer{background:var(--c-ft-bg);color:var(--c-ft-txt)}
#footer .footer__inner{width:var(--wrap);margin:0 auto;position:relative;height:389px}

/* 상단 : 로고 · 그룹/정공 바로가기 · 관련서비스 */
#footer .ft-logo{position:absolute;left:0;top:66px;line-height:0}
#footer .ft-logo img{width:239px;height:32px}

#footer .ft-family{
  position:absolute;left:315px;top:65.68px;
  display:flex;align-items:center;gap:40px;flex-wrap:wrap;
}
#footer .ft-group{
  white-space:nowrap;
  display:flex;align-items:center;
  font-size:25.3333px;font-weight:700;line-height:34.6667px;color:var(--c-ft-txt);
}
#footer .ft-group img{width:19px;height:19px;margin-left:17px}
#footer .ft-group:hover{color:#fff}

#footer .ft-select{
  position:absolute;left:1225px;top:56px;
  width:215px;height:54px;border-radius:27px;
  background:rgba(255,255,255,.07);
  display:flex;align-items:center;
}
#footer .ft-select .label{
  font-size:16px;font-weight:500;line-height:32px;color:var(--c-ft-txt);
  padding-left:32px;
}
#footer .ft-select .chev{position:absolute;right:26px;top:24px;width:12px;height:6px;transition:transform .3s}
#footer .ft-select.is-open .chev{transform:rotate(180deg)}
#footer .ft-select ul{
  position:absolute;left:0;bottom:calc(100% + 8px);width:100%;
  background:#3a3630;border-radius:12px;overflow:hidden;
  opacity:0;visibility:hidden;transform:translateY(6px);transition:.25s;
}
#footer .ft-select.is-open ul{opacity:1;visibility:visible;transform:translateY(0)}
#footer .ft-select ul a{display:block;padding:12px 32px;font-size:15px;color:var(--c-ft-txt)}
#footer .ft-select ul a:hover{background:rgba(255,255,255,.08);color:#fff}

/* 주소 · 연락처 */
#footer .ft-addr{
  position:absolute;left:0;top:185px;
  font-size:16px;font-weight:500;line-height:34.6667px;color:var(--c-ft-dim);
}
#footer .ft-contact{
  position:absolute;left:2px;top:229.52px;
  font-size:17.3333px;font-weight:600;line-height:34.6667px;color:var(--c-ft-dim);
  white-space:nowrap;
}
#footer .ft-contact .t{display:inline-block;width:44px}
#footer .ft-contact .t.w2{width:49px}
#footer .ft-contact .t.w3{width:70px}
#footer .ft-contact .v{color:var(--c-ft-txt)}
#footer .ft-contact .gap{display:inline-block;width:66px}
#footer .ft-contact br.m-br{display:none}

/* 하단 */
#footer .ft-line{position:absolute;left:0;top:307px;width:100%;height:1px;background:rgba(255,255,255,.1)}
#footer .ft-copy{
  position:absolute;left:0;top:325.33px;
  font-size:16px;font-weight:500;line-height:48px;color:var(--c-ft-dim);
}
#footer .ft-copy b{font-weight:700;color:var(--c-ft-txt)}
#footer .ft-copy .c{font-size:19px;margin-right:2px;vertical-align:-1px}
#footer .ft-policy{
  position:absolute;right:3px;top:334.33px;
  display:flex;font-size:16px;font-weight:500;line-height:32px;color:var(--c-ft-dim);
}
#footer .ft-policy li + li{margin-left:42px}
#footer .ft-policy li:last-child{margin-left:45px}
#footer .ft-policy li:last-child a{color:#fff}
#footer .ft-policy a:hover{color:#fff}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* 1520 이하 : 콘텐츠 유동 (1440 → 1200) */
@media (max-width:1519px){
  :root{--wrap:calc(100vw - 80px)}
  #footer .ft-family{left:315px}
  #footer .ft-select{left:auto;right:0}
}

/* 1279 이하 : 태블릿 와이드 - GNB 숨김 */
@media (max-width:1279px){
  :root{--header-h:80px;--gutter:32px}
  #header .header__inner{height:80px;padding-left:32px}
  #header .gnb{display:none}
  #header .sp1,#header .sp3{flex:0 0 auto}
  #header .sp2{flex:1 1 auto}
  #header .util{margin-right:24px}
  #header .btn-allmenu{width:80px;height:80px}
  #allmenu .allmenu__head{height:80px;padding-left:32px}
  #allmenu .btn-close{width:80px;height:80px}
  #allmenu .allmenu__body{padding:56px 0}
  #allmenu .allmenu__body > ul{gap:24px}
  #allmenu .allmenu__body > ul > li > a.d1{font-size:26px}

  #footer .footer__inner{height:auto;padding:56px 0 40px}
  #footer .ft-logo,#footer .ft-family,#footer .ft-group,#footer .ft-select,
  #footer .ft-addr,#footer .ft-contact,#footer .ft-line,
  #footer .ft-copy,#footer .ft-policy{position:static}
  #footer .ft-logo img{width:210px;height:auto}
  #footer .ft-family{margin-top:22px;gap:32px}
  #footer .ft-group{font-size:21px;line-height:1.4}
  #footer .ft-group img{margin-left:12px;width:16px;height:16px}
  #footer .ft-select{position:relative;left:auto;right:auto;top:auto;margin-top:26px;width:215px}
  #footer .ft-addr{margin-top:34px;font-size:15px;line-height:1.7}
  #footer .ft-contact{margin-top:6px;font-size:15px;line-height:1.9;white-space:normal}
  #footer .ft-contact .gap{width:28px}
  #footer .ft-line{margin-top:30px}
  #footer .ft-copy{margin-top:20px;font-size:14px;line-height:1.6}
  #footer .ft-policy{margin-top:14px;font-size:14px;line-height:1.6;flex-wrap:wrap}
  #footer .ft-policy li + li,
  #footer .ft-policy li:last-child{margin-left:24px}
}

/* 1023 이하 : 태블릿 */
@media (max-width:1023px){
  #header .logo img{width:200px;height:auto}
  #allmenu .allmenu__head .logo img{width:200px;height:auto}
  #allmenu .allmenu__body > ul{flex-wrap:wrap}
  #allmenu .allmenu__body > ul > li{flex:0 0 calc(50% - 12px)}
  #allmenu .allmenu__body > ul > li:nth-child(n+3){margin-top:40px}

}

/* 767 이하 : 모바일 */
@media (max-width:767px){
  :root{--wrap:calc(100vw - 40px);--header-h:64px}
  .pc-br{display:none}
  #header .header__inner{height:64px;padding-left:20px}
  #header .logo img{width:168px}
  #header .util .lang{font-size:14px}
  #header .util .globe{width:19px;height:19px}
  #header .util{margin-right:14px}
  #header .btn-allmenu{width:64px;height:64px}
  #header .btn-allmenu img{width:22px;height:17px}

  #allmenu .allmenu__head{height:64px;padding-left:20px}
  #allmenu .allmenu__head .logo img{width:168px}
  #allmenu .btn-close{width:64px;height:64px;font-size:28px}
  #allmenu .allmenu__body{padding:36px 0;max-height:calc(100vh - 64px);overflow-y:auto}
  #allmenu .allmenu__body > ul{display:block}
  #allmenu .allmenu__body > ul > li{margin-top:0!important}
  #allmenu .allmenu__body > ul > li + li{margin-top:28px}
  #allmenu .allmenu__body > ul > li > a.d1{font-size:22px;padding-bottom:16px}
  #allmenu .allmenu__body .depth2{margin-top:16px}
  #allmenu .allmenu__body .depth2 a{font-size:15px}

  #footer .footer__inner{padding:44px 0 32px}
  #footer .ft-logo img{width:180px}
  #footer .ft-family{margin-top:18px;gap:24px}
  #footer .ft-group{font-size:18px}
  #footer .ft-select{width:100%;max-width:280px;height:48px;border-radius:24px}
  #footer .ft-select .label{padding-left:24px;font-size:15px}
  #footer .ft-select .chev{right:22px;top:21px}
  #footer .ft-addr{font-size:13.5px;margin-top:26px}
  #footer .ft-contact{font-size:13.5px}
  #footer .ft-contact .t{width:38px}
  #footer .ft-contact br.m-br{display:block}
  #footer .ft-contact .gap--mail{display:none}
  #footer .ft-copy{font-size:12.5px}
  #footer .ft-policy{font-size:12.5px}
  #footer .ft-policy li + li,#footer .ft-policy li:last-child{margin-left:16px}
}
