:root {
  --brand: #432c1d;           /* 로고계열 브라운 */
  --accent: #5aa770;          /* 포인트 그린 */
  --surface: #ffffff;         /* 카드 배경 */
  --ink: #222;                /* 본문 */
  --muted: #666;           /* 보조 텍스트 */
  --line: #ccc;               /* 경계선 */
  --shadow: 0 12px 30px rgba(0,0,0,.06);
  --header-h: 168px;
  --container: 1500px;        /* 734 + 32 + 734 */
  --left-col: calc((100% - 32px) /2);
  --right-col: calc((100% - 32px) /2);
  --gap: 15px;
  --radius: 10px;
  --badge-w: 65px;          /* 배지 고정 폭 */
  --row-pad: 14px;          /* 카드 내부 상하 패딩(디자인에 맞게 조절) */
  --divider-gap: 16px;      /* 배지와 구분선 사이 간격 */
  --divider-color: #d8dee6; /* 선 색상 */
  --fade-len: 12px;         /* 위/아래 페이드 길이 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  font-family: "Noto Sans KR", sans-serif;
  background: url(../img/bg.png) no-repeat center;
  background-size: cover;
  color: var(--ink);
  letter-spacing: -0.5px;
}

header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
}

.logo {
  font-weight: 900;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__img {
  width: 198px;
  height: 28px;
  background: url('../img/logo.png') center no-repeat;
}

.sns_wrap{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(180px, -50%);
  display: flex;
  gap: 32px;
  align-items: center;
}
.sns_wrap .sns{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: inherit;
  line-height: 130%;
}
.sns_wrap .sns_ic{
  width: 48px;
  height: 48px;
  flex: none;
  background: #80993F;
  border-radius: 50%;
  text-align: center;
  align-content: center;
}
.sns_wrap .sns_ic img{
  width: 28px;
  padding-top: 4px;
}

main {
  /* padding:32px 0 */
}

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
}

/* ---- 2열 레이아웃 ---- */
.grid {
  display: flex;
  gap: 32px;
}

.left {
  width: calc((100% - 32px)/2);
  flex: 0 0 var(--left-col);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.right {
  width: calc((100% - 32px)/2);
  flex: 0 0 var(--right-col);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}


/* 좌측 상단 2열(히어로 좌 / 퀵메뉴 우) */
.left-top {
  display: grid;
  grid-template-columns: calc(62% - 32px) 38%; /* 왼쪽, 오른쪽 */
  gap: 32px; /* 열 간격 */
  height: 301px;
}

/* 카드 공통 */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 히어로 */
.hero-card {
  position: relative;
  overflow: hidden;
  height: 301px;
  border-radius: 20px 80px 20px 20px;
  display: flex;
  align-items: flex-start;
  padding: 40px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  background-color: #dcebdc; /* 배경색만 유지 */
}

/* 배경 이미지는 ::before로 처리 */
.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/hero-leaf.png') center/cover no-repeat;
  transition: transform 1.2s ease; /* 부드럽게 */
  z-index: 0;
}

/* hover 시 확대 */
.hero-card:hover::before {
  transform: scale(1.1);
}

.hero-eyebrow {
  font-weight: 400;
  opacity: .95;
  font-size: 14px;
}

.hero-title {
  line-height: 1.2;
  font-size: clamp(26px, 3.5vw, 32px);
}

.hero-card .wrap {
  display: grid;
  gap: 6px;
}
/* 안쪽 텍스트는 위로 올리기 */
.hero-card .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}
/* 퀵메뉴(5개) */
.quick-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 301px
}

.quick-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  height: calc((100% - 40px)/5);
  padding: 0 18px;
}
.quick-item:first-child {
  border-top-left-radius: 30px;
}
.quick-item:last-child {
  border-bottom-right-radius: 30px;
}
.quick-item .txt {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: #222;
}
.quick-item:hover .txt {
  /* font-weight: 600; */
  color: #70892c;
}
.quick-item .ico {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #eef5ea url('../img/ico-placeholder.png') center/18px no-repeat;
}

