@charset "UTF-8";

/* ============================================================
   연세강남그랜드치과 — 메인 스타일
   본문은 전부 실제 텍스트이므로, 읽기 편한 타이포그래피를 우선합니다.
   ============================================================ */

:root {
	--ygg-navy: #10284a;
	--ygg-navy-dark: #0a1b33;
	--ygg-blue: #1f5fa9;
	--ygg-blue-soft: #eaf1fa;
	--ygg-point: #0f9d8f;
	--ygg-text: #23282d;
	--ygg-muted: #5c6773;
	--ygg-line: #e2e6eb;
	--ygg-bg-alt: #f6f8fa;
	--ygg-white: #fff;
	--ygg-radius: 10px;
	--ygg-shadow: 0 2px 12px rgba(16, 40, 74, .08);
	--ygg-wrap: 1180px;
	--ygg-header-h: 72px;
}

/* ---------- 초기화 ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ygg-header-h) + 16px);
}

body {
	margin: 0;
	font-family: "Noto Sans KR", "Apple SD Gothic Neo", "맑은 고딕", "Malgun Gothic", sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: var(--ygg-text);
	background: var(--ygg-white);
	word-break: keep-all;
	overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--ygg-blue);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

h1, h2, h3, h4 {
	line-height: 1.4;
	color: var(--ygg-navy);
	margin: 0 0 .6em;
	font-weight: 700;
	letter-spacing: -.02em;
}

p, ul, ol, dl, table, figure {
	margin: 0 0 1.2em;
}

ul, ol {
	padding-left: 1.3em;
}

li {
	margin-bottom: .4em;
}

button {
	font: inherit;
	cursor: pointer;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

:focus-visible {
	outline: 3px solid var(--ygg-point);
	outline-offset: 2px;
}

.ygg-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 12px 20px;
	background: var(--ygg-navy);
	color: #fff;
}

.ygg-skip:focus {
	left: 0;
}

.ygg-wrap {
	width: 100%;
	max-width: var(--ygg-wrap);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- 버튼 ---------- */

.ygg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px;
	border: 1px solid transparent;
	border-radius: var(--ygg-radius);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.ygg-btn:hover,
.ygg-btn:focus {
	text-decoration: none;
}

.ygg-btn--primary {
	background: var(--ygg-navy);
	color: #fff;
}

.ygg-btn--primary:hover,
.ygg-btn--primary:focus {
	background: var(--ygg-navy-dark);
	color: #fff;
}

.ygg-btn--line {
	background: #03c75a;
	color: #fff;
}

.ygg-btn--line:hover,
.ygg-btn--line:focus {
	background: #02a94c;
	color: #fff;
}

.ygg-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, .7);
	color: #fff;
}

.ygg-btn--ghost:hover,
.ygg-btn--ghost:focus {
	background: rgba(255, 255, 255, .14);
	color: #fff;
}

.ygg-btn--sm {
	padding: 9px 16px;
	font-size: 14px;
	background: var(--ygg-blue);
	color: #fff;
}

.ygg-btn--sm:hover,
.ygg-btn--sm:focus {
	background: var(--ygg-navy);
	color: #fff;
}

.ygg-btn--block {
	display: flex;
	width: 100%;
}

/* ---------- 머리말 ---------- */

.ygg-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--ygg-line);
	backdrop-filter: saturate(160%) blur(6px);
}

.ygg-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--ygg-header-h);
}

.ygg-brand__text {
	display: block;
	color: var(--ygg-navy);
	text-decoration: none;
}

.ygg-brand__name {
	display: block;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.03em;
}

.ygg-brand__en {
	display: block;
	font-size: 10px;
	letter-spacing: .08em;
	color: var(--ygg-muted);
	text-transform: uppercase;
}

.ygg-nav {
	flex: 1 1 auto;
}

.ygg-nav__list,
.ygg-nav__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ygg-nav__list {
	display: flex;
	gap: 4px;
	justify-content: center;
}

.ygg-nav__list > li {
	position: relative;
	margin: 0;
}

.ygg-nav__list > li > a {
	display: block;
	padding: 24px 14px;
	font-weight: 700;
	color: var(--ygg-navy);
	white-space: nowrap;
}

