/* 배너 모양 — 관리자에서 만든 배너(js/banner.js)가 쓰는 스타일. 템플릿 CSS 와 섞이지 않게 모두 dcmb- 로 시작한다.
   --dcmb-bg / --dcmb-fg 는 배너마다 관리자에서 고른 색으로 덮인다. */
.dcmb-notice, .dcmb-hero, .dcmb-strip, .dcmb-floating, .dcmb-popups { --dcmb-bg: #15293d; --dcmb-fg: #ffffff; --dcmb-accent: #ffffff; font-family: inherit; line-height: 1.5; word-break: keep-all; }
.dcmb-hero *, .dcmb-strip *, .dcmb-floating *, .dcmb-popups *, .dcmb-notice * { box-sizing: border-box; }
.dcmb-hero img, .dcmb-strip img, .dcmb-floating img, .dcmb-popups img { display: block; max-width: 100%; height: auto; }
.dcmb-hero a, .dcmb-strip a, .dcmb-floating a, .dcmb-popups a, .dcmb-notice a { color: inherit; text-decoration: none; }
.dcmb-hero-hidden { display: none !important; }

/* 문구 */
.dcmb-cap { display: grid; gap: 6px; }
.dcmb-cap__h { margin: 0; font-size: clamp(20px, 3.2vw, 34px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.dcmb-cap__t { margin: 0; font-size: clamp(14px, 1.6vw, 17px); opacity: .92; white-space: pre-line; }
.dcmb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; margin-top: 6px; border-radius: 6px; background: var(--dcmb-fg); color: var(--dcmb-bg); font-size: 14px; font-weight: 700; justify-self: start; }
.dcmb-btn:hover { filter: brightness(.95); }
.dcmb-x { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.dcmb-x:hover { background: rgba(0, 0, 0, .65); }

/* 상단 알림 띠 */
.dcmb-notice { position: relative; z-index: 55; background: var(--dcmb-bg); color: var(--dcmb-fg); font-size: 14px; text-align: center; }
.dcmb-notice__in { display: block; padding: 9px 48px; }
a.dcmb-notice__in:hover { text-decoration: underline; text-underline-offset: 3px; }
.dcmb-notice .dcmb-x { top: 50%; right: 8px; transform: translateY(-50%); width: 28px; height: 28px; background: rgba(255, 255, 255, .18); }

/* 대문 배너 슬라이드 */
.dcmb-hero { --dcmb-ratio-pc: 16 / 6; --dcmb-ratio-m: 4 / 3; position: relative; overflow: hidden; background: var(--dcmb-bg); color: var(--dcmb-fg); }
.dcmb-hero:focus-visible { outline: 3px solid #0b78b7; outline-offset: -3px; }
.dcmb-hero__track { display: flex; width: 100%; transition: transform .5s ease; }
.dcmb-hero__slide { flex: 0 0 100%; min-width: 0; }
.dcmb-hero__box { position: relative; display: block; width: 100%; aspect-ratio: var(--dcmb-ratio-m); background: var(--dcmb-bg); color: var(--dcmb-fg); overflow: hidden; }
.dcmb-hero__pic, .dcmb-hero__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dcmb-hero__box .dcmb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 22px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); color: #fff; }
.dcmb-hero__box--text .dcmb-cap { inset: 0; display: grid; align-content: center; justify-items: center; text-align: center; padding: 24px; background: none; color: var(--dcmb-fg); }
.dcmb-hero__box--text .dcmb-btn { justify-self: center; }
.dcmb-hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .4); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; z-index: 2; }
.dcmb-hero__arrow:hover { background: rgba(0, 0, 0, .6); }
.dcmb-hero__arrow--prev { left: 12px; } .dcmb-hero__arrow--next { right: 12px; }
.dcmb-hero__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.dcmb-hero__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; }
.dcmb-hero__dot[aria-current="true"] { background: #fff; }
@media (min-width: 640px) {
  .dcmb-hero__box { aspect-ratio: var(--dcmb-ratio-pc); }
  .dcmb-hero__box .dcmb-cap { padding: 60px 56px 32px; }
  .dcmb-hero__box:not(.dcmb-hero__box--text) .dcmb-cap { max-width: 720px; right: auto; }
}

/* 띠 배너 */
.dcmb-strip { padding: 0; }
.dcmb-strip__in { position: relative; display: block; max-width: 1200px; margin: 24px auto; overflow: hidden; border-radius: 12px; background: var(--dcmb-bg); color: var(--dcmb-fg); }
.dcmb-strip__pic img { width: 100%; }
.dcmb-strip__in .dcmb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .5)); color: #fff; }
.dcmb-strip__in--text { padding: 24px 20px; }
.dcmb-strip__in--text .dcmb-cap { position: static; padding: 0; background: none; color: var(--dcmb-fg); }
@media (max-width: 1240px) { .dcmb-strip__in { margin-inline: 20px; } }
@media (min-width: 640px) {
  .dcmb-strip__in--text { padding: 30px 36px; }
  .dcmb-strip__in--text .dcmb-cap { grid-template-columns: 1fr auto; align-items: center; }
  .dcmb-strip__in--text .dcmb-cap__t { grid-column: 1; }
  .dcmb-strip__in--text .dcmb-btn { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}

/* 떠 있는 배너 */
.dcmb-floating { position: fixed; right: 16px; bottom: 16px; z-index: 900; width: min(200px, 44vw); filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .25)); }
.dcmb-floating--left { right: auto; left: 16px; }
.dcmb-floating__in { display: block; overflow: hidden; border-radius: 12px; background: var(--dcmb-bg); color: var(--dcmb-fg); }
.dcmb-floating__in .dcmb-cap { padding: 12px 14px; gap: 3px; }
.dcmb-floating__in .dcmb-cap__h { font-size: 15px; }
.dcmb-floating__in .dcmb-cap__t { font-size: 13px; }
.dcmb-floating .dcmb-x { top: -10px; right: -10px; width: 28px; height: 28px; font-size: 18px; }
.dcmb-floating--left .dcmb-x { right: -10px; }
@media (max-width: 639px) { .dcmb-floating { bottom: 84px; } }