.quick-item .chev {
  width: 34px;
  height: 34px;
}

.quick-item:nth-child(1) .chev {
  background: #fff url('../img/ic_menu01.png') center no-repeat;
}

.quick-item:nth-child(2) .chev {
  background: #fff url('../img/ic_menu02.png') center no-repeat;
}

.quick-item:nth-child(3) .chev {
  background: #fff url('../img/ic_menu03.png') center no-repeat;
}

.quick-item:nth-child(4) .chev {
  background: #fff url('../img/ic_menu04.png') center no-repeat;
}

.quick-item:nth-child(5) .chev {
  background: #fff url('../img/ic_menu05.png') center no-repeat;
}

/* 공지사항 (세로 스크롤) */
.card.notice { 
  background: none;
  border: 1px solid #ccc;
  box-shadow: none;
  padding: 24px 34px;
}

.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.notice .ico {
  width: 26px;
  height: 24px;
  background: url('../img/ic_notice.png') center no-repeat;
  background-size: cover;
}

.notice-title {
  font-size: 20px;
  font-weight: 500;
  margin-right: 2rem;
  white-space: nowrap;
}

.notice-track {
  flex: 1;
  overflow: hidden;
  height: 28px;
  position: relative; 
}

.notice-list {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  will-change: transform;
}

.notice-list a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #222;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: url('../img/ic_left.png') center no-repeat;
  cursor: pointer;
  user-select: none;
}

.btn-icon.next {
  background-image: url('../img/ic_right.png');
  margin-left: 5px;
}
.btn-icon:hover {
  background-color: #fff;
}

/* 원자재 가격정보 배너 */

.price_wrap{
  display:flex;
  gap: var(--gap);
}
.price_wrap .price_box{
  background: #fff;
  width: 100%;
  border-radius: var(--radius);
  display:flex;
  gap: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  align-items: center;
}
.price_wrap .price_box img{
  width: 32px;
}
.price_wrap .price_box p{
  color: #222;
  font-weight: 500;
  font-size: 17px;
  line-height: 140%;
}

.sys-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

.sys-row .label {
  min-width: 76px;
  color: var(--muted);
}

.logo-track {
  position: relative;
  overflow: hidden;
  flex: 1;
}
.logo-track::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0px;
    width: 56px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, var(--surface) 90%);
    z-index: 1;
}
.logo-list {
  display: flex;
  align-items: center;
  gap: 28px;
  will-change: transform;
}

.logo-item {
    flex: 0 0 auto;
    /* width: 140px; */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    /* border: 1px solid var(--line); */
    /* box-shadow: 0 4px 14px rgba(0, 0, 0, .03);*/
}
.logo-item img {
  max-height: 50px;
}
.left .row {
  border-bottom-left-radius: 30px;
}

/* 우측 6개 섹션(정부기관 등) */
.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 14px 21px 14px;
  border-radius: var(--radius);
  height: calc((100% - 90px)/6);
}

.row .badge {
  flex: 0 0 120px;
  width: var(--badge-w);
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  color: #222;
  display: flex;
  justify-content: center;  /* 가로 가운데 */
  align-items: center;      /* 세로 가운데 */
  text-align: center;       /* 텍스트 자체도 가운데 */
  letter-spacing: 0;        /* 불필요한 간격 제거 */
  margin-left: -8px;
  position: relative; /* ::after 기준 */
}

.row .badge::after{
  content: "";
  position: absolute;
  right: 0;
  top: -12px;
  bottom: 14px;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #d8dee6 12px, #d8dee6 calc(100% - 12px), rgba(0, 0, 0, 0) 100%);
  z-index: 3;
}

.row .badge.two-char {
  letter-spacing: calc((65px - 2.8em) / 1); /* 해외 전용 조절값 */
  justify-content: center; /* 글자들이 너무 벌어지지 않게 */
  margin-left: 0px;
}
.row .badge .ico {
  width: 22px;
  height: 22px;
  background: #eef5ea url('../img/ico-cat.png') center/14px no-repeat;
  border-radius: 8px;
}