.ygg-nav__list > li > a:hover,
.ygg-nav__list > li.current-menu-item > a,
.ygg-nav__list > li.current-menu-parent > a,
.ygg-nav__list > li.current-page-ancestor > a {
	color: var(--ygg-blue);
	text-decoration: none;
}

.ygg-nav__list .sub-menu {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	min-width: 200px;
	padding: 8px 0;
	background: #fff;
	border: 1px solid var(--ygg-line);
	border-radius: var(--ygg-radius);
	box-shadow: var(--ygg-shadow);
	opacity: 0;
	visibility: hidden;
	transition: opacity .12s ease;
}

.ygg-nav__list > li:hover .sub-menu,
.ygg-nav__list > li:focus-within .sub-menu {
	opacity: 1;
	visibility: visible;
}

.ygg-nav__list .sub-menu a {
	display: block;
	padding: 9px 18px;
	color: var(--ygg-text);
	font-size: 15px;
}

.ygg-nav__list .sub-menu a:hover,
.ygg-nav__list .sub-menu a:focus {
	background: var(--ygg-blue-soft);
	color: var(--ygg-navy);
	text-decoration: none;
}

.ygg-nav__empty {
	margin: 0;
	font-size: 13px;
	color: var(--ygg-muted);
}

.ygg-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ygg-header__tel {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	color: var(--ygg-navy);
	text-decoration: none;
}

.ygg-header__tel .ygg-tel__label {
	font-size: 11px;
	color: var(--ygg-muted);
}

.ygg-header__tel .ygg-tel__number {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -.02em;
}

.ygg-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--ygg-line);
	border-radius: 8px;
	position: relative;
}

.ygg-toggle__bar,
.ygg-toggle__bar::before,
.ygg-toggle__bar::after {
	position: absolute;
	left: 50%;
	width: 20px;
	height: 2px;
	background: var(--ygg-navy);
	transform: translateX(-50%);
	transition: transform .15s ease, opacity .15s ease;
}

.ygg-toggle__bar {
	top: 50%;
	margin-top: -1px;
}

.ygg-toggle__bar::before,
.ygg-toggle__bar::after {
	content: "";
	left: 0;
	transform: none;
}

.ygg-toggle__bar::before {
	top: -7px;
}

.ygg-toggle__bar::after {
	top: 7px;
}

.ygg-toggle[aria-expanded="true"] .ygg-toggle__bar {
	background: transparent;
}

.ygg-toggle[aria-expanded="true"] .ygg-toggle__bar::before {
	transform: translateY(7px) rotate(45deg);
}

.ygg-toggle[aria-expanded="true"] .ygg-toggle__bar::after {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 첫 화면 ---------- */

.ygg-visual {
	padding: 88px 0 96px;
	background: linear-gradient(160deg, var(--ygg-navy) 0%, var(--ygg-navy-dark) 60%, #061224 100%);
	color: #fff;
}

/* 배경 영상 — 영상이 없으면 위 그라데이션이 그대로 보입니다. */

.ygg-visual--video {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	/*
	 * 상단 고정 헤더를 뺀 나머지를 꽉 채웁니다.
	 * svh 는 모바일에서 주소창이 접히며 높이가 튀는 것을 막아 주고,
	 * 지원하지 않는 브라우저는 바로 위 vh 값을 씁니다.
	 */
	min-height: calc(100vh - var(--ygg-header-h));
	min-height: calc(100svh - var(--ygg-header-h));
	padding: 72px 0;
	background-color: var(--ygg-navy-dark);
}

.ygg-visual__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}

.ygg-visual__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 포스터가 로드되기 전 잠깐 보이는 바탕 */
	background: var(--ygg-navy-dark) center / cover no-repeat;
	pointer-events: none;
}

/*
 * 문구 가독성용 딤 처리. 왼쪽을 더 어둡게 깔아 글자가 얹히는 쪽의
 * 대비를 확보하고, 아래쪽은 시술 부위가 강조되지 않도록 함께 눌러 줍니다.
 */
.ygg-visual__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(6, 18, 36, .88) 0%, rgba(6, 18, 36, .72) 42%, rgba(6, 18, 36, .34) 100%),
		linear-gradient(0deg, rgba(6, 18, 36, .72) 0%, rgba(6, 18, 36, 0) 45%);
}

