/* ==========================================================
   게시판 (board.html)
   - 색 · 글꼴은 1번 구역의 값만 바꾸면 페이지 전체에 적용됩니다.
   - "@media (max-width: 860px)" = 화면 폭이 860px 이하(태블릿 · 휴대폰)일 때만 적용되는 규칙입니다.
   목차
     1. 색 · 글꼴 (자주 바꾸는 값)
     2. 기본 설정
     3. 로고
     4. 헤더
     5. 섹션 머리
     6. 페이지 머리
     7. 버튼과 링크
     8. 스크롤하면 한 줄씩 등장
     9. FAQ
     10. 아래 상담 띠
     11. 푸터
     12. 이 페이지 전용 : 게시판
     13. 샘플 / 납품 전환 (맨 위 GIL_BOARD_DEMO)
     14. 목록형
     15. 갤러리형
     16. 글 보기
     17. 웹진형: 왼쪽 사진 + 오른쪽 제목·요약
     18. 하단 개인정보처리방침 · 이용약관 링크
     19. 글쓰기 버튼 (로그인한 최고관리자 · 관리자 등급에게만 보임)
     20. 맨 위 메뉴
     21. 페이지 머리 · 메인 첫 화면의 긴 줄기
     22. 밑줄 링크 (예: 제작 요금 보기 →)
   ========================================================== */
/* ========== 1. 색 · 글꼴 (자주 바꾸는 값) ========== */
:root {
  --g-paper: #ffffff;   /* 바탕색 (흰색) */
  --g-stone: #f3f3ef;   /* 연한 회색 띠 배경 */
  --g-ink: #161616;   /* 기본 글자색 */
  --g-ink-2: #55554f;   /* 보조 글자색 (조금 연함) */
  --g-ink-3: #8c8c85;   /* 흐린 글자색 (날짜 · 작은 설명) */
  --g-line: #e2e2dc;   /* 구분선 색 */
  --g-road: #1f6b4e;   /* 대표 초록색 — 버튼 · 링크 · 강조가 모두 이 색 */
  --g-road-soft: #e6f0eb;   /* 연한 초록 배경 */
  --g-en: "Source Sans 3","Pretendard Variable",sans-serif;   /* 영어 글꼴 */
  --g-ko: "Pretendard Variable","Pretendard",-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;   /* 한글 글꼴 (기본 글꼴) */
}


/* ========== 2. 기본 설정 ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--g-ko);
  background: var(--g-paper);
  color: var(--g-ink);
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: -.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--g-road);
  outline-offset: 3px;
}

/* 내용 영역 (가운데 정렬, 좌우 여백) */
.g-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
}

/* 구역 하나의 위아래 여백 */
.g-sec {
  padding: 130px 0;
}

.g-stone {
  background: var(--g-stone);
}


/* ========== 3. 로고 ========== */
/* 로고 (GIL 글자) */
.g-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  color: var(--g-ink);
}

.g-logo b {
  font-family: var(--g-en);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -.045em;
  line-height: .82;
}

.g-logo span {
  font-family: var(--g-en);
  font-weight: 400;
  font-size: 11.6px;
  letter-spacing: .015em;
  margin-top: 5px;
  white-space: nowrap;
}


/* ========== 4. 헤더 ========== */
/* 맨 위 메뉴 줄 (스크롤해도 위에 붙어 있음) */
.g-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g-line);
}

/* 맨 위 메뉴 글자들 */
.g-gnav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-family: var(--g-en);
  font-size: var(--g-menu-size,20px);
  letter-spacing: .04em;
}

/* 로고는 메뉴에 밀려 줄어들지 않게 */
.g-logo {
  flex-shrink: 0;
}

.g-gnav a {
  position: relative;
  padding: 4px 0;
  transition: color .3s;
}

.g-gnav a:hover,.g-gnav a:focus-visible,.g-gnav a[aria-current] {
  color: var(--g-road);
}

