/* =====================================================================
   보림토건(주) 홈페이지 공통 스타일
   - 원본(아임웹) 디자인 수치 기준: 콘텐츠 최대폭 1280px, 위젯 여백 15px
   - 폰트: Poppins(영문) + 넥슨 Lv1 고딕(한글)
   ===================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Nexon Gothic'; src: url('../fonts/NEXONLv1GothicOTFLight.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Nexon Gothic'; src: url('../fonts/NEXONLv1GothicOTFRegular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nexon Gothic'; src: url('../fonts/NEXONLv1GothicOTFBold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --font: Poppins, 'Nexon Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Nanum Gothic', 'Noto Sans', sans-serif;
  --font-kr: 'Nexon Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --green: #19ab61;        /* 본문 강조 녹색 */
  --green-dark: #01991f;   /* 메뉴/탭 활성 녹색 */
  --brand: #5b4c3d;        /* 브랜드(브라운) */
  --text: #000;
  --text-sub: #212121;
  --gray-bg: #f1f1f1;
  --footer-bg: #383838;
  --line: #d0d0d0;
  --max: 1280px;
  --gutter: 15px;
  --header-h: 70px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.7; color: var(--text); background: #fff; word-break: normal; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; vertical-align: middle; }
img { height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, h5, h6, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; }
table { border-collapse: collapse; }
.iform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #000; color: #fff; padding: 8px 16px; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }

/* ---------- Layout helpers (아임웹 그리드 재현) ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container > .inner, .w { padding: 0 var(--gutter); }
.sec { position: relative; }
.row { display: flex; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; }
.row > [class*="col-"] { padding: var(--gutter); min-width: 0; }
.col-1 { width: 8.3333%; } .col-2 { width: 16.6667%; } .col-3 { width: 25%; } .col-4 { width: 33.3333%; }
.col-5 { width: 41.6667%; } .col-6 { width: 50%; } .col-7 { width: 58.3333%; } .col-8 { width: 66.6667%; }
.col-9 { width: 75%; } .col-10 { width: 83.3333%; } .col-11 { width: 91.6667%; } .col-12 { width: 100%; }
.sp { height: 60px; }          /* 아임웹 '여백' 위젯 기본(30px + 위아래 15px) */
.sp-s { height: 30px; } .sp-l { height: 90px; } .sp-xl { height: 120px; }
.ta-c { text-align: center; } .ta-r { text-align: right; } .ta-l { text-align: left; }
.pc-only { } .mo-only { display: none !important; }
.c-green { color: var(--green); } .c-green-dark { color: var(--green-dark); } .c-white { color: #fff; }

/* 아임웹 텍스트 위젯(froala) 재현: 원본 HTML 을 그대로 넣으면 동일하게 표시 */
.txt { font-size: 14px; line-height: 1.7; }
.txt p { margin: 0; min-height: 1em; }
.txt strong, .txt b { font-weight: 700; }
.txt span[style*="font-size: 18px"], .txt span[style*="font-size: 20px"], .txt span[style*="font-size: 22px"],
.txt span[style*="font-size: 24px"], .txt span[style*="font-size: 26px"], .txt span[style*="font-size: 30px"],
.txt span[style*="font-size: 36px"], .txt span[style*="font-size: 48px"] { line-height: 1.2 !important; }
.txt span[style*="font-size: 60px"], .txt span[style*="font-size: 64px"], .txt span[style*="font-size: 72px"],
.txt span[style*="font-size: 96px"], .txt span[style*="font-size: 120px"], .txt span[style*="font-size: 144px"] { line-height: 1.1 !important; }
.txt a { text-decoration: none; }
.txt img { max-width: 100%; }
.txt table { width: 100%; }
.txt td, .txt th { padding: 2px 5px; vertical-align: top; }

/* ---------- Header (PC) ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--header-h); background: #fff; transition: background-color .25s, color .25s; color: #000; }
.header__inner { position: relative; display: flex; align-items: center; max-width: 1250px; height: var(--header-h); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 259px; padding-left: 25px; height: 100%; }
.logo__img { width: 39px; height: 27px; }
.logo__img--white { display: none; }
.logo__text { font-family: var(--font-kr); font-size: 20px; font-weight: 700; color: #212121; white-space: nowrap; }
.gnb { flex: 0 0 728px; height: 100%; }
.gnb__list { display: flex; height: 100%; }
.gnb__item { position: relative; height: 100%; }
.gnb__link { display: block; height: 100%; padding: 0 15px; line-height: var(--header-h); font-family: Quicksand, var(--font-kr); font-size: 14px; letter-spacing: 1px; color: #000; white-space: nowrap; transition: color .2s; }
.gnb__item.is-active > .gnb__link { color: var(--green-dark); font-weight: 700; }
.gnb__item.is-active > .gnb__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--green-dark); }
.gnb__list:hover .gnb__item.is-active > .gnb__link { color: #000; }
.gnb__list .gnb__item:hover > .gnb__link { color: var(--green-dark); }
.gnb__sub { position: absolute; top: 100%; left: 0; min-width: 160px; background: #fff; box-shadow: 0 6px 12px rgba(0,0,0,.176); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 10; }
.gnb__item:hover > .gnb__sub, .gnb__item:focus-within > .gnb__sub { opacity: 1; visibility: visible; transform: none; }
.gnb__sub a { display: block; padding: 10px 20px; font-family: Quicksand, var(--font-kr); font-size: 14px; line-height: 20px; color: #000; white-space: nowrap; }
.gnb__sub a:hover { color: var(--green-dark); }
.util { display: flex; align-items: center; margin-left: auto; padding-right: 0; height: 100%; }
.util__link { font-size: 13px; color: #212121; padding: 0 7.5px; white-space: nowrap; }
.util__bar { width: 1px; height: 30px; background: rgba(0,0,0,.1); margin: 0 32.5px 0 12.5px; }
.util__help { display: inline-flex; align-items: center; gap: 5.5px; padding-right: 0; font-size: 14px; }
.util__help-ico { width: 14px; height: 14px; color: #212121; }
.m-menu-btn, .m-search-btn, .m-bar { display: none; }

/* 메인: 투명 헤더 → hover / 스크롤 시 흰 배경 */
.header--transparent { background: transparent; }
.header--transparent .logo__img--color { display: none; }
.header--transparent .logo__img--white { display: block; }
.header--transparent .logo__text, .header--transparent .gnb__link, .header--transparent .util__link { color: #fff; }
.header--transparent .util__bar { background: rgba(255,255,255,.3); }
.header--transparent .util__help-ico { color: #fff; }
.header--transparent:hover, .header--transparent.is-scrolled { background: #fff; }
.header--transparent:hover .logo__img--color, .header--transparent.is-scrolled .logo__img--color { display: block; }
.header--transparent:hover .logo__img--white, .header--transparent.is-scrolled .logo__img--white { display: none; }
.header--transparent:hover .logo__text, .header--transparent.is-scrolled .logo__text { color: #212121; }
.header--transparent:hover .gnb__link, .header--transparent.is-scrolled .gnb__link { color: #000; }
.header--transparent:hover .util__link, .header--transparent.is-scrolled .util__link { color: #212121; }
.header--transparent:hover .util__bar, .header--transparent.is-scrolled .util__bar { background: rgba(0,0,0,.1); }
.header--transparent:hover .util__help-ico, .header--transparent.is-scrolled .util__help-ico { color: #212121; }
.header--transparent .gnb__list .gnb__item:hover > .gnb__link { color: var(--green-dark); }

.main { padding-top: var(--header-h); }
.page-index .main { padding-top: 0; }

/* ---------- Sub visual / tabs ---------- */
.sub-visual { position: relative; display: flex; align-items: center; justify-content: center; height: 388px; background: #000 var(--bg) var(--pos, 50% 50%) / cover no-repeat; overflow: hidden; }
.sub-visual::before { content: ''; position: absolute; inset: 0; background: var(--overlay, rgba(0,0,0,.4)); }
.sub-visual__title { position: relative; margin: 0; font-size: 48px; font-weight: 400; line-height: 1.2; color: #fff; text-align: center; animation: fadeUp .9s ease both; }
.sub-tabs { background: #cfcfcf; padding: 20px var(--gutter); text-align: center; }
.sub-tabs__list { display: inline-flex; vertical-align: top; }
.sub-tabs__item { flex: 0 0 150px; border: 1px solid var(--line); border-left-width: 0; background: #fff; }
.sub-tabs__item:first-child { border-left-width: 1px; }
.sub-tabs__item a { display: block; padding: 10px 2px; font-size: 14px; line-height: 23.8px; color: #000; transition: background-color .2s, color .2s; }
.sub-tabs__item:hover a { color: var(--green-dark); }
.sub-tabs__item.is-active { background: var(--green-dark); border-color: var(--green-dark); }
.sub-tabs__item.is-active a { color: #fff; }

/* 페이지 내부 2차 탭 (예: 김석회 / 이재림, 수도권 / 경상도) */
.tabs2 { display: flex; justify-content: center; }
.tabs2 a { display: block; width: 150px; padding: 10px 2px; font-size: 14px; line-height: 23.8px; text-align: center; color: #212121; background: #fff; border: 1px solid var(--line); margin-left: -1px; }
.tabs2 a:first-child { margin-left: 0; }
.tabs2 a.is-active { background: #4a484a; color: #fff; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* 스크롤 등장 애니메이션 (main.js 가 .is-in 부여) */
[data-anim] { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
[data-anim="fade"] { transform: none; }
[data-anim="left"] { transform: translateX(-40px); }
[data-anim="right"] { transform: translateX(40px); }
[data-anim].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-anim] { opacity: 1; transform: none; transition: none; } .sub-visual__title { animation: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 13px 25px; font-size: 16px; line-height: 1.5; letter-spacing: 4px; color: #000; background: #fff; border: 1px solid rgba(0,0,0,.2); transition: background-color .2s, color .2s; }
.btn:hover { background: #000; color: #fff; }
.btn-plus { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 30px; border: 1px solid rgba(0,0,0,.3); color: rgba(0,0,0,.7); background: transparent; transition: background-color .2s; }
.btn-plus::before { content: ''; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; }
.btn-plus:hover { background: rgba(0,0,0,.05); }
.btn-more { display: inline-block; min-width: 87px; padding: 7px 24px; font-size: 13px; color: #fff; background: var(--green-dark); border: 0; }
.btn-more:hover { filter: brightness(1.08); }

/* ---------- Gallery ({{gallery}}) ---------- */
.gallery { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); margin: 0 calc(var(--gap) / -2); }
.gallery__item { padding: calc(var(--gap) / 2); }
.gallery__item.is-hidden { display: none; }
.gallery__thumb { display: block; position: relative; overflow: hidden; background: #f4f4f4; }
.gallery--grid .gallery__thumb { aspect-ratio: var(--ratio); }
.gallery--grid .gallery__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.gallery__thumb:hover img { transform: scale(1.04); }
.gallery__text { padding: 10px 0 6px; background: #fff; }
.gallery--align-center .gallery__text { text-align: center; }
.gallery__title { font-size: 14px; line-height: 1.7; color: #212121; }
.gallery__desc { margin-top: 2px; font-size: 12px; line-height: 1.6; color: #999; }
.gallery--masonry { display: flex; align-items: flex-start; }
.gallery--masonry .gallery__col { flex: 1 1 0; min-width: 0; }
.gallery--masonry .gallery__thumb img { width: 100%; display: block; }
.gallery--masonry .gallery__thumb { border: 1px solid #eee; }
.gallery--text-overlay .gallery__item { position: relative; }
.gallery--text-overlay .gallery__text { position: absolute; left: calc(var(--gap) / 2); right: calc(var(--gap) / 2); bottom: calc(var(--gap) / 2); padding: 10px 15px; background: rgba(101,101,101,.9); color: #fff; transition: opacity .3s; pointer-events: none; }
.gallery--text-overlay .gallery__title, .gallery--text-overlay .gallery__desc { color: #fff; }
.gallery--text-overlay .gallery__item:hover .gallery__text { opacity: 0; }
.gallery-more { margin-top: 30px; text-align: center; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.92); }
.lightbox.is-open { display: flex; }
.lightbox__fig { max-width: 92vw; max-height: 86vh; text-align: center; }
.lightbox__img { max-width: 92vw; max-height: 78vh; object-fit: contain; }
.lightbox__cap { margin-top: 12px; color: #fff; font-size: 15px; }
.lightbox__cap small { display: block; color: #bbb; font-size: 13px; }
.lightbox__btn { position: absolute; width: 50px; height: 50px; color: #fff; opacity: .8; }
.lightbox__btn:hover { opacity: 1; }
.lightbox__btn svg { width: 100%; height: 100%; }
.lightbox__close { top: 15px; right: 15px; }
.lightbox__prev { left: 15px; top: 50%; margin-top: -25px; }
.lightbox__next { right: 15px; top: 50%; margin-top: -25px; }
.lightbox__count { position: absolute; top: 25px; left: 25px; color: #ccc; font-size: 13px; }

/* ---------- Board list / view ({{board}}) ---------- */
.board-wrap { padding-top: 75px; padding-bottom: 92px; }
.board { max-width: 1036px; margin: 0 auto; }
.board__head { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #ddd; }
.board__title { font-size: 16.8px; font-weight: 400; color: #000; }
.board__title em { font-style: normal; font-size: 14px; color: var(--brand); }
.board__search { display: flex; align-items: center; width: 221px; border-bottom: 1px solid #ddd; }
.board__search input { flex: 1; min-width: 0; padding: 4px 0; border: 0; background: transparent; font-size: 13px; outline: 0; }
.board__search input::placeholder { color: #999; }
.board__search button { width: 20px; height: 20px; color: #555; }
.board-list { margin-top: 4.5px; }
.board-list__item { display: flex; gap: 15px; padding: 10px 0; border-bottom: 1px solid #ddd; }
.board-list__thumb { flex: 0 0 60px; height: 60px; align-self: center; overflow: hidden; }
.board-list__thumb img { width: 60px; height: 60px; object-fit: cover; }
.board-list__body { flex: 1; min-width: 0; }
.board-list__title { display: block; }
.board-list__title span { display: block; font-size: 14px; line-height: 23.8px; color: #000; }
.board-list__title:hover span { text-decoration: underline; }
.board-list__title small { display: -webkit-box; margin-top: 5px; font-size: 12px; line-height: 20.4px; color: rgba(0,0,0,.5); overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.board-list__meta { display: flex; gap: 10px; margin-top: 9.6px; font-size: 12px; line-height: 20.4px; color: rgba(0,0,0,.7); }
.board-list__meta em { font-style: normal; }
.board-list__empty { padding: 60px 0; text-align: center; color: #999; border-bottom: 1px solid #ddd; }
.pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 35px; }
.pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 30px; font-size: 14px; color: rgba(0,0,0,.4); }
.pager a.is-current { color: #000; font-weight: 700; }
.pager__prev, .pager__next { position: relative; }
.pager__prev::before, .pager__next::before { content: ''; width: 8px; height: 8px; border-left: 1px solid #888; border-bottom: 1px solid #888; transform: rotate(45deg); }
.pager__next::before { transform: rotate(-135deg); }
.pager a.is-disabled { opacity: .4; pointer-events: none; }

.board-view { max-width: 1036px; margin: 0 auto 7px; }
.board-view__title { font-size: 20px; font-weight: 400; line-height: 34px; color: #000; }
.board-view__summary { display: flex; align-items: center; gap: 16px; margin-top: 15px; padding: 8px 0 21px; border-bottom: 1px solid rgba(128,128,128,.2); }
.board-view__avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.board-view__write { font-size: 14px; line-height: 21px; color: #000; }
.board-view__meta { display: flex; gap: 10px; font-size: 13px; line-height: 16px; color: rgba(0,0,0,.7); }
.board-view__meta a { color: #757575; }
.board-view__body { padding: 22px 0; font-size: 14px; line-height: 23.8px; color: #000; }
.board-view__body p { margin: 0; min-height: 1em; }
.board-view__body > div:first-child { margin-top: 16px; }
/* 원본 에디터(froala) 이미지 정렬 클래스 */
.fr-view img.fr-dib { display: block; float: none; vertical-align: top; margin: 10px auto; }
.fr-view img.fr-dib.fr-fil { margin-left: 0; }
.fr-view img.fr-dib.fr-fir { margin-right: 0; }
.fr-view img.fr-dii { display: inline-block; float: none; vertical-align: bottom; margin: 5px; max-width: calc(100% - 10px); }
.fr-view img.fr-dii.fr-fil { float: left; margin: 5px 5px 5px 0; max-width: calc(100% - 5px); }
.fr-view img.fr-dii.fr-fir { float: right; margin: 5px 0 5px 5px; max-width: calc(100% - 5px); }
.board-view__body img { max-width: 100%; height: auto; cursor: zoom-in; }
.board-view__body table { width: 100%; }
.board-view__body td { vertical-align: top; padding: 2px; }
.board-view__address { margin-bottom: 15px; color: rgba(0,0,0,.6); }
.board-view__files { padding: 15px 0; border-top: 1px solid #eee; font-size: 13px; }
.board-view__foot { padding-top: 78.3px; }
.board-nav li { border-top: 1px solid rgba(128,128,128,.2); }
.board-nav li:last-child { border-bottom: 1px solid rgba(128,128,128,.2); }
.board-nav a { display: flex; align-items: center; gap: 30px; padding: 10px 12px; font-size: 14px; line-height: 23.8px; color: #000; }
.board-nav a:hover span { text-decoration: underline; }
.board-nav svg { flex: 0 0 14px; width: 14px; height: 14px; color: #000; }
.board-view__list-btn { display: inline-block; margin-top: 12px; padding: 6px 25px; font-size: 12px; line-height: 18px; letter-spacing: 1px; color: #fff; background: var(--green-dark); }
.board-view__list-btn:hover { filter: brightness(1.15); }

/* 최근 게시물 카드 ({{latest}}) — 원본: 카드 290x221 썸네일, 간격 30px */
.latest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 30px; }
.latest__item { display: block; min-width: 0; }
.latest__thumb { display: block; aspect-ratio: 290 / 221; background: #ddd center / cover no-repeat; transition: opacity .2s; }
.latest__item:hover .latest__thumb { opacity: .85; }
.latest__title { display: block; margin-top: 20px; font-size: 14px; font-weight: 400; line-height: 18.2px; color: #000; }
.latest__summary { display: -webkit-box; height: 67.2px; margin-top: 4px; font-size: 12px; line-height: 16.8px; color: #000; overflow: hidden; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.latest__date { display: block; margin-top: 5px; font-size: 11px; line-height: 16px; color: #000; }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: #fff; }
.footer__inner { display: flex; max-width: 1250px; margin: 0 auto; padding: 19px 0; }
.footer__info { flex: 0 0 625px; }
.footer__text p { font-size: 13px; line-height: 23.8px; margin-bottom: 10px; }
.footer__accent { color: #00e32d; }
.footer__name { font-size: 16px !important; line-height: 27.2px !important; margin-bottom: 0 !important; }
.footer__copy { margin-top: 15px; padding: 10px 0; border-top: 1px solid rgba(125,125,125,.5); font-size: 14px; line-height: 23.8px; }
.footer__menu { flex: 0 0 327px; padding-left: 15px; }
.footer__menu li { font-size: 14px; line-height: 23.8px; padding: 3px 0; margin-bottom: 2px; }
.footer__policy { padding-left: 15px; }
.footer__policy li { font-size: 14px; line-height: 23.8px; padding: 3px 0; }
.footer__policy .is-bold { font-weight: 700; }
.footer a:hover { text-decoration: underline; }
.m-safety-banner { display: none; }
.footer__pcmode { display: none; }
.pc-mode-btn { padding: 10px 25px; font-size: 12px; line-height: 17.14px; letter-spacing: 1px; color: #fff; background: #383838; border: 1px solid rgba(255,255,255,.2); }
html.is-pcmode .footer__inner { flex-wrap: wrap; }
html.is-pcmode .footer__pcmode { display: block; flex: 0 0 100%; padding: 15px 0 30px; text-align: center; }

.to-top { position: fixed; right: 40px; bottom: 45px; z-index: 900; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 1px solid rgba(25,171,97,.35); color: var(--green); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.to-top.is-show { opacity: 1; visibility: visible; }
.to-top svg { width: 26px; height: 26px; }

/* ---------- Mobile nav (slide) ---------- */
.m-nav { position: fixed; inset: 0; z-index: 2000; visibility: hidden; }
.m-nav.is-open { visibility: visible; }
.m-nav__backdrop { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .3s; }
.m-nav.is-open .m-nav__backdrop { opacity: .5; }
.m-nav__panel { position: absolute; top: 0; bottom: 0; left: 0; z-index: 2; width: 300px; max-width: 80vw; background: #fff; transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto; }
.m-nav.is-open .m-nav__panel { transform: none; }
.m-nav__top { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 32px 0 20px; background: #3d3530; color: #ddd; font-size: 14px; }
.m-nav__top a { color: #fff; font-size: 13px; font-weight: 700; }
.m-nav__item { position: relative; border-bottom: 1px solid #f0f0f0; }
.m-nav__item > a { display: block; padding: 10px 20px; font-size: 14px; line-height: 21px; color: #555; }
.m-nav__item.is-active > a { color: var(--green-dark); }
.m-nav__toggle { position: absolute; right: 0; top: 0; width: 56px; height: 41px; }
.m-nav__toggle::before { content: ''; position: absolute; right: 22px; top: 13px; width: 9px; height: 9px; border-right: 1px solid #aaa; border-bottom: 1px solid #aaa; transform: rotate(45deg); transition: transform .2s; }
.m-nav__item.is-expanded .m-nav__toggle::before { transform: translateY(4px) rotate(-135deg); }
.m-nav__sub { display: none; background: #fafafa; padding: 4px 0; }
.m-nav__item.is-expanded .m-nav__sub { display: block; }
.m-nav__sub a { display: block; padding: 8px 32px; font-size: 13px; color: #777; }
.m-nav__close { position: absolute; z-index: 3; top: 18px; left: min(300px, 80vw); margin-left: 12px; width: 32px; height: 32px; opacity: 0; transition: opacity .3s; }
.m-nav.is-open .m-nav__close { opacity: 1; }
.m-nav__close::before, .m-nav__close::after { content: ''; position: absolute; left: 4px; right: 4px; top: 15px; height: 2px; background: #fff; transform: rotate(45deg); }
.m-nav__close::after { transform: rotate(-45deg); }
body.is-locked { overflow: hidden; }

/* ===================================================================== Responsive */
@media (max-width: 1279px) {
  .header__inner { padding: 0 15px; }
  .logo { flex-basis: auto; padding-left: 0; margin-right: 30px; }
  .gnb { flex: 0 1 auto; }
  .gnb__link { padding: 0 10px; letter-spacing: 0; }
  .util__bar { margin: 0 12px 0 6px; }
  .footer__inner { padding-left: 15px; padding-right: 15px; }
  .footer__info { flex: 0 0 50%; }
  .footer__menu { flex: 0 0 26%; }
}

@media (max-width: 1100px) {
  .sub-tabs__list { display: flex; justify-content: center; }
  .sub-tabs__item { flex: 0 1 150px; min-width: 0; }
}

@media (max-width: 991px) {
  :root { --header-h: 94px; }
  .header, .header--transparent { height: 94px; background: #fff; border-bottom: 1px solid #eee; }
  .header__inner { height: 48px; justify-content: center; border-bottom: 1px solid #eee; }
  .logo { margin: 0; flex: none; gap: 8px; }
  .logo__img { width: 32px; height: 22px; }
  .logo__img--color { display: block !important; }
  .logo__img--white { display: none !important; }
  .logo__text { font-size: 20px; color: #212121 !important; }
  .gnb, .util { display: none; }
  .m-menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 6px; position: absolute; left: 15px; top: 9px; width: 30px; height: 30px; }
  .m-menu-btn span { display: block; height: 1.5px; background: #212121; }
  .m-search-btn { display: block; position: absolute; right: 10px; top: 9px; width: 30px; height: 30px; color: #212121; }
  .m-search-btn svg { width: 22px; height: 22px; margin: 4px; }
  .m-bar { display: block; height: 46px; overflow-x: auto; scrollbar-width: none; background: #fff; }
  .m-bar::-webkit-scrollbar { display: none; }
  .m-bar ul { display: flex; width: max-content; min-width: 100%; height: 100%; padding: 0 27px 0 15px; white-space: nowrap; }
  .m-bar li { position: relative; }
  .m-bar a { display: block; padding: 0 17px; font-size: 13px; line-height: 45px; letter-spacing: 1px; color: #000; }
  .m-bar li.is-active a { color: var(--green-dark); font-weight: 700; }
  .m-bar li.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--green-dark); }
  .page-index .main { padding-top: var(--header-h); }

  .sub-visual { height: 200px; background-position: var(--mpos, 50% 50%); }
  .sub-visual__title { font-size: 28px; padding: 0 20px; }
  .sub-tabs { padding: 11px 10px; }
  .sub-tabs__list { display: flex; flex-wrap: wrap; justify-content: center; }
  .sub-tabs__item, .sub-tabs__item:first-child { flex: 0 0 auto; padding: 0 12.5px; border: 0; background: transparent; }
  .sub-tabs__item a { display: block; padding: 0 0 5px; font-size: 13px; line-height: 22.1px; color: rgba(0,0,0,.7); white-space: nowrap; }
  .sub-tabs__item.is-active { background: transparent; }
  .sub-tabs__item.is-active a { color: var(--green-dark); border-bottom: 1px solid var(--green-dark); }

  .pc-only { display: none !important; }
  .mo-only { display: block !important; }
  .row > [class*="col-"] { width: 100%; }
  .row > .m-col-6 { width: 50%; } .row > .m-col-4 { width: 33.3333%; } .row > .m-col-3 { width: 25%; }
  .row > .m-hide { display: none; }
  .sp { height: 30px; } .sp-l { height: 45px; } .sp-xl { height: 60px; }

  .gallery { grid-template-columns: repeat(var(--mcols), minmax(0, 1fr)); }
  .latest { grid-template-columns: 1fr; gap: 0; }
  .board-wrap { padding-top: 33px; padding-bottom: 54px; }
  .board-list { margin-top: -1.5px; }
  .pager { margin-top: 29px; }
  .board-list__item { padding: 10px 15px; }
  .board-list__title small { -webkit-line-clamp: 4; }
  /* 게시글 상세 (원본 모바일 측정값) */
  .board-view { margin-top: 10px; }
  .board-view__title { padding: 7.5px 30px 15px 0; }
  .board-view__summary { gap: 12px; margin: 0 -15px; padding: 15px 15px 2px; }
  .board-view__avatar img { width: 32px; height: 32px; }
  .board-view__meta { gap: 10px; font-size: 11px; line-height: 13.2px; }
  .board-view__body { font-size: 15px; line-height: 25.5px; }
  .board-nav { margin: 0 -15px; }
  .board-nav a { padding: 8px 12px; }
  .board__head { flex-wrap: wrap; gap: 10px; }
  .board__search { width: 100%; }

  .m-safety-banner { display: none; }
.footer__pcmode { display: none; }
.pc-mode-btn { padding: 10px 25px; font-size: 12px; line-height: 17.14px; letter-spacing: 1px; color: #fff; background: #383838; border: 1px solid rgba(255,255,255,.2); }
html.is-pcmode .footer__inner { flex-wrap: wrap; }
html.is-pcmode .footer__pcmode { display: block; flex: 0 0 100%; padding: 15px 0 30px; text-align: center; }
  .footer__inner { display: grid; grid-template-columns: 144px 1fr; padding: 22px 15px 0; }
  .footer__menu { grid-column: 1; grid-row: 1; padding: 0; }
  .footer__policy { grid-column: 2; grid-row: 1; padding: 0; }
  .footer__menu li, .footer__policy li { margin-bottom: 4px; }
  .footer__info { grid-column: 1 / -1; grid-row: 2; margin-top: 13px; }
  .footer__copy { margin-top: 10px; padding: 0; border-top: 0; }
  .footer__pcmode { display: block; grid-column: 1 / -1; grid-row: 3; padding: 40px 0 50px; text-align: center; }
  .to-top { right: 15px; bottom: 20px; }
}

@media (max-width: 575px) {
  .tabs2 a { width: 50%; }
}
