/*
 * 홈페이지 공통 스타일 (일반 병원 = 이 파일, 요양병원 = 이 파일 + nursing/css/nursing.css 로 색만 바꿈)
 *
 * - 색/간격은 :root 의 --s-* 변수로 정한다. 다른 병원 디자인으로 바꿀 때는 변수부터 바꾸면 된다.
 * - 연동 JS(js/board-list.js 등)가 만드는 HTML 은 hm-* 클래스를 쓴다 (hm-badge, hm-empty, hm-page, hm-faq-*, hm-tabs …).
 *   이 클래스 이름은 바꾸지 말고 모양만 바꾼다.
 */

/* ---------- 글꼴 (Pretendard, OFL 라이선스: fonts/pretendard/LICENSE.txt) ---------- */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("../fonts/pretendard/Pretendard-Regular.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url("../fonts/pretendard/Pretendard-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("../fonts/pretendard/Pretendard-Bold.woff2") format("woff2"); }

:root {
	--s-primary: #1F63D6;
	--s-primary-dark: #154AA8;
	--s-primary-soft: #E8F1FE;
	--s-accent: #19B5A5;
	--s-accent-soft: #E3F7F4;
	--s-ink: #0F2E5C;         /* 제목/진한 글자 */
	--s-text: #334155;
	--s-muted: #64748B;
	--s-line: #E2E8F0;
	--s-bg: #FFFFFF;
	--s-bg-alt: #F5F8FC;      /* 구역 배경 */
	--s-danger: #E5484D;
	--s-warn: #F59E0B;
	--s-ok: #16A34A;
	--s-footer-bg: #0F2E5C;
	--s-footer-text: #B8C7DE;
	--s-radius: 16px;
	--s-radius-sm: 10px;
	--s-shadow: 0 10px 30px rgba(15, 46, 92, .08);
	--s-wrap: 1200px;
	--s-font-size: 16px;
}

/* ---------- 기본 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
	font-size: var(--s-font-size); color: var(--s-text); line-height: 1.65; background: var(--s-bg);
	-webkit-font-smoothing: antialiased; word-break: keep-all;
}
[hidden] { display: none !important; }
section[id], div[id].s-section, [id].n-feature { scroll-margin-top: 92px; }   /* 고정 헤더에 제목이 가리지 않게 */
img { max-width: 100%; height: auto; }
a { color: var(--s-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--s-ink); line-height: 1.35; margin: 0; }
p { margin: 0; }
button { font: inherit; }
.hm-wrap, .s-wrap { max-width: var(--s-wrap); margin: 0 auto; padding: 0 20px; }
.s-skip { position: absolute; left: -9999px; top: 0; }
.s-skip:focus { left: 12px; top: 12px; z-index: 3000; padding: 8px 14px; background: var(--s-ink); color: #fff; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--s-accent); outline-offset: 2px; }

/* ---------- 상단 띠 ---------- */
.s-topbar { background: var(--s-ink); color: #DDE6F3; font-size: 13px; }
.s-topbar .s-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.s-topbar a { color: #fff; }
.s-topbar__info { display: flex; gap: 18px; flex-wrap: wrap; }
.s-topbar__info b { color: #fff; font-weight: 600; }

/* ---------- 헤더 / 메뉴 ---------- */
.s-header { position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--s-line); backdrop-filter: saturate(1.4) blur(6px); }
.s-header .s-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.s-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--s-ink); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.s-logo:hover { text-decoration: none; }
.s-logo__mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--s-primary); color: #fff; }
.s-logo__mark svg { width: 22px; height: 22px; }
.s-logo small { display: block; font-size: 11px; font-weight: 600; color: var(--s-muted); letter-spacing: .08em; }
.s-nav { display: flex; align-items: center; gap: 4px; }
.s-nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--s-ink); font-weight: 600; }
.s-nav a:hover { background: var(--s-primary-soft); text-decoration: none; }
.s-nav a.is-active { color: var(--s-primary); background: var(--s-primary-soft); }
.s-nav .s-nav__cta { margin-left: 8px; background: var(--s-primary); color: #fff; }
.s-nav .s-nav__cta:hover, .s-nav .s-nav__cta.is-active { background: var(--s-primary-dark); color: #fff; }
.s-menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--s-line); border-radius: 12px; background: #fff; cursor: pointer; color: var(--s-ink); }
.s-menu-btn svg { width: 22px; height: 22px; }

/* ---------- 메인 비주얼 ---------- */
.s-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--s-primary-soft) 0%, #fff 100%); }
.s-hero .s-wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
.s-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--s-primary); font-weight: 600; font-size: 14px; box-shadow: var(--s-shadow); }
.s-hero__title { margin-top: 18px; font-size: 46px; font-weight: 700; letter-spacing: -.03em; }
.s-hero__title em { font-style: normal; color: var(--s-primary); }
.s-hero__desc { margin-top: 18px; font-size: 18px; color: var(--s-muted); max-width: 520px; }
.s-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.s-hero__img { justify-self: end; width: 100%; max-width: 560px; }
.s-hero__phone { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--s-ink); }
.s-hero__phone b { font-size: 26px; letter-spacing: -.01em; }
.s-hero__phone span { font-size: 14px; color: var(--s-muted); }