/* 메뉴에 마우스를 올리면 초록 길이 그려지고 끝에 점이 찍힘 (지금 보는 페이지는 늘 표시) */
/* 메뉴 밑에 그려지는 별무리 선 */
.g-road-ln {
  position: absolute;
  left: -6px;
  bottom: -9px;
  width: calc(100% + 12px);
  height: 14px;
  overflow: visible;
  pointer-events: none;
}

.g-road-ln path {
  fill: none;
  stroke: var(--g-road);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  transition: stroke-dashoffset .55s cubic-bezier(.6,.05,.25,1);
}

.g-road-ln circle {
  fill: var(--g-road);
  opacity: 0;
  transform: scale(.3);
  transform-origin: 56px 6px;
  transition: opacity .2s,transform .25s;
}

.g-gnav a:hover .g-road-ln path,
.g-gnav a:focus-visible .g-road-ln path,
.g-gnav a[aria-current] .g-road-ln path {
  stroke-dashoffset: 0;
}

.g-gnav a:hover .g-road-ln circle,
.g-gnav a:focus-visible .g-road-ln circle,
.g-gnav a[aria-current] .g-road-ln circle {
  opacity: 1;
  transform: none;
  transition-delay: .45s;
}

/* 휴대폰 메뉴 버튼 (줄 세 개) */
.g-menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--g-line);
  background: none;
  cursor: pointer;
  color: var(--g-ink);
}

.g-menu i {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  margin: 5px auto;
  transition: .3s;
}

/* 휴대폰 메뉴가 열린 상태 */
.menu-open .g-menu i:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-open .g-menu i:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* 휴대폰에서 메뉴 버튼을 누르면 열리는 메뉴 */
.g-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #fff;
  padding: 110px 24px 40px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.menu-open .g-drawer {
  opacity: 1;
  pointer-events: auto;
}

.g-drawer a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--g-line);
  font-size: 24px;
  font-weight: 600;
  transition: color .3s,padding .3s;
}

.g-drawer a:hover {
  color: var(--g-road);
  padding-left: 8px;
}

.g-drawer a small {
  font-family: var(--g-en);
  font-size: 16px;
  font-weight: 400;
  color: var(--g-ink-3);
  letter-spacing: .06em;
}


/* ========== 5. 섹션 머리 ========== */
.g-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  margin-bottom: 56px;
  align-items: start;
}

.g-head .g-en {
  font-family: var(--g-en);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: .02em;
  line-height: 1.1;
}

.g-head .g-en small {
  display: block;
  font-family: var(--g-ko);
  font-size: 16px;
  font-weight: 500;
  color: var(--g-road);
  letter-spacing: 0;
  margin-top: 10px;
}

.g-head h2 {
  font-size: clamp(28px,calc(3vw + 2px),42px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.4;
}

.g-head p {
  color: var(--g-ink-2);
  margin-top: 16px;
  max-width: 660px;
}


/* ========== 6. 페이지 머리 ========== */
/* 페이지 첫머리 (큰 제목 영역) */
.g-page-head {
  padding: 110px 0 90px;
  border-bottom: 1px solid var(--g-line);
}

/* 현재 위치 표시 (홈 > 메뉴) */
.g-crumb {
  display: flex;
  gap: 10px;
  font-size: 16px;
  color: var(--g-ink-3);
}

.g-crumb a {
  transition: color .3s;
}

.g-crumb a:hover {
  color: var(--g-road);
}

.g-page-head .g-en-big {
  font-family: var(--g-en);
  font-weight: 200;
  font-size: clamp(54px,calc(8vw + 2px),120px);
  letter-spacing: .12em;
  line-height: 1;
  margin-top: 40px;
}

.g-page-head h1 {
  font-size: clamp(30px,calc(3.6vw + 2px),48px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.4;
  margin-top: 30px;
}

.g-page-head p {
  color: var(--g-ink-2);
  font-size: 19px;
  margin-top: 18px;
  max-width: 700px;
}

.g-page-head .g-acts {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* 별무리 길 장식 */
.g-route {
  display: block;
  width: min(720px,100%);
  height: 50px;
  margin-top: 20px;
  overflow: visible;
}

.g-route path {
  fill: none;
  stroke: var(--g-road);
  stroke-width: 1.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 2s .3s cubic-bezier(.6,.05,.2,1) forwards;
}

.g-route circle {
  fill: var(--g-road);
  opacity: 0;
  animation: pop .4s 2.2s forwards;
}

.g-route .g-start {
  fill: #fff;
  stroke: var(--g-road);
  stroke-width: 1.5;
  opacity: 1;
  animation: none;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pop {
  to {
    opacity: 1;
  }
}


/* ========== 7. 버튼과 링크 ========== */
/* 녹색 버튼 */
.g-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--g-ink);
  color: #fff;
  padding: 16px 28px;
  font-weight: 600;
  font-size: 17px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  border-radius: 2px;
}

.g-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--g-road);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.6,.05,.25,1);
}

