/*
 * 아롬동물암센터 — 사이트 공통.
 * 값은 옛 Elementor 화면에서 실제 적용되던 CSS 를 폭별(1440·900·390)로 재서 옮겼다.
 * 태블릿 경계 1024px, 폰 경계 767px.
 */

/* ------------------------------------------------------------------
   1. 글꼴 — Pretendard
   옛 사이트가 쓰던 TTF(v1.309)를 WOFF2 로만 바꾼 것(손실 없는 압축, 굵기당 2.6MB → 0.75MB).
   굵기 대응도 옛 설정 그대로: Regular 400 · Medium 500 · Bold 파일을 600 · Black 900.
   이 선언은 꼭 이 파일 안에 둔다 — 별도 CSS 로 빼서 먼저 실으면 몇몇 페이지에서 글자 테두리가
   미세하게 다르게 그려졌다(2026-11-13 픽셀 비교). 다시 만들기: 거래처 폴더 de-elementor-2611/fonts.
   ------------------------------------------------------------------ */
@font-face {
	font-family: 'Pretendard';
	font-style: normal;
	font-weight: 400;
	font-display: auto;
	src: url('../fonts/pretendard/Pretendard-Regular.woff2') format('woff2');
}
@font-face {
	font-family: 'Pretendard';
	font-style: normal;
	font-weight: 500;
	font-display: auto;
	src: url('../fonts/pretendard/Pretendard-Medium.woff2') format('woff2');
}
@font-face {
	font-family: 'Pretendard';
	font-style: normal;
	font-weight: 600;
	font-display: auto;
	src: url('../fonts/pretendard/Pretendard-Bold.woff2') format('woff2');
}
@font-face {
	font-family: 'Pretendard';
	font-style: normal;
	font-weight: 900;
	font-display: auto;
	src: url('../fonts/pretendard/Pretendard-Black.woff2') format('woff2');
}

/* ------------------------------------------------------------------
   2. 전역
   ------------------------------------------------------------------ */
:root {
	--arom-primary: #32597D;
	--arom-secondary: #F6D447;
	--arom-text: #2C2C2D;
}

html { scroll-behavior: smooth; }
* { word-break: keep-all; }
html, body { margin: 0; padding: 0; }

.mo-only { display: none; }
@media (max-width: 767px) {
	.mo-only { display: block; }
}

/* Lenis 부드러운 스크롤 */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ------------------------------------------------------------------
   3. 본문 틀
   .arom-sec  = 화면 폭 구역, .arom-sec__inner = 가운데 1140px 묶음,
   .arom-html = 병원이 직접 쓴 HTML 덩어리(pages/*.php).
   .arom-html 안의 기본값(링크 밑줄 없음, 이미지 모서리 0 등)은 옛 화면과 같게 둔다 —
   본문 HTML 의 <style> 이 이 값을 전제로 쓰여 있다.
   ------------------------------------------------------------------ */
.arom-sec {
	display: flex;
	flex-direction: column;
	position: relative;
	width: 100%;
	min-width: 0;
}
.arom-sec--pull { margin-top: -90px; }
.arom-sec__inner {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	width: 100%;
	height: 100%;
	max-width: min(100%, 1140px);
	margin-right: auto;
	margin-left: auto;
}
.arom-html {
	position: relative;
	min-width: 0;
	max-width: 100%;
}
@media (max-width: 1024px) {
	.arom-sec__inner { max-width: min(100%, 1024px); }
}
@media (max-width: 767px) {
	.arom-sec,
	.arom-sec__inner { flex-wrap: wrap; }
	.arom-sec__inner { max-width: min(100%, 767px); }
	.arom-sec--mpad { padding-right: 10px; padding-left: 10px; }
}

.arom-html *,
.arom-html ::after,
.arom-html ::before { box-sizing: border-box; }
.arom-html a { box-shadow: none; text-decoration: none; }
.arom-html hr { background-color: transparent; margin: 0; }
.arom-html img { border: none; border-radius: 0; box-shadow: none; height: auto; max-width: 100%; }
.arom-html embed,
.arom-html iframe,
.arom-html object,
.arom-html video { border: none; line-height: 1; margin: 0; max-width: 100%; width: 100%; }

/* ------------------------------------------------------------------
   4. 헤더
   ------------------------------------------------------------------ */
.arom-header {
	position: sticky;
	top: 0;
	z-index: 99;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding-top: 15px;
	background-color: rgba(17, 17, 17, 0.15);
	box-shadow: 0 1px 2px 0 rgba(118, 118, 118, 0.2);
	transition: background-color 0.5s ease;
}
.arom-header.is-scrolled { background-color: #FFFFFFF5; }

.arom-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 1300px;
}

.arom-header__logo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 30%;
	padding-bottom: 13px;
}
.arom-header__logo-link { display: inline-block; text-decoration: none; }
.arom-header__logo-img {
	display: inline-block;
	width: 222px;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}