.ygg-visual__inner {
	position: relative;
}

.ygg-visual--video .ygg-visual__title,
.ygg-visual--video .ygg-visual__desc {
	text-shadow: 0 1px 18px rgba(0, 0, 0, .45);
}

.ygg-visual__eyebrow {
	margin: 0 0 14px;
	font-size: 14px;
	letter-spacing: .04em;
	color: #9dc0e8;
}

.ygg-visual__title {
	margin: 0 0 20px;
	font-size: clamp(30px, 5vw, 48px);
	line-height: 1.3;
	color: #fff;
}

.ygg-visual__desc {
	max-width: 640px;
	margin: 0 0 32px;
	font-size: 17px;
	color: rgba(255, 255, 255, .88);
}

.ygg-visual__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ygg-visual__actions .ygg-tel {
	flex-direction: row;
	gap: 10px;
	background: #fff;
	color: var(--ygg-navy);
}

.ygg-visual__actions .ygg-tel__label {
	font-size: 14px;
	font-weight: 500;
}

.ygg-visual__actions .ygg-tel__number {
	font-size: 18px;
	font-weight: 700;
}

/* ---------- 섹션 ---------- */

.ygg-section {
	padding: 72px 0;
}

.ygg-section--alt {
	background: var(--ygg-bg-alt);
}

.ygg-section__title {
	margin: 0 0 12px;
	font-size: clamp(24px, 3.2vw, 32px);
}

.ygg-section__lead {
	margin: 0 0 36px;
	color: var(--ygg-muted);
}

.ygg-section__more {
	margin: 28px 0 0;
}

.ygg-section__more a {
	font-weight: 700;
}

.ygg-section__more a::after {
	content: " →";
}

.ygg-grid {
	display: grid;
	gap: 20px;
}

.ygg-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ygg-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ygg-feature,
.ygg-dept,
.ygg-doctor {
	padding: 26px;
	background: #fff;
	border: 1px solid var(--ygg-line);
	border-radius: var(--ygg-radius);
}

.ygg-feature h3,
.ygg-doctor h3 {
	margin: 0 0 10px;
	font-size: 19px;
}

.ygg-feature p,
.ygg-dept > p,
.ygg-doctor p:last-child {
	margin: 0;
	color: var(--ygg-muted);
	font-size: 15px;
}

.ygg-dept h3 {
	margin: 0 0 10px;
	font-size: 22px;
}

.ygg-dept__links {
	list-style: none;
	margin: 16px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--ygg-line);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
}

.ygg-dept__links li {
	margin: 0;
	font-size: 15px;
}

.ygg-doctor h3 span {
	display: inline-block;
	margin-left: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ygg-muted);
}

.ygg-doctor__spec {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ygg-blue);
}

.ygg-info-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
}

/* ---------- 페이지 상단 ---------- */

.ygg-hero {
	padding: 48px 0 40px;
	background: var(--ygg-blue-soft);
	border-bottom: 1px solid var(--ygg-line);
}

.ygg-hero__title {
	margin: 0;
	font-size: clamp(26px, 4vw, 38px);
}

.ygg-hero__sub {
	margin: 10px 0 0;
	color: var(--ygg-muted);
}

.ygg-hero__cat {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ygg-blue);
}

.ygg-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 14px 0 0;
	font-size: 14px;
	color: var(--ygg-muted);
}

.ygg-crumbs {
	margin-bottom: 14px;
	font-size: 13px;
	color: var(--ygg-muted);
}

.ygg-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ygg-crumbs li {
	margin: 0;
}

.ygg-crumbs li + li::before {
	content: "›";
	margin-right: 6px;
	color: #a9b3be;
}

.ygg-crumbs a {
	color: var(--ygg-muted);
}

/* ---------- 본문 레이아웃 ---------- */

.ygg-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 48px;
	padding-top: 56px;
	padding-bottom: 64px;
	align-items: start;
}

body.no-sidebar .ygg-layout,
.ygg-layout:has(> .ygg-article:only-child) {
	grid-template-columns: minmax(0, 1fr);
	max-width: 880px;
}

