@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap");

/* ==========================================================================
   RESET
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, a, em, img,
strong, ol, ul, li, form, label, table, caption, tbody, thead, tr, th, td,
article, aside, figure, figcaption, footer, header, nav, section {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	vertical-align: baseline;
}

article, aside, figure, figcaption, footer, header, nav, section { display: block; }
ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; height: auto; vertical-align: middle; }

:root {
	--font: "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, Roboto,
		"Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	--point: #dd1130;
	--text: #000;
	--text-sub: #4a4a4a;
	--line: #e6e6e6;
	--footer-bg: #eee;
	--accent: #8b5cf6;
	--accent-dark: #6d28d9;
	--accent-soft: #f5f3ff;
	--header-h: 80px;
	--container: 1140px;
	--section-pad: 84px;
}

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background-color: #fff;
	color: var(--text);
	font-family: var(--font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
em { font-style: italic; }

/* 스크린리더 전용 (검색엔진에는 읽히고 화면에는 안 보임) */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

button {
	font-family: inherit;
	cursor: pointer;
	background: none;
	border: 0;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.xet-container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 32px;
}

.xet-container-fluid {
	width: 100%;
	padding: 0 32px;
}

.layout__body { padding-top: var(--header-h); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.layout-header { position: relative; z-index: 100; }

.layout__header_fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--header-h);
	background-color: #fff;
	border-bottom: 1px solid #f0f0f0;
	transition: box-shadow 0.25s ease;
}

