@charset "UTF-8";
/* =========================================================================
   메인 — 일하기 좋은 기업 (증서 월)
   ------------------------------------------------------------------------
   위치 : SBWrapDoc 섹션(.s-sec08) 바로 아래, 하단 컨택 섹션 위
   성격 : 독립 컴포넌트. 클래스는 전부 sbw- 접두사라 기존 스타일과 충돌하지 않는다.
   연결 : front/layout.jsp 의 '/front/main' 분기에서 include
   토큰 : refresh.css 의 :root 토큰을 쓰되, 그 파일이 빠져도 동작하도록 폴백을 둔다
   ========================================================================= */

.sbw-section {
	position: relative;
	/* 상위 people/workplace 그룹의 공통 그라데이션을 사용한다. */
	background: transparent;
	
	padding: clamp(96px, 12vw, 168px) 0 clamp(104px, 13vw, 180px);
	overflow: hidden;
	word-break: keep-all;
}

.sbw-section .max-width {
	padding: 0 clamp(20px, 4vw, 48px);
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
   제목 블록
   ------------------------------------------------------------------------- */
.sbw-head {
	max-width: 760px;
	margin: 0 auto clamp(48px, 6vw, 82px);
	text-align: center;
}

.sbw-eyebrow {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background-color: rgba(47, 111, 196, .10);
	color: var(--sb-brand-deep, #143a68);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .16em;
	line-height: 1;
}

.sbw-title {
	margin: 20px 0 0;
	font-size: clamp(30px, 4.4vw, 54px);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -.04em;
	color: var(--sb-ink, #16202b);
	text-wrap: balance;
}

.sbw-lead {
	margin: 16px 0 0;
	font-size: clamp(16px, 1.8vw, 21px);
	font-weight: 500;
	line-height: 1.62;
	letter-spacing: -.03em;
	color: var(--sb-ink-2, #44515f);
	text-wrap: balance;
}

.sbw-lead b {
	font-weight: 700;
	color: var(--sb-brand, #2f6fc4);
}

/* 제품에서 사람으로 넘어가는 브릿지 — 사람을 닮은 막대 성장 그래프 */
.s-sec09 .people-growth {
	display: flex;
	align-items: flex-end;
	gap: 50px;
	width: 270px;
	height: 180px;
	padding: 18px 0 0;
	box-sizing: border-box;
}

.s-sec09 .people-growth__bar {
	position: relative;
	display: block;
	width: 30px;
	border-radius: 999px;
	transform: scaleY(0);
	transform-origin: bottom;
	opacity: 0;
	will-change: transform, opacity;
}

.s-sec09 .people-growth__bar::before { 
	position: absolute;
	top: -24px;
	left: 50%;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: inherit;
	transform: translateX(-50%);
	content: '';
}

.s-sec09 .people-growth__bar:nth-child(1) {
	height: 52px;
	background: linear-gradient(180deg, #e9f2fc, #afcbed); 
}

.s-sec09 .people-growth__bar:nth-child(2) {
	height: 76px;
	background: linear-gradient(180deg, #d7e7f9, #7aa9df); 
}

.s-sec09 .people-growth__bar:nth-child(3) { 
	height: 100px;
	background: linear-gradient(180deg, #afcff0, #4f88cf);
}

.s-sec09 .people-growth__bar:nth-child(4) {
	height: 124px;
	background: linear-gradient(180deg, #78a9e3, #2f6fc4);
} 

.s-sec09 .people-growth__copy {
	opacity: 0;
	transform: translateY(16px);
}

.s-sec09.on .people-growth__bar {
	animation: people-growth-rise .42s cubic-bezier(.16, 1, .3, 1) forwards;
}

.s-sec09.on .people-growth__bar:nth-child(2) { animation-delay: .2s; }
.s-sec09.on .people-growth__bar:nth-child(3) { animation-delay: .4s; }
.s-sec09.on .people-growth__bar:nth-child(4) { animation-delay: .6s; } 

.s-sec09.on .people-growth__copy {
	animation: people-growth-copy .45s cubic-bezier(.16, 1, .3, 1) .95s forwards;
} 

@keyframes people-growth-rise {
	from { transform: scaleY(0); opacity: 0; }
	to { transform: scaleY(1); opacity: 1; }
}

@keyframes people-growth-copy {
	from { transform: translateY(16px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

/* -------------------------------------------------------------------------
   증서 월 — 액자를 살짝 기울여 겹쳐 건다
   ------------------------------------------------------------------------- */
.sbw-stage {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	align-items: end;
	max-width: 1120px;
	/* 확대된 카드가 잘리지 않도록 상하 여백을 넉넉히 */
	margin: 0 auto;
	padding: clamp(46px, 5.5vw, 76px) clamp(18px, 3.4vw, 54px) clamp(40px, 5vw, 66px);
	border-radius: 30px;
	background-color: rgba(255, 255, 255, .72);
	border: 1px solid rgba(20, 47, 82, .07);
	box-shadow:
		0 40px 80px -52px rgba(20, 47, 82, .34),
		inset 0 1px 0 rgba(255, 255, 255, .9);
}

.sbw-card {
	position: relative;
	margin: 0;
	transition:
		transform .62s cubic-bezier(.16, 1, .3, 1),
		filter .62s cubic-bezier(.16, 1, .3, 1),
		opacity .62s cubic-bezier(.16, 1, .3, 1);
}

/* 걸린 각도 — 규칙적이지 않게 흩뜨려야 '걸어둔 것'처럼 보인다 */
.sbw-card:nth-child(1) { transform: rotate(-3.4deg) translateY(20px); z-index: 1; }
.sbw-card:nth-child(2) { transform: rotate(1.8deg)  translateY(4px);  margin-left: -13%; z-index: 2; }
.sbw-card:nth-child(3) { transform: rotate(-.8deg)  translateY(-16px); margin-left: -13%; z-index: 3; }
.sbw-card:nth-child(4) { transform: rotate(2.6deg)  translateY(4px);  margin-left: -13%; z-index: 2; }
.sbw-card:nth-child(5) { transform: rotate(-2.2deg) translateY(22px); margin-left: -13%; z-index: 1; }
.sbw-card:nth-child(6) { transform: rotate(1.2deg) translateY(8px); margin-left: -13%; z-index: 2; }

/* 하나를 지목하면 나머지는 뒤로 물러난다 */
.sbw-stage:hover .sbw-card {
	filter: saturate(.5);
	opacity: .78;
}

.sbw-card:hover {
	transform: rotate(0deg) translateY(-46px) scale(1.24) !important;
	z-index: 9 !important;
	filter: none !important;
	opacity: 1 !important;
}

/* 키보드 이동 시에도 어느 증서인지 보이게 한다.
   :focus-within 을 쓰면 마우스로 눌러 확대 보기를 닫은 뒤에도 포커스가 버튼에 남아
   해당 카드가 튀어나온 채 고정되므로, 키보드 이동에만 반응하는 :focus-visible 로 건다.
   :has() 미지원 브라우저에서는 이 규칙만 무시되고 마우스 동작은 그대로다. */
.sbw-stage:has(button.sbw-tray:focus-visible) .sbw-card {
	filter: saturate(.5);
	opacity: .78;
}

.sbw-card:has(button.sbw-tray:focus-visible) {
	transform: rotate(0deg) translateY(-46px) scale(1.24) !important;
	z-index: 9 !important;
	filter: none !important;
	opacity: 1 !important;
}

/* 이중 베젤 — 바깥 트레이 + 안쪽 판.
   스캔본이 있는 카드는 trigger 가 <button> 이므로 기본 버튼 스타일을 지운다 */
.sbw-tray {
	display: block;
	width: 100%;
	margin: 0;
	padding: 7px;
	border: 0;
	border-radius: 16px;
	background-color: rgba(20, 47, 82, .05);
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7);
	font: inherit;
	color: inherit;
	text-align: left;
	-webkit-appearance: none;
	appearance: none;
}

button.sbw-tray {
	cursor: zoom-in;
}

button.sbw-tray:focus-visible {
	outline: 2px solid var(--sb-brand, #2f6fc4);
	outline-offset: 3px;
}

.sbw-plate {
	position: relative;
	display: block;
	aspect-ratio: 5 / 7;
	border-radius: 10px;
	overflow: hidden;
	background: linear-gradient(168deg, #ffffff 0%, #eef1f6 100%);
	box-shadow: 0 24px 44px -28px rgba(20, 47, 82, .46);
}

/* 실제 스캔본. 문서는 제목이 위쪽에 있으므로 상단을 기준으로 채운다 */
.sbw-plate > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
}

/* 카드 크기에서는 스캔 글자가 읽히지 않으므로, 무엇인지는 이 띠가 책임진다 */
.sbw-card .sbw-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 42px 14px 13px;
	background: linear-gradient(180deg, rgba(21, 62, 133, 0) 0%, rgba(21, 62, 133, .82) 48%, #153e85 100%);
	color: #fff;
	text-align: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .72);
}

.sbw-card .sbw-label b {
	display: block;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.42;
	letter-spacing: -.02em;
}

.sbw-card .sbw-label em {
	display: block;
	margin-top: 4px;
	font-style: normal;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.35;
	color: rgba(255, 255, 255, .9);
	font-variant-numeric: tabular-nums;
}

/* 스캔본이 아직 없는 항목의 활자면 */
.sbw-face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 26px 18px;
	text-align: center;
}

.sbw-face::before {
	position: absolute;
	inset: 11px;
	border: 1px solid rgba(20, 47, 82, .12);
	border-radius: 5px;
	content: '';
}

.sbw-face::after {
	position: absolute;
	inset: 15px;
	border: 1px solid rgba(20, 47, 82, .07);
	border-radius: 3px;
	content: '';
}

.sbw-when {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .16em;
	color: var(--sb-ink-3, #78838f);
	font-variant-numeric: tabular-nums;
}

.sbw-name {
	font-size: clamp(12px, 1.05vw, 15px);
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -.035em;
	color: var(--sb-ink, #16202b);
}

.sbw-from {
	font-size: 11px;
	line-height: 1.4;
	color: var(--sb-ink-3, #78838f);
}

.sbw-seal {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-top: 2px;
	border: 1.5px solid #9a6b3f;
	border-radius: 50%;
	color: #9a6b3f;
	font-size: 8.5px;
	font-weight: 700;
	letter-spacing: .05em;
}

.sbw-cap {
	margin: clamp(26px, 3.2vw, 40px) 0 0;
	font-size: 13.5px;
	color: var(--sb-ink-3, #78838f);
	text-align: center;
}

.sbw-all-link {
	display: flex;
	width: fit-content;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: clamp(28px, 3.5vw, 42px) auto 0;
	padding: 13px 20px;
	border: 1px solid rgba(47, 111, 196, .28);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 12px 26px -20px rgba(20, 47, 82, .55);
	color: var(--sb-brand, #2f6fc4);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.sbw-all-link:hover {
	background: var(--sb-brand, #2f6fc4);
	color: #fff;
	transform: translateY(-2px);
}

.sbw-all-link:focus-visible {
	outline: 2px solid var(--sb-brand, #2f6fc4);
	outline-offset: 3px;
}

/* =========================================================================
   증서 원본 확대 보기
   카드 크기에서는 스캔 글자가 읽히지 않으므로, 원본을 읽을 수 있는 크기로 연다.
   ========================================================================= */
/* [중요] 닫힌 상태를 반드시 먼저 못박는다.
   아래 .sbw-viewer 의 display:flex 는 클래스 선택자(0,1,0)라서 브라우저 기본
   [hidden]{display:none}(UA 스타일) 을 이겨버린다. 그 결과 hidden 속성이 무시되고
   투명한 오버레이가 z-index:200 으로 화면 전체를 덮어 카드의 호버·클릭을 전부 삼킨다.
   .sbw-viewer[hidden] 은 (0,2,0) 이라 확실히 이긴다. */
.sbw-viewer[hidden] {
	display: none;
}

.sbw-viewer {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(18px, 4vw, 52px);
	background-color: rgba(10, 17, 28, .82);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	/* 2차 안전장치 : 혹시 display 가 flex 로 남더라도 마우스 이벤트는 통과시킨다.
	   (오버레이가 화면 전체를 덮어 페이지 전체 클릭을 삼키는 사고 방지) */
	pointer-events: none;
	transition: opacity .38s cubic-bezier(.16, 1, .3, 1);
}

.sbw-viewer.is-open {
	opacity: 1;
	pointer-events: auto;
}

.sbw-viewer-body {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	transform: scale(.965);
	transition: transform .44s cubic-bezier(.16, 1, .3, 1);
}

.sbw-viewer.is-open .sbw-viewer-body {
	transform: scale(1);
}

.sbw-viewer-body img {
	display: block;
	max-width: min(100%, 620px);
	max-height: calc(100vh - 280px);
	border-radius: 8px;
	background-color: #fff;
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7);
	object-fit: contain;
}

.sbw-viewer-body figcaption {
	text-align: center;
	color: #fff;
}

.sbw-viewer-body figcaption b {
	display: block;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -.03em;
}

.sbw-viewer-body figcaption em {
	display: block;
	margin-top: 5px;
	font-style: normal;
	font-size: 15px;
	color: rgba(255, 255, 255, .6);
	font-variant-numeric: tabular-nums;
}

.sbw-viewer-close {
	position: absolute;
	top: clamp(14px, 2.6vw, 28px);
	right: clamp(14px, 2.6vw, 28px);
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 50%;
	background-color: rgba(255, 255, 255, .10);
	color: #fff;
	cursor: pointer;
	transition: background-color .3s cubic-bezier(.16, 1, .3, 1),
	            transform .3s cubic-bezier(.16, 1, .3, 1);
}

.sbw-viewer-close:hover {
	background-color: rgba(255, 255, 255, .2);
}

.sbw-viewer-close:active {
	transform: scale(.94);
}

.sbw-viewer-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.sbw-viewer-nav {
	position: absolute;
	top: 45%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	background-color: rgba(10, 17, 28, .36);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color .25s ease, opacity .25s ease, transform .25s ease;
}

.sbw-viewer-prev { left: -76px; }
.sbw-viewer-next { right: -76px; }

.sbw-viewer-nav:hover:not(:disabled) {
	background-color: rgba(255, 255, 255, .2);
}

.sbw-viewer-nav:active:not(:disabled) {
	transform: translateY(-50%) scale(.94);
}

.sbw-viewer-nav:disabled {
	opacity: .28;
	cursor: default;
}

.sbw-viewer-nav:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
   태블릿 — 다섯 장을 겹치기엔 좁아지므로 겹침을 줄인다
   ------------------------------------------------------------------------- */
@media all and (max-width: 1023px) {
	.sbw-card:nth-child(n + 2) {
		margin-left: -8%;
	}

	.sbw-card:hover {
		transform: rotate(0deg) translateY(-30px) scale(1.16) !important;
	}

	.sbw-card:has(button.sbw-tray:focus-visible) {
		transform: rotate(0deg) translateY(-30px) scale(1.16) !important;
	}
}

/* -------------------------------------------------------------------------
   모바일 — 겹침과 회전을 풀고 2열로 세운다
   ------------------------------------------------------------------------- */
@media all and (max-width: 767px) {
	.sbw-section {
		padding: 76px 0 84px;
	}

	.sbw-stage {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
		padding: 20px;
		border-radius: 22px;
	}

	.sbw-card,
	.sbw-card:nth-child(1),
	.sbw-card:nth-child(2),
	.sbw-card:nth-child(3),
	.sbw-card:nth-child(4),
	.sbw-card:nth-child(5),
	.sbw-card:nth-child(6) {
		transform: none;
		margin-left: 0;
		z-index: auto;
	}

	.sbw-stage:hover .sbw-card {
		filter: none;
		opacity: 1;
	}

	.sbw-stage:has(button.sbw-tray:focus-visible) .sbw-card {
		filter: none;
		opacity: 1;
	}

	.sbw-card:hover {
		transform: translateY(-6px) scale(1.02) !important;
	}

	.sbw-card:has(button.sbw-tray:focus-visible) {
		transform: translateY(-6px) scale(1.02) !important;
	}

	.sbw-cap {
		font-size: 12.5px;
	}

	.sbw-card .sbw-label {
		padding: 26px 9px 9px;
	}

	.sbw-viewer-body img {
		max-height: calc(100vh - 220px);
	}

	.sbw-viewer-nav {
		width: 42px;
		height: 42px;
	}

	.sbw-viewer-prev { left: -54px; }
	.sbw-viewer-next { right: -54px; }
}

/* -------------------------------------------------------------------------
   모션 최소화 설정 존중
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.s-sec09 .people-growth__bar,
	.s-sec09 .people-growth__copy {
		animation: none !important;
		transform: none;
		opacity: 1;
	}

	.sbw-card {
		transition: none !important;
	}

	.sbw-card:hover {
		transform: none !important;
	}

	.sbw-card:has(button.sbw-tray:focus-visible) {
		transform: none !important;
	}

	.sbw-stage:hover .sbw-card {
		filter: none;
		opacity: 1;
	}

	.sbw-viewer,
	.sbw-viewer-body,
	.sbw-viewer-close {
		transition: none !important;
	}
}
