@charset "utf-8";
/* ==========================================================================
   CAFIILOG 확장 스타일 (2026-11-27)
   - 메인 카테고리 필터 / 그리드 전환
   - ABOUT · CONTACT · 프로젝트 문의 모달
   - 상세화면 원본 이미지 / 관리 버튼 / 문의 CTA
   ========================================================================== */

:root {
	color-scheme:light;
	--cf-red:#f52c25;
	--cf-ink:#404040;
	--cf-grey:#c0c0c0;
	--cf-bg:#f2f2f2;
	--cf-cat-all:#404040;
	--cf-cat-awards:#f52c25;
	--cf-cat-events:#ff9f1c;
	--cf-cat-b2b:#2f6fed;
	--cf-cat-ad:#12a383;
}

/* ---------- 카테고리 뱃지 ---------- */
/* 카테고리 표시 공통 : 원 + 글자 (라운드 테두리 없음, PC·모바일 공통) */
.cf_badge {--c:#707070; display:inline-flex; align-items:center; gap:7px; height:auto; padding:0; border:0; border-radius:0; background:none; font-size:14px; font-weight:700; color:#404040; line-height:1; letter-spacing:-0.2px; white-space:nowrap; cursor:pointer; transition:background-color .2s, color .2s, transform .2s;}
.cf_badge:before {content:""; width:8px; height:8px; border-radius:50%; background:var(--c); transition:background-color .2s;}
.cf_badge.cat-all {--c:#404040;}
.cf_badge.cat-all:before {display:none;}
.cf_badge.cat-awards-incentives {--c:#f52c25;}
.cf_badge.cat-events-promotions {--c:#ff9f1c;}
.cf_badge.cat-b2b-design {--c:#2f6fed;}
.cf_badge.cat-advertising {--c:#12a383;}
.cf_badge.is-active {background:none; color:#222;}
.cf_badge .cf_count {margin-left:2px; font-size:11px; font-weight:400; opacity:.7; vertical-align:top;}
.cf_badge:focus-visible, .cfg_btn:focus-visible, .cf_btn:focus-visible {outline:2px solid var(--cf-red); outline-offset:3px;}

/* ---------- 툴바 ---------- */
.cf_toolbar {display:flex; align-items:center; justify-content:space-between; gap:20px; width:100%; margin:0 0 24px; text-align:left;}
.cf_filter {display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; min-width:0; max-width:100%;}
.cf_filter li {display:flex; align-items:center; gap:16px;}
.cf_filter li + li:before {content:""; display:block; width:1px; height:13px; background:#b8b8b8; flex-shrink:0;}

/* 메인 카테고리 : 텍스트형 - 14px, 연한 구분선, hover·선택 시 볼드, 밑줄 없음 */
.cf_filter .cf_badge {height:40px; padding:0; border:0; border-radius:0; background:none; font-size:14px; font-weight:300; color:#404040; letter-spacing:-0.3px; transform:none;}
.cf_filter .cf_badge {gap:0; align-items:center; justify-content:flex-start; min-width:0 !important;}
.cf_filter .cf_badge.is-measure {font-weight:800;} /* JS 가 볼드 폭을 재서 min-width 로 고정 → 옆 메뉴 밀림 방지 */
.cf_filter .cf_badge:before {display:none;}
.cf_filter .cf_badge:hover {transform:none;}
.cf_filter .cf_lbl {position:relative; display:inline-flex; flex-direction:column; align-items:center;}
.cf_filter .cf_lbl:before {display:none;}
.cf_filter .cf_badge:hover, .cf_filter .cf_badge.is-active {font-weight:800; color:#222; background:none;}
.cf_filter .cf_badge.is-active:before {background:var(--c);}
.cf_filter .cf_badge.cat-all {font-weight:800;}            /* ALL 은 항상 볼드 */
/* ALL : 그리드 버튼과 동일한 40px 정사각형 */
.cf_filter .cf_badge.cat-all {height:40px; width:40px; padding:0; border:0; border-radius:0; background:#fff; color:#9a9a9a; justify-content:center; min-width:0 !important; box-sizing:border-box;}
.cf_filter .cf_badge.cat-all .cf_lbl:before {display:none;}
.cf_filter .cf_badge.cat-all.is-active {background:#404040; color:#fff;}
.cf_filter .cf_badge.cat-all:hover {background:#e4e4e4; color:#404040;}
.cf_filter .cf_badge.cat-all.is-active:hover {background:#404040; color:#fff;}
.cf_filter .cf_badge.cat-all .cf_count {color:#888; opacity:1;}
.cf_filter .cf_badge.cat-all.is-active .cf_count, .cf_filter .cf_badge.cat-all:hover .cf_count {color:rgba(255,255,255,.75); opacity:1;} /* 차콜 배경 위 밝은 개수 */
/* 개수 : 글자 바로 옆, 같은 높이 */
.cf_filter .cf_badge .cf_count {display:none; position:static; margin-left:-3px; padding-top:2px; font-size:12px; font-weight:400; color:#aaa; line-height:1; vertical-align:middle; opacity:1; font-variant-numeric:tabular-nums;}
.cf_filter .cf_badge.is-active .cf_count, .cf_filter .cf_badge:hover .cf_count {color:#777;}
.cf_grid {display:flex; gap:6px; flex-shrink:0;}
.cf_select_wrap {display:none; position:relative; flex:1; min-width:0;}
.cf_select_wrap:before {display:none; content:""; position:absolute; left:17px; top:50%; z-index:1; width:7px; height:7px; margin-top:-3.5px; border-radius:50%; background:var(--c, #404040); pointer-events:none;}
.cf_select_wrap:after {content:""; position:absolute; right:16px; top:50%; width:7px; height:7px; margin-top:-6px; border-right:2px solid #404040; border-bottom:2px solid #404040; transform:rotate(45deg); pointer-events:none;}
.cf_select {box-sizing:border-box; width:100%; height:40px; padding:0 40px 0 0; border:0; border-bottom:1px solid #b8b8b8; border-radius:0; background:transparent; font-size:14px; font-weight:400; color:#404040; -webkit-text-fill-color:currentColor; opacity:1; outline:none; -webkit-appearance:none; -moz-appearance:none; appearance:none; cursor:pointer;}
.cf_select:focus-visible {outline:2px solid var(--cf-red); outline-offset:2px;}
.cf_select_wrap.cat-all {--c:#404040;}
.cf_select_wrap.cat-awards-incentives {--c:#f52c25;}
.cf_select_wrap.cat-events-promotions {--c:#ff9f1c;}
.cf_select_wrap.cat-b2b-design {--c:#2f6fed;}
.cf_select_wrap.cat-advertising {--c:#12a383;}
.cf_select_wrap[class*="cat-"]:not(.cat-all) .cf_select {font-weight:800; color:#222;}
.cf_select option {color:#222; background:#fff;}
.cfg_btn {display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; background:#fff; border:0; outline:none; cursor:pointer; transition:background-color .2s;}
.cfg_btn:hover {background:#e4e4e4;}
.cfg_btn.is-active {background:var(--cf-ink);}
.cfg_ico {display:grid; gap:2px; width:18px; height:18px;}
.cfg_ico b {display:block; background:#9a9a9a; transition:background-color .2s;}
.cfg_ico.g2 {grid-template-columns:repeat(2,1fr); grid-template-rows:1fr;}
.cfg_ico.g4 {grid-template-columns:repeat(2,1fr); grid-template-rows:repeat(2,1fr);}
.cfg_ico.g8 {grid-template-columns:repeat(4,1fr); grid-template-rows:repeat(2,1fr); height:12px; margin:3px 0; gap:2px;}
.cfg_ico.g8 b {border-radius:50%;}
.cfg_btn:hover .cfg_ico b {background:var(--cf-ink);}
.cfg_btn.is-active .cfg_ico b {background:#fff;}

/* ---------- WORK 그리드 ---------- */
.c_works {--cols:2; display:grid; grid-template-columns:repeat(var(--cols), minmax(0,1fr)); gap:4px; width:100%; margin:0; padding:0; list-style:none;}
.c_works.cols-2 {--cols:2;}
.c_works.cols-4 {--cols:4;}
.c_works.cols-8 {--cols:8;}
.c_works .cw_item {position:relative; display:block; overflow:hidden; background:#e6e6e6; animation:cfFadeIn .45s ease both;}
.c_works .cw_item.is-hidden {display:none;}
.c_works .cw_pic {position:relative; width:100%; aspect-ratio:4/3; overflow:hidden;}
.c_works .cw_img {display:block; width:100% !important; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.7,.2,1);}
.c_works .cw_item:hover .cw_img {transform:scale(1.04);}
.c_works .cp_detail {position:absolute; top:0; right:0; bottom:0; left:0; background-color:rgba(245,44,37,.88); opacity:0; transition:opacity .3s;}
.c_works .cw_item:hover .cp_detail, .c_works .cp_detail:focus-visible {opacity:1;}
.c_works .cpd_wrap {position:absolute; left:8%; right:8%; bottom:9%; text-align:left;}
/* 썸네일 위 카테고리 : 테두리 없이 원 + 글자 */
.c_works .cpd_wrap .cf_badge {display:none; --c:#fff !important; height:auto; padding:0; margin-bottom:12px; border:0; border-radius:0; background:none; color:#fff !important; font-size:12px; font-weight:400; letter-spacing:0; cursor:pointer;}
.c_works .cpd_wrap .cf_badge:before {width:6px; height:6px;}
.c_works .cpd_wrap .cf_badge:hover {text-decoration:underline;}
.c_works .cpd_wrap strong {display:block; margin-bottom:6px; font-size:clamp(15px, 1.3vw, 25px); font-weight:700; color:#fff; line-height:1.25; letter-spacing:-0.5px;}
.c_works .cpd_wrap span {display:none; font-size:clamp(12px, .9vw, 17px); font-weight:300; color:#fff; line-height:1.35;}
/* 4열: 텍스트 축소 */
.c_works.cols-4 .cpd_wrap strong {font-size:clamp(13px, .95vw, 18px);}
.c_works.cols-4 .cpd_wrap span {font-size:12px;}
/* 8열: 썸네일 위주 */
.c_works.cols-8 {gap:3px;}
.c_works.cols-8 .cpd_wrap {left:8px; right:8px; bottom:8px;}
.c_works.cols-8 .cpd_wrap .cf_badge, .c_works.cols-8 .cpd_wrap span {display:none;}
.c_works.cols-8 .cpd_wrap strong {margin:0; font-size:12px; line-height:1.3;}
.c_works .empty_li {grid-column:1/-1; padding:80px 0; color:#888; text-align:center;}
.cw_empty {width:100%; padding:80px 0; font-size:15px; color:#888; text-align:center;}
@keyframes cfFadeIn {from {opacity:0; transform:translateY(12px);} to {opacity:1; transform:none;}}

/* ---------- 공통 버튼 ---------- */
.cf_btn {display:inline-flex; align-items:center; gap:12px; height:52px; padding:0 28px; border:0; outline:none; background:var(--cf-ink); font-size:16px; font-weight:700; color:#fff; letter-spacing:-0.3px; cursor:pointer; transition:background-color .2s, color .2s;}
.cf_btn i {position:relative; width:22px; height:2px; background:currentColor; transition:width .25s;}
.cf_btn i:after {content:""; position:absolute; right:0; top:50%; width:7px; height:7px; margin-top:-4px; border-top:2px solid currentColor; border-right:2px solid currentColor; transform:rotate(45deg);}
.cf_btn:hover i {width:32px;}
.cf_btn.red {background:var(--cf-red);}
.cf_btn.red:hover {background:#111;}
.cf_btn.line {height:46px; padding:0 22px; margin-top:28px; background:transparent; border:2px solid var(--cf-ink); color:var(--cf-ink); font-size:15px;}
.cf_btn.line:hover {background:var(--cf-red); border-color:var(--cf-red); color:#fff;}
.cf_btn[disabled] {opacity:.5; cursor:wait;}

/* ---------- 모달 공통 ---------- */
html.cf_lock, html.cf_lock body {overflow:hidden;}
.cf_modal {position:fixed; top:0; right:0; bottom:0; left:0; z-index:99990; display:none; align-items:center; justify-content:center; padding:40px; text-align:left;}
.cf_modal.is-open {display:flex; animation:cfModalIn .35s ease both;}
@keyframes cfModalIn {from {opacity:0;} to {opacity:1;}}
@keyframes cfBoxIn {from {transform:translateY(30px);} to {transform:none;}}
.cf_modal .cfm_dim {position:absolute; top:0; right:0; bottom:0; left:0; background:rgba(160,160,160,.92); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);}
.cf_modal .cfm_box {position:relative; z-index:1; display:flex; width:100%; max-width:1100px; max-height:calc(100vh - 80px); background:var(--cf-bg); box-shadow:0 30px 80px rgba(0,0,0,.25);}
.cf_modal.is-open .cfm_box {animation:cfBoxIn .45s cubic-bezier(.2,.7,.2,1) both;}
.cf_modal .cfm_scroll {width:100%; overflow-y:auto; overscroll-behavior:contain;}
.cf_modal .cfm_close {position:absolute; right:-20px; top:-20px; z-index:5; width:48px; height:48px; border:0; outline:none; background:var(--cf-ink); cursor:pointer; transition:background-color .2s, transform .3s;}
.cf_modal .cfm_close:before, .cf_modal .cfm_close:after {content:""; position:absolute; left:50%; top:50%; width:22px; height:3px; margin:-1.5px 0 0 -11px; background:#fff; transform:rotate(45deg);}
.cf_modal .cfm_close:after {transform:rotate(-45deg);}
.cf_modal .cfm_close:hover {background:var(--cf-red); transform:rotate(90deg);}
.cfm_eyebrow {display:inline-block; margin-bottom:14px; font-size:13px; font-weight:700; color:var(--cf-red); letter-spacing:3px;}

/* ---------- ABOUT ---------- */
.cfa_hero {position:relative; height:420px; overflow:hidden; background:#ddd;}
.cfa_hero img {display:block; width:100%; height:100%; object-fit:cover;}
.cfa_hero:after {content:""; position:absolute; top:0; right:0; bottom:0; left:0; background:linear-gradient(90deg, rgba(242,242,242,.97) 0%, rgba(242,242,242,.9) 40%, rgba(242,242,242,0) 72%);}
.cfa_hero_txt {position:absolute; left:60px; top:50%; z-index:1; max-width:520px; transform:translateY(-50%);}
.cfa_hero_txt h3 {font-size:58px; font-weight:100; color:#222; line-height:1.08; letter-spacing:-2.5px;}
.cfa_hero_txt h3 b {font-weight:800; font-style:italic; color:var(--cf-red);}
.cfa_body {padding:60px;}
.cfa_intro {display:grid; grid-template-columns:1fr 1fr; gap:50px; margin-bottom:60px;}
.cfa_intro p {font-size:16px; font-weight:300; color:#666; line-height:1.75; word-break:keep-all;}
.cfa_intro .cfa_lead {font-size:24px; font-weight:300; color:#222; line-height:1.5; letter-spacing:-0.8px;}
.cfa_intro b {font-weight:700;}
.cfa_service {display:grid; grid-template-columns:repeat(4,1fr); gap:4px; margin-bottom:60px;}
.cfa_service li {position:relative; padding:30px 24px 34px; background:#fff; transition:transform .3s, box-shadow .3s;}
.cfa_service li:before {content:""; position:absolute; left:0; top:0; width:100%; height:4px; background:var(--c); transform:scaleX(.18); transform-origin:left; transition:transform .4s;}
.cfa_service li:hover {transform:translateY(-4px); box-shadow:0 14px 30px rgba(0,0,0,.08);}
.cfa_service li:hover:before {transform:scaleX(1);}
.cfa_service em {display:block; margin-bottom:24px; font-size:13px; font-style:normal; font-weight:700; color:var(--c);}
.cfa_service strong {display:block; margin-bottom:10px; font-size:19px; font-weight:700; color:#222; line-height:1.25; letter-spacing:-0.5px;}
.cfa_service p {font-size:14px; font-weight:300; color:#777; line-height:1.6; word-break:keep-all;}
.cfa_process {margin-bottom:60px;}
.cfa_process ol {display:grid; grid-template-columns:repeat(4,1fr); counter-reset:cfp; border-top:2px solid var(--cf-ink);}
.cfa_process li {position:relative; padding:22px 20px 0 0; counter-increment:cfp;}
.cfa_process li:before {content:"0" counter(cfp); display:block; margin-bottom:10px; font-size:12px; font-weight:700; color:#aaa;}
.cfa_process li:after {content:""; position:absolute; left:0; top:-6px; width:10px; height:10px; border-radius:50%; background:var(--cf-red);}
.cfa_process b {display:block; font-size:24px; font-weight:800; color:#222; letter-spacing:-0.8px;}
.cfa_process span {display:block; margin-top:6px; font-size:14px; color:#777;}
.cfa_numbers {display:grid; grid-template-columns:repeat(3,1fr); gap:4px; margin-bottom:60px;}
.cfa_numbers li {padding:34px 30px; background:var(--cf-grey); color:#fff;}
.cfa_numbers b {display:block; font-size:48px; font-weight:800; line-height:1; letter-spacing:-2px;}
.cfa_numbers span {display:block; margin-top:10px; font-size:14px; font-weight:400; opacity:.9;}
.cfa_cta {display:flex; align-items:center; justify-content:space-between; gap:20px; padding-top:40px; border-top:1px solid #d4d4d4;}
.cfa_cta p {font-size:26px; font-weight:300; color:#222; letter-spacing:-1px;}

/* ---------- CONTACT ---------- */
/* Scale the desktop composition against the smaller viewport dimension. */
.cf_modal.cf_contact {padding:0;}
.cf_contact .cfm_box {
	width:min(95vw, 168.8889vh, 1600px);
	width:min(95vw, 168.8889dvh, 1600px);
	max-width:none;
	max-height:none;
	aspect-ratio:16 / 9;
	container-type:inline-size;
}
.cf_contact .cfm_close {
	top:1.6cqw;
	right:1.6cqw;
	width:3.75cqw;
	height:3.75cqw;
}
.cf_contact .cfm_close:focus-visible {outline:2px solid var(--cf-red); outline-offset:3px;}
.cfc_wrap {
	display:grid;
	grid-template-columns:minmax(0, 39fr) minmax(0, 61fr);
	gap:4cqw;
	min-height:100%;
	box-sizing:border-box;
	padding:3.9cqw 8.4cqw 2.7cqw 6cqw;
	color:var(--cf-ink);
}
.cfc_side {display:flex; flex-direction:column; align-items:flex-start; min-width:0;}
.cfc_logo {position:absolute; top:1.6cqw; left:1.8cqw; display:block; width:6.2cqw; height:auto;}
.cfc_symbol {display:block; width:19cqw; height:auto; margin:7.7cqw 0 0 4.4cqw;}
.cfc_info {
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:.4em 1.1em;
	margin:auto 0 0;
	padding:0;
	min-height:3.5cqw;
	list-style:none;
	font-size:clamp(11px, 1.06cqw, 18px);
	line-height:1.4;
}
.cfc_info li {display:flex; align-items:baseline; gap:.35em;}
.cfc_info mark {background:none; color:inherit;}
.cfc_info a {color:inherit;}
.cfc_info .cfc_instagram {display:inline-flex; align-items:center; gap:.4em; white-space:nowrap;}
.cfc_instagram_icon {
	position:relative;
	box-sizing:border-box;
	width:1em;
	height:1em;
	border:.095em solid currentColor;
	border-radius:.27em;
}
.cfc_instagram_icon::before {
	content:"";
	position:absolute;
	inset:20%;
	border:.075em solid currentColor;
	border-radius:50%;
}
.cfc_instagram_icon::after {
	content:"";
	position:absolute;
	top:12%;
	right:12%;
	width:.11em;
	height:.11em;
	border-radius:50%;
	background:currentColor;
}
.cfc_info a:hover, .cfc_info a:focus-visible {color:var(--cf-red); text-decoration:underline;}
.cfc_main {display:flex; flex-direction:column; min-width:0;}
.cfc_intro {margin-bottom:1.4cqw;}
.cfc_intro .cfm_eyebrow {
	display:block;
	margin:0 0 1.25cqw;
	font-size:clamp(11px, 1.08cqw, 18px);
	color:var(--cf-ink);
	letter-spacing:.24em;
	line-height:1.2;
}
.cfc_intro h3 {
	margin:0 0 1.05cqw;
	font:400 4.45cqw/1.04 Arial, sans-serif;
	letter-spacing:-.045em;
	color:var(--cf-ink);
}
.cfc_intro h3 b {font-weight:800;}
.cfc_intro h3 b span {color:var(--cf-red);}
.cfc_desc {margin:0; font-size:clamp(12px, 1.12cqw, 18px); line-height:1.55; color:#666; word-break:keep-all;}
.cfc_desc strong {font-size:1.14em; font-weight:500; color:var(--cf-ink);}
.cfc_form {display:flex; flex:1; flex-direction:column; min-width:0; font-size:clamp(12px, 1.08cqw, 18px);}
.cfc_form[hidden] {display:none;}
.cf_contact .cfc_done {flex:1; min-height:0; padding:24px 0;}
.cfc_main:has(.cfc_done) .cfc_intro {display:none;}
.cf_hp {position:absolute !important; left:-9999px; width:1px; height:1px; overflow:hidden;}
.cfc_project {display:flex; flex-direction:column; gap:6px; margin-bottom:24px; padding:16px 20px; border-left:4px solid var(--cf-red); background:#fff;}
.cfc_project[hidden] {display:none;}
.cfc_project span {display:block; font-size:12px; font-weight:700; color:var(--cf-red); line-height:1.5; letter-spacing:1px;}
.cfc_project strong {display:block; font-size:18px; font-weight:700; color:#222; line-height:1.4;}
.cfc_types {margin-bottom:1.05cqw;}
.cfc_grid {display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:1.05cqw 2cqw;}
.cfc_form .cf_field {display:flex; flex-direction:column; gap:.45cqw; min-width:0;}
.cfc_form .cf_field.full {grid-column:1/-1;}
.cfc_form .cf_field > span {font-size:inherit; font-weight:700; color:var(--cf-ink); line-height:1.3;}
.cfc_form .cf_field > span i {font-style:normal; color:var(--cf-red);}
.cfc_form .cf_field input, .cfc_form .cf_field select, .cfc_form .cf_field textarea {
	box-sizing:border-box;
	width:100%;
	height:2.55cqw;
	padding:0;
	border:0;
	border-bottom:1px solid #b8b8b8;
	border-radius:0;
	background:transparent;
	font:inherit;
	color:var(--cf-ink);
}
.cfc_form .cf_field input[name="cf_phone"] {padding:0 .55em; border:1px solid #c8c8c8;}
.cfc_form .cf_field select {padding-right:8px;}
.cfc_form .cf_field select:has(option:first-child:checked), .cfc_form .cf_field textarea::placeholder {color:#666;}
.cfc_form .cf_field option {color:var(--cf-ink);}
.cfc_form .cf_field textarea {height:6.05cqw; min-height:0; padding:.65cqw 1cqw; border:1px solid #b8b8b8; line-height:1.45; resize:none;}
.cfc_form .cf_field :is(input, select, textarea):focus {outline:1px solid var(--cf-red); outline-offset:1px;}
.cfc_form .cf_field.is-error :is(input, select, textarea) {border-color:var(--cf-red); background:#fff5f5;}
.cfc_foot {display:flex; align-items:center; flex-wrap:wrap; gap:.45em .85em; margin-top:auto; padding-top:.9cqw;}
.cf_agree {display:inline-flex; align-items:center; gap:8px; cursor:pointer; font-size:13px; color:#666;}
.cf_agree input {position:absolute; opacity:0;}
.cf_agree i {position:relative; width:20px; height:20px; border:1.5px solid #999; background:#fff; transition:.2s;}
.cf_agree input:checked + i {border-color:var(--cf-red); background:var(--cf-red);}
.cf_agree input:checked + i:after {content:""; position:absolute; left:5px; top:2px; width:5px; height:10px; border-right:2px solid #fff; border-bottom:2px solid #fff; transform:rotate(45deg);}
.cf_agree input:focus-visible + i {outline:2px solid var(--cf-red); outline-offset:2px;}
.cf_agree.is-error span {color:var(--cf-red);}
.cf_privacy_link {font-size:13px; color:var(--cf-ink); text-decoration:underline;}
.cfc_foot .cf_btn {height:3.5cqw; margin-left:auto; padding:0 1.35cqw; gap:1cqw; font-size:inherit; white-space:nowrap;}
.cfc_foot .cf_btn i {width:1.45cqw;}
.cfc_foot .cf_btn:hover, .cfc_foot .cf_btn:focus-visible {background:var(--cf-red);}
.cfc_foot .cf_agree, .cfc_foot .cf_privacy_link {font-size:.92em;}
.cfc_foot .cf_agree i {width:16px; height:16px; background-color:transparent;}
.cfc_foot .cf_agree input:checked + i {background-color:var(--cf-red);}
.cfc_foot .cf_agree input:checked + i:after {left:4px; top:0;}
.cfc_msg {min-height:22px; margin-top:16px; font-size:14px; font-weight:700; color:var(--cf-red); white-space:pre-line;}
.cfc_msg:empty {min-height:0; margin:0;}
.cfc_msg.ok {color:#12a383;}
.cfc_done {display:flex; flex-direction:column; align-items:center; justify-content:center; box-sizing:border-box; min-height:100%; padding:60px 50px; background:var(--cf-bg); text-align:center;}
.cfc_done .cfm_eyebrow {display:block; margin:0 0 18px; line-height:1;}
.cfc_done b {display:block; margin:0 0 20px; font-size:38px; font-weight:800; color:#222; line-height:1.25; letter-spacing:-1.5px; word-break:keep-all;}
.cfc_done p {margin:0; font-size:16px; color:#666; line-height:1.8; white-space:pre-line; word-break:keep-all;}
.cfc_done .cf_btn {margin-top:40px;}
.cfc_done:before {content:""; display:block; width:56px; height:56px; margin:0 0 26px; border-radius:50%; background:var(--cf-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/28px no-repeat;}


/* ---------- 퀵메뉴 : 상담문의 / TOP (2026-11-27) ---------- */
#footer .f_scroll {display:none !important;} /* 기존 TOP 버튼은 퀵메뉴로 대체 */
.cf_quick {position:fixed; right:40px; bottom:40px; z-index:990; display:flex; flex-direction:column; gap:4px;}
.cfq_btn {display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; width:68px; border:0; outline:none; color:#fff; cursor:pointer; box-shadow:0 8px 20px rgba(0,0,0,.14); transition:background-color .2s, transform .2s, opacity .3s, visibility .3s;}
.cfq_btn svg {width:22px; height:22px;}
.cfq_btn span {font-size:12px; font-weight:700; line-height:1; letter-spacing:-0.3px;}
.cfq_btn:hover {transform:translateY(-2px);}
.cfq_btn:focus-visible {outline:2px solid var(--cf-red); outline-offset:3px;}
.cfq_contact {height:68px; background:var(--cf-red);}
.cfq_contact:hover {background:#111;}
.cfq_top {height:52px; background:var(--cf-ink);}
.cfq_top:hover {background:var(--cf-red);}
.cfq_top svg {width:20px; height:20px; margin-bottom:-2px;}
.cf_quick:not(.show-top) .cfq_top {opacity:0; visibility:hidden; transform:translateY(8px);}
html.cf_lock .cf_quick {display:none;}
/* Only the TOP control on portfolio detail pages. */
html:has(#contents.work .cf_view_wrap) .cf_quick .cfq_contact {display:none !important;}

.cf_hero_img {display:none;}

/* ---------- 네이버 블로그 아이콘 (2026-11-27)
   평소 : 페이스북 f 처럼 회색 B 글자만 / hover : 인스타그램·페이스북과 같은 라운드 사각형(30px, radius 8px) 초록 바탕 + 흰 B ---------- */
#footer .f_sns .fs_icon.blog {position:relative; display:block; background-image:none !important; background-color:transparent; color:#4a4a4a; transition:background-color .3s, color .3s;}
#footer .f_sns .fs_icon.blog:after {content:"B"; position:absolute; left:0; right:0; top:50%; margin-top:-14px; font:900 28px/28px Arial, 'Helvetica Neue', sans-serif; text-align:center; color:currentColor;}
#footer .f_sns a:hover .fs_icon.blog {background-color:#03c75a; color:#fff;}
#footer.fixed.weare .f_sns .fs_icon.blog {color:#4c4c4c;}
#footer.fixed.weare .f_sns a:hover .fs_icon.blog {color:#fff;}
#header .h_gnb .hg_wrap .hg_list .hgl_sns li i.blog {position:relative; display:block; border-radius:10px; background-image:none; background-color:transparent; color:#fff; transition:background-color .3s;}
#header .h_gnb .hg_wrap .hg_list .hgl_sns li i.blog:after {content:"B"; position:absolute; left:0; right:0; top:50%; margin-top:-21px; font:900 42px/42px Arial, 'Helvetica Neue', sans-serif; text-align:center; color:currentColor;}
#header .h_gnb .hg_wrap .hg_list .hgl_sns li a:hover i.blog {background-color:#03c75a;}
@media all and (max-width:425px) {
	#header .h_gnb .hg_wrap .hg_list .hgl_sns li i.blog {border-radius:7px;}
	#header .h_gnb .hg_wrap .hg_list .hgl_sns li i.blog:after {margin-top:-14px; font-size:28px; line-height:28px;}
}

/* ---------- 사이트 헤더 관리자 톱니바퀴 (2026-11-27) : 햄버거 메뉴 왼쪽, 같은 40×40 ---------- */
#header .h_admin {position:absolute; right:92px; top:40px; z-index:9; display:flex; align-items:center; justify-content:center; width:40px; height:40px; border:4px solid #707070; color:#707070; transition:background-color .2s, color .2s, border-color .2s;}
#header .h_admin svg {width:22px; height:22px; transition:transform .4s;}
#header .h_admin:hover {border-color:#fff; background:#fff; color:#222;}
#header .h_admin:hover svg {transform:rotate(60deg);}
#wrap.t1 #header .h_admin {border:none; background:#fff; color:#404040;}
#wrap #header.menuopen .h_admin {display:none;}
@media all and (max-width:1024px) { #header .h_admin {right:82px; top:30px;} }
@media all and (max-width:768px)  { #header .h_admin {right:77px; top:25px;} }
@media all and (max-width:425px)  { #header .h_admin {right:72px; top:20px;} }

/* 메뉴 SNS 3개 간격 */
#header .h_gnb .hg_wrap .hg_list .hgl_sns li {margin-bottom:5px;}

/* 개인정보 팝업은 모달 위로 */
.popup.popup_privacy {z-index:999999;}

/* ---------- 상세화면 ---------- */
/* 표시 폭 20% 확대 : 1000px → 1200px */
.wrap.cf_view_wrap {max-width:1200px;}
/* 상세 카테고리 : 테두리 없이 원 + 글자 */
.cf_view_wrap .ci_title .cf_badge {height:auto; margin-bottom:16px; padding:0; border:0; border-radius:0; background:none; font-size:14px; font-weight:800; color:#222; cursor:default;}
.cf_view_wrap .ci_title .cf_badge:before {width:7px; height:7px; background:var(--c);}
.cf_origin img {display:block; width:100%; height:auto;}
.cf_view_cta {display:flex; align-items:center; justify-content:space-between; gap:20px; width:100%; box-sizing:border-box; margin:28px 0 24px; padding:16px 0; border-top:1px solid #ccc; border-bottom:1px solid #ccc; background:transparent; text-align:left;}
.cf_view_wrap .cf_view_cta p {display:block; margin:0; line-height:normal; word-break:keep-all; overflow-wrap:break-word;}
.cf_view_wrap .cf_view_cta p b {display:block; margin:0; font-size:16px; font-weight:500; color:#404040; line-height:1.4; letter-spacing:-0.6px;}
.cf_view_wrap .cf_view_cta p span {display:none; font-size:15px; font-weight:400; color:#777; line-height:1.6; letter-spacing:-0.2px;}
.cf_view_wrap .cf_view_cta .cf_btn {box-sizing:border-box; flex-shrink:0; height:36px; padding:0 16px; margin:0; border:1px solid #404040; background:transparent; color:#404040; font-size:13px; font-weight:500; white-space:nowrap;}
.cf_view_wrap .cf_view_cta .cf_btn:hover, .cf_view_wrap .cf_view_cta .cf_btn:focus-visible {background:var(--cf-red); border-color:var(--cf-red); color:#fff;}
.cf_view_wrap .cf_view_cta .cf_btn i {width:18px;}
.cf_quick.cfq-over-nav {opacity:0; pointer-events:none; visibility:hidden;}
.cf_admin_bar {position:fixed; right:124px; bottom:40px; z-index:998; display:flex; gap:4px;}
.cf_admin_bar .cab_btn {display:inline-flex; align-items:center; gap:7px; height:40px; padding:0 16px; background:var(--cf-ink); font-size:14px; font-weight:700; color:#fff; box-shadow:0 6px 16px rgba(0,0,0,.15); transition:background-color .2s;}
.cf_admin_bar .cab_btn:hover {background:var(--cf-red);}
.cf_admin_bar .cab_btn.del {background:#8a8a8a;}
.cf_admin_bar .cab_btn.del:hover {background:#111;}

/* ---------- 반응형 ---------- */
@media all and (max-width:1280px) {
	.c_works.cols-8 {--cols:6;}
	.cfa_service {grid-template-columns:repeat(2,1fr);}
}
@media all and (max-width:1024px) {
	.cf_toolbar {flex-direction:column; align-items:stretch;}
	.cf_grid {align-self:flex-end; margin-top:-4px;}
	.c_works.cols-8 {--cols:4;}
	.c_works.cols-4 {--cols:3;}
	.cfa_hero {height:340px;}
	.cfa_hero_txt {left:40px;}
	.cfa_hero_txt h3 {font-size:44px;}
	.cfa_body {padding:44px 40px;}
	.cfa_intro {grid-template-columns:1fr; gap:20px; margin-bottom:44px;}
	.cf_admin_bar {right:110px; bottom:30px;}
}
@media all and (max-width:768px) {
	/* 상세 상단 타이틀 이미지 : 모바일은 원본 비율로 전체 표시 (2026-11-27) */
	#contents.work .c_hero.cf_hero {height:auto !important; min-height:0 !important; background-image:none !important;}
	#contents.work .c_hero.cf_hero .cf_hero_img {display:block; width:100%; height:auto;}
	/* 모바일 헤더 : 스크롤 시 옅은 배경 (2026-11-27, is-scrolled 는 cafii_ext.js) */
	#header {height:0; background:rgba(242,242,242,0); box-shadow:none;}
	/* 로고 크기·위치는 기존 유지 (top 25 + 높이 67 + 여백 25) */
	#header.is-scrolled {height:70px; background:rgba(242,242,242,.95); box-shadow:0 1px 0 rgba(0,0,0,.06);}
	#header.is-scrolled:not(.menuopen) .h_logo {top:8px; width:76px; height:51px;}
    #header.is-scrolled:not(.menuopen) .h_gnb, #header.is-scrolled:not(.menuopen) .h_admin {top:15px;}
    #wrap.t1 #header.is-scrolled .h_logo a {background-image:url("../images/common/logo.png");}
	#wrap #header.menuopen {background:transparent; box-shadow:none;}
	#wrap #header.menuopen .h_logo a {background-image:url("../images/common/logo_white.png");}
	.cf_modal {padding:0;}
	.cf_modal .cfm_box {max-height:100vh; height:100%;}
	.cf_modal .cfm_close {right:12px; top:12px; width:42px; height:42px;}
	.cfa_hero {height:280px;}
	.cfa_hero:after {background:linear-gradient(0deg, rgba(242,242,242,.97) 10%, rgba(242,242,242,0) 75%);}
	.cfa_hero_txt {left:25px; right:25px; top:auto; bottom:22px; transform:none;}
	.cfa_hero_txt h3 {font-size:36px; letter-spacing:-1.5px;}
	.cfa_body {padding:30px 25px;}
	.cfa_intro .cfa_lead {font-size:20px;}
	.cfa_process ol {grid-template-columns:repeat(2,1fr); row-gap:26px;}
	.cfa_numbers {grid-template-columns:1fr;}
	.cfa_numbers li {padding:24px;}
	.cfa_numbers b {font-size:38px;}
	.cfa_cta {flex-direction:column; align-items:flex-start;}
	.cfa_cta p {font-size:21px;}
	.cfc_done {padding:56px 25px 64px;}
	.cfc_done b {font-size:28px;}
	.cfc_done p {font-size:15px;}
	.cf_view_cta {flex-direction:column; align-items:flex-start; padding:14px 0;}
	.cf_view_wrap .cf_view_cta .cf_btn {width:auto; height:44px; justify-content:center;}
	.cf_view_wrap .cf_view_cta {gap:10px;}
	.cf_view_wrap .cf_view_cta p b {margin-bottom:0; font-size:15px; line-height:1.45;}
	.cf_view_wrap .cf_view_cta p span {font-size:14px;}
	.cf_admin_bar {right:auto; left:25px; bottom:25px;}
	.cf_quick {right:16px; bottom:16px; gap:3px;}
	.cfq_btn {width:48px; box-shadow:0 6px 14px rgba(0,0,0,.16);}
	.cfq_contact {height:48px;}
	.cfq_top {height:40px;}
	.cfq_btn svg {width:18px; height:18px;}
	.cfq_top svg {width:16px; height:16px;}
	.cfq_btn span {font-size:10px;}
	.cfq_top span {display:none;}
}
@media all and (max-width:640px) {
	.cf_toolbar {flex-direction:row; align-items:center; gap:10px;}
	.cf_filter {display:none;}
	.cf_select_wrap {display:block;}
	.cf_grid {align-self:auto; margin-top:0; gap:4px;}
	.cfg_btn {width:38px; height:38px;}
	.cfg_btn[data-cols="8"] {display:none;} /* 모바일은 2·4개 보기만 */
	/* 모바일 실제 열 수(1열·2열)에 맞춘 아이콘 */
	.cfg_ico.g2 {grid-template-columns:1fr;}
	.cfg_ico.g2 b:nth-child(n+2) {display:none;}
	.cfg_ico.g4 {grid-template-columns:repeat(2,1fr); grid-template-rows:1fr;}
	.cfg_ico.g4 b:nth-child(n+3) {display:none;}
	.c_works.cols-2 {--cols:1; gap:4px; width:calc(100% + 24px); margin-left:-12px; margin-right:-12px;}
	.c_works.cols-4 {--cols:2;}
	.c_works.cols-8 {--cols:3;}
	/* 모바일 : 1열일 때 항상 제목 노출 (기존 디자인 유지) */
	.c_works.cols-2 .cp_detail {opacity:1; background:linear-gradient(transparent 55%, rgba(4,4,4,.85));}
	.c_works.cols-2 .cpd_wrap {left:4vw; right:4vw; bottom:4vw;}
	.c_works.cols-2 .cpd_wrap strong {font-size:17px; font-weight:600;}
	.c_works.cols-2 .cpd_wrap span {font-size:15px;}
	.c_works.cols-4 .cpd_wrap .cf_badge, .c_works.cols-4 .cpd_wrap span {display:none;}
	/* 3열(8개 설정) : 링크는 유지하고 오버레이 내용만 숨김 → 탭하면 바로 상세로 이동 */
	.c_works.cols-8 .cp_detail {opacity:0 !important; background:transparent;}
	.c_works.cols-8 .cpd_wrap {display:none;}
	.cfa_service {grid-template-columns:1fr;}
	.cfa_service li {padding:24px 22px;}
	.cfa_service em {margin-bottom:12px;}
}
@media all and (max-width:425px) {
	#header.is-scrolled {height:70px;}
}
/* 터치 기기 : hover 오버레이 때문에 두 번 탭해야 이동하던 문제 방지 (2026-11-27)
   - 2열 : 제목 항상 노출 / 4열 : 하단 그라데이션 + 제목 / 8열 : 이미지만 */
@media (hover:none) {
	.c_works .cw_item:hover .cw_img {transform:none;}
	.c_works:not(.cols-2) .cp_detail {opacity:1; background:linear-gradient(transparent 50%, rgba(4,4,4,.75));}
	.c_works:not(.cols-2) .cpd_wrap .cf_badge, .c_works:not(.cols-2) .cpd_wrap span {display:none;}
	.c_works.cols-2 .cp_detail {opacity:1; background:linear-gradient(transparent 50%, rgba(4,4,4,.8));}
	.c_works.cols-8 .cp_detail {background:transparent;}
	.c_works.cols-8 .cpd_wrap {display:none;}
}
@media (prefers-reduced-motion:reduce) {
	.c_works .cw_item, .cf_modal, .cf_modal .cfm_box, .c_works .cw_img {animation:none; transition:none;}
}

/* 글쓰기/수정 : 현재 첨부 이미지 미리보기 (2026-11-27) */
.file_del .cf_wthumb {display:block; width:180px; height:auto; margin:10px 0 6px; border:1px solid #ddd; background:#fff;}

/* 2026-11-30: restored desktop title alignment and grid control */
.cfg_btn[data-cols="8"] {display:none;}
@media (min-width:641px) and (hover:hover) {
 .c_works .cpd_wrap {top:50%; bottom:auto; transform:translateY(-50%); text-align:center;}
 .c_works .cpd_wrap strong {margin-bottom:0;}
}


/* Stack the composition when the 16:9 window would make the form too small. */
@media (max-width:900px), (max-height:550px) {
	.cf_contact .cfm_box {width:100%; height:100%; max-height:100vh; max-height:100dvh; aspect-ratio:auto;}
	.cf_contact .cfm_close {top:16px; right:16px; width:44px; height:44px;}
	.cfc_wrap {grid-template-columns:minmax(0, 1fr); align-content:start; gap:24px; max-width:720px; margin:auto; padding:16px 24px 32px;}
	.cfc_side {display:contents;}
	.cfc_logo {position:static; width:64px;}
	.cfc_symbol {grid-row:2; justify-self:start; width:min(120px, 32vw); margin:0;}
	.cfc_info {grid-row:4; min-height:0; margin:0; font-size:13px;}
	.cfc_intro {margin-bottom:24px;}
	.cfc_intro .cfm_eyebrow {margin-bottom:10px; font-size:12px;}
	.cfc_intro h3 {margin-bottom:12px; font-size:clamp(36px, 8.5vw, 64px);}
	.cfc_desc {font-size:14px;}
	.cfc_form {font-size:14px;}
	.cfc_types {margin-bottom:16px;}
	.cfc_grid {gap:16px;}
	.cfc_form .cf_field {gap:6px;}
	.cfc_form .cf_field input, .cfc_form .cf_field select {height:42px; font-size:16px;}
	.cfc_form .cf_field textarea {height:108px; padding:10px 12px; font-size:16px;}
	.cfc_foot {gap:12px; padding-top:16px;}
	.cfc_foot .cf_btn {width:100%; height:46px; justify-content:center; margin:0; gap:12px;}
	.cfc_foot .cf_btn i {width:22px;}
}

/* Shared footer: place the social icon beside the contact links. */
#footer:not(.fixed) .f_wrap {
	grid-template-columns:max-content max-content auto;
	grid-template-areas:"phone email social" "copyright copyright copyright";
	justify-content:start;
	column-gap:10px;
	row-gap:4px;
}
#footer:not(.fixed) .f_info,
#footer:not(.fixed) .f_info > ul {display:contents !important;}
#footer:not(.fixed) .f_info li:has(.fi_tel) {grid-area:phone;}
#footer:not(.fixed) .f_info li:has(.fi_email) {grid-area:email;}
#footer:not(.fixed) .f_sns {justify-self:start;}
#footer:not(.fixed) .f_copyright {grid-area:copyright;}
#footer:not(.fixed) .f_sns li:first-child {margin:0;}