.arom-header__logo-img--color,
.arom-header.is-scrolled .arom-header__logo-img--white { display: none; }
.arom-header.is-scrolled .arom-header__logo-img--color { display: inline-block; }

.arom-header__menu {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	position: relative;
	width: 70%;
}

/* 데스크톱 메뉴 줄 */
.arom-nav { display: flex; }
.arom-nav__list {
	display: flex;
	flex-wrap: wrap;
	position: relative;
	z-index: 2;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: normal;
}
.arom-nav__list > li { display: flex; position: relative; }
.arom-nav__list > li > a {
	display: flex;
	align-items: center;
	flex-grow: 1;
	position: relative;
	padding: 24px 20px;
	font-family: Pretendard, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
	color: #fff;
	white-space: nowrap;
	text-decoration: none;
	transition: 0.4s;
}
/* 하위 메뉴가 있는 항목은 옛 화면에서 화살표 자리(10px)만큼 넓었다. */
.arom-nav__list > li.menu-item-has-children > a { padding-right: 30px; }
.arom-nav__list > li > a::after {
	content: "";
	display: block;
	position: absolute;
	bottom: 0;
	left: 50%;
	z-index: 2;
	width: 50%;
	height: 3px;
	background-color: var(--arom-secondary);
	opacity: 0;
	transform: translateX(-50%);
	transition: 0.3s cubic-bezier(0.58, 0.3, 0.005, 1);
}
/* 강조: 마우스를 올린 항목, 하위 메뉴가 열려 있는 상위 항목(.is-open), 지금 페이지 */
.arom-nav__list > li > a:hover,
.arom-nav__list > li > a:focus,
.arom-nav__list > li.is-open > a,
.arom-nav__list > li:has(:focus-visible) > a,
html:not(.arom-js) .arom-nav__list > li:hover > a,
.arom-nav__list > li.current-menu-item > a { color: var(--arom-secondary); }
.arom-nav__list > li > a:hover::after,
.arom-nav__list > li > a:focus::after,
.arom-nav__list > li.is-open > a::after,
.arom-nav__list > li:has(:focus-visible) > a::after,
html:not(.arom-js) .arom-nav__list > li:hover > a::after,
.arom-nav__list > li.current-menu-item > a::after { opacity: 1; }
.arom-header.is-scrolled .arom-nav__list > li > a { color: #333; }

/* 하위 메뉴. 열고 닫는 시점은 site.js(옛 메뉴 스크립트와 같은 규칙): 올리고 0.25초 뒤 바로 열림,
   메뉴 밖으로 나가고 0.5초 뒤 0.2초에 걸쳐 닫힘. 키보드로 들어오면 바로 열린다. */
.arom-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 3;
	min-width: 10em;
	max-width: 1000px;
	margin: 0;
	padding: 0;
	list-style: none;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	font-size: 13px;
	transform: translateX(-50%);
	visibility: hidden;
	opacity: 0;
	/* jQuery fadeOut(200) 의 swing 곡선 */
	transition: opacity 0.2s cubic-bezier(0.37, 0, 0.63, 1), visibility 0s linear 0.2s;
}
.arom-nav__list > li.is-open > .sub-menu,
.arom-nav__list > li:has(:focus-visible) > .sub-menu,
html:not(.arom-js) .arom-nav__list > li:hover > .sub-menu {
	visibility: visible;
	opacity: 1;
	transition: none;
}
.arom-nav__list .sub-menu li { display: block; position: relative; }
.arom-nav__list .sub-menu a {
	display: flex;
	align-items: center;
	position: relative;
	padding: 13px 20px;
	border-left: 8px solid transparent;
	font-family: Pretendard, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 20px;
	color: #333;
	white-space: nowrap;
	text-decoration: none;
	transition: 0.4s;
}
.arom-nav__list .sub-menu li:first-child a { border-top-left-radius: 10px; border-top-right-radius: 10px; }
.arom-nav__list .sub-menu li:last-child a { border-bottom-right-radius: 10px; border-bottom-left-radius: 10px; }
.arom-nav__list .sub-menu a:hover,
.arom-nav__list .sub-menu a:focus,
.arom-nav__list .sub-menu .current-menu-item > a { color: #2F648C; background-color: #fff; }

/* 폰·태블릿: 햄버거 + 펼침 패널 */
.arom-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: auto;
	margin-left: auto;
	padding: 0.25em;
	border: 0;
	border-radius: 3px;
	background-color: rgba(0, 0, 0, 0.05);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: none;
	-webkit-appearance: none;
	appearance: none;
}
.arom-nav-toggle:hover,
.arom-nav-toggle:focus { background-color: rgba(0, 0, 0, 0.05); color: #2F648C; }
.arom-nav-toggle svg { width: 1em; height: 1em; fill: #fff; }
.arom-nav-toggle__close,
.arom-nav-toggle[aria-expanded="true"] .arom-nav-toggle__open { display: none; }
.arom-nav-toggle[aria-expanded="true"] .arom-nav-toggle__close { display: block; }
.arom-header.is-scrolled .arom-nav-toggle svg { fill: #000; }

.arom-mnav { display: none; }

@media (max-width: 1024px) {
	.arom-header__inner { width: 90%; max-width: none; }
	.arom-nav { display: none; }
	.arom-nav-toggle { display: flex; }

	/* 패널은 헤더 폭을 다 쓴다. 메뉴 칸(안쪽 폭 90% 의 70%)을 기준으로 역산한다. */
	.arom-mnav {
		display: block;
		position: absolute;
		top: 33px;
		right: calc(100% / 0.63 * -0.05);
		z-index: 9997;
		width: calc(100% / 0.63);
		max-height: 0;
		margin-top: 10px;
		overflow: hidden;
		background-color: #fff;
		border: 1px solid #ddd;
		border-radius: 10px;
		font-size: 13px;
		transform: scaleY(0);
		transform-origin: top;
		transition: max-height 0.3s, transform 0.3s;
	}
	.arom-mnav.is-open {
		max-height: calc(100vh - 76px);
		max-height: calc(100dvh - 76px);
		overflow-y: auto;
		transform: scaleY(1);
	}
	.arom-mnav__list,
	.arom-mnav__list .sub-menu { margin: 0; padding: 0; list-style: none; }
	.arom-mnav__list li { display: block; position: relative; }
	/* .arom-mnav 를 한 번 더 붙인 이유: 진료케이스 글의 추가 CSS(.single-medical_case a 색)보다 우선해야 한다. */
	.arom-mnav .arom-mnav__list a {
		display: flex;
		align-items: center;
		position: relative;
		padding: 10px 20px;
		font-family: Pretendard, sans-serif;
		font-size: 16px;
		font-weight: 500;
		line-height: 20px;
		color: #333;
		text-decoration: none;
		transition: 0.4s;
	}
	.arom-mnav__list .sub-menu {
		display: none;
		background-color: #fff;
		border: 1px solid #ddd;
		border-radius: 10px;
	}
	.arom-mnav__list li.is-open > .sub-menu { display: block; }
	.arom-mnav .arom-mnav__list .sub-menu a { border-left: 8px solid transparent; font-size: 15px; }
	.arom-mnav__list li:first-child > a { border-top-left-radius: 10px; border-top-right-radius: 10px; }
	.arom-mnav__list li:last-child > a { border-bottom-right-radius: 10px; border-bottom-left-radius: 10px; }
	.arom-mnav .arom-mnav__list a:hover,
	.arom-mnav .arom-mnav__list a:focus,
	.arom-mnav .arom-mnav__list li.is-open > a,
	.arom-mnav .arom-mnav__list .current-menu-item > a { color: #2F648C; background-color: #fff; }
}

@media (max-width: 767px) {
	.arom-header__inner { width: 95%; flex-wrap: wrap; }
	.arom-header__logo { width: 150px; }
	.arom-header__menu { width: 50%; }
	/* 메뉴 칸 = 안쪽 폭 95% 의 50% */
	.arom-mnav { right: calc(100% / 0.475 * -0.025); width: calc(100% / 0.475); }
	.arom-mnav .arom-mnav__list > li > a { font-size: 12px; }
}

/* ------------------------------------------------------------------
   5. 푸터
   ------------------------------------------------------------------ */
.arom-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 100%;
	padding: 70px 0;
	background-color: #FCFCFC;
}
.arom-footer__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
	max-width: 1300px;
	padding: 0 20px;
}
.arom-footer__info {
	display: flex;
	flex-grow: 1;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
	min-width: 0;
}
.arom-footer__logo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	width: 400px;
	min-width: 0;
}
.arom-footer__logo-box { max-width: 100%; text-align: center; }
.arom-footer__logo-img {
	display: inline-block;
	width: 200px;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}
.arom-footer__lines {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 10px 0;
	width: 100%;
	min-width: 0;
}
.arom-footer__line {
	max-width: 100%;
	margin: 0;
	font-family: Pretendard, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	color: #000;
	opacity: 0.6;
}
.arom-footer__side {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	align-items: flex-end;
	justify-content: flex-start;
	gap: 20px 0;
	width: 100%;
	min-width: 0;
}
.arom-footer__fee {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	width: 100%;
}
/* .arom-footer 를 한 번 더 붙인 이유: 진료케이스 글의 추가 CSS(.single-medical_case a 색)보다 우선해야 한다. */
.arom-footer .arom-footer__fee-btn {
	display: inline-block;
	padding: 12px 24px;
	background-color: transparent;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-family: Pretendard, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	color: rgba(0, 0, 0, 0.51);
	text-align: center;
	text-decoration: none;
	transition: all 0.3s;
}
/* 옛 화면은 마우스를 올려도 색이 그대로였다. */
.arom-footer .arom-footer__fee-btn:hover,
.arom-footer .arom-footer__fee-btn:focus { color: rgba(0, 0, 0, 0.51); }
.arom-footer__sns {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 0 10px;
	width: 100%;
}
.arom-footer__sns-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 45px;
	min-height: 45px;
	background-color: #ccc;
	border-radius: 50%;
}
.arom-footer__sns-box { max-width: 100%; text-align: center; }
.arom-footer__sns-link { display: inline-block; text-decoration: none; }
.arom-footer__sns-img {
	display: inline-block;
	width: 25px;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

@media (max-width: 1024px) {
	.arom-footer__inner,
	.arom-footer__info { flex-direction: column; align-items: center; justify-content: center; }
	.arom-footer__inner { max-width: none; }
	.arom-footer__logo { align-items: center; justify-content: center; }
	.arom-footer__lines { align-items: center; margin-top: 20px; }
	.arom-footer__side { align-items: center; justify-content: center; margin-top: 30px; }
	.arom-footer__fee { align-items: center; width: fit-content; }
	.arom-footer__sns { align-items: center; justify-content: center; width: fit-content; }
}
@media (max-width: 767px) {
	.arom-footer { padding: 40px 0; }
	.arom-footer__logo { width: 100%; }
	.arom-footer__logo-img { width: 150px; }
	.arom-footer__lines { margin-top: 24px; }
	.arom-footer__line { font-size: 13px; text-align: center; }
	.arom-footer__line--addr { line-height: 1.2em; }
	.arom-footer .arom-footer__fee-btn { padding: 10px 20px; font-size: 13px; }
	.arom-footer__sns-item { width: 38px; min-height: 38px; }
	.arom-footer__sns-img { width: 22px; }
}

/* ------------------------------------------------------------------
   6. 화면 오른쪽 아래 떠 있는 버튼(오시는 길·카톡·전화)
   ------------------------------------------------------------------ */
.custom-floating-menu {
	position: fixed;
	right: 40px;
	bottom: 40px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}
.custom-floating-btn {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	box-sizing: border-box;
	width: 170px;
	padding: 6px 6px 6px 20px;
	background-color: #fff;
	border-radius: 50px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.custom-text-group {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-right: 12px;
}
.custom-floating-text {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.5px;
	color: #333;
	white-space: nowrap;
	transition: color 0.2s ease;
}
.custom-floating-subtext {
	margin-top: 2px;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
	color: #777;
	white-space: nowrap;
	transition: color 0.2s ease;
}
.custom-floating-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	max-width: 100%;
	object-fit: cover;
}
.custom-floating-icon.naver-map-btn { padding: 6px; object-fit: contain; }

@media (hover: hover) {
	.custom-floating-btn:hover {
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
		transform: translateY(-4px);
	}
	.custom-floating-btn.btn-map:hover .custom-floating-text { color: #03C75A; }
	.custom-floating-btn.btn-kakao:hover .custom-floating-text { color: #3B1E1E; }
	.custom-floating-btn.btn-phone:hover .custom-floating-text { color: #007BFF; }
	.custom-floating-btn.btn-phone:hover .custom-floating-subtext { color: #007BFF; opacity: 0.8; }
}
@media (max-width: 768px) {
	.custom-floating-menu { right: 20px; bottom: 20px; gap: 10px; }
	.custom-floating-btn {
		justify-content: center;
		width: 50px;
		height: 50px;
		padding: 0;
		border-radius: 50%;
	}
	.custom-text-group { display: none; }
	.custom-floating-icon { width: 50px; height: 50px; }
	.hide-on-mobile { display: none !important; }
}