/* ---------- 버튼 ---------- */
.s-btn, .hm-btn, button.hm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
	border: 1px solid var(--s-primary); border-radius: 12px; background: var(--s-primary); color: #fff;
	font-weight: 600; font-size: 16px; cursor: pointer; transition: background .15s, box-shadow .15s;
}
.s-btn:hover, .hm-btn:hover { background: var(--s-primary-dark); border-color: var(--s-primary-dark); text-decoration: none; color: #fff; }
.s-btn svg { width: 18px; height: 18px; }
.s-btn.is-line, .hm-btn.is-line { background: #fff; color: var(--s-primary); }
.s-btn.is-line:hover, .hm-btn.is-line:hover { background: var(--s-primary-soft); color: var(--s-primary); }
.s-btn.is-white { background: #fff; border-color: #fff; color: var(--s-ink); }
.s-btn.is-white:hover { background: var(--s-primary-soft); color: var(--s-ink); }
.s-btn.is-sm, .hm-btn.is-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.hm-btn:disabled { opacity: .55; cursor: default; }

/* ---------- 빠른 메뉴 ---------- */
.s-quick { position: relative; z-index: 2; margin-top: -36px; }
.s-quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--s-radius); box-shadow: var(--s-shadow); overflow: hidden; }
.s-quick__item { display: flex; align-items: center; gap: 14px; padding: 24px 26px; color: var(--s-ink); border-right: 1px solid var(--s-line); }
.s-quick__item:last-child { border-right: 0; }
.s-quick__item:hover { background: var(--s-bg-alt); text-decoration: none; }
.s-quick__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--s-primary-soft); color: var(--s-primary); }
.s-quick__icon svg { width: 26px; height: 26px; }
.s-quick__item b { display: block; font-size: 17px; }
.s-quick__item span { display: block; font-size: 13px; color: var(--s-muted); }

/* ---------- 구역 ---------- */
.s-section { padding: 88px 0; }
.s-section.is-alt { background: var(--s-bg-alt); }
.s-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.s-section__head.is-center { flex-direction: column; align-items: center; text-align: center; }
.s-eyebrow { display: block; font-size: 14px; font-weight: 700; color: var(--s-primary); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.s-section__title { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.s-section__desc { margin-top: 10px; color: var(--s-muted); font-size: 17px; }
.s-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--s-muted); white-space: nowrap; }
.s-more:hover { color: var(--s-primary); text-decoration: none; }

/* ---------- 카드 ---------- */
.s-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.s-cards.is-4 { grid-template-columns: repeat(4, 1fr); }
.s-cards.is-2 { grid-template-columns: repeat(2, 1fr); }
.s-card { background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 28px; transition: transform .15s, box-shadow .15s; }
a.s-card { display: block; color: inherit; }
a.s-card:hover { transform: translateY(-3px); box-shadow: var(--s-shadow); text-decoration: none; }
.s-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--s-primary-soft); color: var(--s-primary); margin-bottom: 18px; }
.s-card__icon svg { width: 28px; height: 28px; }
.s-card__icon.is-accent { background: var(--s-accent-soft); color: var(--s-accent); }
.s-card h3 { font-size: 20px; margin-bottom: 8px; }
.s-card p { color: var(--s-muted); font-size: 15px; }
.s-card__img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--s-radius-sm); margin-bottom: 18px; background: var(--s-bg-alt); }
.s-card__tag { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--s-primary); }

