:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --surface-soft:#f7f7f8;
  --line:#e9e9ec;

  --blue1:#3faafd;
  --blue2:#65bffb;
  --blue3:#75c9fa;

  --red1:#f64861;
  --red2:#ea7073;
  --red3:#f4a7c1;

  --txt-strong:#000000;
  --txt:#424242;
  --txt-soft:#868586;

  --shadow:0 10px 30px rgba(0,0,0,.05);
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:14px;

  --max:1180px;
  --gutter:20px;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--txt);
  font-family:Arial,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  line-height:1.6;
}

img{
  max-width:100%;
  display:block;
}

a{
  text-decoration:none;
  color:inherit;
}

body{
  background:#ffffff;
  padding-top:72px;
}

.page{
  min-height:100vh;
}

.section{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto 22px;
  background:#fff;         /* 🔥 추가 */
}

.sectionHeader{
  margin-bottom:14px;
  padding:0 4px;
}

.sectionHeader h2{
  margin:0 0 6px;
  font-size:28px;
  line-height:1.3;
  color:var(--txt-strong);
}

.sectionHeader p{
  margin:0;
  color:var(--txt-soft);
  font-size:15px;
}


/* =========================
   Header
========================= */

.siteHeaderWrap{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
  backdrop-filter:blur(10px);
  background:rgba(255,255,255,.94);
  border-bottom:1px solid rgba(233,233,236,.9);
  transition:transform .28s ease, opacity .2s ease;
}

.siteHeaderWrap.header-hidden{
  transform:translateY(-100%);
}

.siteHeader{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:72px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  color:var(--txt-strong);
}

.brandMark{
  width:38px;
  height:38px;
  border-radius:12px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:none;
}

.brandIcon{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.brandIcon svg{
  width:100%;
  height:100%;
}

.brandText{
  font-size:20px;
  letter-spacing:.2px;
}

.nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.nav a{
  padding:10px 14px;
  border-radius:999px;
  color:var(--txt);
  font-size:14px;
}

.nav a:hover{
  background:#f4f8fc;
  color:var(--txt-strong);
}

/* =========================
   Hero
========================= */

.hero{
  padding-top:24px;
}

.heroCard{
  background:#f7fafc;
  border:1px solid #ebeff3;
  border-radius:32px;
  box-shadow:none;
  padding:38px 28px;
}

.heroBadge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:34px;
  padding:8px 14px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--red2),var(--red3));
  color:#fff;
  font-weight:700;
  font-size:13px;
  margin-bottom:14px;
}

.heroCard h1{
  margin:0 0 12px;
  font-size:42px;
  line-height:1.22;
  color:var(--txt-strong);
}

