/* 정성담은치과 */
:root {
  --mint: #3a9e8f;
  --mint-dark: #2a7a6e;
  --mint-soft: #e8f4f1;
  --accent: #e8a54b;
  --bg: #fafcfb;
  --text: #111817;
  --muted: #5d6b69;
  --line: #dfe7e5;
  --dark: #1b2524;
  --header-h: 80px;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea { font: inherit; }
section, .anchor { scroll-margin-top: var(--header-h); }
.blind { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pc_content { display: block; }
.mo_content { display: none !important; }
.inner { max-width: 1400px; width: 90%; margin: 0 auto; }

/* 섹션 타이틀 */
.main_tit { text-align: center; margin-bottom: 70px; }
.main_tit .eyebrow { font-family: var(--serif); font-size: 18px; letter-spacing: 3px; color: var(--mint); }
.main_tit h2 { font-size: 46px; font-weight: 300; line-height: 1.35; margin-top: 10px; letter-spacing: -1px; }
.main_tit h2 strong { font-weight: 700; }
.main_tit p { font-size: 19px; color: var(--muted); margin-top: 22px; }
.main_tit.left { text-align: left; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 30px; border-radius: 40px; font-size: 17px; font-weight: 600; transition: .3s; }
.btn_mint { background: var(--mint); color: #fff; }
.btn_mint:hover { background: var(--mint-dark); }
.btn_line { border: 1px solid rgba(255, 255, 255, .8); color: #fff; }
.btn_line:hover { background: #fff; color: var(--text); }

/* ---------- header ---------- */
#header { position: fixed; z-index: 1000; top: 0; left: 0; width: 100%; height: var(--header-h); border-bottom: 1px solid rgba(255, 255, 255, .35); transition: .3s; }
#header.active, #header.sub { background: rgba(255, 255, 255, .97); border-bottom-color: var(--line); box-shadow: 0 2px 16px rgba(0, 0, 0, .05); }
.header { display: flex; justify-content: space-between; align-items: center; max-width: 1800px; width: 95%; height: 100%; margin: 0 auto; }
.head { display: flex; align-items: center; gap: 28px; }
.head .logo img { width: 210px; }
.head .logo .logo_color { display: none; }
#header.active .logo .logo_white, #header.sub .logo .logo_white { display: none; }
#header.active .logo .logo_color, #header.sub .logo .logo_color { display: block; }
.head .tel { font-size: 15px; color: #fff; letter-spacing: 1px; }
.head .tel b { font-weight: 700; }
#nav ul { display: flex; align-items: center; }
#nav .de1 a { display: block; padding: 0 16px; line-height: var(--header-h); font-size: 17px; color: #fff; position: relative; transition: .3s; }
#nav .de1 a:hover { color: var(--mint); }
#nav .de1 a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; background: var(--mint); transform: scaleX(0); transition: .3s; }
#nav .de1 a:hover::after, #nav .de1.on a::after { transform: scaleX(1); }
#header.active #nav .de1 a, #header.sub #nav .de1 a, #header.active .head .tel, #header.sub .head .tel { color: var(--text); }
#header .booking { margin-left: 20px; height: 42px; padding: 0 22px; font-size: 15px; }
.m_icon_wrap { display: none; }
.menu_overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 998; display: none; }

/* ---------- main slide ---------- */
#main_slide { position: relative; height: 100vh; min-height: 680px; max-height: 1080px; overflow: hidden; background: #111; }
#main_slide .swiper { height: 100%; }
#main_slide .swiper-slide { position: relative; overflow: hidden; }
#main_slide picture img { width: 100%; height: 100%; object-fit: cover; }
#main_slide .swiper-slide-active picture img { animation: inOut 6s ease-out; }
@keyframes inOut { 0% { transform: scale(1.15); } 100% { transform: scale(1); } }
#main_slide .swiper-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 24, 22, .72) 0%, rgba(8, 24, 22, .38) 48%, rgba(8, 24, 22, 0) 75%); }
#main_slide .main_txt { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -46%); width: 90%; max-width: 1400px; color: #fff; }
#main_slide .badge { display: inline-block; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 30px; font-size: 16px; letter-spacing: .5px; }
#main_slide h2 { font-size: 64px; line-height: 1.3; font-weight: 300; margin: 26px 0 22px; letter-spacing: -1.5px; }
#main_slide h2 strong { font-weight: 700; }
#main_slide .main_txt p { font-size: 21px; max-width: 640px; opacity: .92; }
#main_slide .main_txt p strong { font-weight: 700; }
#main_slide .btns { display: flex; gap: 12px; margin-top: 44px; }
#main_slide .stats_bar { position: absolute; z-index: 5; left: 0; bottom: 0; width: 100%; background: rgba(8, 24, 22, .55); backdrop-filter: blur(4px); }
#main_slide .stats_bar ul { display: flex; max-width: 1400px; width: 90%; margin: 0 auto; }
#main_slide .stats_bar li { flex: 1; padding: 26px 0; color: #fff; text-align: center; border-right: 1px solid rgba(255, 255, 255, .2); }
#main_slide .stats_bar li:last-child { border-right: 0; }
#main_slide .stats_bar b { display: block; font-size: 24px; font-weight: 700; color: #bfe6de; }
#main_slide .stats_bar span { font-size: 15px; opacity: .85; }
#main_slide .ctrl { position: absolute; z-index: 6; right: 5%; bottom: 130px; display: flex; align-items: center; gap: 18px; color: #fff; }
#main_slide .swiper-pagination { position: static; width: auto; font-size: 16px; letter-spacing: 2px; }
#main_slide .ctrl button { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; color: #fff; }

/* ---------- banners (symbols) ---------- */
#banners { position: relative; }
#banners .swiper-slide { position: relative; overflow: hidden; height: 800px; }
#banners picture img { width: 100%; height: 100%; object-fit: cover; }
#banners .swiper-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .75) 38%, rgba(255, 255, 255, 0) 62%); }
#banners .swiper-slide.dark::after { background: linear-gradient(90deg, rgba(8, 24, 22, .82) 0%, rgba(8, 24, 22, .55) 42%, rgba(8, 24, 22, 0) 68%); }
#banners .swiper-slide.flat::after { display: none; }
.banners_txt { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translateY(-50%); margin-left: -700px; width: 600px; }
.banners_txt .num { font-family: var(--serif); font-size: 22px; color: var(--mint); letter-spacing: 2px; }
.banners_txt .sub { font-size: 21px; margin-top: 14px; color: var(--muted); }
.banners_txt h3 { font-size: 50px; font-weight: 300; line-height: 1.3; margin-top: 8px; letter-spacing: -1px; }
.banners_txt h3 strong { font-weight: 700; color: var(--mint-dark); }
.banners_txt p { font-size: 19px; margin-top: 26px; color: #34403e; }
.dark .banners_txt .sub, .dark .banners_txt p { color: rgba(255, 255, 255, .85); }
.dark .banners_txt h3 { color: #fff; }
.dark .banners_txt h3 strong { color: #bfe6de; }
.model_note { position: absolute; z-index: 3; right: 20px; bottom: 14px; font-size: 12px; color: #8a9391; }
.banners_thumb { position: absolute; top: 0; left: 50%; margin-left: 195px; z-index: 5; width: 505px; height: 100%; background: rgba(255, 255, 255, .82); display: flex; flex-direction: column; justify-content: center; padding: 0 40px; text-align: center; }
.banners_thumb .tit { font-family: var(--serif); font-size: 52px; line-height: 1.05; color: var(--mint-dark); }
.banners_thumb .tit_sub { font-size: 16px; color: var(--muted); margin-top: 16px; }
.banners_thumb ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 56px; }
.banners_thumb li { position: relative; cursor: pointer; }
.banners_thumb li img { aspect-ratio: 1; object-fit: cover; }
.banners_thumb li span { display: block; font-size: 14px; margin-top: 8px; color: var(--muted); }
.banners_thumb li::after { content: "+"; position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #fff; background: rgba(10, 40, 36, .45); opacity: 0; transition: .3s; }
.banners_thumb li:hover::after, .banners_thumb li.on::after { opacity: 1; }
.banners_thumb li.on span { color: var(--mint-dark); font-weight: 700; }
#banners .swiper-pagination { display: none; }

/* ---------- special ---------- */
#special { padding: 160px 0 190px; }
.special_items ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.special_items li { position: relative; overflow: hidden; aspect-ratio: 454 / 530; background: #222; }
.special_items li img { width: 100%; height: 100%; object-fit: cover; transition: 1s ease; }
.special_items li::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(8, 24, 22, .78) 100%); transition: .3s; }
.special_items li:hover img { transform: scale(1.12); }
.special_items li:hover::before { background: rgba(8, 24, 22, .72); }
.special_txt { position: absolute; z-index: 2; left: 40px; right: 40px; bottom: 44px; color: #fff; }
.special_txt .num { font-family: var(--serif); font-size: 20px; color: #bfe6de; }
.special_txt h3 { font-size: 27px; font-weight: 600; line-height: 1.4; margin-top: 6px; }
.special_txt p { font-size: 17px; line-height: 1.7; opacity: 0; max-height: 0; overflow: hidden; transition: .4s; }
.special_items li:hover .special_txt p { opacity: .92; max-height: 200px; margin-top: 14px; }

/* ---------- mid banner (3가지 약속) ---------- */
#mid_banner { position: relative; padding: 120px 0; color: #fff; overflow: hidden; }
#mid_banner picture, #mid_banner picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#mid_banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(20, 60, 55, .8); }
#mid_banner .inner { position: relative; z-index: 2; }
#mid_banner .main_tit { margin-bottom: 60px; }
#mid_banner .main_tit .eyebrow { color: #bfe6de; }
#mid_banner .main_tit p { color: rgba(255, 255, 255, .8); }
.promise_list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.promise_list li { padding: 44px 36px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); text-align: center; }
.promise_list .icon { width: 92px; height: 92px; margin: 0 auto 24px; padding: 18px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.promise_list .icon img { max-height: 100%; }
.promise_list .word { font-family: var(--serif); font-size: 26px; color: #bfe6de; }
.promise_list h3 { font-size: 24px; margin-top: 4px; }
.promise_list p { font-size: 17px; margin-top: 12px; opacity: .85; }

/* ---------- subject ---------- */
#subject { padding: 170px 0 150px; }
.subject_container { position: relative; }
.subject_top .swiper-slide { display: flex; background: #fff; }
.subject_img { width: 50%; position: relative; }
.subject_img img { width: 100%; aspect-ratio: 845 / 700; object-fit: cover; }
.subject_img .model_note { color: #fff; text-shadow: 0 0 4px rgba(0, 0, 0, .4); }
.subject_txt { width: 50%; padding: 40px 190px 40px 60px; }
.subject_txt .en { font-family: var(--serif); font-size: 58px; line-height: 1.1; color: var(--text); }
.subject_txt .en span { font-family: 'Pretendard', sans-serif; font-size: 17px; color: var(--mint); margin-left: 12px; vertical-align: middle; }
.subject_txt .desc { font-size: 18px; color: var(--muted); margin-top: 18px; }
.subject_txt ul { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 44px; }
.subject_txt li { font-size: 17px; padding-left: 14px; position: relative; }
.subject_txt li::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
#subject .swiper-pagination { position: absolute; left: auto; right: 150px; top: 20px; bottom: auto; width: 2px; height: 480px; transform: none !important; z-index: 5; display: flex; flex-direction: column; }
#subject .swiper-pagination-bullet { position: relative; flex: 1; width: 100%; height: auto; margin: 0 !important; border-radius: 0; opacity: 1; background: #c9d3d1; }
#subject .swiper-pagination-bullet-active { background: var(--mint); }
#subject .swiper-pagination-bullet p { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 130px; font-size: 17px; color: #777; }
#subject .swiper-pagination-bullet-active p { color: var(--mint-dark); font-weight: 700; }

/* ---------- doctor ---------- */
#doctor { padding: 150px 0 160px; background: linear-gradient(#fff 50%, var(--mint-soft) 50% 88%, #fff 88%); }
.doc_profile { display: flex; background: #fff; box-shadow: 0 20px 60px rgba(20, 60, 55, .08); }
.doc_img { width: 48%; flex: none; }
.doc_img img { width: 100%; height: 100%; object-fit: cover; }
.doc_info { flex: 1; padding: 70px 70px 60px; }
.doc_info .role { display: inline-block; padding: 7px 20px; border-radius: 30px; background: var(--mint); color: #fff; font-size: 16px; font-weight: 600; }
.doc_info .name { font-size: 42px; font-weight: 700; letter-spacing: 6px; margin-top: 16px; }
.doc_info .name small { font-size: 20px; font-weight: 400; letter-spacing: 0; margin-left: 6px; color: var(--muted); }
.doc_info .greeting { font-size: 18px; color: #34403e; padding: 26px 0; margin: 20px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc_info .greeting p + p { margin-top: 12px; }
.doc_career { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.doc_career dt { font-size: 16px; font-weight: 700; color: var(--mint-dark); margin-bottom: 8px; }
.doc_career dd { font-size: 16px; line-height: 1.9; color: #34403e; }

/* ---------- facility ---------- */
#facility { padding: 150px 0 160px; background: var(--bg); overflow: hidden; }
.sec_head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid #b9c4c2; padding-bottom: 22px; margin-bottom: 60px; }
.sec_head h2 { font-size: 40px; font-weight: 300; letter-spacing: -1px; }
.sec_head h2 strong { font-weight: 700; }
.sec_head p { font-size: 17px; color: var(--muted); margin-top: 6px; }
.more { font-size: 15px; letter-spacing: 1px; color: var(--muted); white-space: nowrap; }
.more:hover { color: var(--mint-dark); }
.facility_slide { overflow: visible; }
.facility_slide .swiper-slide { width: 760px; }
.facility_slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.facility_slide .cap { font-size: 17px; margin-top: 16px; }
.facility_slide .cap span { color: var(--mint); margin-right: 10px; font-size: 15px; }
.progress_wrap { display: flex; align-items: center; gap: 24px; margin-top: 50px; }
.progress_wrap .swiper-pagination { position: relative; flex: 1; height: 3px; background: #d6dedc; }
.progress_wrap .swiper-pagination-progressbar-fill { background: var(--mint); }
.progress_wrap button { width: 46px; height: 46px; border: 1px solid #b9c4c2; border-radius: 50%; }

/* ---------- faq ---------- */
#faq { padding: 150px 0; }
.faq_list { max-width: 1100px; margin: 0 auto; border-top: 2px solid var(--text); }
.faq_list details { border-bottom: 1px solid var(--line); }
.faq_list summary { list-style: none; cursor: pointer; display: flex; gap: 18px; align-items: center; padding: 28px 10px; font-size: 20px; font-weight: 600; }
.faq_list summary::-webkit-details-marker { display: none; }
.faq_list summary::before { content: "Q"; font-family: var(--serif); font-size: 28px; color: var(--mint); flex: none; }
.faq_list summary::after { content: "+"; margin-left: auto; font-size: 28px; font-weight: 300; color: var(--muted); transition: .3s; }
.faq_list details[open] summary::after { transform: rotate(45deg); }
.faq_list .answer { padding: 0 10px 30px 56px; font-size: 17px; color: #34403e; }
.faq_list .answer p + p { margin-top: 10px; }
.faq_list .extra { display: none; }
.faq_list.all .extra { display: block; }
.faq_more { display: block; margin: 50px auto 0; height: 54px; padding: 0 44px; border: 1px solid var(--text); border-radius: 30px; font-size: 16px; }
.faq_more:hover { background: var(--text); color: #fff; }

/* ---------- column (con6) ---------- */
#con6 { padding: 40px 0 150px; }
.column_cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.column_card .thumb { overflow: hidden; }
.column_card .thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: .6s; }
.column_card:hover .thumb img { transform: scale(1.06); }
.column_card .cate { display: inline-block; font-size: 13px; font-weight: 700; color: var(--mint); margin-top: 18px; letter-spacing: 1px; }
.column_card h3 { font-size: 18px; font-weight: 600; line-height: 1.5; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.column_card .date { font-size: 14px; color: #8a9391; margin-top: 10px; }

/* ---------- map ---------- */
#f_map { background: #f4f7f6; }
.f_map { display: flex; align-items: stretch; min-height: 750px; }
.map_txt { width: 50%; display: flex; justify-content: flex-end; padding: 90px 6% 90px 5%; }
.map_txt .box { width: 100%; max-width: 600px; }
.map_txt .eyebrow { font-family: var(--serif); font-size: 20px; letter-spacing: 3px; color: var(--mint); }
.map_txt .tel { display: block; font-size: 54px; font-weight: 300; letter-spacing: -1px; margin-top: 4px; }
.map_txt .tel b { font-weight: 700; }
.map_txt dl { margin-top: 36px; }
.map_txt dt { font-size: 20px; font-weight: 700; margin-top: 30px; }
.map_txt dd { font-size: 17px; color: #34403e; margin-top: 6px; }
.map_txt dd em { font-style: normal; font-weight: 700; color: var(--mint-dark); }
.hours_table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hours_table th, .hours_table td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 17px; text-align: left; }
.hours_table th { font-weight: 600; width: 42%; }
.hours_table tr.night td { color: var(--mint-dark); font-weight: 700; }
.hours_table tr.off td { color: #c0564b; }
.map_txt .notice { font-size: 15px; color: var(--muted); margin-top: 10px; }
.map_links { display: flex; gap: 8px; margin-top: 36px; }
.map_links a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; font-size: 16px; font-weight: 600; color: #fff; background: var(--dark); transition: .3s; }
.map_links a.naver { background: #03c75a; }
.map_links a:hover { opacity: .85; }
.map_wrap { width: 50%; }
.map_wrap .root_daum_roughmap { width: 100% !important; height: 100% !important; }
.map_wrap .root_daum_roughmap .wrap_map { height: calc(100% - 32px) !important; min-height: 560px; }
.map_wrap .root_daum_roughmap .cont { display: none !important; }

/* ---------- quick menu ---------- */
#lq { position: fixed; z-index: 900; left: 2%; bottom: 150px; }
#lq li { margin-bottom: 8px; }
#lq a { display: flex; align-items: center; gap: 10px; width: 160px; height: 48px; padding: 0 18px; border-radius: 30px; background: rgba(255, 255, 255, .95); border: 1px solid var(--mint); color: var(--mint-dark); font-size: 15px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); transition: .3s; }
#lq a:hover { background: var(--mint); color: #fff; }
#lq a i { width: 18px; text-align: center; }
#mq { position: fixed; z-index: 900; right: 2%; bottom: 150px; display: flex; flex-direction: column; gap: 8px; }
#mq a, #mq button { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mint); color: #fff; font-size: 20px; box-shadow: 4px 4px 12px rgba(0, 0, 0, .25); }
#mq .top_btn { background: var(--dark); }

/* ---------- fast (빠른상담) ---------- */
#fast { position: fixed; z-index: 950; left: 0; bottom: 0; width: 100%; background: var(--dark); color: #fff; }
#fast form { display: flex; align-items: center; gap: 12px; max-width: 1500px; width: 95%; margin: 0 auto; padding: 20px 0; }
#fast .tit { font-size: 22px; font-weight: 700; white-space: nowrap; margin-right: 10px; }
#fast .tit small { display: block; font-size: 13px; font-weight: 400; opacity: .7; }
#fast input[type=text], #fast input[type=tel] { height: 50px; padding: 0 16px; border: 0; background: #fff; color: var(--text); font-size: 16px; }
#fast input[name=name] { width: 170px; }
#fast input[name=phone] { width: 210px; }
#fast input[name=message] { flex: 1; min-width: 0; }
#fast .agree { display: flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
#fast .agree button { text-decoration: underline; font-size: 14px; }
#fast .submit { height: 50px; padding: 0 34px; background: var(--mint); color: #fff; font-size: 17px; font-weight: 700; white-space: nowrap; }
#fast .submit:hover { background: var(--mint-dark); }

/* ---------- footer ---------- */
#footer { background: #1f2726; padding-bottom: 90px; }
.f_wrap { display: flex; align-items: center; gap: 60px; max-width: 1440px; width: 90%; margin: 0 auto; padding: 80px 0; }
.f_logo { width: 300px; flex: none; }
.f_info ul { display: flex; flex-wrap: wrap; }
.f_info li { font-size: 16px; color: rgba(255, 255, 255, .7); line-height: 1.9; }
.f_info li + li::before { content: "|"; padding: 0 14px; font-size: 13px; opacity: .5; }
.f_info li.br { flex-basis: 100%; height: 0; }
.f_info li.br + li::before { display: none; }
.f_util { display: flex; gap: 20px; margin-top: 16px; }
.f_util button, .f_util a { font-size: 15px; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.copy { font-size: 14px; color: rgba(255, 255, 255, .45); margin-top: 14px; }

/* ---------- dialog (비급여 / 개인정보) ---------- */
dialog { width: min(760px, 92vw); max-height: 86vh; margin: auto; border: 0; padding: 0; color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog .dlg_head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; background: var(--dark); color: #fff; }
dialog .dlg_head h2 { font-size: 20px; }
dialog .dlg_head button { font-size: 26px; line-height: 1; color: #fff; }
dialog .dlg_body { padding: 26px 28px 32px; font-size: 16px; }
dialog .dlg_body p + p { margin-top: 10px; }
.fee_table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fee_table th, .fee_table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.fee_table thead th { background: var(--mint-soft); border-top: 2px solid var(--mint); }
.fee_table td.price { text-align: right; white-space: nowrap; font-weight: 600; }
.fee_note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* ---------- sub page (칼럼정보) ---------- */
.sub_visual { position: relative; height: 420px; margin-top: var(--header-h); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; }
.sub_visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sub_visual::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(20, 60, 55, .72); }
.sub_visual .txt { position: relative; z-index: 2; }
.sub_visual .eyebrow { font-family: var(--serif); font-size: 20px; letter-spacing: 3px; color: #bfe6de; }
.sub_visual h1 { font-size: 48px; font-weight: 700; margin-top: 6px; }
.sub_visual p { font-size: 18px; opacity: .85; margin-top: 10px; }
.sub_content { padding: 110px 0 170px; }
.cate_tab { display: flex; justify-content: center; gap: 8px; margin-bottom: 60px; }
.cate_tab a { height: 48px; padding: 0 30px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 30px; font-size: 16px; }
.cate_tab a.on, .cate_tab a:hover { background: var(--mint); border-color: var(--mint); color: #fff; }
.column_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px 28px; }
.pg_wrap { display: flex; justify-content: center; gap: 6px; margin-top: 80px; }
.pg_wrap a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: 15px; }
.pg_wrap a.on { background: var(--text); border-color: var(--text); color: #fff; }
.view_head { max-width: 900px; margin: 0 auto; text-align: center; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.view_head .cate { font-size: 15px; font-weight: 700; color: var(--mint); letter-spacing: 1px; }
.view_head h2 { font-size: 36px; line-height: 1.4; margin-top: 12px; }
.view_head .date { font-size: 15px; color: #8a9391; margin-top: 14px; }
.view_content { max-width: 900px; margin: 60px auto 0; font-size: 18px; line-height: 1.9; }
.view_content img { height: auto; margin: 0 auto; }
.view_content p { min-height: 1em; }
.view_nav { max-width: 900px; margin: 80px auto 0; border-top: 2px solid var(--text); }
.view_nav a { display: flex; gap: 30px; padding: 22px 10px; border-bottom: 1px solid var(--line); font-size: 17px; }
.view_nav a span { color: var(--mint-dark); font-weight: 700; flex: none; width: 60px; }
.view_btns { text-align: center; margin-top: 50px; }
.view_btns .btn { border: 1px solid var(--text); }
.view_btns .btn:hover { background: var(--text); color: #fff; }

/* ---------- responsive ---------- */
@media screen and (max-width: 1700px) {
  #lq { display: none; }
  .head .tel { display: none; }
  #nav .de1 a { padding: 0 12px; font-size: 16px; }
}
@media screen and (max-width: 1500px) {
  .subject_txt { padding-right: 170px; }
  .subject_txt .en { font-size: 48px; }
  #subject .swiper-pagination { right: 120px; height: 420px; }
  .banners_txt { margin-left: -46%; }
  .banners_thumb { left: auto; right: 0; margin: 0; width: 34%; }
  .column_cards { grid-template-columns: repeat(4, 1fr); }
  .column_cards .column_card:nth-child(5) { display: none; }
}
@media screen and (max-width: 1280px) {
  #nav .de1 a { padding: 0 8px; font-size: 15px; }
  .head .logo img { width: 180px; }
  #main_slide h2 { font-size: 52px; }
  .banners_txt h3 { font-size: 42px; }
  .doc_info { padding: 50px 44px; }
}
@media screen and (max-width: 1000px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; padding-bottom: 0; }
  .pc_content { display: none !important; }
  .mo_content { display: block !important; }
  .main_tit { margin-bottom: 44px; }
  .main_tit .eyebrow { font-size: 15px; }
  .main_tit h2 { font-size: 30px; }
  .main_tit p { font-size: 16px; margin-top: 14px; }

  .head .logo img { width: 150px; }
  #header .booking { display: none; }
  .m_icon_wrap { display: flex; align-items: center; gap: 6px; }
  .m_icon_wrap a, .hamburger { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
  #header.active .m_icon_wrap a, #header.active .hamburger, #header.sub .m_icon_wrap a, #header.sub .hamburger, body.nav_open .hamburger { color: var(--text); }
  body.nav_open #header { background: #fff; }
  body.nav_open .logo .logo_white { display: none; }
  body.nav_open .logo .logo_color { display: block; }
  #nav { position: fixed; top: var(--header-h); right: -100%; width: 80%; max-width: 360px; height: calc(100% - var(--header-h)); background: #fff; z-index: 999; transition: .35s; overflow-y: auto; }
  body.nav_open #nav { right: 0; }
  body.nav_open .menu_overlay { display: block; }
  #nav ul { display: block; }
  #nav .de1 a { line-height: 1.4; padding: 20px 26px; color: var(--text) !important; border-bottom: 1px solid var(--line); font-size: 17px; }
  #nav .de1 a::after { display: none; }

  #main_slide { height: 88vh; min-height: 560px; }
  #main_slide .swiper-slide::after { background: linear-gradient(180deg, rgba(8, 24, 22, .15) 0%, rgba(8, 24, 22, .75) 100%); }
  #main_slide .main_txt { top: auto; bottom: 150px; transform: translateX(-50%); }
  #main_slide h2 { font-size: 32px; margin: 16px 0 12px; }
  #main_slide .badge { font-size: 13px; padding: 6px 14px; }
  #main_slide .main_txt p { font-size: 15px; }
  #main_slide .btns { margin-top: 24px; }
  #main_slide .btn { height: 46px; padding: 0 20px; font-size: 15px; }
  #main_slide .stats_bar li { padding: 14px 0; }
  #main_slide .stats_bar b { font-size: 16px; }
  #main_slide .stats_bar span { font-size: 12px; }
  #main_slide .ctrl { right: 5%; bottom: auto; top: calc(var(--header-h) + 16px); }
  #main_slide .ctrl button { display: none; }

  #banners .swiper-slide { height: auto; }
  #banners picture img { aspect-ratio: 8 / 9; }
  #banners .swiper-slide::after, #banners .swiper-slide.dark::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .95) 72%); }
  #banners .swiper-slide.dark::after { background: linear-gradient(180deg, rgba(8, 24, 22, 0) 30%, rgba(8, 24, 22, .9) 72%); }
  #banners .swiper-slide.flat::after { display: block; }
  .banners_txt { left: 5%; right: 5%; top: auto; bottom: 34px; transform: none; margin: 0; width: auto; }
  .banners_txt .sub { font-size: 15px; }
  .banners_txt h3 { font-size: 28px; }
  .banners_txt p { font-size: 15px; margin-top: 12px; }
  .banners_thumb { display: none; }
  #banners .swiper-pagination { display: block; bottom: 10px; }
  #banners .swiper-pagination-bullet-active { background: var(--mint); }

  #special { padding: 90px 0 100px; }
  .special_items ul { grid-template-columns: 1fr 1fr; }
  .special_txt { left: 16px; right: 16px; bottom: 18px; }
  .special_txt h3 { font-size: 17px; }
  .special_txt .num { font-size: 15px; }
  .special_txt p { display: none; }

  #mid_banner { padding: 80px 0; }
  .promise_list { grid-template-columns: 1fr; gap: 14px; }
  .promise_list li { display: grid; grid-template-columns: 70px 1fr; gap: 0 18px; text-align: left; padding: 24px 20px; align-items: center; }
  .promise_list .icon { width: 70px; height: 70px; padding: 12px; margin: 0; grid-row: span 3; }
  .promise_list .word { font-size: 18px; }
  .promise_list h3 { font-size: 18px; margin: 0; }
  .promise_list p { font-size: 14px; margin-top: 4px; }

  #subject { padding: 90px 0; }
  .subject_top .swiper-slide { flex-direction: column; }
  .subject_img, .subject_txt { width: 100%; }
  .subject_txt { padding: 28px 4px 70px; }
  .subject_txt .en { font-size: 36px; }
  .subject_txt .en span { font-size: 14px; }
  .subject_txt .desc { font-size: 15px; }
  .subject_txt ul { margin-top: 24px; gap: 10px 14px; }
  .subject_txt li { font-size: 15px; }
  #subject .swiper-pagination { position: absolute; top: auto; bottom: 20px; right: 0; left: 0; width: 100%; height: auto; flex-direction: row; justify-content: center; gap: 6px; }
  #subject .swiper-pagination-bullet { flex: none; width: 8px; height: 8px; border-radius: 50%; }
  #subject .swiper-pagination-bullet p { display: none; }

  #doctor { padding: 90px 0; background: linear-gradient(#fff 30%, var(--mint-soft) 30%); }
  .doc_profile { flex-direction: column; }
  .doc_img { width: 100%; }
  .doc_info { padding: 34px 24px 40px; }
  .doc_info .name { font-size: 30px; }
  .doc_info .greeting { font-size: 15px; }
  .doc_career { grid-template-columns: 1fr; gap: 18px; }
  .doc_career dd { font-size: 15px; }

  #facility, #faq { padding: 90px 0; }
  .sec_head { margin-bottom: 36px; }
  .sec_head h2 { font-size: 26px; }
  .sec_head p { font-size: 14px; }
  .facility_slide .swiper-slide { width: 82%; }
  .facility_slide .cap { font-size: 15px; }
  .faq_list summary { font-size: 16px; padding: 20px 4px; gap: 12px; }
  .faq_list .answer { padding: 0 4px 22px 34px; font-size: 15px; }

  #con6 { padding: 20px 0 90px; }
  .column_cards { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .column_cards .column_card:nth-child(5) { display: block; }
  .column_card h3 { font-size: 15px; }

  .f_map { flex-direction: column; min-height: 0; }
  .map_txt, .map_wrap { width: 100%; }
  .map_txt { padding: 70px 5%; }
  .map_txt .tel { font-size: 38px; }
  .map_txt dt { font-size: 17px; }
  .map_txt dd, .hours_table th, .hours_table td { font-size: 15px; }
  .map_links a { font-size: 14px; height: 50px; }
  .map_wrap .root_daum_roughmap .wrap_map { min-height: 360px; }

  #mq { right: 4%; bottom: 20px; }
  #mq a, #mq button { width: 46px; height: 46px; font-size: 18px; }
  #mq .mo_content { display: flex !important; } /* .mo_content의 block !important가 아이콘 가운데 정렬을 깬다 */

  #fast { position: static; }
  #fast form { flex-direction: column; align-items: stretch; padding: 60px 0; gap: 10px; }
  #fast .tit { font-size: 24px; margin: 0 0 10px; }
  #fast input[type=text], #fast input[type=tel] { width: 100% !important; }
  #fast .agree { white-space: normal; }

  #footer { padding-bottom: 80px; }
  .f_wrap { flex-direction: column; align-items: flex-start; gap: 24px; padding: 50px 0; }
  .f_logo { width: 200px; }
  .f_info ul { display: block; }
  .f_info li { font-size: 13px; }
  .f_info li + li::before, .f_info li.br { display: none; }

  .sub_visual { height: 260px; }
  .sub_visual h1 { font-size: 30px; }
  .sub_visual p { font-size: 15px; }
  .sub_content { padding: 60px 0 100px; }
  .cate_tab { margin-bottom: 36px; }
  .cate_tab a { height: 40px; padding: 0 18px; font-size: 14px; }
  .column_grid { grid-template-columns: 1fr 1fr; gap: 32px 14px; }
  .view_head h2 { font-size: 24px; }
  .view_content { font-size: 16px; margin-top: 36px; }
  .view_nav a { font-size: 15px; gap: 14px; }
}

/* ==========================================================================
   Django 추가분 — 블로그·매거진 목록/상세, 페이지네이션, 빠른상담 메시지
   ========================================================================== */
#nav .de1.on a { color: var(--mint); }
#nav .de1.on a::after { transform: scaleX(1); }
.skip_link { position: absolute; left: -9999px; top: 0; z-index: 3000; padding: 12px 18px; background: var(--dark); color: #fff; font-size: 15px; }
.skip_link:focus { left: 16px; top: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fast_msg { width: 100%; font-size: 15px; color: #fff; background: rgba(0, 0, 0, .18); padding: 8px 14px; border-radius: 4px; }

/* sub visual: 상세 페이지는 h1 을 글 제목에 양보한다 */
.sub_visual .sub_tit { font-size: 48px; font-weight: 700; margin-top: 6px; opacity: 1; }

/* list (9개 = 3 x 3) */
.cate_tab { flex-wrap: wrap; }
/* 블로그 카테고리: 블로그/매거진 탭 아래 보조 탭 */
.cate_tab + .sub_tab { margin-top: -30px; }
.sub_tab { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-bottom: 56px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.sub_tab a { font-size: 16px; color: var(--muted); padding: 6px 0; position: relative; }
.sub_tab a:hover { color: var(--mint-dark); }
.sub_tab a.on { color: var(--mint-dark); font-weight: 700; }
.sub_tab a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mint); }
.column_grid { grid-template-columns: repeat(3, 1fr); gap: 60px 32px; }
.column_card { display: block; }
.column_card .thumb { background: var(--mint-soft); }
.column_card .thumb img { aspect-ratio: 1200 / 630; }
.column_card .thumb_empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 1200 / 630; font-family: var(--serif); font-size: 22px; letter-spacing: 2px; color: var(--mint-dark); }
.column_grid .column_card h3 { font-size: 20px; margin-top: 8px; }
.column_card .excerpt { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag_note { text-align: center; font-size: 16px; color: var(--muted); margin: -30px 0 40px; }
.tag_note a { color: var(--mint-dark); text-decoration: underline; }
.empty_list { text-align: center; font-size: 17px; color: var(--muted); padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* pagination (최대 5개 번호 + 이전/다음) */
.pg_wrap a:hover { border-color: var(--text); }
.pg_wrap .arrow { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pg_wrap .arrow.disabled { opacity: .35; }
.pg_wrap .arrow:first-child { margin-right: 8px; }
.pg_wrap .arrow:last-child { margin-left: 8px; }

/* detail */
.view_crumb { max-width: 900px; margin: 0 auto 28px; }
.view_crumb ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; color: #8a9391; }
.view_crumb li + li::before { content: "›"; margin-right: 8px; }
.view_crumb a:hover { color: var(--mint-dark); }
.view_head h1 { font-size: 36px; line-height: 1.4; margin-top: 12px; word-break: keep-all; }
.view_head .sep { margin: 0 8px; color: var(--line); }
.view_head .byline { font-size: 15px; color: var(--muted); margin-top: 6px; }
.view_hero { max-width: 900px; margin: 50px auto 0; }
.view_hero img { width: 100%; height: auto; }
.view_disclaimer { max-width: 900px; margin: 60px auto 0; padding: 22px 26px; background: var(--mint-soft); border-left: 3px solid var(--mint); font-size: 15px; line-height: 1.8; color: var(--muted); }
.view_tags { max-width: 900px; margin: 30px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.view_tags a, .view_tags span { font-size: 14px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); }
.view_tags a:hover { border-color: var(--mint); color: var(--mint-dark); }
.view_nav p { display: flex; gap: 30px; padding: 22px 10px; border-bottom: 1px solid var(--line); font-size: 17px; color: #8a9391; }
.view_nav p span { color: var(--mint-dark); font-weight: 700; flex: none; width: 60px; }
.view_nav a:hover { background: var(--bg); }
.view_btns .btn + .btn { margin-left: 8px; }

/* markdown 본문 (블로그) */
.view_content.md { font-size: 18px; line-height: 1.9; word-break: keep-all; }
.view_content.md > * + * { margin-top: 1.1em; }
.view_content.md h2 { font-size: 28px; line-height: 1.45; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.view_content.md h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.view_content.md h3 { font-size: 22px; line-height: 1.5; margin-top: 1.8em; color: var(--mint-dark); scroll-margin-top: calc(var(--header-h) + 20px); }
.view_content.md h4 { font-size: 19px; margin-top: 1.5em; }
.view_content.md p { min-height: 0; }
.view_content.md strong { font-weight: 700; color: var(--dark); }
.view_content.md a { color: var(--mint-dark); text-decoration: underline; text-underline-offset: 3px; }
.view_content.md ul, .view_content.md ol { padding-left: 1.4em; }
.view_content.md ul { list-style: disc; }
.view_content.md ol { list-style: decimal; }
.view_content.md li + li { margin-top: .4em; }
.view_content.md li::marker { color: var(--mint); }
.view_content.md blockquote { padding: 18px 24px; background: var(--bg); border-left: 3px solid var(--accent); color: var(--muted); }
.view_content.md table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
.view_content.md th, .view_content.md td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 110px; }
.view_content.md thead th { background: var(--mint-soft); color: var(--mint-dark); font-weight: 700; border-top: 2px solid var(--mint); }
.view_content.md hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.view_content.md img { max-width: 100%; }
.view_content img { max-width: 100%; }

@media screen and (max-width: 1280px) {
  .column_grid { gap: 48px 24px; }
  .column_grid .column_card h3 { font-size: 18px; }
}
@media screen and (max-width: 1000px) {
  .sub_visual .sub_tit { font-size: 30px; }
  .column_grid { grid-template-columns: 1fr 1fr; gap: 36px 14px; }
  .column_grid .column_card h3 { font-size: 16px; }
  .column_card .excerpt { display: none; }
  .tag_note { margin: -16px 0 28px; font-size: 14px; }
  .cate_tab { gap: 6px; }
  .cate_tab a { height: 36px; padding: 0 14px; }
  .cate_tab + .sub_tab { margin-top: -16px; }
  .sub_tab { gap: 2px 16px; margin-bottom: 32px; padding-bottom: 16px; }
  .sub_tab a { font-size: 14px; }
  .pg_wrap { margin-top: 50px; gap: 4px; }
  .pg_wrap a, .pg_wrap .arrow { width: 36px; height: 36px; font-size: 14px; }
  .pg_wrap .arrow:first-child { margin-right: 4px; }
  .pg_wrap .arrow:last-child { margin-left: 4px; }
  .view_head h1 { font-size: 24px; }
  .view_disclaimer { margin-top: 40px; padding: 16px 18px; font-size: 14px; }
  .view_nav p { font-size: 15px; gap: 14px; }
  .view_content.md { font-size: 16px; }
  .view_content.md h2 { font-size: 22px; }
  .view_content.md h3 { font-size: 18px; }
  .view_content.md table { font-size: 14px; display: block; overflow-x: auto; }
}
@media screen and (max-width: 560px) {
  .column_grid { grid-template-columns: 1fr; gap: 36px; }
  .column_grid .column_card h3 { font-size: 17px; }
  .column_card .excerpt { display: -webkit-box; font-size: 14px; }
}
