﻿@charset "utf-8";

/* ============================================================
	sub-vis type05 — 풀스크린 이미지 + 중앙 타이틀
	패럴랙스는 main03.js (GSAP ScrollTrigger) 처리
	============================================================ */

.sub-vis-box.type05 {
	position: relative;
	height: 100vh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 패럴랙스 이동 여유분 확보 */
.sub-vis-box.type05 .vis-img-wrap {
	position: absolute;
	top: -15%;
	left: 0;
	width: 100%;
	height: 130%;
	z-index: 0;
}

.sub-vis-box.type05 .vis-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sub-vis-box.type05 .vis-dim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

.sub-vis-box.type05 .vis-txt {
	position: relative;
	z-index: 2;
	text-align: center;
	color: #fff;
	padding: 0 20px;
	animation: vis05_in 1s ease both;
}

.sub-vis-box.type05 .vis-cate {
	font-size: 0.8em;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-bottom: 20px;
	opacity: 0.75;
}

.sub-vis-box.type05 .vis-tit {
	font-size: clamp(36px, 5vw, 72px);
	font-weight: 700;
	font-family: "GMarketSans", sans-serif;
	line-height: 1.15;
	margin-bottom: 20px;
}

.sub-vis-box.type05 .vis-desc {
	font-size: clamp(15px, 1.4vw, 20px);
	font-weight: 300;
	opacity: 0.85;
}

@keyframes vis05_in {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media all and (max-width: 768px) {
	.sub-vis-box.type05 .vis-tit {
		font-size: 32px;
	}
}

@media all and (max-width: 499px) {
	.sub-vis-box.type05 .vis-tit {
		font-size: 26px;
	}
	.sub-vis-box.type05 .vis-desc {
		font-size: 14px;
	}
}

/* ============================================================
	C. 스크롤 다운 인디케이터
	============================================================ */

.scroll-indicator {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: #fff;
	animation: vis05_in 1.5s ease 0.8s both;
	pointer-events: none;
}

.scroll-indicator__mouse {
	width: 24px;
	height: 38px;
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 12px;
	display: flex;
	justify-content: center;
	padding-top: 6px;
}

.scroll-indicator__wheel {
	width: 3px;
	height: 7px;
	background: #fff;
	border-radius: 2px;
	animation: scroll_wheel 1.6s ease infinite;
}

.scroll-indicator__text {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.7;
}

@keyframes scroll_wheel {
	0% {
		transform: translateY(0);
		opacity: 1;
	}
	100% {
		transform: translateY(10px);
		opacity: 0;
	}
}

@media all and (max-width: 768px) {
	.scroll-indicator {
		bottom: 28px;
	}
}

/* ============================================================
	라이트박스
	============================================================ */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.lightbox.is-open {
	opacity: 1;
	pointer-events: all;
}

.lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	backdrop-filter: blur(6px);
}

.lightbox__img-wrap {
	position: relative;
	z-index: 1;
	transform: scale(0.92);
	transition: transform 0.3s ease;
}

.lightbox.is-open .lightbox__img-wrap {
	transform: scale(1);
}

.lightbox__img {
	display: block;
	max-width: 90vw;
	max-height: 88vh;
	object-fit: contain;
}

.lightbox__close {
	position: absolute;
	top: 20px;
	right: 24px;
	z-index: 2;
	background: none;
	border: none;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s;
}

.lightbox__close:hover {
	opacity: 1;
}

.fade-section .img-box img {
	cursor: zoom-in;
}

/* ============================================================
	섹션 목차 (TOC)
	============================================================ */

.toc {
	position: fixed;
	right: 32px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.5s ease,
		transform 0.5s ease;
}

.toc.is-visible {
	opacity: 1;
	pointer-events: all;
}

.toc__list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.toc__item {
	position: relative;
}

/* 연결선 */
/*.toc__item + .toc__item::before {
	content: "";
	display: block;
	width: 1px;
	height: 20px;
	background: var(--color-border, #e0e0e0);
	margin-left: auto;
	margin-right: 9px;
}*/

.toc__item a {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding: 6px 0;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: -0.02em;
	color: var(--color-text-sub, #aaa);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.25s ease;
}

.toc__item a:hover {
	color: var(--color-text-main, #222);
}

/* 우측 인디케이터 바 */
.toc__item a::after {
	flex-shrink: 0;
	content: "";
	display: block;
	width: 2px;
	height: 20px;
	border-radius: 2px;
	background: var(--color-border, #ddd);
	transition:
		height 0.3s ease,
		background 0.25s ease;
}

.toc__item a.active {
	color: var(--color-text-main, #111);
	font-weight: 600;
}

.toc__item a.active::after {
	height: 36px;
	background: var(--color-primary, #22c55e);
}

/* 1600px 이상에서만 텍스트 표시 */
@media all and (max-width: 1599px) {
	.toc__item a span {
		display: none;
	}
}

@media all and (max-width: 999px) {
	.toc {
		display: none;
	}
}

[data-theme="dark"] .toc__item a::after {
	background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .toc__item a.active {
	color: #fff;
}

/* ============================================================
	맨 위로 버튼
	============================================================ */

.btn-top {
	position: fixed;
	bottom: 40px;
	right: 32px;
	z-index: 100;
	width: 50px;
	height: 50px;
	border-radius: 14px;
	background: var(--color-bg-main, #fff);
	border: 1px solid var(--color-border, #e0e0e0);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	opacity: 0;
	transform: translateY(16px);
	pointer-events: none;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition:
		opacity 0.35s ease,
		transform 0.35s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}

.btn-top.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: all;
}

.btn-top:hover {
	border-color: var(--color-primary, #22c55e);
	box-shadow: 0 6px 24px rgba(34, 197, 94, 0.18);
}

.btn-top:hover svg {
	stroke: var(--color-primary, #22c55e);
	transform: translateY(-2px);
}

.btn-top svg {
	width: 18px;
	height: 18px;
	stroke: var(--color-text-main, #333);
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition:
		stroke 0.25s ease,
		transform 0.25s ease;
}

.btn-top__label {
	font-size: 9px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-sub, #aaa);
	line-height: 1;
	transition: color 0.25s ease;
}

.btn-top:hover .btn-top__label {
	color: var(--color-primary, #22c55e);
}

[data-theme="dark"] .btn-top {
	background: var(--color-bg-card, #1e1e1e);
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@media all and (max-width: 768px) {
	.btn-top {
		bottom: 24px;
		right: 16px;
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}
	.btn-top__label {
		display: none;
	}
}