.g-btn:hover::before,.g-btn:focus-visible::before {
  transform: scaleX(1);
}

.g-btn svg {
  width: 28px;
  height: 10px;
  transition: transform .45s cubic-bezier(.6,.05,.25,1);
}

.g-btn:hover svg,.g-btn:focus-visible svg {
  transform: translateX(8px);
}

.g-btn.light {
  background: #fff;
  color: var(--g-ink);
  transition: color .3s;
}

.g-btn.light:hover,.g-btn.light:focus-visible {
  color: #fff;
}

/* 화살표가 붙은 글자 링크 */
.g-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid currentColor;
}

.g-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--g-road);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.6,.05,.25,1);
}

.g-link svg {
  width: 34px;
  height: 10px;
  transition: transform .45s cubic-bezier(.6,.05,.25,1);
}

.g-link:hover::after,.g-link:focus-visible::after {
  transform: scaleX(1);
}

.g-link:hover svg,.g-link:focus-visible svg {
  transform: translateX(8px);
}

.g-tl {
  background: linear-gradient(var(--g-road),var(--g-road)) left bottom/0 1.5px no-repeat;
  padding-bottom: 2px;
  transition: background-size .45s cubic-bezier(.6,.05,.25,1),color .3s;
}

a:hover .g-tl,a:focus-visible .g-tl,a.g-tl:hover {
  background-size: 100% 1.5px;
  color: var(--g-road);
}


/* ========== 8. 스크롤하면 한 줄씩 등장 ========== */
.js .g-ln {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d,0s);
}

.js .g-ln.in {
  opacity: 1;
  transform: none;
}

span.g-ln {
  display: block;
}


/* ========== 9. FAQ ========== */
.g-faq {
  border-top: 1px solid var(--g-ink);
}

.g-faq-item {
  border-bottom: 1px solid var(--g-line);
}

/* 자주 묻는 질문 — 질문 줄 */
.g-faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 19.5px;
  font-weight: 600;
  color: var(--g-ink);
  padding: 24px 0;
  letter-spacing: -.02em;
  transition: color .3s;
}

.g-faq-q:hover {
  color: var(--g-road);
}

.g-faq-q .g-q {
  font-family: var(--g-en);
  font-weight: 400;
  color: var(--g-road);
  font-size: 20px;
}

.g-faq-q .g-pm {
  width: 28px;
  height: 28px;
  position: relative;
}

.g-faq-q .g-pm::before,.g-faq-q .g-pm::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--g-ink);
  translate: -50% -50%;
  transition: .3s;
}

.g-faq-q:hover .g-pm::before,.g-faq-q:hover .g-pm::after {
  background: var(--g-road);
}

.g-faq-q .g-pm::after {
  rotate: 90deg;
}

.g-faq-item.open .g-pm::after {
  rotate: 0deg;
}

/* 자주 묻는 질문 — 답변 */
.g-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.g-faq-a p {
  padding: 0 40px 26px 54px;
  color: var(--g-ink-2);
}

.g-faq-a a {
  color: var(--g-road);
  border-bottom: 1px solid currentColor;
}


/* ========== 10. 아래 상담 띠 ========== */
/* 아래 상담 신청 띠 */
.g-cta-band {
  background: var(--g-ink);
  color: #fff;
  padding: 90px 0;
}

