@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css');

:root{
  --bg:#ffffff;
  --text:#111;
  --muted:#666;
  --line:rgba(0,0,0,.08);

  --primary:#0B3A8F;
  --radius:18px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:'Pretendard Variable', Pretendard, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }

.container{
  width:min(1200px, calc(100% - 56px));
  margin:0 auto;
}

/* Header */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
  border-bottom:1px solid transparent;
}
.header-inner{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand img{ height:28px; width:auto; display:block; }

.gnb{
  display:flex;
  gap:28px;
  align-items:center;
  font-weight:650;
}
.gnb a{ opacity:.92; }
.gnb a:hover{ opacity:1; }
.gnb a.active{ color:var(--primary); opacity:1; }

.m-toggle{
  display:none;
  width:44px; height:44px;
  border:0;
  background:transparent;
  font-size:20px;
  border-radius:12px;
  cursor:pointer;
}

.mnav{
  display:none;
  border-top:1px solid var(--line);
  background:#fff;
}
.mnav-inner{
  padding:14px 0;
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  font-weight:800;
}
.mnav a.active{ color:var(--primary); }
.mnav.is-open{ display:block; }

/* hero 위 투명 */
.site-header.is-hero{
  background:transparent;
  color:#fff;
}
.site-header.is-hero .gnb a{ color:#fff; }
.site-header.is-hero .gnb a.active{ color:#fff; opacity:1; }
.site-header.is-hero .m-toggle{ color:#fff; }
.site-header.is-hero .brand img{ filter: brightness(0) invert(1); }

/* 스크롤 후 흰배경 */
.site-header.is-solid{
  background:#fff;
  color:#111;
  border-bottom:1px solid var(--line);
}
.site-header.is-solid .gnb a{ color:#111; }
.site-header.is-solid .gnb a.active{ color:var(--primary); }
.site-header.is-solid .brand img{ filter:none; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 18px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:-.2px;
  border:1px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active{ transform: scale(.98); }
.btn-primary{ background:var(--primary); color:#fff; }
.btn-primary:hover{ filter:brightness(1.05); }
.btn-ghost{
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,.55);
}
.btn-ghost:hover{ border-color:rgba(255,255,255,.9); }
.btn-outline{
  background:transparent;
  border-color:rgba(0,0,0,.18);
  color:#111;
}
.btn-outline:hover{ border-color:rgba(0,0,0,.35); }

/* Hero */
.page-hero{
  position:relative;
  height:62vh;
  min-height:520px;
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transform: scale(1.02);
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.38) 55%, rgba(0,0,0,.62));
}
.hero-inner{
  position:relative;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
  padding-top:72px;
  color:#fff;
  z-index:2;
}
.eyebrow{
  margin:0;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:-.2px;
  opacity:.95;
}
.hero-inner h1{
  margin:0;
  font-size:clamp(30px, 3.8vw, 54px);
  letter-spacing:-.9px;
  line-height:1.15;
}
.lead{
  margin:0;
  color:rgba(255,255,255,.88);
  font-weight:650;
}
.hero-actions{
  display:flex;
  gap:12px;
  margin-top:14px;
  flex-wrap:wrap;
}

/* Section head */
.section-head{
  padding:20px 0 18px;
}
.section-head h2{
  margin:0;
  font-size:34px;
  letter-spacing:-.8px;
}
.section-head p{
  margin:8px 0 0;
  color:var(--muted);
  font-weight:650;
}

/* Marquee */
.marquee-section{
  padding:64px 0 50px;
  border-bottom:1px solid var(--line);
}
.marquee-wrap{
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:14px;
  overflow:hidden;
}
.marquee{
  width:100%;
  overflow:hidden;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:#fff;
}
.marquee.reverse{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.track{
  display:flex;
  gap:14px;
  padding:14px 0;
  will-change: transform;
}
.m-item{
  width:280px;
  height:160px;
  border-radius:18px;
  background-size:cover;
  background-position:center;
  box-shadow: var(--shadow);
  flex:0 0 auto;
}

/* Grid */
.grid{
  padding:70px 0 90px;
}
.grid-wrap{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
  margin-top:14px;
}
.g-item{
  margin:0;
}
.g-img{
  width:100%;
  aspect-ratio: 4 / 3;
  border-radius:20px;
  background-size:cover;
  background-position:center;
  box-shadow: var(--shadow);
}
.g-cap{
  padding:10px 2px 0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.g-cap strong{
  letter-spacing:-.2px;
}
.g-cap span{
  color:var(--muted);
  font-weight:650;
  font-size:13px;
}

.grid-cta{
  margin-top:26px;
  display:flex;
  justify-content:center;
}

/* SNS */
.sns{
  padding:70px 0 90px;
  background:rgba(11,58,143,.04);
  border-top:1px solid var(--line);
}
.sns-inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:stretch;
}
.sns-left h2{
  margin:0 0 10px;
  font-size:34px;
  letter-spacing:-.8px;
}
.sns-left p{
  margin:0 0 18px;
  color:var(--muted);
  font-weight:650;
}

.sns-buttons{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.sns-btn{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 14px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
}
.sns-btn i:first-child{
  font-size:22px;
  color:var(--primary);
}
.sns-btn .t{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.sns-btn .t strong{
  letter-spacing:-.2px;
}
.sns-btn .t span{
  color:var(--muted);
  font-weight:650;
  font-size:13px;
}
.sns-btn i:last-child{
  color:rgba(0,0,0,.35);
}
.sns-btn:hover{
  border-color:rgba(11,58,143,.25);
}

.sns-note{
  margin-top:14px;
  display:flex;
  gap:10px;
  align-items:center;
  color:rgba(0,0,0,.55);
  font-weight:700;
}
.sns-note i{ color:var(--primary); }

.sns-right{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
.sns-photo{
  height:220px;
  border-radius:22px;
  background-size:cover;
  background-position:center;
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer{
  padding:42px 0 28px;
  border-top:1px solid var(--line);
}
.footer-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}
.f-logo{ height:32px; width:auto; }
.f-right p{
  margin:0 0 6px;
  color:#222;
  font-weight:650;
}
.f-right p:nth-child(n+2){
  color:var(--muted);
  font-weight:600;
}
.footer-bottom{ margin-top:26px; }
.footer-line{ height:1px; background:var(--line); margin-bottom:14px; }
.footer-links{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  color:var(--muted);
  font-weight:650;
  font-size:13px;
}
.links a{ color:var(--muted); }
.links a:hover{ color:var(--primary); }
.sep{ margin:0 8px; opacity:.6; }

/* Fade-up */
.fade-up{
  opacity:0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.is-in{
  opacity:1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
  .grid-wrap{ grid-template-columns: repeat(2, 1fr); }
  .sns-inner{ grid-template-columns:1fr; }
}

@media (max-width: 860px){
  .gnb{ display:none; }
  .m-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .mnav{ display:none; }
  .mnav.is-open{ display:block; }
}

@media (max-width: 520px){
  .container{ width: calc(100% - 32px); }
  .page-hero{ min-height:480px; }
  .grid-wrap{ grid-template-columns:1fr; }
  .m-item{ width:240px; height:150px; }
}
/* 모바일 드롭다운 기본(스크롤 후 solid 상태 기준) */
.mnav{
  background:#fff;
  border-top:1px solid rgba(0,0,0,.08);
}

.mnav a{
  color:#111;
  margin-left: 3%;
}

/* ✅ 헤더가 히어로 위(투명)일 때, 드롭다운도 “투명/유리”로 */
.site-header.is-hero .mnav{
  background: rgba(0,0,0,.35);        /* 완전 투명은 가독성 떨어져서 유리톤 추천 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.18);
}

/* ✅ 투명 상태일 때 드롭다운 메뉴 글자는 흰색 */
.site-header.is-hero .mnav a{
  color:#fff;
}

/* active 상태도 흰색 기반으로 */
.site-header.is-hero .mnav a.active{
  color:#fff;
  opacity:1;
}