/* 로고 트랙: 아래로 살짝 페이드(자연스럽게 사라지는 느낌) */
.row .logos {
  position: relative;
  overflow: hidden;
  padding: 0 10px;
  /* 아래 12px 정도를 투명으로 마스킹 */
  /* -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 12px), rgba(0,0,0,0) 100%); */
  /* mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 12px), rgba(0,0,0,0) 100%); */
  flex: 1;
}

/* 오른쪽 버튼 아래 영역: 흰색 그라데이션 오버레이로 '다음 로고 있음' 힌트 */
.row .logos::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0px;                 /* next 버튼 쪽 */
  width: 56px;              /* 필요시 56~96px로 조절 */
  height: 100%;
  pointer-events: none;     /* 클릭 방해 X */
  background: linear-gradient(to right,
              rgba(255,255,255,0) 0%,
              var(--surface) 90%); /* 카드 배경색으로 자연스런 페이드 */
  z-index: 1;
}

/* next 버튼이 오버레이 위에 오도록 */

.row .next {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: url(../img/ic_plus.png) center #fff no-repeat;
    cursor: pointer;
    user-select: none;
    position: relative;
     z-index: 2;
}

.row .list {
  display: flex;
  align-items: center;
  gap: 32px;
  will-change: transform;
}


.logo-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}
.logo-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-modal .modal-content {
  background: #fff;
  width: 734px;
  max-width: 90%;
  max-height: 80%;
  overflow-y: auto;
  border-radius: 8px;
  padding: 24px;
  position: relative;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.logo-modal .modal-close {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    border: 1px dotted var(--line);
    background: url(../img/ic_close.png) center #fff no-repeat;
    cursor: pointer;
}

.logo-modal .modal-title {
  margin-top: 0;
  /* margin-bottom: 16px; */
  font-size: 20px;
  font-weight: 600;
}
.logo-modal .modal-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.logo-modal .modal-body img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}


/* Footer */
footer {
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
}
footer p {
  color: var(--ink);
}

@media screen and (max-width:1500px) {
.container {
    width: min(100%, var(--container));
    padding: 0 24px;
}
footer {
    padding: 24px;
}
header {
    /* height: 100px; */
}
.price_wrap{
  flex-direction: column;
}
.price_wrap .price_box p br{
  display: none;
}

}

@media (max-width: 1200px) {
  header {
    flex-direction: column;
    gap: 24px;
}
.sns_wrap{
  position: inherit;
  top: 0;
  left: 0;
  transform: none;
}
.sns_wrap .sns br{
  display: none !important;
}
.sns_wrap .sns_ic{
  width: 40px;
  height: 40px;
}
.sns_wrap .sns_ic img{
  width: 24px;
}
  .grid {
    flex-direction: column;
    gap: 15px
  }
  .left,
  .right {
    flex: auto;
    width: 100%;
  }
  .left .row {
    border-bottom-left-radius: var(--radius);
}
}
@media (max-width: 760px) {
  .left-top {
    grid-template-columns: 1fr;
    height: auto;
    gap: 15px;
  }
}


/* =========================
   ≤1200px : 글자/로고 크기 축소
   ========================= */
@media (max-width: 1200px) {
  /* 전반 텍스트 살짝 축소 */
  body { font-size: 15px; }
  /* .hero-title { font-size: clamp(18px, 3.2vw, 28px); } */
  .notice-title { font-size: 18px; }
  .quick-item .txt { font-size: 16px; }
  .row .badge { font-size: 16px; }
  .price_wrap .price_box p{font-size: 16px;}
  /* 로고 사이즈 다운 */
  .logo-item { height: 44px; }
  .logo-item img { max-height: 44px; }

  /* 로고 간격도 살짝 축소 */
  .row .list { gap: 24px; }
  .logo-list { gap: 22px; }
}

/* =========================================
   ≤760px :
   1) 공지사항: 제목+버튼 | 리스트(2단)
   2) 카드(row): badge | logos(2단)
   ========================================= */