.ygg-article__thumb {
	margin: 0 0 32px;
}

.ygg-article__thumb img {
	width: 100%;
	border-radius: var(--ygg-radius);
}

/* ---------- 본문 타이포그래피 ---------- */

.ygg-prose h2 {
	margin: 2.2em 0 .7em;
	padding-bottom: .4em;
	font-size: 25px;
	border-bottom: 2px solid var(--ygg-navy);
}

.ygg-prose > h2:first-child {
	margin-top: 0;
}

.ygg-prose h3 {
	margin: 1.8em 0 .6em;
	font-size: 19px;
	color: var(--ygg-blue);
}

.ygg-prose p,
.ygg-prose li {
	font-size: 16.5px;
}

.ygg-prose ol,
.ygg-prose ul {
	padding-left: 1.4em;
}

.ygg-prose ol > li::marker,
.ygg-prose strong {
	color: var(--ygg-navy);
}

.ygg-prose strong {
	font-weight: 700;
}

.ygg-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.ygg-prose th,
.ygg-prose td {
	padding: 12px 14px;
	border: 1px solid var(--ygg-line);
	text-align: left;
	vertical-align: top;
}

.ygg-prose thead th {
	background: var(--ygg-navy);
	color: #fff;
	font-weight: 700;
}

.ygg-prose tbody th {
	background: var(--ygg-bg-alt);
	width: 26%;
	color: var(--ygg-navy);
}

.ygg-prose table:has(thead) {
	display: block;
	overflow-x: auto;
}

/* FAQ — 구조화 데이터(FAQPage)와 짝을 이루는 마크업 */

.ygg-faq {
	margin: 1.2em 0;
	padding: 0;
}

.ygg-faq dt {
	position: relative;
	margin-top: 18px;
	padding: 14px 16px 14px 44px;
	background: var(--ygg-blue-soft);
	border-radius: var(--ygg-radius) var(--ygg-radius) 0 0;
	font-weight: 700;
	color: var(--ygg-navy);
}

.ygg-faq dt::before {
	content: "Q";
	position: absolute;
	left: 16px;
	font-weight: 700;
	color: var(--ygg-blue);
}

.ygg-faq dd {
	position: relative;
	margin: 0;
	padding: 14px 16px 16px 44px;
	border: 1px solid var(--ygg-line);
	border-top: 0;
	border-radius: 0 0 var(--ygg-radius) var(--ygg-radius);
	color: var(--ygg-muted);
}

.ygg-faq dd::before {
	content: "A";
	position: absolute;
	left: 16px;
	font-weight: 700;
	color: var(--ygg-point);
}

/* ---------- 하위 페이지 링크 ---------- */

.ygg-subpages {
	margin-top: 48px;
	padding: 26px;
	background: var(--ygg-bg-alt);
	border-radius: var(--ygg-radius);
}

.ygg-subpages__title {
	margin: 0 0 16px;
	font-size: 18px;
}

.ygg-subpages ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.ygg-subpages li {
	margin: 0;
}

.ygg-subpages a {
	display: block;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--ygg-line);
	border-radius: var(--ygg-radius);
	text-decoration: none;
}

.ygg-subpages a:hover,
.ygg-subpages a:focus {
	border-color: var(--ygg-blue);
	text-decoration: none;
}

.ygg-subpages__name {
	display: block;
	font-weight: 700;
	color: var(--ygg-navy);
}

.ygg-subpages__desc {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	color: var(--ygg-muted);
}

/* ---------- 칼럼 카드 ---------- */

.ygg-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ygg-line);
	border-radius: var(--ygg-radius);
	overflow: hidden;
}

.ygg-card__thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.ygg-card__body {
	padding: 20px;
}

.ygg-card__cat {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ygg-blue);
}

.ygg-card__title {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.5;
}

.ygg-card__title a {
	color: var(--ygg-navy);
}

.ygg-card__excerpt {
	margin: 0 0 12px;
	font-size: 14.5px;
	color: var(--ygg-muted);
}

.ygg-card__meta {
	margin: 0;
	font-size: 13px;
	color: #8b959f;
}

.ygg-list {
	min-width: 0;
}