.heroCard h1 span{
  background:linear-gradient(135deg,var(--blue1),var(--blue3));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.heroLead{
  margin:0 0 18px;
  max-width:760px;
  font-size:17px;
  color:var(--txt);
}

/* =========================
   Buttons
========================= */

.btnWrap{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border-radius:14px;
  font-weight:700;
  transition:.2s ease;
}

.btn.primary{
  background:linear-gradient(135deg,var(--blue1),var(--blue3));
  color:#fff;
  box-shadow:none;
}

.btn.primary:hover{
  transform:translateY(-1px);
}

.btn.ghost{
  background:#ffffff;
  color:var(--txt-strong);
  border:1px solid #dcdfe4;
}

.btn.ghost:hover{
  background:#fafafa;
}

/* =========================
   Cards / Grid
========================= */

.grid.six{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px;
}

.flowCard,
.categoryCard,
.postCard{
  background:#f7f7f8;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:none;
}

.flowCard{
  padding:18px 16px;
}

.flowCard strong,
.categoryCard strong,
.postCard h3{
  display:block;
  color:var(--txt-strong);
}

.flowCard span,
.categoryCard span,
.postCard p{
  color:var(--txt-soft);
  font-size:14px;
}

.cardList{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

.postCard{
  padding:20px 18px;
}

.postCard h3{
  margin:0 0 8px;
  font-size:19px;
}

.postCard p{
  margin:0;
}

.categoryGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.categoryCard{
  padding:20px 18px;
  min-height:128px;
}

/* =========================
   Notice / CTA
========================= */

.noticeBox{
  border:1px solid #ececef;
  background:#ffffff;
  border-radius:20px;
  padding:18px;
  color:var(--txt);
}

.ctaBox{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto 22px;
  border-radius:26px;
  padding:24px;
  background:#fff7f9;
  border:1px solid #f3d8de;
  box-shadow:none;
}

.ctaBox h3{
  margin:0 0 8px;
  font-size:26px;
  color:var(--txt-strong);
}

.ctaBox p{
  margin:0 0 14px;
  color:var(--txt);
}

.ctaList{
  margin:0 0 16px;
  padding-left:18px;
  color:var(--txt);
}

/* =========================
   Footer
========================= */

.footerWrap{
  margin-top:36px;
  border-top:1px solid #2a2a2a;
  background:#1f1f1f;
}

.footerInner{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
  padding:28px 0 36px;
  background:transparent;
}

.footerTop{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:16px;
}

.footerNote{
  color:#bbbbbb;
  font-size:13px;
}


.footerRight{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:10px;
  width:248px;          /* 핵심: 오른쪽 전체 폭 고정 */
  margin-left:auto;
}

.footerLinks{
  display:flex;
  justify-content:space-between;  /* 3개 링크를 박스 폭 안에서 정렬 */
  gap:0;
  width:100%;
}

.footerLinks a{
  color:#cfcfcf;
  font-size:14px;
  white-space:nowrap;
}

.footerLinks a:hover{
  color:#ffffff;
}

.footerWrap .brandText{
  color:#ffffff;
}

.footerJump{
  width:100%;
}

.footerSelect{
  width:100%;
  height:44px;
  padding:0 44px 0 14px;
  border:1px solid #d8dce2;
  border-radius:8px;
  background:#fff;
  color:var(--txt);
  font-size:14px;
  font-weight:500;
  outline:none;
  cursor:pointer;

  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  background-image:
    linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size:6px 6px;
  background-repeat:no-repeat;
}

.footerSelect:hover{
  border-color:#bfc8d4;
  background:#fafafa;
}

.footerSelect:hover{
  border-color:#bfc8d4;
  background:#fafafa;
}

@media (max-width:720px){

  .footerRight{
    width:100%;          /* 전체 폭 사용 */
    margin-left:0;       /* 오른쪽 정렬 제거 */
    align-items:stretch; /* 전체 폭 채우기 */
  }

  .footerLinks{
    width:100%;
    justify-content:space-between;  /* 좌우 균형 */
  }

  .footerJump{
    width:100%;
  }

  .footerSelect{
    width:100%;
  }

}

/* =========================
   Mobile menu button
========================= */

.menuToggle{
  display:none;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid #dce1e7;
  background:#fff;
  border-radius:12px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  position:relative;
  z-index:1002;
}

.menuToggle span{
  display:block;
  width:18px;
  height:2px;
  border-radius:999px;
  background:#424242;
  transition:.2s ease;
}

.menuToggle.is-open span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.menuToggle.is-open span:nth-child(2){
  opacity:0;
}

.menuToggle.is-open span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

/* =========================
   Mobile overlay / modal menu
========================= */

.mobileMenuOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.34);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .22s ease, visibility .22s ease;
  z-index:998;
}

.mobileMenuOverlay.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.mobileMenu{
  position:fixed;
  top:72px;
  left:0;
  right:0;
  z-index:999;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-10px);
  transition:opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.mobileMenu.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}

.mobileMenuPanel{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

.mobileNav{
  display:flex;
  flex-direction:column;
  gap:8px;
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 16px 40px rgba(0,0,0,.10);
  padding:12px;
}

.mobileNav a{
  min-height:44px;
  display:flex;
  align-items:center;
  padding:0 12px;
  border-radius:12px;
  color:var(--txt);
  font-size:15px;
}

.mobileNav a:hover{
  background:#f4f8fc;
  color:var(--txt-strong);
}

/* =========================
   Responsive
========================= */

@media (max-width:980px){
  .grid.six{
    grid-template-columns:repeat(3,1fr);
  }

  .categoryGrid{
    grid-template-columns:repeat(2,1fr);
  }

  .heroCard h1{
    font-size:34px;
  }
}

@media (max-width:720px){
  body{
    padding-top:66px;
  }

  .siteHeader{
    min-height:66px;
  }

  .nav{
    display:none;
  }

  .menuToggle{
    display:flex;
  }

  .mobileMenu{
    top:66px;
  }

  .grid.six{
    grid-template-columns:repeat(2,1fr);
  }

  .cardList,
  .categoryGrid{
    grid-template-columns:1fr;
  }

  .heroCard{
    padding:28px 20px;
  }

  .heroCard h1{
    font-size:28px;
  }

  .heroLead{
    font-size:15px;
  }
}

.dictBox{
  padding:24px;
}

.dictContent{
  margin:0;
  padding:0;
  line-height:1.85;
  white-space:pre-line;
  word-break:keep-all;
  overflow-wrap:break-word;
  font-size:17px;
}

@media (max-width:720px){
  .dictBox{
    padding:20px;
  }

  .dictContent{
    font-size:16px;
    line-height:1.8;
  }
}


.noticeBox.articleBox{
  background:transparent;
  border:0;
  padding:0;
  border-radius:0;
  box-shadow:none;
}


