@charset "utf-8";

/* FONT Import */
@import url("../fonts/Pretendard.css"); /* font-family: "Pretendard" */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); /* font-family: "Poppins" */

/* 초기화 */
html, body {
	width: 100%;
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
	margin: 0;
	padding: 0;
	background-color: var(--bgColor);
}

/* 페이지 스크롤 주체는 html(documentElement) — window.scrollTo가 여기에 작동.
   body는 height:100%를 주지 않아(콘텐츠 높이로 늘어남) 스크롤 컨테이너가 되지 않음(window.scrollTo 정상). */
html {
	height: 100%;
}
body {
	min-height: 100%;
}

/* 모바일 가로 스크롤 흔들림 차단.
   원인=AOS fade-left의 translateX(100px)가 아직 화면에 안 들어온 요소를 오른쪽 밖으로 밀어 문서 폭을 키움.
   ※ overflow-x:clip/hidden을 html·body에 걸면 카드 hover/transform 효과가 깨지거나 sticky가 망가지므로 쓰지 않고,
      모바일에선 AOS 애니메이션 자체를 비활성화해 translateX를 없앤다(데스크탑은 AOS 유지). */
@media (max-width: 767px) {
	[data-aos] {
		transform: none !important;
		opacity: 1 !important;
		transition: none !important;
	}
}
html, h1, h2, h3, h4, h5, h6, form, fieldset, img {margin: 0; padding: 0; border: 0}
h1, h2, h3, h4, h5, h6 {font-size: 1em; font-family: 'Pretendard', sans-serif;}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, header, section {display: block}

ul, dl, dt, dd {margin: 0; padding: 0; list-style: none}
legend {position: absolute; margin: 0; padding: 0; font-size: 0; line-height: 0; text-indent: -9999em; overflow: hidden}
label, input, button, select, img {vertical-align: middle;}
input, button {margin: 0; padding: 0; font-size: 1em; font-family: 'Pretendard', sans-serif;}
input[type="submit"] {cursor: pointer}
button {outline: 0; cursor: pointer}

