/*
 * 손으로 쓴 공통 규칙 — 생성 CSS(header·footer·pages)가 담지 못한 상태값.
 * 옛 화면에서 Elementor JS·위젯 CSS 가 하던 일(헤더 고정, 메뉴 「지금 페이지」 색, 펼침 메뉴 열림)을 같은 값으로.
 */

/* 헤더 고정 — 옛 Elementor 「고정: 위」(데스크톱·태블릿·폰). 자리를 비우지 않고 붙어 다닌다. */
.rx-hd {
	position: sticky;
	top: 0;
	z-index: 99;
}

/* 메뉴 「지금 페이지」(옛 .elementor-item-active, 헤더 #94 · 푸터 #103 위젯 설정값). 마우스를 올려도 이 색이 남는다. */
.rx-hd .hd-7bc0211e__menu .is-active,
.rx-hd .hd-5ed16545__menu .is-active {
	color: #9e9e9e;
}

.rx-hd .hd-7bc0211e__menu-2 .is-active {
	color: #9e9e9e;
	background-color: #ffffff;
}

.rx-hd .hd-5ed16545__menu-2 .is-active {
	color: #4551bf;
	background-color: #ffffff;
}

.rx-ft .ft-13d6a80__menu .is-active {
	color: var(--e-global-color-secondary);
	fill: var(--e-global-color-secondary);
}

.rx-ft .ft-13d6a80__menu-2 .is-active {
	background-color: #3f444b;
	color: #ffffff;
}

/* 펼침 메뉴(1024px 이하) 열림 — 옛 .elementor-nav-menu--toggle .elementor-menu-toggle.elementor-active + .elementor-nav-menu__container */
:is(.hd-7bc0211e__toggle, .hd-5ed16545__toggle, .ft-13d6a80__toggle).is-open + :is(.hd-7bc0211e__container, .hd-5ed16545__container, .ft-13d6a80__container) {
	max-height: 100vh;
	overflow-y: auto;
	transform: scaleY(1);
}

:is(.hd-7bc0211e__toggle, .hd-5ed16545__toggle, .ft-13d6a80__toggle).is-open :is(.hd-7bc0211e__open, .hd-5ed16545__open, .ft-13d6a80__open) {
	display: none;
}

:is(.hd-7bc0211e__toggle, .hd-5ed16545__toggle, .ft-13d6a80__toggle).is-open :is(.hd-7bc0211e__close, .hd-5ed16545__close, .ft-13d6a80__close) {
	display: block;
}

/* 배경 슬라이드쇼 — 옛 Elementor 컨테이너 배경 「slideshow」(.elementor-background-slideshow). 동작은 carousel.js. */
.rx-bgss {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
	touch-action: pan-y;
}

.rx-bgss__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition-property: opacity;
	transition-duration: 0ms;
	pointer-events: none;
}

.rx-bgss__slide.is-active {
	opacity: 1;
}

.rx-bgss__img {
	width: 100%;
	height: 100%;
	background-position: center center;
	background-size: cover;
}

/* 배경 영상: 재생이 시작될 때까지 감춘다(옛 Elementor .elementor-loading.elementor-invisible). 동작은 carousel.js. */
[data-rx-video] .is-loading {
	visibility: hidden;
}

/* 슬라이드 글 등장 효과(옛 Elementor .animated + fadeInUp, 1.25초). 동작은 carousel.js(contentAnim). */
.rx-animated {
	animation-duration: 1.25s;
}

.rx-fadeInUp {
	animation-name: rx-fadeInUp;
}

@keyframes rx-fadeInUp {
	from {
		opacity: 0;
		transform: translate3d(0, 100%, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/*
 * 대표 제목(h1)으로 바꾼 글 덩어리 — 원래 태그(p·div)와 같은 모양으로(SEO, 2026-11-14).
 * 크기·굵기·줄 높이·색은 물려받고 여백은 원래 태그 값. 세기 (0,1,1)이라 hello 리셋의 h1 규칙은 이기고
 * 생성 CSS 의 요소 클래스(.rx-p .x, 0,2,0)에는 진다 — 원래 덩어리에 걸리던 값이 그대로 걸린다.
 * 제품 상세 8장의 제품 이름(옛 글 상자 <p>), 구입처의 「리플렉스 온오프라인 구입처 안내」. 홈은 화면 읽기 전용 h1.
 */
h1.rx-h1 {
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	margin: 0;
	padding: 0;
	text-transform: inherit;
}

h1.rx-h1--p {
	margin-block-end: 0.9rem;
}