.ygg-empty {
	padding: 60px 20px;
	text-align: center;
	color: var(--ygg-muted);
	background: var(--ygg-bg-alt);
	border-radius: var(--ygg-radius);
}

.ygg-pagination {
	margin-top: 40px;
}

.ygg-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.ygg-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--ygg-line);
	border-radius: 8px;
	color: var(--ygg-text);
	text-decoration: none;
}

.ygg-pagination .page-numbers.current {
	background: var(--ygg-navy);
	border-color: var(--ygg-navy);
	color: #fff;
}

/* ---------- 칼럼 본문 부속 ---------- */

.ygg-article__foot {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--ygg-line);
}

.ygg-article__disclaimer {
	padding: 16px 18px;
	background: var(--ygg-bg-alt);
	border-radius: var(--ygg-radius);
	font-size: 14px;
	color: var(--ygg-muted);
}

.ygg-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.ygg-tags li {
	margin: 0;
}

.ygg-tags a {
	display: inline-block;
	padding: 5px 12px;
	background: var(--ygg-blue-soft);
	border-radius: 999px;
	font-size: 13px;
	text-decoration: none;
}

.ygg-related {
	margin-top: 56px;
}

.ygg-related__title {
	margin: 0 0 18px;
	font-size: 20px;
}

.ygg-card--mini .ygg-card__body {
	padding: 18px;
}

.ygg-adjacent {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--ygg-line);
	font-size: 14px;
}

/* ---------- 사이드바 ---------- */

.ygg-sidebar {
	position: sticky;
	top: calc(var(--ygg-header-h) + 20px);
}

.ygg-sidebar .widget {
	margin-bottom: 24px;
	padding: 22px;
	border: 1px solid var(--ygg-line);
	border-radius: var(--ygg-radius);
}

.widget__title {
	margin: 0 0 14px;
	font-size: 16px;
}

.ygg-catlist,
.ygg-catlist ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 15px;
}

.ygg-catlist li {
	margin: 0;
	border-bottom: 1px solid var(--ygg-line);
}

.ygg-catlist li:last-child {
	border-bottom: 0;
}

.ygg-catlist a {
	display: block;
	padding: 9px 0;
	color: var(--ygg-text);
	text-decoration: none;
}

.ygg-catlist a:hover,
.ygg-catlist a:focus {
	color: var(--ygg-blue);
}

.widget--contact .ygg-btn {
	margin-top: 14px;
	flex-direction: column;
	gap: 0;
}

.widget--contact .ygg-tel__label {
	font-size: 12px;
	font-weight: 500;
	opacity: .8;
}

/* ---------- 진료시간 / 오시는 길 ---------- */

.ygg-hours {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.ygg-hours th,
.ygg-hours td {
	padding: 9px 0;
	text-align: left;
	border-bottom: 1px solid var(--ygg-line);
	vertical-align: top;
}

.ygg-hours th {
	width: 38%;
	font-weight: 500;
	color: var(--ygg-muted);
}

.ygg-hours__note {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 7px;
	background: var(--ygg-point);
	border-radius: 999px;
	font-size: 11px;
	color: #fff;
}

.ygg-hours__off td {
	color: #b3272d;
}

.ygg-address {
	margin: 0 0 16px;
	font-style: normal;
	line-height: 1.7;
}

.ygg-address__zip {
	display: block;
	font-size: 13px;
	color: var(--ygg-muted);
}

.ygg-transport {
	margin: 0;
	font-size: 15px;
}

.ygg-transport dt {
	margin-top: 14px;
	font-weight: 700;
	color: var(--ygg-navy);
}

.ygg-transport dt:first-child {
	margin-top: 0;
}

.ygg-transport dd {
	margin: 4px 0 0;
}

.ygg-transport ul {
	list-style: none;
	margin: 0;
	padding: 0;
	color: var(--ygg-muted);
}

.ygg-transport li {
	margin: 0 0 2px;
}

/* ---------- 상담 유도 ---------- */

.ygg-cta {
	padding: 64px 0;
	background: var(--ygg-navy);
	color: #fff;
	text-align: center;
}

.ygg-cta__title {
	margin: 0 0 14px;
	font-size: clamp(22px, 3.2vw, 30px);
	color: #fff;
}

.ygg-cta__desc {
	max-width: 660px;
	margin: 0 auto 28px;
	color: rgba(255, 255, 255, .82);
}

.ygg-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.ygg-cta__actions .ygg-tel {
	flex-direction: row;
	gap: 10px;
	background: #fff;
	color: var(--ygg-navy);
}

.ygg-cta__actions .ygg-tel__label {
	font-size: 14px;
	font-weight: 500;
}

.ygg-cta__actions .ygg-tel__number {
	font-size: 18px;
	font-weight: 700;
}

.ygg-cta__hours {
	margin: 24px 0 0;
	font-size: 14px;
	color: rgba(255, 255, 255, .6);
}

/* ---------- 검색 폼 ---------- */

.ygg-search {
	display: flex;
	gap: 8px;
	max-width: 420px;
}

.ygg-search__field {
	flex: 1 1 auto;
	min-width: 0;
	padding: 11px 14px;
	border: 1px solid var(--ygg-line);
	border-radius: var(--ygg-radius);
	font: inherit;
	font-size: 15px;
}

.ygg-search__submit {
	padding: 11px 20px;
	background: var(--ygg-navy);
	border: 0;
	border-radius: var(--ygg-radius);
	color: #fff;
	font-weight: 700;
}

/* ---------- 꼬리말 ---------- */

.ygg-footer {
	margin-top: 0;
	background: #101820;
	color: rgba(255, 255, 255, .72);
	font-size: 15px;
}

.ygg-footer a {
	color: rgba(255, 255, 255, .86);
}

.ygg-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 48px;
}