.g-cta-band .g-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.g-cta-band h2 {
  font-size: clamp(28px,calc(3vw + 2px),40px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.45;
}

.g-cta-band p {
  opacity: .7;
  margin-top: 10px;
}


/* ========== 11. 푸터 ========== */
/* 맨 아래 회사 정보 영역 */
.g-footer {
  border-top: 1px solid var(--g-ink);
  padding: 50px 0 34px;
}

.g-footer .g-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}

.g-footer p {
  font-size: 15.5px;
  color: var(--g-ink-3);
  line-height: 1.9;
  margin-top: 16px;
}

.g-footer .g-logo b {
  font-size: 46px;
}

.g-footer .g-logo span {
  font-size: 14.4px;
  margin-top: 7px;
}

/* 화면 폭 1100px 이하일 때 (작은 노트북 · 태블릿 · 휴대폰) */
@media (max-width:1100px) {
  .g-gnav a {
    display: none;
  }
  .g-menu {
    display: block;
  }
}

/* 화면 폭 860px 이하일 때 (태블릿 · 휴대폰) */
@media (max-width:860px) {
  .g-wrap {
    padding: 0 20px;
  }
  .g-header {
    padding: 12px 20px;
  }
  .g-sec {
    padding: 90px 0;
  }
  .g-head {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 36px;
  }
  .g-head .g-en {
    font-size: 26px;
  }
  .g-page-head {
    padding: 70px 0 60px;
  }
  .g-page-head .g-en-big {
    letter-spacing: .06em;
  }
  .g-faq-a p {
    padding: 0 0 22px 54px;
  }
  .g-cta-band {
    padding: 64px 0;
  }
}

/* 기기 설정에서 "움직임 줄이기"를 켠 방문자 — 애니메이션을 끔 */
@media (prefers-reduced-motion:reduce) {
  * {
    animation: none!important;
    transition: none!important;
  }
  .js .g-ln {
    opacity: 1;
    transform: none;
  }
  .g-route path {
    stroke-dashoffset: 0;
  }
  .g-route circle {
    opacity: 1;
  }
}


/* ========== 12. 이 페이지 전용 : 게시판 ========== */

/* ========== 13. 샘플 / 납품 전환 (맨 위 GIL_BOARD_DEMO) ========== */
html:not(.b-demo-on) .b-demo {
  display: none!important;
}

html.b-demo-on .b-real {
  display: none!important;
}

.b-sample {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--g-road);
  background: var(--g-road-soft);
  padding: 6px 14px;
}

.b-sample i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--g-road);
  animation: bBlink 1.6s infinite;
}

@keyframes bBlink {
  50% {
    opacity: .25;
  }
}

.b-sec {
  padding: 70px 0 130px;
}

.b-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--g-ink);
  padding-bottom: 18px;
}

.b-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.b-tabs button {
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  border: 1px solid var(--g-line);
  background: #fff;
  color: var(--g-ink-2);
  padding: 8px 18px;
  cursor: pointer;
  transition: .25s;
}

.b-tabs button:hover {
  color: var(--g-road);
  border-color: var(--g-road);
}

.b-tabs button[aria-pressed="true"] {
  background: var(--g-ink);
  border-color: var(--g-ink);
  color: #fff;
}

.b-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.b-search {
  display: flex;
  border: 1px solid var(--g-line);
  background: #fff;
}

.b-search input {
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 17px;
  padding: 8px 12px;
  width: 200px;
  background: none;
}

.b-search button {
  border: 0;
  background: none;
  padding: 0 12px;
  cursor: pointer;
  color: var(--g-ink-2);
}

.b-search:focus-within {
  border-color: var(--g-road);
}

.b-view {
  display: flex;
  border: 1px solid var(--g-line);
}

.b-view button {
  border: 0;
  background: #fff;
  height: 40px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--g-ink-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 16px;
}

.b-view button+button {
  border-left: 1px solid var(--g-line);
}