/* ---------- 최신 글 위젯 (탭) ---------- */
.s-grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.s-panel { background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 26px 28px; }
.s-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.s-panel__head h3 { font-size: 20px; }
.s-tabbar { display: flex; gap: 6px; }
.s-tabbar button { padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--s-muted); font-weight: 600; cursor: pointer; }
.s-tabbar button.is-active { background: var(--s-primary-soft); color: var(--s-primary); }
.s-posts { list-style: none; margin: 0; padding: 0; }
.s-posts li { border-bottom: 1px solid var(--s-line); }
.s-posts li:last-child { border-bottom: 0; }
.s-posts a { display: flex; align-items: center; gap: 10px; padding: 14px 2px; color: var(--s-text); }
.s-posts a:hover { color: var(--s-primary); text-decoration: none; }
.s-posts__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.s-posts__date { flex: none; font-size: 14px; color: var(--s-muted); }
.s-posts .hm-empty { padding: 32px 0; }

/* ---------- 정보 띠 (진료시간 / 연락처) ---------- */
.s-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.s-info__box { border-radius: var(--s-radius); padding: 28px; background: #fff; border: 1px solid var(--s-line); }
.s-info__box.is-primary { background: var(--s-primary); border-color: var(--s-primary); color: #E6EEFB; }
.s-info__box.is-primary h3 { color: #fff; }
.s-info__box h3 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin-bottom: 14px; }
.s-info__box h3 svg { width: 22px; height: 22px; }
.s-hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.s-hours th { text-align: left; font-weight: 600; padding: 6px 0; width: 38%; }
.s-hours td { padding: 6px 0; }
.s-hours tr + tr th, .s-hours tr + tr td { border-top: 1px solid rgba(255, 255, 255, .18); }
.s-info__box:not(.is-primary) .s-hours tr + tr th, .s-info__box:not(.is-primary) .s-hours tr + tr td { border-top-color: var(--s-line); }
.s-note { margin-top: 12px; font-size: 13px; opacity: .85; }
.s-big-phone { display: block; font-size: 32px; font-weight: 700; color: var(--s-ink); letter-spacing: -.01em; margin: 6px 0 4px; }
.s-big-phone:hover { text-decoration: none; color: var(--s-primary); }

/* ---------- 오시는 길 ---------- */
.s-map { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: stretch; }
.s-map__img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; border-radius: var(--s-radius); border: 1px solid var(--s-line); }
.s-dl { margin: 0; }
.s-dl div { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--s-line); }
.s-dl dt { flex: none; width: 84px; font-weight: 700; color: var(--s-ink); }
.s-dl dd { margin: 0; color: var(--s-text); }