.ygg-footer__name {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}

.ygg-footer__title {
	margin: 0 0 14px;
	font-size: 16px;
	color: #fff;
}

.ygg-footer__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.9;
}

.ygg-footer__meta li {
	margin: 0;
}

.ygg-footer .ygg-hours th,
.ygg-footer .ygg-hours td,
.ygg-footer .ygg-transport ul {
	border-color: rgba(255, 255, 255, .12);
	color: rgba(255, 255, 255, .72);
}

.ygg-footer .ygg-hours th {
	color: rgba(255, 255, 255, .5);
}

.ygg-footer .ygg-transport dt {
	color: #fff;
}

.ygg-footer .ygg-hours__off td {
	color: #ff9a9e;
}

.ygg-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding: 24px 0 32px;
	font-size: 13px;
}

.ygg-footer__nav,
.ygg-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.ygg-footer__nav li,
.ygg-footer__links li {
	margin: 0;
}

.ygg-footer__copy {
	margin: 0 0 8px;
	color: rgba(255, 255, 255, .5);
}

.ygg-footer__notice {
	margin: 0;
	color: rgba(255, 255, 255, .42);
	line-height: 1.7;
}

/* ---------- 모바일 하단 전화 버튼 ---------- */

.ygg-float-tel {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	padding: 15px 16px;
	background: var(--ygg-navy);
	color: #fff;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

/* ---------- 반응형 ---------- */

@media (max-width: 1024px) {
	.ygg-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.ygg-sidebar {
		position: static;
	}

	.ygg-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {
	.ygg-toggle {
		display: block;
	}

	.ygg-header__tel {
		display: none;
	}

	.ygg-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		max-height: 0;
		overflow: hidden;
		background: #fff;
		border-top: 1px solid var(--ygg-line);
		transition: max-height .2s ease;
	}

	.ygg-nav.is-open {
		max-height: 80vh;
		overflow-y: auto;
		box-shadow: var(--ygg-shadow);
	}

	.ygg-nav__list {
		display: block;
		padding: 8px 20px 20px;
	}

	.ygg-nav__list > li > a {
		padding: 14px 0;
		border-bottom: 1px solid var(--ygg-line);
	}

	.ygg-nav__list .sub-menu {
		position: static;
		transform: none;
		min-width: 0;
		opacity: 1;
		visibility: visible;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		padding: 4px 0 10px 12px;
	}

	.ygg-nav__list .sub-menu a {
		padding: 8px 0;
	}

	.ygg-grid--2,
	.ygg-grid--3,
	.ygg-info-grid,
	.ygg-subpages ul {
		grid-template-columns: minmax(0, 1fr);
	}

	.ygg-section {
		padding: 52px 0;
	}

	.ygg-visual {
		padding: 60px 0 68px;
	}

	.ygg-visual--video {
		/* 모바일은 상단 헤더가 스크롤로 사라지므로 화면 전체를 씁니다. */
		min-height: 100vh;
		min-height: 100svh;
		padding: 88px 0 96px;
	}

	.ygg-visual--video .ygg-visual__scrim {
		background:
			linear-gradient(180deg, rgba(6, 18, 36, .82) 0%, rgba(6, 18, 36, .62) 55%, rgba(6, 18, 36, .86) 100%);
	}

	.ygg-float-tel {
		display: block;
	}

	body {
		padding-bottom: 54px;
	}
}

@media (max-width: 600px) {
	body {
		font-size: 15.5px;
	}

	.ygg-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.ygg-prose h2 {
		font-size: 21px;
	}

	.ygg-prose table {
		display: block;
		overflow-x: auto;
	}

	.ygg-prose tbody th {
		width: auto;
	}

	.ygg-visual__actions,
	.ygg-cta__actions {
		flex-direction: column;
	}
}

@media print {
	.ygg-header,
	.ygg-cta,
	.ygg-float-tel,
	.ygg-sidebar,
	.ygg-adjacent {
		display: none !important;
	}
}

/* 모션을 줄이도록 설정한 사용자에게는 영상을 재생하지 않고 포스터만 보여줍니다. */

@media (prefers-reduced-motion: reduce) {
	.ygg-visual__video {
		display: none;
	}

	.ygg-visual__media {
		background: var(--ygg-navy-dark) center / cover no-repeat;
	}
}

/* 화면을 꽉 채운 첫 화면 아래에 내용이 더 있음을 알리는 표시 */

.ygg-visual__cue {
	position: absolute;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	color: rgba(255, 255, 255, .78);
	font-size: 12px;
	letter-spacing: .06em;
	text-decoration: none;
}

.ygg-visual__cue:hover,
.ygg-visual__cue:focus {
	color: #fff;
	text-decoration: none;
}

.ygg-visual__cue::after {
	content: "";
	width: 11px;
	height: 11px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	animation: ygg-cue 1.9s ease-in-out infinite;
}

@keyframes ygg-cue {
	0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .55; }
	50%      { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.ygg-visual__cue::after {
		animation: none;
	}
}

@media (max-height: 620px) {
	/* 노트북 가로 화면처럼 세로가 짧을 때는 표시를 숨겨 문구를 가리지 않게 합니다. */
	.ygg-visual__cue {
		display: none;
	}
}

/* ---------- 의료진 사진 ---------- */

/*
 * 원본이 흰 배경 컷아웃이라, 연한 그라데이션 원 위에 올려
 * 카드 안에서 떠 보이지 않게 잡아 줍니다.
 */
.ygg-portrait {
	margin: 0;
	flex: 0 0 auto;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(180deg, var(--ygg-blue-soft) 0%, #fff 78%);
	box-shadow: inset 0 0 0 1px var(--ygg-line);
}

.ygg-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 컷아웃 인물이라 얼굴이 원 안에서 위로 치우치지 않게 살짝 내려 잡습니다. */
	object-position: 50% 12%;
	mix-blend-mode: multiply;
}

.ygg-portrait--card {
	width: 116px;
	height: 116px;
}

.ygg-portrait--lg {
	width: 168px;
	height: 168px;
	float: right;
	margin: 0 0 18px 24px;
}

/* 의료진 카드 — 사진 왼쪽, 글 오른쪽 */

.ygg-doctor {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.ygg-doctor__body {
	min-width: 0;
}

.ygg-doctor__body > :last-child {
	margin-bottom: 0;
}

/* 본문(의료진 소개 페이지) 안에서 제목과 사진이 겹치지 않게 */

.ygg-prose .ygg-portrait--lg + p,
.ygg-prose .ygg-portrait--lg ~ ul {
	overflow: hidden;
}

.ygg-prose h2 {
	clear: both;
}

@media (max-width: 600px) {
	.ygg-doctor {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.ygg-portrait--lg {
		float: none;
		margin: 0 auto 18px;
		width: 148px;
		height: 148px;
	}
}