.layout__header_fixed.is-scrolled {
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.layout-header__container {
	display: flex;
	align-items: center;
	height: var(--header-h);
}

.item-logo {
	flex: 0 0 auto;
	font-size: 24px;
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1;
}

.item-logo .logo { display: inline-flex; align-items: baseline; gap: 6px; }
.item-logo .logo-mark { color: var(--point); }
.item-logo .logo-sub {
	font-size: 12px;
	font-weight: 500;
	color: #999;
	letter-spacing: 0.08em;
}

.item-gnb {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.gnb-ul { display: flex; align-items: center; gap: 36px; }

.gnb-ul a {
	display: inline-flex;
	align-items: center;
	height: var(--header-h);
	font-size: 15.75px;
	font-weight: 700;
	color: #222;
	transition: color 0.2s ease;
}

.gnb-ul a:hover,
.gnb-ul a.current { color: var(--point); }

.item-nav-toggle {
	flex: 0 0 auto;
	display: none;
	margin-left: auto;
}

.push-nav-toggle {
	position: relative;
	width: 34px;
	height: 34px;
	font-size: 0;
	color: transparent;
}

.push-nav-toggle span,
.push-nav-toggle span::before,
.push-nav-toggle span::after {
	position: absolute;
	left: 5px;
	width: 24px;
	height: 2px;
	background-color: #222;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.push-nav-toggle span { top: 16px; }
.push-nav-toggle span::before { content: ""; left: 0; top: -8px; }
.push-nav-toggle span::after { content: ""; left: 0; top: 8px; }

/* ==========================================================================
   PUSH NAV (mobile)
   ========================================================================== */
.push-nav {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 200;
	width: 280px;
	max-width: 82vw;
	height: 100%;
	background-color: #fff;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.push-nav.is-open { transform: translateX(0); }

.push-nav__top {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: var(--header-h);
	padding: 0 20px;
	border-bottom: 1px solid var(--line);
}

.push-nav__top .push-nav-toggle span { background-color: #222; }
.push-nav.is-open .push-nav__top .push-nav-toggle span { background-color: transparent; }
.push-nav.is-open .push-nav__top .push-nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.push-nav.is-open .push-nav__top .push-nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

.push-nav__body { flex: 1 1 auto; padding: 12px 0; overflow-y: auto; }

.xet-accordion-menu a {
	display: block;
	padding: 15px 24px;
	font-size: 15px;
	font-weight: 700;
	color: #222;
	border-bottom: 1px solid #f4f4f4;
}

.xet-accordion-menu li.current > a { color: var(--point); }

.push-nav__footer {
	padding: 20px 24px;
	font-size: 12px;
	color: #999;
	border-top: 1px solid var(--line);
}

.push-nav-dimmer {
	position: fixed;
	inset: 0;
	z-index: 150;
	background-color: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.push-nav-dimmer.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   MAIN SECTIONS
   ========================================================================== */
.main-sections { width: 100%; }

.main-blog,
.main-section { padding: var(--section-pad) 0; }

.section-header { margin-bottom: 44px; text-align: center; }

.section-header .h2 {
	font-size: 30px;
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1.3;
}

.section-header p {
	margin-top: 12px;
	font-size: 15px;
	color: #777;
}

/* --- 갤러리 --------------------------------------------------------------- */
.gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

.gallery .item { width: 100%; }

.gallery .thumbnail figure {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: #f4f4f4;
}

.gallery .thumbnail figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.gallery .item:hover .thumbnail figure img { transform: scale(1.06); }

.gallery .thumbnail figcaption {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.42);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gallery .item:hover .thumbnail figcaption { opacity: 1; }

.gallery .thumbnail figcaption .icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #fff;
	border-radius: 50%;
	color: #fff;
	font-size: 18px;
}

.gallery .thumbnail figure > a {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.gallery .item__subject {
	margin-top: 15px;
	text-align: center;
}

.gallery .item__subject .subject {
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--text);
	transition: color 0.2s ease;
}

.gallery .item:hover .item__subject .subject { color: var(--point); }

/* --- SEO 아티클 ----------------------------------------------------------- */
.seo-doc {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
	line-height: 1.7;
	color: #333;
}

.seo-doc .intro {
	background: var(--accent-soft);
	padding: 25px;
	border-left: 5px solid var(--accent);
	margin-bottom: 30px;
}

.seo-doc .intro .lead { font-size: 15px; }

.seo-doc h2 {
	margin-top: 40px;
	margin-bottom: 4px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--accent);
	color: var(--accent-dark);
	font-size: 22px;
	font-weight: 700;
}

.seo-doc h3 {
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 10px;
}

.seo-doc p { margin: 14px 0; }

.seo-doc .toc {
	background: #fafafa;
	border: 1px solid #ececec;
	padding: 22px 25px;
}

.seo-doc .toc ul { margin-top: 6px; }
.seo-doc .toc li { padding: 4px 0; }
.seo-doc .toc a { color: #444; border-bottom: 1px solid transparent; }
.seo-doc .toc a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }

.seo-table {
	width: 100%;
	border-collapse: collapse;
	margin: 25px 0;
}

.seo-table th,
.seo-table td {
	border: 1px solid #d1d5db;
	padding: 12px;
	text-align: left;
	font-size: 14px;
}

.seo-table th { background-color: var(--accent-soft); font-weight: 700; }

.seo-doc blockquote {
	background: #f3f4f6;
	border-left: 5px solid #6b7280;
	padding: 20px;
	margin: 30px 0;
}

.seo-doc section > ul { margin: 16px 0; }

.seo-doc section > ul li {
	position: relative;
	padding: 6px 0 6px 16px;
}

.seo-doc section > ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 16px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: var(--accent);
}

/* ==========================================================================
   BOARD
   ========================================================================== */
.board-wrap { padding: 60px 0 var(--section-pad); }

.board-head {
	padding-bottom: 26px;
	text-align: center;
}

.board-head .h2 {
	font-size: 28px;
	font-weight: 900;
	letter-spacing: -0.03em;
}

.board-list { width: 100%; font-size: 12px; }

.board-list th {
	padding: 14px 0 15px;
	border-bottom: 3px double #dbdbdb;
	font-size: 14px;
	font-weight: 700;
	color: var(--text-sub);
	text-align: center;
}

.board-list td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--line);
	font-size: 11px;
	color: var(--text-sub);
	text-align: center;
}

.board-list td.title { text-align: left; font-size: 13px; }
.board-list td.title a { color: #222; }
.board-list td.title a:hover { color: var(--point); text-decoration: underline; }
.board-list tr.current td { background-color: #fafafa; }
.board-list tr.current td.no { color: var(--point); font-weight: 700; }

.board-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.board-search { display: flex; gap: 6px; }

.board-search select,
.board-search input {
	height: 32px;
	padding: 0 10px;
	border: 1px solid #c1c1c1;
	background: #fff;
	font-family: inherit;
	font-size: 12px;
	color: #333;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	padding: 0 16px;
	border: 1px solid #c1c1c1;
	background-color: #fff;
	font-size: 12px;
	font-weight: 500;
	color: #333;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background-color: #f5f5f5; }

.btn--point {
	border-color: var(--point);
	background-color: var(--point);
	color: #fff;
}

.btn--point:hover { background-color: #b70d27; border-color: #b70d27; }

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 34px;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	padding: 0 8px;
	border: 1px solid #ddd;
	font-size: 12px;
	color: #666;
}

.pagination .current {
	border-color: var(--point);
	background-color: var(--point);
	color: #fff;
}

/* --- 게시글 상세 ----------------------------------------------------------- */
.read-header {
	padding: 24px 0 18px;
	border-bottom: 1px solid var(--line);
}

.read-header .h2 {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.read-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 12px;
	font-size: 12px;
	color: #888;
}

.read-body {
	padding: 34px 0 40px;
	border-bottom: 1px solid var(--line);
	text-align: center;
}

.read-body img { width: 100%; max-width: 720px; }

.read-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 16px 0 34px;
}

.vote { display: flex; gap: 8px; font-size: 12px; color: #666; }

.vote span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	border: 1px solid #ddd;
}

.read-nav {
	margin-bottom: 40px;
	border-top: 1px solid #ddd;
}

.read-nav a,
.read-nav .none {
	display: flex;
	gap: 14px;
	padding: 13px 4px;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
	color: #444;
}

.read-nav .dir { flex: 0 0 64px; color: #999; font-size: 12px; }
.read-nav a:hover .subject { color: var(--point); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.layout-footer {
	background-color: var(--footer-bg);
	color: var(--text);
	padding: var(--section-pad) 0;
}

.layout-footer__body {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

.layout-footer__body > div { flex: 1 1 240px; }

.layout-footer .h4 {
	margin-bottom: 16px;
	font-size: 18.62px;
	font-weight: 700;
	color: var(--text);
}

.layout-footer .company p,
.layout-footer .contact li {
	font-size: 13px;
	line-height: 1.9;
	color: #555;
}

.copyright {
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid #bac2c3;
	font-size: 14px;
	color: var(--text);
}

/* ==========================================================================
   LANDING TABS (시술별 상단 탭)
   ========================================================================== */
.landing-tabs {
	position: sticky;
	top: var(--header-h);
	z-index: 60;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.landing-tabs ul {
	display: flex;
	height: 50px;
}

.landing-tabs li { flex: 1 1 0; }

.landing-tabs a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 6px;
	background-color: #64548d;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	line-height: 1.3;
	transition: background-color 0.2s ease;
}

.landing-tabs li.current a { background-color: var(--point); }
.landing-tabs a:hover { background-color: #4f4174; }

/* ==========================================================================
   LANDING IMAGE (홍보 인포그래픽)
   ========================================================================== */
.landing-image {
	padding: 0 0 34px;
	border-bottom: 1px solid var(--line);
	text-align: center;
}

.landing-image img {
	width: 100%;
	max-width: 760px;
}

/* ==========================================================================
   BOTTOM FLOATING NAV (하단 고정 상담바)
   ========================================================================== */
body.has-landing-nav { padding-bottom: 70px; }
body.has-landing-nav #scrollTopBtn { bottom: 94px; }

.landing-bottom-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 95;
	height: 70px;
	background-color: #fff;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
}

.landing-bottom-nav ul {
	display: flex;
	height: 100%;
}

.landing-bottom-nav li { flex: 1 1 25%; }

.landing-bottom-nav a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 100%;
	font-size: 12px;
	font-weight: 500;
	color: #fff;
}

.landing-bottom-nav svg { display: block; }

.landing-bottom-nav .btn-call a { background-color: #615dd6; }
.landing-bottom-nav .btn-naver a { background-color: #03c75a; }
.landing-bottom-nav .btn-kakao a { background-color: #fee500; color: #3b1e1e; }
.landing-bottom-nav .btn-map a { background-color: #333; }

@media (max-width: 768px) {
	.landing-tabs { top: var(--header-h); }
	.landing-tabs a { font-size: 11.5px; padding: 0 3px; }
}

/* ==========================================================================
   SCROLL TOP
   ========================================================================== */
#scrollTopBtn {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 90;
	width: 46px;
	height: 46px;
	border: 1px solid #ddd;
	border-radius: 50%;
	background-color: #fff;
	color: #333;
	font-size: 17px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

#scrollTopBtn.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================================
   AOS (fade-up on scroll)
   ========================================================================== */
[data-aos] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s ease, transform 0.9s ease;
}

[data-aos="fade-in"] { transform: none; }
[data-aos].aos-animate { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	[data-aos] { opacity: 1; transform: none; transition: none; }
	* { scroll-behavior: auto !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
	.gallery { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
	:root { --section-pad: 56px; --header-h: 64px; }

	.item-gnb { display: none; }
	.item-nav-toggle { display: block; }

	.item-logo { font-size: 20px; }
	.item-logo .logo-sub { display: none; }

	.xet-container,
	.xet-container-fluid { padding: 0 20px; }

	.gallery { grid-template-columns: repeat(2, 1fr); gap: 18px; }
	.gallery .item__subject .subject { font-size: 13px; }

	.section-header .h2 { font-size: 23px; }

	.seo-doc { padding: 0; }
	.seo-doc h2 { font-size: 19px; margin-top: 32px; }
	.seo-doc .intro { padding: 20px; }

	.seo-table { display: block; overflow-x: auto; white-space: nowrap; }

	.board-list col.hide-m,
	.board-list th.hide-m,
	.board-list td.hide-m { display: none; }

	.read-header .h2 { font-size: 18px; }
}

@media (max-width: 480px) {
	.gallery { grid-template-columns: 1fr; }
}