@media (max-width: 760px) {
  /* 1) 공지사항 2단 레이아웃 */
  .card.notice {
    padding: 16px 16px;            /* 여백 조정 */
    display: block;
  }
  .notice {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 좌: 제목+버튼 / 우: 리스트 */
    grid-template-areas:
      "head list";
    align-items: start;
    gap: 10px 14px;
    padding: 0;                     /* 내부 패딩은 개별 요소로 */
  }
  .notice-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .notice-track {
    width: 100%;
  }

  /* 제목+버튼 묶음용 래퍼 */
  .notice .head-wrap{
    grid-area: head;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  /* 기존 구조를 활용: 아이콘+제목을 head-wrap에 얹기 위한 배치 */
  .notice .ico { width: 22px; height: 20px; flex: 0 0 auto; }
  .notice-title { margin: 0; font-size: 17px; white-space: nowrap; }

  /* 버튼을 제목 옆으로 */
  .notice-btns {
    display: inline-flex;
    gap: 6px;
  }
  .notice-btns .btn-icon { width: 28px; height: 28px; }

  /* 리스트는 오른쪽 칼럼 */
  .notice-track {
    grid-area: list;
    height: 24px; /* 줄높이 축소 */
  }
  .notice-list { row-gap: 6px; }
  .notice-list a { font-size: 14px; }

  /* DOM 변경 없이 제목+버튼을 왼쪽 칼럼에 올리기 위한 간단한 트릭 */
  .card.notice .notice { position: relative; }
  .card.notice .notice > .ico,
  .card.notice .notice > .notice-title,
  .card.notice .notice > .notice-btns {
    position: static;
  }
  /* 제목/버튼을 한 덩어리로 보이게 래퍼 생성 없이도 배치되도록 */
  .card.notice .notice { column-gap: 0; }
  .card.notice .notice .ico,
  .card.notice .notice .notice-title,
  .card.notice .notice .notice-btns {
    grid-area: head;
  }

  /* 2) 카드(row) 2단: badge | logos(+btn) */
  .row {
    display: grid;
    grid-template-columns: 110px 1fr;  /* 좌: 배지, 우: 로고 */
    grid-template-areas:
      "badge logos";
    align-items: center;
    gap: 10px 12px;
    padding: 16px 12px;  /* 높이 줄이기 */
    height: auto;        /* 고정 높이 해제 */
  }

  .row .badge {
    grid-area: badge;
    flex: none;                 /* flex 기반 해제 */
    width: 85px;                /* 배지 폭 유지 */
    justify-self: start;
    margin-left: 0;
 
  }
  .row .badge::after{
    top: 0px; bottom: 10px;    /* 세로선 길이도 살짝 줄임 */
    height: 30px;
  }

  .row .logos {
    grid-area: logos;
    padding: 0 6px 0 0;
  }

  /* next 버튼은 로고 영역의 오른쪽 안쪽에 붙이기 */
  .row {
    position: relative;
    grid-template-columns: 90px 1fr;
  }
  .row .next {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
  }

  /* 로고 크기 더 축소 */
  .logo-item { height: 30px; }
  .logo-item img { max-height: 25px; }
  .row .list { gap: 18px; }

  /* 히어로/퀵메뉴도 모바일 간격 축소 */
  .left-top {
    grid-template-columns: 1fr;
    height: auto;
    gap: 15px;
  }
  .quick-links { height: auto; }
  .quick-item { height: 56px; }
  .quick-item .txt { font-size: 16px; }

  /* .left .row {grid-template-columns: 75px 1fr;} */
}

/* =========================================================
   공지사항 전용 레이아웃(전역 .notice 규칙과 충돌 차단 버전)
   - 데스크톱: [아이콘][제목][내용(가운데)][좌/우버튼] 한 줄
   - 모바일(<=760px): 위[아이콘+제목+버튼] / 아래[내용]
   ========================================================= */

/* 전역 .notice 규칙이 article에 flex를 주는 문제를 차단 */
.card.notice { display: block !important; padding: 16px 20px; }

/* 내용(롤링) 텍스트 처리 공통 */
.card.notice .notice-track{
  display:flex; align-items:center; justify-content:center;
  text-align:center; overflow:hidden; height:28px;
}
.card.notice .notice-list a{
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%;
}

/* ===== 데스크톱 (>760px) ===== */
@media (min-width: 761px){
  .card.notice{
    display:grid !important;
    grid-template-columns: auto auto 1fr auto; /* ico | title | track | btns */
    align-items:center; column-gap:16px;
  }
  .card.notice .notice-head{ display: contents; } /* 내부 요소를 그리드 셀로 바로 배치 */
  .card.notice .notice-head .ico        { grid-column:1; width:26px; height:24px; background:url('../img/ic_notice.png') center/contain no-repeat; }
  .card.notice .notice-head .notice-title{ grid-column:2; margin:0; font-size:20px; font-weight:500; white-space:nowrap; }
  .card.notice .notice-track            { grid-column:3; }
  .card.notice .notice-head .notice-btns{
    grid-column:4; justify-self:end; display:inline-flex; gap:6px;
  }
  .card.notice .notice-head .btn-icon{ width:32px; height:32px; }

}

/* ===== 모바일 (<=760px) ===== */
@media (max-width: 760px){
  .card.notice{
    display:grid !important;
    grid-template-columns: auto 1fr auto; /* ico | title | btns */
    grid-template-rows: auto auto;        /* 1행 head / 2행 track */
    align-items:center; column-gap:8px; row-gap:10px;
    padding:12px 16px;
  }
  .card.notice .notice-head{
    grid-column:1 / -1; grid-row:1;
    display:grid;
    grid-template-columns: auto 1fr auto; /* ico | title | btns */
    align-items:center; column-gap:8px;
  }
  .card.notice .notice-head .ico{
    width:20px; height:20px; background:url('../img/ic_notice.png') center/contain no-repeat;
  }
  .card.notice .notice-head .notice-title{
    margin:0; font-size:17px; font-weight:600; white-space:nowrap;
  }
  .card.notice .notice-head .notice-btns{
    justify-self:end; display:inline-flex; gap:6px;
  }
  .card.notice .notice-head .btn-icon{ width:28px; height:28px; }

  .card.notice .notice-track{
    grid-column:1 / -1; grid-row:2;
    width:100%; height:24px;
    justify-content: flex-start;
    text-align: left;
    padding-left: 30px;
  }
  .card.notice .notice-list{ row-gap:6px; }
  .card.notice .notice-list a{ font-size:14px; }
  .mo_hidden {display: none;}
  .mo_block {display: block;}
  .footer { font-size: 13px;}
  .hero-card {height: 260px;}
}

/* ============== 공지사항 컴포넌트 ============== */
.notice-bar {
  background: none;
  border: 1px solid #ccc;
  box-shadow: none;
  border-radius: 10px;        /* 기존 변수 쓰면 var(--radius) */
  padding: 16px 20px;
}

/* 데스크톱(>760px): [아이콘][제목][내용(가운데)][버튼] 한 줄 */
@media (min-width: 761px) {
  .notice-bar {
    display: grid;
    grid-template-columns: auto auto 1fr auto; /* ico | title | track | btns */
    align-items: center;
    column-gap: 16px;
  }

  .notice-bar .notice-head { display: contents; } /* 내부를 바로 그리드에 배치 */

  .notice-bar .ico {
    width: 26px; height: 24px;
    background: url('../img/ic_notice.png') center/contain no-repeat;
  }
  .notice-bar .notice-title {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
  }

  .notice-bar .notice-track {
    display: flex;
    align-items: center;
    justify-content: center;       /* 내용 가운데 */
    height: 28px;
    overflow: hidden;
    text-align: center;
    min-width: 0;                  /* 말줄임 허용 */
  }
  .notice-bar .notice-list {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    will-change: transform;
  }
  .notice-bar .notice-list a {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #222;
  }

  .notice-bar .notice-btns {
    display: inline-flex;
    gap: 6px;
    justify-self: end;
  }
  .notice-bar .btn-icon {
    width: 32px; height: 32px;
    border-radius: 16px;
    border: 1px solid #ccc;        /* 기존 var(--line) 가능 */
    background: url('../img/ic_left.png') center no-repeat;
    cursor: pointer;
    user-select: none;
  }
  .notice-bar .btn-icon.next {
    background-image: url('../img/ic_right.png');
    margin-left: 5px;
  }
  .notice-bar .btn-icon:hover { background-color: #fff; }
}

/* 모바일(<=760px): 위(아이콘+제목+버튼) / 아래(내용) */
@media (max-width: 760px) {
  .notice-bar {
    display: grid;
    grid-template-columns: auto 1fr auto; /* ico | title | btns */
    grid-template-rows: auto auto;        /* 1행 head / 2행 list */
    align-items: center;
    column-gap: 8px;
    row-gap: 10px;
    padding: 12px 16px;
  }

  .notice-bar .notice-head {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 8px;
  }
  .notice-bar .ico {
    width: 20px; height: 20px;
    background: url('../img/ic_notice.png') center/contain no-repeat;
  }
  .notice-bar .notice-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
  }
  .notice-bar .notice-btns {
    display: inline-flex;
    gap: 6px;
    justify-self: end;
  }
  .notice-bar .btn-icon {
    width: 28px; height: 28px;
  }

  .notice-bar .notice-track {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    height: 24px;                  /* 줄높이 축소 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;       /* 내용 가운데 */
    text-align: center;
  }
  .notice-bar .notice-list { row-gap: 6px; }
  .notice-bar .notice-list a { font-size: 14px; }
  .logo-modal .modal-body {grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));}

}
/* ============================
   공지사항 PC 레이아웃(>760px)
   - 한 줄: [아이콘][제목][내용 중앙][버튼 맨오른쪽]
   ============================ */