.b-view button[aria-pressed="true"] {
  color: var(--g-road);
  background: var(--g-road-soft);
}

.b-view svg,.b-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.b-count {
  font-size: 16px;
  color: var(--g-ink-3);
  margin: 20px 0 4px;
}

.b-count b {
  color: var(--g-road);
}


/* ========== 14. 목록형 ========== */
.b-rows {
  list-style: none;
}

.b-row {
  display: grid;
  grid-template-columns: 70px 1fr 120px 110px 70px;
  gap: 16px;
  align-items: center;
  padding: 20px 6px;
  border-bottom: 1px solid var(--g-line);
  transition: background .25s;
  opacity: 0;
  transform: translateY(10px);
  animation: bIn .5s forwards;
  animation-delay: var(--d);
}

@keyframes bIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.b-row:hover {
  background: #fafaf7;
}

.b-row.pin {
  background: var(--g-stone);
}

.b-num {
  font-family: var(--g-en);
  font-size: 16px;
  color: var(--g-ink-3);
  text-align: center;
}

.b-pin {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: var(--g-road);
  padding: 2px 9px;
}

.b-ttl {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.b-ttl a {
  font-size: 18.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .25s;
}

.b-row:hover .b-ttl a {
  color: var(--g-road);
}

.b-cat {
  flex: none;
  font-size: 14.5px;
  color: var(--g-road);
  border: 1px solid var(--g-road);
  padding: 0 7px;
  line-height: 20px;
}

.b-new {
  flex: none;
  font-family: var(--g-en);
  font-size: 13px;
  font-weight: 700;
  color: #d2462d;
}

.b-clip {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--g-ink-3);
}

.b-meta {
  font-size: 16px;
  color: var(--g-ink-2);
  text-align: center;
}

.b-meta.en {
  font-family: var(--g-en);
}

.b-head-row {
  display: grid;
  grid-template-columns: 70px 1fr 120px 110px 70px;
  gap: 16px;
  padding: 12px 6px;
  font-size: 15.5px;
  color: var(--g-ink-3);
  border-bottom: 1px solid var(--g-line);
  text-align: center;
}

.b-head-row span:nth-child(2) {
  text-align: left;
}


/* ========== 15. 갤러리형 ========== */
.b-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 40px 28px;
  margin-top: 30px;
}

.b-card {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  animation: bIn .6s forwards;
  animation-delay: var(--d);
}

.b-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--g-stone);
  position: relative;
}

.b-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}

.b-card:hover .b-thumb img {
  transform: scale(1.05);
}

.b-pin-on {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
}

.b-thumb .b-noimg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--g-en);
  font-size: 42px;
  font-weight: 200;
  color: var(--g-road);
  letter-spacing: .08em;
  background: repeating-linear-gradient(135deg,var(--g-stone) 0 14px,#ecece6 14px 15px);
}

.b-card .b-cat {
  display: inline-block;
  margin-top: 18px;
}

.b-card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.5;
  margin-top: 10px;
  transition: color .25s;
}

.b-card:hover h3 {
  color: var(--g-road);
}

.b-card p {
  font-size: 16px;
  color: var(--g-ink-3);
  margin-top: 8px;
  font-family: var(--g-en);
}

.b-empty {
  padding: 90px 0;
  text-align: center;
  color: var(--g-ink-3);
}

.b-pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 50px;
}

.b-pager button {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--g-line);
  background: #fff;
  font-family: var(--g-en);
  font-size: 17px;
  cursor: pointer;
  color: var(--g-ink-2);
}

.b-pager button[aria-current="true"] {
  background: var(--g-ink);
  color: #fff;
  border-color: var(--g-ink);
}

.b-pager button:hover:not([aria-current="true"]) {
  color: var(--g-road);
  border-color: var(--g-road);
}


/* ========== 16. 글 보기 ========== */
.b-article {
  max-width: 860px;
  margin: 0 auto;
}

.b-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  color: var(--g-ink-2);
  margin-bottom: 34px;
  transition: color .25s;
}