/* 팝업 */
html.dcmb-lock { overflow: hidden; }
.dcmb-popups { position: fixed; inset: 0; z-index: 1000; display: flex; flex-wrap: wrap; align-items: safe center; justify-content: safe center; align-content: safe center; gap: 16px; padding: 16px; overflow: auto; background: rgba(10, 20, 30, .55); }
.dcmb-popups[hidden] { display: none; }
.dcmb-popup { max-width: 100%; border-radius: 14px; overflow: hidden; background: #fff; color: #16212b; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.dcmb-popup__body { display: block; background: var(--dcmb-bg); color: var(--dcmb-fg); }
.dcmb-popup__pic img { width: auto; max-width: 100%; max-height: 62vh; margin: 0 auto; } /* 세로로 긴 그림도 화면 안에 들어오게 */
.dcmb-popup__body .dcmb-cap { padding: 18px 20px; }
.dcmb-popup__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #f3f5f7; font-size: 13.5px; }
.dcmb-popup__today { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.dcmb-popup__close { min-height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: #15293d; color: #fff; font-weight: 700; cursor: pointer; margin-left: auto; }
/* 크기를 정한 팝업: 이미지가 틀을 꽉 채운다 (관리자에서 올릴 때 이미 틀 비율로 잘려 있다) */
.dcmb-popup--fit { min-width: 240px; }
.dcmb-popup--fit .dcmb-popup__pic img { width: 100%; max-height: none; aspect-ratio: var(--dcmb-pop-ratio, auto); object-fit: cover; }
@media (max-width: 639px) { .dcmb-popup { width: 100% !important; } .dcmb-popup--fit { width: min(100%, calc((100vh - 150px) * var(--dcmb-pop-k, .8))) !important; } }

/* 문의 접수 결과 (js/inquiry.js) */
.dcmb-inq-note { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: #e8f5ee; color: #0f6b4f; font-size: 14.5px; line-height: 1.5; }
.dcmb-inq-note--bad { background: #fdeeec; color: #b4231b; }

@media (prefers-reduced-motion: reduce) {
  .dcmb-hero__track { transition: none; }
}

/* 게시판 (js/board.js) — 본문 사진 · 첨부 목록 · 줄바꿈 본문 */
.dcmb-post-img { display: block; max-width: 100%; height: auto; margin: 14px 0; border-radius: 8px; }
.dcmb-attach { margin-top: 26px; padding: 14px 16px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 10px; }
.dcmb-attach__title { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.dcmb-attach ul { list-style: none; margin: 0; padding: 0; }
.dcmb-attach li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 0; }
.dcmb-attach a { font-weight: 600; }
.dcmb-attach small { opacity: .7; }
.dcmb-prewrap { white-space: pre-line; }

/* 갤러리 (js/gallery.js) — 사진첩 격자 · 크게 보기 */
.dcmb-gallery { padding: 48px 0; }
.dcmb-gallery__in { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.dcmb-gallery__title { margin: 0 0 6px; font-size: 24px; }
.dcmb-gallery__desc { margin: 0 0 18px; opacity: .8; }
.dcmb-gallery__grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.dcmb-gallery__grid--2 { grid-template-columns: repeat(2, 1fr); }
.dcmb-gallery__grid--4 { grid-template-columns: repeat(4, 1fr); }
.dcmb-gallery__item { margin: 0; }
.dcmb-gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.dcmb-gallery__btn img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dcmb-gallery__cap { margin-top: 6px; font-size: 13px; opacity: .85; }
.dcmb-zoomable { cursor: zoom-in; }
.dcmb-lb { position: fixed; inset: 0; z-index: 10000; background: rgba(8, 12, 18, .92); display: flex; align-items: center; justify-content: center; }
.dcmb-lb[hidden] { display: none; }
.dcmb-lb img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.dcmb-lb__cap { position: absolute; left: 0; right: 0; bottom: 18px; padding: 0 60px; text-align: center; color: #fff; font-size: 14px; }
.dcmb-lb__btn { position: absolute; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; line-height: 44px; cursor: pointer; }
.dcmb-lb__btn:hover { background: rgba(255, 255, 255, .28); }
.dcmb-lb__btn[hidden] { display: none; }
.dcmb-lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.dcmb-lb__next { right: 14px; top: 50%; transform: translateY(-50%); }
.dcmb-lb__close { right: 14px; top: 14px; }
body.dcmb-lb-open { overflow: hidden; }
@media (max-width: 760px) {
  .dcmb-gallery { padding: 32px 0; }
  .dcmb-gallery__grid, .dcmb-gallery__grid--4 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dcmb-gallery__title { font-size: 20px; }
  .dcmb-lb__cap { padding: 0 16px; bottom: 12px; }
}

/* 상담 버튼 (js/contact.js) — 실시간 상담 · 카카오톡 · 텔레그램 · 전화, 위에서부터 차례로. 떠 있는 배너는 그 위로 올라간다 */
:root { --dcmb-contact-h: 0px; }
.dcmb-contact { position: fixed; right: 16px; bottom: 16px; z-index: 950; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-family: inherit; }
.dcmb-contact--left { right: auto; left: 16px; align-items: flex-start; }
.dcmb-contact__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: #15293d; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); word-break: keep-all; white-space: nowrap; }
.dcmb-contact__btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.dcmb-contact__btn:hover { filter: brightness(1.08); }
.dcmb-contact__btn--kakao { background: #fee500; color: #191919; }
.dcmb-contact__btn--telegram { background: #2aabee; color: #fff; }
.dcmb-contact__btn--phone { background: #0f6b4f; color: #fff; }
body.dcmb-contact-right .dcmb-floating:not(.dcmb-floating--left), body.dcmb-contact-left .dcmb-floating--left { bottom: calc(16px + var(--dcmb-contact-h) + 10px); }
@media (max-width: 760px) {
  .dcmb-contact { right: 12px; bottom: 12px; gap: 6px; }
  .dcmb-contact--left { left: 12px; }
  .dcmb-contact__btn { min-height: 40px; font-size: 13px; padding: 0 14px 0 10px; }
}
@media (max-width: 639px) {
  body.dcmb-contact-right .dcmb-floating:not(.dcmb-floating--left), body.dcmb-contact-left .dcmb-floating--left { bottom: calc(84px + var(--dcmb-contact-h) + 10px); }
}

/* 로딩 화면에서 실제 프레임이 준비된 인트로로 이어지고, 끝나면 본문을 표시한다. */
.dcmb-intro { position: fixed; inset: 0; z-index: 10001; visibility: visible; display: flex; align-items: center; justify-content: center; color: #fff; font-family: inherit; cursor: pointer; opacity: 1; transition: opacity .4s ease; }
.dcmb-intro--pending .dcmb-intro__stage { visibility: hidden; }
.dcmb-intro__loading { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; font: 14px/1.6 system-ui, sans-serif; letter-spacing: .02em; }
.dcmb-intro--pending .dcmb-intro__loading, .dcmb-intro--failed .dcmb-intro__loading { display: flex; }
.dcmb-intro__loading-label { margin: 0 0 18px; color: #eee; font: 500 12px/1.6 system-ui, sans-serif; letter-spacing: .24em; text-align: center; }
.dcmb-intro__loading-bar { display: block; position: relative; width: min(240px, 62vw); height: 2px; margin: 0 auto; overflow: hidden; background: #ffffff25; }
.dcmb-intro__loading-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: #eee; animation: dcmb-intro-slide 1.5s ease-in-out infinite; }
.dcmb-intro--pending .dcmb-intro__sound { visibility: hidden; }
@keyframes dcmb-intro-slide { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
@media (prefers-reduced-motion: reduce) { .dcmb-intro__loading-bar::after { animation: none; left: 30%; } .dcmb-intro { transition: none; } }
.dcmb-intro--out { opacity: 0; pointer-events: none; }
.dcmb-intro__stage { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; box-sizing: border-box; }
.dcmb-intro__media { display: block; max-width: 100%; max-height: 100%; }
.dcmb-intro__media--contain { width: auto; height: auto; object-fit: contain; max-height: calc(100vh - 48px); }
.dcmb-intro__media--cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dcmb-intro__logo { max-width: min(70vw, 560px); max-height: 50vh; }
.dcmb-intro__cap { position: relative; margin: 0; font-size: clamp(15px, 2.2vw, 22px); letter-spacing: .02em; text-align: center; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.dcmb-intro__skip, .dcmb-intro__sound { position: absolute; z-index: 1; min-height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; background: rgba(0, 0, 0, .35); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; cursor: pointer; }
.dcmb-intro__skip:hover, .dcmb-intro__sound:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.dcmb-intro__skip { right: 20px; bottom: 20px; }
.dcmb-intro__sound { left: 20px; bottom: 20px; }
@media (max-width: 760px) { .dcmb-intro__skip { right: 14px; bottom: 14px; } .dcmb-intro__sound { left: 14px; bottom: 14px; } .dcmb-intro__logo { max-width: 80vw; } }

/* 추가 게시판 페이지 (js/menu.js) — 글 목록 + 그 자리에서 펼쳐 보기 */
.dcmb-board { padding: 48px 0; }
.dcmb-board__in { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.dcmb-board__title { margin: 0 0 8px; font-size: 28px; }
.dcmb-board__desc { margin: 0 0 20px; opacity: .8; }
.dcmb-board--page p { margin: 0 0 14px; line-height: 1.8; }
.dcmb-board__empty { padding: 40px 0; text-align: center; opacity: .7; }
.dcmb-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid currentColor; }
.dcmb-list__item { border-bottom: 1px solid rgba(0, 0, 0, .12); }
.dcmb-list__row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 6px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dcmb-list__row:hover { background: rgba(0, 0, 0, .03); }
.dcmb-list__date { flex: none; width: 96px; font-size: 13px; opacity: .7; font-variant-numeric: tabular-nums; }
.dcmb-list__title { flex: 1; font-weight: 600; }
.dcmb-list__pin { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: #e8503a; color: #fff; font-size: 12px; font-weight: 700; }
.dcmb-list__meta { flex: none; font-size: 12px; opacity: .7; }
.dcmb-list__detail { padding: 6px 6px 22px 116px; line-height: 1.7; }
.dcmb-list__detail h3 { margin: 18px 0 6px; font-size: 17px; }
.dcmb-list__detail p { margin: 0 0 10px; }
.dcmb-list__detail ul { margin: 0 0 10px; padding-left: 20px; }
@media (max-width: 760px) {
  .dcmb-board { padding: 28px 0; }
  .dcmb-board__title { font-size: 22px; }
  .dcmb-list__row { flex-wrap: wrap; gap: 6px 10px; }
  .dcmb-list__title { flex-basis: 100%; }
  .dcmb-list__date { width: auto; }
  .dcmb-list__detail { padding-left: 6px; }
}