@media (min-width: 761px){
  .card.notice{
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 30px 29px;       /* 여백은 현 디자인에 맞게 */
  }

  /* 아이콘 */
  .card.notice .ico{
    width: 26px;
    height: 24px;
    background: url('../img/ic_notice.png') center/contain no-repeat;
    flex: 0 0 26px;           /* 고정폭 */
  }

  /* 제목 */
  .card.notice .notice-title{
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;      /* 줄바꿈 방지 */
    flex: 0 0 auto;           /* 내용폭을 먹지 않도록 */
  }

  /* 내용(롤링 텍스트) */
  .card.notice .notice-track{
    flex: 1 1 auto;           /* 가운데 영역을 유연폭 */
    min-width: 0;             /* 말줄임 허용 */
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-start;  /* 중앙 정렬 */
    overflow: hidden;
    text-align: left;
    padding-left: 50px;
  }
  .card.notice .notice-list{
    display: flex;
    flex-direction: column;
    row-gap: 8px;             /* 기존 슬라이더 간격 유지 */
    will-change: transform;
  }
  .card.notice .notice-list a{
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #222;
    text-align: left;
  }

  /* 버튼: 항상 맨 오른쪽 끝 */
  .card.notice .notice-btns{
    margin-left: auto;        /* 핵심! 오른쪽 끝으로 밀기 */
    display: inline-flex;
    gap: 6px;
    flex: 0 0 auto;
  }
  .card.notice .btn-icon{
    width: 32px;
    height: 32px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: url('../img/ic_left.png') center no-repeat;
    cursor: pointer;
    user-select: none;
  }
  .card.notice .btn-icon.next{
    background-image: url('../img/ic_right.png');
    margin-left: 5px;
  }
  .card.notice .btn-icon:hover{ background-color:#fff; }
}

@media (max-width: 580px){
  .sns_wrap{
    flex-direction: row;
    gap: 14px;
  }
  .sns_wrap .sns br{
    display: block !important;
  }
}