.b-back:hover {
  color: var(--g-road);
}

.b-back svg {
  width: 28px;
  height: 10px;
  transform: scaleX(-1);
}

.b-article .b-cat {
  display: inline-block;
}

.b-article h1 {
  font-size: clamp(28px,calc(3.2vw + 2px),42px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.4;
  margin-top: 16px;
}

.b-ameta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 16.5px;
  color: var(--g-ink-3);
  margin-top: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--g-ink);
}

.b-ameta b {
  color: var(--g-ink-2);
  font-weight: 500;
}

.b-body {
  padding: 44px 0 50px;
  font-size: 19px;
  line-height: 1.95;
  color: #2a2a27;
}

.b-body>*+* {
  margin-top: 1.1em;
}

.b-body h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.45;
  margin-top: 1.8em;
}

.b-body h3 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.5;
  margin-top: 1.6em;
}

.b-body ul,.b-body ol {
  padding-left: 1.4em;
}

.b-body li+li {
  margin-top: .35em;
}

.b-body blockquote {
  border-left: 3px solid var(--g-road);
  background: var(--g-road-soft);
  padding: 18px 22px;
  color: var(--g-ink);
}

.b-body a {
  color: var(--g-road);
  border-bottom: 1px solid currentColor;
}

.b-body hr {
  border: 0;
  border-top: 1px solid var(--g-line);
  margin: 2em 0;
}

.b-body figure {
  margin: 1.6em 0;
}

.b-body img {
  margin: 0 auto;
  height: auto;
}

.b-body img[data-size="s"] {
  width: 40%;
}

.b-body img[data-size="m"] {
  width: 70%;
}

.b-body img[data-size="l"] {
  width: 100%;
}

.b-body figcaption {
  text-align: center;
  font-size: 16px;
  color: var(--g-ink-3);
  margin-top: 10px;
}

.b-body iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border: 0;
  background: #111;
}

.b-files {
  border: 1px solid var(--g-line);
  background: var(--g-stone);
  padding: 20px 24px;
}

.b-files h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--g-ink-2);
  margin-bottom: 10px;
}

.b-files a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 17px;
  transition: color .25s;
}

.b-files a:hover {
  color: var(--g-road);
}

.b-files small {
  color: var(--g-ink-3);
  font-family: var(--g-en);
}

.b-files svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.b-nav {
  margin-top: 50px;
  border-top: 1px solid var(--g-ink);
}

.b-nav a {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 14px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--g-line);
  font-size: 17.5px;
  transition: color .25s,background .25s;
}

.b-nav a:hover {
  color: var(--g-road);
  background: #fafaf7;
}

.b-nav span {
  color: var(--g-ink-3);
  font-size: 16px;
}

.b-nav em {
  font-style: normal;
  font-family: var(--g-en);
  font-size: 16px;
  color: var(--g-ink-3);
}

.b-acts {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.b-ghost {
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  border: 1px solid var(--g-line);
  background: #fff;
  padding: 14px 22px;
  cursor: pointer;
  color: var(--g-ink);
}

.b-ghost:hover {
  border-color: var(--g-road);
  color: var(--g-road);
}

.b-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  translate: -50% 20px;
  background: var(--g-ink);
  color: #fff;
  font-size: 16.5px;
  padding: 12px 22px;
  opacity: 0;
  transition: .35s;
  pointer-events: none;
  z-index: 200;
}

.b-toast.on {
  opacity: 1;
  translate: -50% 0;
}

/* 화면 폭 860px 이하일 때 (태블릿 · 휴대폰) */
@media (max-width:860px) {
  .b-sec {
    padding: 44px 0 90px;
  }
  .b-tools {
    width: 100%;
  }
  .b-search {
    flex: 1;
  }
  .b-search input {
    width: 100%;
  }
  .b-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
  }
  .b-tabs button {
    flex: none;
  }
  .b-head-row {
    display: none;
  }
  .b-row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 18px 2px;
  }
  .b-num {
    display: none;
  }
  .b-row .b-pinwrap {
    grid-column: 1/-1;
  }
  .b-ttl {
    grid-column: 1/-1;
  }
  .b-ttl a {
    white-space: normal;
  }
  .b-meta {
    text-align: left;
    font-size: 15px;
    color: var(--g-ink-3);
  }
  .b-meta.v {
    display: none;
  }
  .b-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .b-nav a {
    grid-template-columns: 64px 1fr;
  }
  .b-nav em {
    display: none;
  }
}