/* ---------- 상담 유도 띠 ---------- */
.s-cta { border-radius: 24px; background: linear-gradient(120deg, var(--s-primary) 0%, var(--s-primary-dark) 100%); color: #E6EEFB; padding: 48px 52px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; overflow: hidden; }
.s-cta h2 { color: #fff; font-size: 30px; }
.s-cta p { margin-top: 8px; }
.s-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.s-cta__img { width: 220px; }

/* ---------- 배너 (관리자 > 배너 관리) ---------- */
.s-banners { position: relative; overflow: hidden; border-radius: var(--s-radius); background: var(--s-bg-alt); }
.s-banners[hidden] { display: none; }
.s-banners .hm-banner { display: none; }
.s-banners .hm-banner.is-on { display: block; }
.s-banners .hm-banner img { display: block; width: 100%; height: auto; }
.s-banners__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.s-banners__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .6); cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.s-banners__dots button.is-on { width: 26px; border-radius: 5px; background: #fff; }

/* ---------- 서브 페이지 머리 ---------- */
.s-subhead { background: linear-gradient(180deg, var(--s-primary-soft), #fff); padding: 56px 0 40px; border-bottom: 1px solid var(--s-line); }
.s-subhead h1, .s-subhead .s-subhead__title { font-size: 36px; font-weight: 700; letter-spacing: -.02em; }
.s-subhead p { margin-top: 8px; color: var(--s-muted); font-size: 17px; }
.s-crumb { display: flex; gap: 8px; font-size: 14px; color: var(--s-muted); margin-bottom: 10px; }
.s-crumb a { color: var(--s-muted); }
.s-crumb span + span:before { content: "›"; margin-right: 8px; }
.s-subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.s-subnav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--s-line); background: #fff; color: var(--s-text); font-weight: 600; font-size: 15px; }
.s-subnav a:hover { border-color: var(--s-primary); color: var(--s-primary); text-decoration: none; }
.s-subnav a.is-active { background: var(--s-primary); border-color: var(--s-primary); color: #fff; }

/* 본문 영역 (연동 페이지) */
.hm-main { padding: 48px 0 96px; min-height: 420px; }
.hm-main h1 { font-size: 28px; margin: 0 0 18px; }
.s-narrow { max-width: 760px; }

/* ---------- 연동 JS 가 만드는 요소 (hm-*) ---------- */
.hm-tabs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hm-tabs a { display: block; padding: 8px 16px; border: 1px solid var(--s-line); border-radius: 999px; color: var(--s-text); font-weight: 600; font-size: 15px; background: #fff; }
.hm-tabs a:hover { border-color: var(--s-primary); color: var(--s-primary); text-decoration: none; }
.hm-tabs a.is-active { background: var(--s-primary); border-color: var(--s-primary); color: #fff; }

.hm-search { display: flex; gap: 8px; margin: 0 0 18px; justify-content: flex-end; }
.hm-search input[type=text] { width: 280px; max-width: 100%; }

.hm-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--s-ink); font-size: 15px; }
.hm-table th { padding: 14px 10px; background: var(--s-bg-alt); color: var(--s-ink); font-weight: 600; border-bottom: 1px solid var(--s-line); }
.hm-table td { padding: 15px 10px; border-bottom: 1px solid var(--s-line); text-align: center; color: var(--s-muted); }
.hm-table td.hm-title { text-align: left; color: var(--s-text); }
.hm-table td.hm-title a { color: var(--s-text); font-weight: 500; }
.hm-table td.hm-title a:hover { color: var(--s-primary); }
.hm-table tr.is-notice td { background: #FBFCFE; }
.hm-table tr.is-notice td.hm-title a { font-weight: 700; color: var(--s-ink); }
.hm-table .s-col-no { width: 80px; }
.hm-table .s-col-sm { width: 110px; }
.hm-table .s-col-xs { width: 80px; }

.hm-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--s-bg-alt); color: var(--s-muted); border: 1px solid var(--s-line); vertical-align: 1px; }
.hm-badge.is-notice { background: var(--s-primary); border-color: var(--s-primary); color: #fff; }
.hm-badge.is-done { background: var(--s-accent-soft); border-color: transparent; color: var(--s-accent); }
.hm-badge.is-wait { background: #FFF4E0; border-color: transparent; color: #B76E00; }
.hm-empty { padding: 56px 0; text-align: center; color: var(--s-muted); }

.hm-pager { margin: 28px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.hm-page { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--s-line); border-radius: 10px; color: var(--s-text); font-weight: 600; }
.hm-page:hover { border-color: var(--s-primary); color: var(--s-primary); text-decoration: none; }
.hm-page.is-current { background: var(--s-primary); border-color: var(--s-primary); color: #fff; }

/* 게시글 상세 */
.hm-view-head { border-top: 2px solid var(--s-ink); border-bottom: 1px solid var(--s-line); padding: 26px 4px 20px; }
.hm-view-head h2 { margin: 0 0 10px; font-size: 26px; }
.hm-meta { color: var(--s-muted); font-size: 14px; }
.hm-meta span:empty { display: none; }
.hm-meta span + span:before { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 10px; background: var(--s-line); }
.hm-content { padding: 32px 4px; min-height: 180px; border-bottom: 1px solid var(--s-line); word-break: break-word; font-size: 17px; line-height: 1.8; }
.hm-content img { max-width: 100%; height: auto; border-radius: 8px; }
.hm-content table { border-collapse: collapse; max-width: 100%; }
.hm-content table td, .hm-content table th { border: 1px solid var(--s-line); padding: 8px 10px; }
.hm-content iframe { max-width: 100%; }
.hm-files { list-style: none; margin: 0; padding: 14px 18px; background: var(--s-bg-alt); border-bottom: 1px solid var(--s-line); }
.hm-files li { padding: 3px 0; }
.hm-postnav { margin: 24px 0 0; border-top: 1px solid var(--s-line); }
.hm-postnav > div { padding: 14px 6px; border-bottom: 1px solid var(--s-line); color: var(--s-muted); font-size: 15px; }
.hm-postnav > div:empty { display: none; }
.hm-postnav a { color: var(--s-text); font-weight: 500; }
.hm-postnav small { color: var(--s-muted); margin-left: 6px; }
#p-related-box { margin-top: 28px; padding: 22px 24px; border-radius: var(--s-radius); background: var(--s-bg-alt); }
#p-related-box h3 { font-size: 17px; margin-bottom: 8px; }
#p-related-box ul { list-style: none; margin: 0; padding: 0; }
#p-related-box li { padding: 6px 0; }
.hm-btns { margin-top: 30px; text-align: center; }

/* 입력 */
input[type=text], input[type=tel], input[type=search], textarea, select {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #CBD5E1; border-radius: 12px;
	font: inherit; color: var(--s-text); background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 180px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--s-primary); box-shadow: 0 0 0 4px var(--s-primary-soft); }
.hm-form .hm-row { margin-bottom: 18px; }
.hm-form label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--s-ink); }
.hm-form small { display: block; margin-top: 6px; color: var(--s-muted); font-size: 13px; }
.hm-form .hm-btns .hm-btn { min-width: 200px; }
.hm-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; } /* 스팸 방지 허니팟: 지우지 말 것 */
.hm-message { display: none; margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.hm-message.is-error { background: #FDECEC; color: #A12B2B; border: 1px solid #F5C2C0; }
.hm-message.is-success { background: #E9F7EF; color: #1F6B3C; border: 1px solid #B8DFC6; }
.s-form-card { background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 34px; }
.s-form-note { display: flex; gap: 10px; padding: 14px 18px; margin-bottom: 22px; border-radius: 12px; background: var(--s-bg-alt); color: var(--s-muted); font-size: 15px; }
.s-form-note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--s-primary); }

/* FAQ */
.hm-faq-item { border: 1px solid var(--s-line); border-radius: 14px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.hm-faq-q { position: relative; display: block; width: 100%; padding: 20px 56px 20px 60px; text-align: left; background: none; border: 0; cursor: pointer; font-weight: 600; font-size: 17px; color: var(--s-ink); }
.hm-faq-q:before { content: "Q"; position: absolute; left: 20px; top: 17px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--s-primary); color: #fff; font-size: 14px; font-weight: 700; }
.hm-faq-q:after { content: ""; position: absolute; right: 24px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--s-muted); border-bottom: 2px solid var(--s-muted); transform: rotate(45deg); transition: transform .15s; }
.hm-faq-item.is-open .hm-faq-q:after { transform: rotate(-135deg); top: 30px; }
.hm-faq-a { display: none; position: relative; padding: 4px 28px 22px 60px; color: var(--s-text); }
.hm-faq-a:before { content: "A"; position: absolute; left: 20px; top: 2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--s-accent-soft); color: var(--s-accent); font-size: 14px; font-weight: 700; }
.hm-faq-a > *:first-child { margin-top: 0; }
.hm-faq-a p { margin: 0 0 8px; }

/* 팝업 (LKM.popup.show) 은 css/popup.css */

/* ---------- 푸터 ---------- */
.s-footer, .hm-footer { background: var(--s-footer-bg); color: var(--s-footer-text); font-size: 14px; padding: 48px 0 36px; }
.s-footer a { color: #fff; }
.s-footer__top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.s-footer__logo { color: #fff; font-weight: 700; font-size: 20px; }
.s-footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.s-footer__info { margin-top: 22px; line-height: 1.9; }
.s-footer__info span + span:before { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 10px; background: rgba(255, 255, 255, .25); }
.s-footer__copy { margin-top: 14px; font-size: 13px; opacity: .75; }

/* 맨 위로 */
.s-top { position: fixed; right: 20px; bottom: 20px; z-index: 800; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--s-ink); color: #fff; box-shadow: var(--s-shadow); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s; }
.s-top.is-on { opacity: 1; visibility: visible; }
.s-top svg { width: 20px; height: 20px; }

/* 그리드 안의 긴 글(말줄임 제목 등)이 칸을 넓혀 화면이 옆으로 밀리지 않게 */
.s-grid-2 > *, .s-cards > *, .s-map > *, .s-info > *, .s-hero .s-wrap > *, .s-cta > *, .s-quick__item > span:last-child { min-width: 0; }
.s-grid-2 > .s-panel { align-self: stretch; display: flex; flex-direction: column; }
.s-grid-2 > .s-panel .s-posts { flex: 1; }
html, body { overflow-x: clip; }

/* 헤더: 스크롤하면 그림자 */
.s-header.is-scrolled { box-shadow: 0 6px 20px rgba(15, 23, 42, .07); }

/* 메인 비주얼: 은은한 장식 + 그림 둥실 */
.s-hero:before, .s-hero:after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.s-hero:before { width: 420px; height: 420px; right: -120px; top: -160px; background: radial-gradient(circle, var(--s-primary-soft) 0%, transparent 70%); }
.s-hero:after { width: 300px; height: 300px; left: -120px; bottom: -140px; background: radial-gradient(circle, var(--s-accent-soft) 0%, transparent 70%); }
.s-hero .s-wrap { position: relative; z-index: 1; }
@keyframes s-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.s-hero__img { animation: s-float 6s ease-in-out infinite; }

/* 스크롤하면 부드럽게 나타나기 (site-ui.js 가 .s-reveal 에 is-in 을 붙인다. JS 가 없으면 그냥 보임) */
.js .s-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .s-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.s-hero__img { animation: none; }
	.js .s-reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* 메뉴 맨 끝: 관리자 기능 소개(닥터데스크) 링크 */
.s-nav .s-nav__product { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; border: 1px dashed var(--s-line); color: var(--s-muted); font-size: 14px; }
.s-nav .s-nav__product:hover { border-color: #0E7490; color: #0E7490; background: #E8F5F8; }
.s-nav .s-nav__product svg { width: 16px; height: 16px; }

/* ---------- 반응형 ---------- */
@media (max-width: 1180px) {
	.s-nav a { padding: 10px 10px; font-size: 15px; }
	.s-nav .s-nav__product { font-size: 13px; }
}
@media (max-width: 980px) {
	.s-menu-btn { display: inline-grid; place-items: center; }
	.s-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: #fff; border-bottom: 1px solid var(--s-line); box-shadow: var(--s-shadow); }
	.s-nav.is-open { display: flex; }
	.s-nav a { padding: 14px 12px; font-size: 16px; }
	.s-nav .s-nav__cta, .s-nav .s-nav__product { margin: 6px 0 0; justify-content: center; text-align: center; }
}
@media (max-width: 1024px) {
	.s-hero__title { font-size: 38px; }
	.s-cards.is-4 { grid-template-columns: repeat(2, 1fr); }
	.s-quick__grid { grid-template-columns: repeat(2, 1fr); }
	.s-quick__item:nth-child(2) { border-right: 0; }
	.s-quick__item:nth-child(-n+2) { border-bottom: 1px solid var(--s-line); }
	.s-info { grid-template-columns: 1fr 1fr; }
	.s-info__box.is-primary { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	.s-menu-btn { display: inline-grid; place-items: center; }
	.s-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: #fff; border-bottom: 1px solid var(--s-line); box-shadow: var(--s-shadow); }
	.s-nav.is-open { display: flex; }
	.s-nav a { padding: 14px 12px; }
	.s-nav .s-nav__cta { margin: 6px 0 0; text-align: center; }
	.s-hero .s-wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 64px; gap: 24px; }
	.s-hero__img { justify-self: center; max-width: 440px; }
	.s-cards, .s-grid-2, .s-map, .s-cards.is-2 { grid-template-columns: 1fr; }
	.s-cta { grid-template-columns: 1fr; padding: 36px 28px; }
	.s-cta__img { display: none; }
	.s-section { padding: 64px 0; }
	.s-section__title { font-size: 28px; }
	.s-topbar__info .s-hide-sm { display: none; }
}
@media (max-width: 600px) {
	.hm-wrap, .s-wrap { padding: 0 16px; }
	.s-hero__title { font-size: 31px; }
	.s-hero__desc { font-size: 16px; }
	.s-cards.is-4, .s-quick__grid, .s-info { grid-template-columns: 1fr; }
	.s-quick__item { border-right: 0; border-bottom: 1px solid var(--s-line); padding: 18px 20px; }
	.s-quick__item:last-child { border-bottom: 0; }
	.s-section__head { flex-direction: column; align-items: flex-start; }
	.s-subhead h1, .s-subhead .s-subhead__title { font-size: 28px; }
	.hm-table .hm-hide-sm { display: none; }
	.hm-table th, .hm-table td { padding: 13px 6px; }
	.hm-search { justify-content: stretch; }
	.hm-search input[type=text] { flex: 1; width: auto; }
	.s-form-card { padding: 22px 18px; }
	.s-topbar { display: none; }
	.s-cta h2 { font-size: 24px; }
}