select {margin: 0}
p {font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; margin: 0; padding: 0; word-break: break-all}
hr {display: none}
pre {overflow-x: scroll; font-size: 1.1em}
a {color: #000; text-decoration: none; outline: 0}

*, ::focus {
	outline: 0;
}
*, ::after, ::before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

* input[type=text], input[type=password], textarea {
	-webkit-transition: all 0.30s ease-in-out;
	-moz-transition: all 0.30s ease-in-out;
	-ms-transition: all 0.30s ease-in-out;
	-o-transition: all 0.30s ease-in-out;
	transition: all 0.30s ease-in-out;
	outline: none;
}

::selection {
	color: #000;
	background-color: #b3d4fc;
	text-shadow: none;
}
::-moz-selection {
	color: #000;
	background-color: #b3d4fc;
	text-shadow: none;
}
::-webkit-selection {
	color: #000;
	background-color: #b3d4fc;
	text-shadow: none;
}

.placeholdersjs { color: #ddd !important; }

svg { overflow: hidden; vertical-align: middle; }

table {
	border-collapse: collapse;
	border-spacing: 0;
}
textarea {
	width: 100%;
	min-height: 150px;
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
	font-size: 16px;
	color: #333;
	padding: 10px !important;
	border: 1px solid rgba(0,0,0,0.2);
	border-radius: 3px;
	box-shadow: none;
	resize: none;
	outline: none;
}
input:focus,
textarea:focus { background-color: #fff; outline: none; }

select {
	font-family: 'Pretendard', sans-serif;
	font-size: 16px;
	color: #212121;
	font-weight: 400;
	padding: 10px 40px 10px 15px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 380'%3E%3Cpath fill='%23212121' d='M256,246.5c-8.2,0-16.1-3.3-21.9-9.1L152,155.4l21.9-21.9l82.1,82.1l82.1-82.1l21.9,21.9l-82.1,82.1 C272.1,243.3,264.2,246.6,256,246.5z'/%3E%3Crect fill='%23d0d0d0' x='0' y='70' width='20' height='240'/%3E%3C/svg%3E%0A");
	background-size: 30px;
	background-position: 100% 50%;
	background-repeat: no-repeat;
    border: 1px solid #ccc;
	border-radius: 3px;
	outline: none;
    -webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
}
select::-ms-expand {
	display: none;
}

input[type="checkbox"] {
	display: none;
}
input[type="checkbox"] + label {
	font-size: 16px;
	color: #212121;
	font-weight: 500;
	white-space: nowrap;
	padding: 0;
	cursor: pointer;
	display: inline-block;
}
input[type="checkbox"] + label span {
	width: 20px;
	min-width: 20px;
	height: 20px;
	margin-right: 5px;
	vertical-align: middle;
	background-color: #fff;
	background-image: none;
	background-size: auto 26px;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	border: 1px solid #aaa;
	border-radius: 4px;
	cursor: pointer;
	vertical-align: middle;
	display: inline-block;
}
input[type="checkbox"]:checked + label span {
	background-color: #000000;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233aff00' d='M10.5859 13.4142L7.75748 10.5858L6.34326 12L10.5859 16.2426L17.657 9.17154L16.2428 7.75732L10.5859 13.4142Z'/%3E%3C/svg%3E%0A");
	border-color: #F20000;
}
input[type="checkbox"]:disabled + label,
input[type="checkbox"]:disabled + label span { cursor: default; }

input[type="radio"] {
	display: none;
}
input[type="radio"] + label {
	font-size: 16px;
	color: #333;
	margin-right: 25px;
	cursor: pointer;
}
input[type="radio"] + label span {
	width: 20px;
	height: 20px;
	margin: -2px 5px 0 0;
	vertical-align: middle;
	background-color: #fff;
	background-size: auto 12px;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	border: 1px solid #ccc;
	border-radius: 50%;
	display: inline-block;
}
input[type="radio"]:checked + label span {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23ff158a'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/g%3E%3C/svg%3E");
}

::-webkit-input-placeholder {
	color: #aaa !important;
	text-align: left !important;
}

/* Scroll Width */
::-webkit-scrollbar {
	width: 6px;
	height: 6px;
	background-color: transparent;
}
/* Scroll Track */
::-webkit-scrollbar-track {
	border-radius: 0;
}
/* Scroll Handle */
::-webkit-scrollbar-thumb {
	background-color: rgba(0,0,0,0.5);
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: 10px;
}
/* Scroll Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background-color: rgba(0,0,0,1);
}

/* Root Color Setting */
:root {
	/* 사이트 컬러 기본설정 */
	--bgColor: #F5F5F5;
	--keyColor: #3aff00;
	--pointColor: #E31C79;
	--darkColor: #000000;
	--lightColor: #ffffff;
	--lightGrayColor: #e2e2e2;
	--darkGrayColor: #5e5e5e;
	--mutedColor: #888888;       /* 보조·비활성 텍스트, 빈 목록 메시지 */
	--borderColor: #e2e2e2;      /* 일반 테두리·구분선 (lightGray 별칭) */
	--pointBgColor: #fff4f8;     /* 포인트 연한 배경 (에러/강조 박스) */
	--pointBorderColor: #f0c0d4; /* 포인트 연한 테두리 */
}

::selection {
	color: #000;
	background-color: var(--keyColor);
	text-shadow: none;
}
::-moz-selection {
	color: #000;
	background-color: var(--keyColor);
	text-shadow: none;
}
::-webkit-selection {
	color: #000;
	background-color: var(--keyColor);
	text-shadow: none;
}

/* FancyBox 강제 설정 */
.f-html {
    padding: 0 !important;
}
.f-carousel__slide {
    padding: 0 !important;
}
.fancybox__slide.has-iframe { padding: 8px 20px !important; }

/* 모바일: 세로 영상이 viewport를 초과하면 carousel가 넘쳐 toolbar(X)가 화면 위로 잘림 →
   영상을 화면 높이에 맞게 축소(fit)해서 carousel가 viewport 안에 들어오게. 상단 여백으로 toolbar 공간 확보. */
@media (max-width: 767px) {
    .fancybox__slide.has-iframe {
        padding-top: calc(48px + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: 24px !important;
    }
    .fancybox__slide.has-iframe .f-html {
        max-height: calc(100dvh - 96px - env(safe-area-inset-top, 0px)) !important;
    }
    /* 콘텐츠 카드(cp 그룹) 영상 팝업 좌우 화살표 — 모바일에선 숨김(스와이프로 이동) */
    .f-button.is-arrow {
        display: none !important;
    }
}

/* 미디어(코드플레이) 캡션 — 영상 하단 고정. :after = ⌄ 토글 버튼, .close 클래스로 접기(JS는 footer) */
.f-caption {
    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 405px !important;
    word-break: keep-all;
    padding: 20px !important;
    background-color: #000 !important;
    transform: translateX(-50%) !important;
    overflow: visible !important;
}
.f-caption:after {
    content: "";
    position: absolute !important;
    top: -30px !important;
    left: 50% !important;
    width: 60px !important;
    height: 30px !important;
    margin-left: -30px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%233aff00' d='M241 337c-9.4 9.4-24.6 9.4-33.9 0L47 177c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l143 143L367 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L241 337z'/%3E%3C/svg%3E");
    background-color: #000 !important;
    background-repeat: no-repeat !important;
    background-position: 50% 50% !important;
    background-size: auto 24px !important;
    border-radius: 5px 5px 0 0 !important;
    cursor: pointer !important;
}
.f-caption.close:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%233aff00' d='M207 143c9.4-9.4 24.6-9.4 33.9 0L401 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-143-143L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L207 143z'/%3E%3C/svg%3E");
}
/* 닫힘 시 본문 숨김 → 검정 바 최소화 + ⌃ 버튼만 노출 */
.f-caption.close {
    padding: 0 !important;
    background-color: transparent !important;
}
.f-caption.close strong,
.f-caption.close p {
    display: none !important;
}
.f-caption strong {
    font-size: 16px !important;
    color: #fff !important;
    font-weight: 600 !important;
    display: block !important;
}
.f-caption p {
    font-size: 14px !important;
    color: #ccc !important;
    font-weight: 400 !important;
    margin-top: 10px !important;
}

/* 사이트 보호 — 텍스트 선택(드래그) 차단. 입력 필드는 예외(검색·구독 폼 입력/선택 허용) */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none; /* 모바일 길게 눌러 메뉴 차단 */
}
input, textarea, select, [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