/* 화면 폭 861~1100px일 때 (태블릿 · 작은 노트북) */
@media (min-width:861px) and (max-width:1100px) {
  .b-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ========== 17. 웹진형: 왼쪽 사진 + 오른쪽 제목·요약 ========== */
.b-zine {
  list-style: none;
}

.b-zrow {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--g-line);
  opacity: 0;
  transform: translateY(14px);
  animation: bIn .55s forwards;
  animation-delay: var(--d);
}

.b-zrow.pin {
  background: linear-gradient(90deg,var(--g-stone),transparent 70%);
}

.b-zthumb {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--g-stone);
}

.b-zthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}

.b-zrow:hover .b-zthumb img {
  transform: scale(1.05);
}

.b-zthumb .b-noimg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--g-en);
  font-size: 34px;
  font-weight: 200;
  color: var(--g-road);
  letter-spacing: .08em;
  background: repeating-linear-gradient(135deg,var(--g-stone) 0 14px,#ecece6 14px 15px);
}

.b-zbody {
  min-width: 0;
}

.b-zhead {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.b-ztitle {
  display: block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.45;
  margin-top: 12px;
  transition: color .25s;
}

.b-zrow:hover .b-ztitle {
  color: var(--g-road);
}

.b-zexc {
  color: var(--g-ink-2);
  font-size: 17.5px;
  line-height: 1.75;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.b-zmeta {
  font-size: 15.5px;
  color: var(--g-ink-3);
  margin-top: 14px;
  font-family: var(--g-en);
}

/* 화면 폭 860px 이하일 때 (태블릿 · 휴대폰) */
@media (max-width:860px) {
  .b-zrow {
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 20px 0;
    align-items: start;
  }
  .b-ztitle {
    font-size: 18.5px;
    margin-top: 6px;
  }
  .b-zexc {
    font-size: 16px;
    -webkit-line-clamp: 2;
    margin-top: 6px;
  }
  .b-zmeta {
    margin-top: 8px;
    font-size: 14.5px;
  }
  .b-view span {
    display: none;
  }
}

/* 기기 설정에서 "움직임 줄이기"를 켠 방문자 — 애니메이션을 끔 */
@media (prefers-reduced-motion:reduce) {
  .b-zrow {
    opacity: 1;
    transform: none;
  }
}

/* 기기 설정에서 "움직임 줄이기"를 켠 방문자 — 애니메이션을 끔 */
@media (prefers-reduced-motion:reduce) {
  .b-row,.b-card {
    opacity: 1;
    transform: none;
  }
}


/* ========== 18. 하단 개인정보처리방침 · 이용약관 링크 ========== */
.g-fend {
  text-align: right;
}

/* 하단 개인정보처리방침 · 이용약관 링크 */
.g-flegal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 15.5px;
  line-height: 1.9;
}

.g-flegal a {
  color: var(--g-ink-2);
  transition: color .3s;
}

.g-flegal a:hover {
  color: var(--g-road);
}

.g-flegal a.pv {
  font-weight: 700;
  color: var(--g-ink);
}

/* 화면 폭 860px 이하일 때 (태블릿 · 휴대폰) */
@media (max-width:860px) {
  .g-fend {
    text-align: left;
  }
  .g-flegal {
    justify-content: flex-start;
  }
}


/* ========== 19. 글쓰기 버튼 (로그인한 최고관리자 · 관리자 등급에게만 보임) ========== */
.b-write {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--g-ink);
  color: #fff;
  font-size: 16.5px;
  font-weight: 600;
  padding: 10px 18px;
  transition: background .3s;
  white-space: nowrap;
}

.b-write:hover {
  background: var(--g-road);
}

.b-write svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.b-write[hidden] {
  display: none;
}

/* 맨 위 메뉴 오른쪽: 로그인 · 회원가입 (로그인하면 내 정보 · 로그아웃) */
/* 메뉴 오른쪽 로그인 · 회원가입 링크 */
.g-util {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 4px;
  padding-left: 28px;
  border-left: 1px solid var(--g-line);
  line-height: 1.2;
}

.g-gnav .g-util a {
  display: inline-block;
  font-family: var(--g-ko);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--g-ink-2);
  padding: 2px 0;
  transition: color .25s;
}

.g-gnav .g-util a:last-child {
  color: var(--g-ink);
  font-weight: 600;
}

.g-gnav .g-util a:hover,.g-gnav .g-util a:focus-visible {
  color: var(--g-road);
}

.g-util .g-road-ln {
  display: none;
}

/* 화면 폭 1100px 이하일 때 (작은 노트북 · 태블릿 · 휴대폰) */
@media (max-width:1100px) {
  .g-util {
    padding-left: 0;
    border-left: 0;
    margin-right: -22px;
    gap: 12px;
  }
  .g-gnav .g-util a {
    font-size: 15px;
  }
}

/* 화면 폭 420px 이하일 때 (휴대폰) */
@media (max-width:420px) {
  .g-gnav .g-util a {
    font-size: 14px;
  }
  .g-util {
    gap: 10px;
  }
}

/* ===== 별무리 줄기: 왼쪽에서 오른쪽으로 그려진 뒤 끝에 별이 나타남 =====
   줄기(images/deco/stars-stem)는 길이에 맞춰 늘어나고, 별 부분(stars-head)은 비율 그대로라 찌그러지지 않음 */
.g-road-ln,.g-route,.g-link::after {
  --hw: calc(var(--sh) * 1.155);
  background: url(../images/deco/stars-head-s.png) right top/var(--hw) 100% no-repeat,url(../images/deco/stars-stem-s.png) left top/calc(100% - var(--hw) + 1px) 100% no-repeat;
  clip-path: inset(0 100% 0 0);
}


/* ========== 20. 맨 위 메뉴 ========== */
.g-road-ln {
  --sh: 30px;
  position: absolute;
  left: -4px;
  bottom: -17px;
  width: calc(100% + 22px);
  height: var(--sh);
  pointer-events: none;
  transition: clip-path .6s cubic-bezier(.6,.05,.25,1);
}

.g-gnav a:hover .g-road-ln,
.g-gnav a:focus-visible .g-road-ln,
.g-gnav a[aria-current] .g-road-ln {
  clip-path: inset(0 -4px 0 0);
}


/* ========== 21. 페이지 머리 · 메인 첫 화면의 긴 줄기 ========== */
.g-route {
  --sh: 90px;
  height: var(--sh);
  background-image: url(../images/deco/stars-head.png),url(../images/deco/stars-stem.png);
  animation: g-star-draw 2s .3s cubic-bezier(.6,.05,.2,1) forwards;
}

@keyframes g-star-draw {
  to {
    clip-path: inset(0 -2% 0 0);
  }
}


/* ========== 22. 밑줄 링크 (예: 제작 요금 보기 →) ========== */
.g-link::after {
  --sh: 16px;
  height: var(--sh);
  bottom: -13px;
  background-color: transparent;
  transform: none;
  transition: clip-path .5s cubic-bezier(.6,.05,.25,1);
}

.g-link:hover::after,.g-link:focus-visible::after {
  transform: none;
  clip-path: inset(0 -2px 0 0);
}

.g-ct.dark .g-link::after {
  background-color: transparent;
  background-image: url(../images/deco/stars-head-s-mint.png),url(../images/deco/stars-stem-s-mint.png);
}

/* 기기 설정에서 "움직임 줄이기"를 켠 방문자 — 애니메이션을 끔 */
@media (prefers-reduced-motion:reduce) {
  .g-route {
    animation: none;
    clip-path: none;
  }
}
