/* =====================================================
   한의원 - 메인 스타일시트
   ===================================================== */
html { font-size: 16px; } /* rem 기준값 — 관리자 '글자 크기' 설정이 이 값을 %로 조정함 */
:root {
  --ink: #1a1208;
  --bark: #3d2b1f;
  --earth: #6b4c35;
  --celadon: #6b9e8e;
  --celadon-light: #8fbfb0;
  --celadon-pale: #e8f2ef;
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --parchment: #f8f4ec;
  --cream: #fdfaf5;
  --stone: #8c8070;
  --mist: #f0ece4;
  --white: #ffffff;
  --shadow: rgba(26,18,8,0.12);
  --shadow-deep: rgba(26,18,8,0.24);
}

/* ── 테마: 딥블루 (로고와 통일) ── */
[data-theme="blue"] {
  --ink: #131b2b;
  --bark: #1c2b42;
  --earth: #3a5578;
  --celadon: #2f4a7a;
  --celadon-light: #5b7fb5;
  --celadon-pale: #eef2f8;
  --parchment: #f4f6fa;
  --cream: #ffffff;
  --stone: #6b7a8f;
  --mist: #e5eaf1;
  --shadow: rgba(19,27,43,0.12);
  --shadow-deep: rgba(19,27,43,0.24);
}

/* ── 테마: 테라코타 (흙빛) ── */
[data-theme="terracotta"] {
  --ink: #2a1810;
  --bark: #4a2f24;
  --earth: #7a4a35;
  --celadon: #b5654a;
  --celadon-light: #d9a066;
  --celadon-pale: #faf0e8;
  --parchment: #faf3ec;
  --cream: #fffaf5;
  --stone: #a3806c;
  --mist: #f0e4d8;
  --shadow: rgba(42,24,16,0.12);
  --shadow-deep: rgba(42,24,16,0.24);
}

/* ── 테마: 딥그린 (소나무빛) ── */
[data-theme="green"] {
  --ink: #16241d;
  --bark: #22332b;
  --earth: #3f5347;
  --celadon: #3a5f4d;
  --celadon-light: #7fa88f;
  --celadon-pale: #eef3ef;
  --parchment: #f2f6f3;
  --cream: #fbfdfb;
  --stone: #6f8478;
  --mist: #e5ede8;
  --shadow: rgba(22,36,29,0.12);
  --shadow-deep: rgba(22,36,29,0.24);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html { overflow-x: hidden; }
.has-notice { padding-top: 44px; }
body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: var(--cream); color: var(--ink);
  overflow-x: hidden; scrollbar-gutter: stable;
  font-size:1rem;
  line-height: 1.7;
  /* 폰트 로딩 전/후 크기 안정화 */
  font-size-adjust: 0.5;
}

/* ── HEADER ── */
header { position: fixed; top:0; left:0; right:0; z-index:1000; background: rgba(253,250,245,0.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gold-light); transition: all .3s; }
.header-inner { max-width:1200px; margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; height:72px; }
.logo { display:flex; align-items:center; gap:12px; text-decoration:none; }
.logo-mark { width:44px; height:44px; background:linear-gradient(135deg,var(--celadon),var(--bark)); border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:'Noto Serif KR',serif; font-size:1.125rem; color:#fff; font-weight:700; flex-shrink:0; }
.logo-text { display:flex; flex-direction:column; line-height:1.2; }
.logo-main { font-family:'Noto Serif KR',serif; font-size:1.25rem; font-weight:700; color:var(--bark); letter-spacing:.05em; }
.logo-sub { font-size:0.8125rem; color:var(--stone); letter-spacing:.1em; }
nav a { padding:8px 14px; text-decoration:none; color:var(--bark); font-size:0.9375rem; font-weight:500; border-radius:6px; transition:all .2s; white-space:nowrap; }
nav a:hover { background:var(--celadon-pale); color:var(--celadon); }
.nav-cta { background:var(--celadon)!important; color:#fff!important; padding:8px 20px!important; border-radius:20px!important; font-weight:600!important; }
.nav-cta:hover { background:var(--bark)!important; }
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:8px; border:none; background:none; }
.hamburger span { display:block; width:24px; height:2px; background:var(--bark); transition:all .3s; border-radius:2px; }
.mobile-menu { display:none; position:fixed; top:72px; left:0; right:0; background:var(--cream); border-bottom:1px solid var(--gold-light); padding:16px 24px; z-index:999; flex-direction:column; gap:4px; box-shadow:0 8px 24px var(--shadow); }
.mobile-menu.open { display:flex; }
.mobile-menu a { padding:12px 16px; text-decoration:none; color:var(--bark); font-size:0.9375rem; border-radius:8px; transition:background .2s; }
.mobile-menu a:hover { background:var(--celadon-pale); }

/* ── HERO ── */
.hero { margin-top:72px; position:relative; min-height:90vh; display:flex; align-items:center; overflow:hidden; background:linear-gradient(160deg,var(--bark) 0%,#2a1a0f 60%,#1a1208 100%); }
.hero-bg { position:absolute; inset:0; background-image: radial-gradient(ellipse 80% 60% at 70% 50%,rgba(107,158,142,.18) 0%,transparent 70%), radial-gradient(ellipse 40% 80% at 20% 80%,rgba(201,168,76,.12) 0%,transparent 60%); }
.hero-pattern { position:absolute; inset:0; opacity:.04; background-image:repeating-linear-gradient(45deg,var(--gold) 0,var(--gold) 1px,transparent 1px,transparent 40px); }
.hero-img { position:absolute; right:0; top:0; bottom:0; width:50%; overflow:hidden; }
.hero-img img { width:100%; height:100%; object-fit:cover; }
.hero-img img { width:100%; height:100%; object-fit:cover; opacity:.35; filter:sepia(30%) contrast(1.1); }
.hero-content { position:relative; z-index:2; max-width:1200px; margin:0 auto; padding:80px 24px; width:100%; }
.hero-badge { display:inline-flex; align-items:center; gap:8px; background:rgba(201,168,76,.2); border:1px solid rgba(201,168,76,.4); color:var(--gold-light); font-size:0.875rem; letter-spacing:.15em; padding:6px 16px; border-radius:20px; margin-bottom:28px; font-weight:500; }
.hero-badge::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--gold); animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
.hero h1 { font-family:'Noto Serif KR',serif; font-size:clamp(36px,6vw,72px); color:var(--cream); line-height:1.3; margin-bottom:24px; font-weight:700; }
.hero h1 em { color:var(--gold); font-style:normal; display:block; }
.hero-desc { font-size:clamp(15px,2vw,18px); color:rgba(248,244,236,.75); line-height:1.9; max-width:520px; margin-bottom:40px; font-weight:300; }
.hero-actions { display:flex; gap:16px; flex-wrap:wrap; }
.btn-primary { display:inline-flex; align-items:center; gap:8px; background:var(--celadon); color:#fff; padding:14px 32px; border-radius:30px; font-size:0.9375rem; font-weight:600; text-decoration:none; transition:all .3s; box-shadow:0 4px 20px rgba(107,158,142,.4); border:none; cursor:pointer; }
.btn-primary:hover { background:var(--celadon-light); transform:translateY(-2px); }
.btn-outline { display:inline-flex; align-items:center; gap:8px; border:1.5px solid rgba(248,244,236,.4); color:var(--cream); padding:14px 32px; border-radius:30px; font-size:0.9375rem; font-weight:500; text-decoration:none; transition:all .3s; }
.btn-outline:hover { border-color:var(--gold); color:var(--gold); }
.hero-stats { display:flex; gap:48px; margin-top:60px; flex-wrap:wrap; }
.stat { display:flex; flex-direction:column; gap:4px; }
.stat-num { font-family:'Playfair Display',serif; font-size:2.25rem; color:var(--gold); line-height:1; font-weight:700; }
.stat-label { font-size:0.875rem; color:rgba(248,244,236,.6); letter-spacing:.05em; }

/* ── SECTION COMMON ── */
section { padding:80px 24px; }
.section-inner { max-width:1200px; margin:0 auto; }
.section-tag { display:inline-flex; align-items:center; gap:8px; font-size:0.875rem; color:var(--celadon); letter-spacing:.2em; text-transform:uppercase; font-weight:600; margin-bottom:12px; }
.section-tag::before { content:''; width:20px; height:1px; background:var(--celadon); }
.section-title { font-family:'Noto Serif KR',serif; font-size:clamp(26px,4vw,42px); color:var(--bark); line-height:1.4; margin-bottom:16px; font-weight:700; }
.section-subtitle { font-size:1rem; color:var(--stone); line-height:1.8; max-width:560px; }

/* ── PAGE HERO (서브페이지 공통) ── */
.page-hero { margin-top:72px; background:linear-gradient(135deg,var(--bark) 0%,#2a1a0f 100%); padding:60px 24px; text-align:center; position:relative; overflow:hidden; }
.page-hero::before { content:''; position:absolute; inset:0; background-image:repeating-linear-gradient(45deg,rgba(201,168,76,.03) 0,rgba(201,168,76,.03) 1px,transparent 1px,transparent 40px); }
.page-hero-inner { position:relative; z-index:1; max-width:800px; margin:0 auto; }
.page-hero .breadcrumb { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:4px 8px; margin-bottom:20px; font-size:0.875rem; color:rgba(248,244,236,.5); }
.page-hero .breadcrumb a { color:rgba(248,244,236,.5); text-decoration:none; white-space:nowrap; }
.page-hero .breadcrumb > span:not([class]) { white-space:nowrap; }
.page-hero .breadcrumb > span:last-child { white-space:normal; word-break:keep-all; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.page-hero .breadcrumb a:hover { color:var(--gold); }
.page-hero h1 { font-family:'Noto Serif KR',serif; font-size:clamp(28px,5vw,48px); color:var(--cream); font-weight:700; margin-bottom:16px; word-break:keep-all; line-height:1.3; }
.page-hero p { font-size:1rem; color:rgba(248,244,236,.65); line-height:1.8; }

/* ── GREETING ── */
#greeting, .greeting-section { background:var(--parchment); position:relative; overflow:hidden; }
#greeting::before, .greeting-section::before { content:'仁'; position:absolute; right:-40px; bottom:-60px; font-family:'Noto Serif KR',serif; font-size:18.75rem; color:rgba(107,158,142,.06); font-weight:700; pointer-events:none; }
.greeting-grid { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.greeting-img { position:relative; }
.greeting-img-main { width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:4px 80px 4px 80px; box-shadow:20px 20px 60px var(--shadow-deep); filter:sepia(10%); }
.greeting-img-accent { position:absolute; bottom:-24px; right:-24px; width:45%; aspect-ratio:1; object-fit:cover; border-radius:50%; border:6px solid var(--cream); box-shadow:0 8px 30px var(--shadow-deep); }
.greeting-quote { font-family:'Noto Serif KR',serif; font-size:1.375rem; color:var(--celadon); margin-bottom:28px; line-height:1.6; font-weight:500; border-left:3px solid var(--celadon); padding-left:20px; }
.greeting-text { font-size:0.9375rem; color:var(--earth); line-height:2.0; margin-bottom:16px; font-weight:300; }
.greeting-sign { margin-top:36px; display:flex; align-items:center; gap:16px; }
.sign-name { font-family:'Noto Serif KR',serif; font-size:1.125rem; color:var(--bark); font-weight:600; }
.sign-title { font-size:0.875rem; color:var(--stone); }

/* ── INTERIOR ── */
.interior-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:48px; }
.interior-card { position:relative; overflow:hidden; border-radius:12px; cursor:pointer; aspect-ratio:4/3; }
.interior-card.featured { grid-column:span 2; grid-row:span 2; }
.interior-card img { width:100%; height:100%; object-fit:cover; transition:transform .5s; display:block; }
.interior-card:hover img { transform:scale(1.05); }
.interior-overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(26,18,8,.6) 0%,transparent 60%); opacity:0; transition:opacity .3s; display:flex; align-items:flex-end; padding:20px; }
.interior-card:hover .interior-overlay { opacity:1; }
.interior-label { color:#fff; font-size:0.9375rem; font-weight:500; }

/* ── NON-COVERED ── */
#noncovered, .noncovered-section { background:var(--mist); }
.price-header { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:48px; flex-wrap:wrap; gap:24px; }
.price-notice { font-size:0.875rem; color:var(--stone); background:#fff; border:1px solid var(--gold-light); border-radius:8px; padding:10px 16px; max-width:340px; line-height:1.6; }
.price-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; }
.price-card { background:#fff; border-radius:16px; padding:28px; border:1px solid var(--gold-light); transition:all .3s; position:relative; overflow:hidden; }
.price-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--celadon),var(--gold)); opacity:0; transition:opacity .3s; }
.price-card:hover { box-shadow:0 8px 32px var(--shadow); transform:translateY(-4px); }
.price-card:hover::before { opacity:1; }
.price-icon { font-size:2rem; margin-bottom:16px; }
.price-name { font-family:'Noto Serif KR',serif; font-size:1.125rem; font-weight:600; color:var(--bark); margin-bottom:8px; }
.price-desc { font-size:0.875rem; color:var(--stone); line-height:1.7; margin-bottom:20px; }
.price-table { width:100%; border-collapse:collapse; }
.price-table tr { border-bottom:1px solid var(--mist); }
.price-table tr:last-child { border-bottom:none; }
.price-table td { padding:8px 0; font-size:0.875rem; }
.price-table td:first-child { color:var(--earth); }
.price-table td:last-child { text-align:right; font-weight:600; color:var(--bark); }

/* ── MEMBERS ── */
#members, .members-section { background:var(--bark); position:relative; overflow:hidden; }
#members::before, .members-section::before { content:''; position:absolute; inset:0; background-image:repeating-linear-gradient(-45deg,rgba(255,255,255,.02) 0,rgba(255,255,255,.02) 1px,transparent 1px,transparent 30px); }
.members-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:40px; margin-top:48px; }
.member-card { position:relative; overflow:hidden; border-radius:20px; background:rgba(255,255,255,.05); border:1px solid rgba(201,168,76,.2); display:grid; grid-template-columns:200px 1fr; transition:all .3s; }
.member-card:hover { border-color:rgba(201,168,76,.5); background:rgba(255,255,255,.08); transform:translateY(-4px); }
.member-photo { position:relative; overflow:hidden; aspect-ratio:3/4; }
.member-photo img { width:100%; height:100%; object-fit:cover; object-position:top; filter:sepia(15%) contrast(1.05); }
.member-info { padding:32px 28px; }
.member-role { font-size:0.8125rem; color:var(--gold); letter-spacing:.2em; text-transform:uppercase; font-weight:600; margin-bottom:8px; }
.member-name { font-family:'Noto Serif KR',serif; font-size:1.5rem; color:var(--cream); font-weight:700; margin-bottom:4px; }
.member-name-en { font-family:'Playfair Display',serif; font-size:0.9375rem; color:rgba(248,244,236,.4); margin-bottom:20px; }
.member-career { list-style:none; display:flex; flex-direction:column; gap:8px; }
.member-career li { font-size:0.875rem; color:rgba(248,244,236,.7); display:flex; align-items:flex-start; gap:8px; line-height:1.5; }
.member-career li::before { content:'·'; color:var(--gold); font-size:1.125rem; line-height:1.2; flex-shrink:0; }
.member-specialty { margin-top:20px; display:flex; flex-wrap:wrap; gap:6px; }
.specialty-tag { background:rgba(107,158,142,.2); border:1px solid rgba(107,158,142,.4); color:var(--celadon-light); font-size:0.875rem; padding:4px 10px; border-radius:12px; }

/* ── TREATMENTS ── */
#treatments, .treatments-section { background:var(--cream); }
/* ── 이미지 업로드 공통 컴포넌트 ── */
.img-upload-wrap { display:flex;gap:14px;align-items:flex-start; }
.img-upload-preview { flex-shrink:0;width:160px;height:110px;border-radius:8px;overflow:hidden;border:1px solid var(--border);background:var(--bg);display:flex;align-items:center;justify-content:center;position:relative; }
.img-upload-preview img { width:100%;height:100%;object-fit:cover;display:block; }
.img-upload-preview .img-placeholder { color:#ccc;font-size:2rem;line-height:1; }
.img-upload-controls { flex:1;display:flex;flex-direction:column;gap:6px;justify-content:center; }
.img-upload-controls input[type="file"] { font-size:0.75rem; }
.img-upload-controls input[type="text"] { font-size:0.75rem; }
.img-upload-btn-crop { padding:5px 14px;border:1px solid #6b9e8e;background:#f0f8f5;border-radius:6px;cursor:pointer;font-size:0.75rem;color:#3a6a5a;font-family:inherit;width:fit-content; }
.img-upload-btn-crop:hover { background:#e0f2ee; }

.cond-home-card { display:flex;flex-direction:column;background:#fff;border-radius:20px;overflow:hidden;border:1px solid var(--border);text-decoration:none;color:inherit;transition:all .25s;box-shadow:0 2px 8px rgba(0,0,0,.04); }
.cond-home-card:hover { box-shadow:0 10px 36px rgba(107,158,142,.22);transform:translateY(-5px);border-color:var(--celadon); }
.cond-home-img { position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;flex-shrink:0; }
.cond-home-img img { width:100%;height:100%;object-fit:cover;transition:transform .5s; }
.cond-home-card:hover .cond-home-img img { transform:scale(1.06); }
.cond-grid-home { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.cond-home-icon-bg { width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--celadon-pale),var(--parchment));font-size:4rem; }
.cond-home-badge { position:absolute;bottom:0;left:0;right:0;padding:10px 14px;background:linear-gradient(to top,rgba(0,0,0,.55),transparent);color:#fff;font-size:0.9375rem;font-weight:700;letter-spacing:.3px; }
.cond-home-body { padding:18px 20px;display:flex;flex-direction:column;flex:1; }
.cond-home-name { font-size:1rem;font-weight:700;color:var(--bark);margin-bottom:7px; }
.cond-home-desc { font-size:0.8125rem;color:var(--stone);line-height:1.6;margin-bottom:12px;flex:1; }
.cond-home-tags { display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px; }
.cond-home-tag { padding:3px 9px;background:var(--celadon-pale);color:var(--celadon-dark,#2d6a5f);border-radius:20px;font-size:0.6875rem;font-weight:500; }
.cond-home-more { font-size:0.75rem;color:var(--primary);font-weight:600;margin-top:auto; }
.treatments-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:48px; }
.treatment-card { background:#fff; border-radius:20px; overflow:hidden; border:1px solid rgba(107,158,142,.15); transition:all .3s; cursor:pointer; text-decoration:none; color:inherit; display:flex; flex-direction:column; }
.treatment-card:hover { box-shadow:0 12px 40px var(--shadow); transform:translateY(-6px); border-color:var(--celadon); }
.treatment-img { width:100%; height:100%; object-fit:cover; transition:transform .5s; display:block; }
.treatment-card-head { width:100%; aspect-ratio:4/3; overflow:hidden; }
.treatment-icon-bg { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--celadon-pale),var(--parchment)); font-size:4rem; }
.treatment-name .hb-icon svg { width:1.1em; height:1.1em; vertical-align:-0.18em; }
.treatment-card:hover .treatment-img { transform:scale(1.05); }
.treatment-body { padding:24px; flex:1; display:flex; flex-direction:column; }
.treatment-icon { font-size:1.75rem; margin-bottom:12px; }
/* 한방 SVG 아이콘: 부모 컨테이너 글자 크기(em)에 맞춰 표시 */
.hb-icon { display:inline-flex; align-items:center; vertical-align:-0.15em; line-height:0; }
.hb-icon svg { width:1em; height:1em; display:block; }
h1 .hb-icon { vertical-align:-0.22em; }
h1 .hb-icon svg { width:1.05em; height:1.05em; }
.cond-hero-name .hb-icon { vertical-align:-0.22em; }
.treatment-name { font-family:'Noto Serif KR',serif; font-size:1.125rem; font-weight:600; color:var(--bark); margin-bottom:10px; }
.treatment-desc { font-size:0.875rem; color:var(--stone); line-height:1.8; margin-bottom:16px; }
.treatment-tags { display:flex; flex-wrap:wrap; gap:6px; }
.treat-tag { background:var(--celadon-pale); color:var(--celadon); font-size:0.8125rem; padding:3px 10px; border-radius:10px; font-weight:500; }
.treat-tag.insurance { background:rgba(201,168,76,.1); color:var(--gold); border:1px solid rgba(201,168,76,.3); }

/* ── TREATMENT DETAIL ── */
.treatment-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
.treatment-detail-img img { width:100%; aspect-ratio:3/2; object-fit:cover; }
.treatment-detail-body {}
.treatment-effect-list { list-style:none; display:flex; flex-direction:column; gap:12px; margin:24px 0; }
.treatment-effect-list li { display:flex; align-items:flex-start; gap:12px; font-size:0.9375rem; color:var(--earth); line-height:1.6; }
.treatment-effect-list li::before { content:'✓'; color:var(--celadon); font-weight:700; flex-shrink:0; margin-top:2px; }
.treatment-info-box { background:var(--celadon-pale); border-radius:12px; padding:20px; margin-top:24px; }
.treatment-info-box h4 { font-size:0.9375rem; font-weight:600; color:var(--celadon); margin-bottom:12px; }
.treatment-info-box p { font-size:0.875rem; color:var(--earth); line-height:1.7; }

/* ── CONDITION DETAIL ── */
.cond-hero { display:flex; gap:40px; align-items:center; margin-bottom:40px; flex-wrap:wrap; }
.cond-hero-img { flex:1; min-width:280px; aspect-ratio:4/3; border-radius:18px; overflow:hidden; box-shadow:0 12px 36px var(--shadow-deep); }
.cond-hero-img img { width:100%; height:100%; object-fit:cover; }
.cond-hero-body { flex:1; min-width:280px; }
.cond-hero-name { font-family:'Noto Serif KR',serif; font-size:clamp(30px,4.2vw,46px); color:var(--bark); font-weight:700; line-height:1.25; margin-bottom:14px; }
.cond-hero-icon { font-size:0.8em; }
.cond-hero-rule { width:56px; height:3px; background:var(--celadon); border-radius:2px; margin-bottom:16px; }
.treat-main-box { border-radius:20px; overflow:hidden; box-shadow:0 16px 48px var(--shadow-deep); }
.treat-main-cap { font-size:0.8125rem; color:var(--stone); margin-top:10px; text-align:center; }
.treat-main-box img { width:100%; display:block; }
.treat-gallery-box { margin-top:20px; padding-top:20px; border-top:1px solid var(--mist); }
.treat-gallery-label { font-size:0.8125rem; font-weight:600; color:var(--stone); margin-bottom:10px; }
.treat-slider { position:relative; }
.treat-slider-viewport { overflow:hidden; }
.treat-slider-track { display:flex; transition:transform .35s ease; }
.treat-slide { flex:0 0 100%; width:100%; display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.treat-thumb-card { background:#fff; border:2px solid transparent; border-radius:12px; overflow:hidden; cursor:pointer; box-shadow:0 2px 8px var(--shadow); transition:transform .2s, box-shadow .2s, border-color .2s; }
.treat-thumb-card:hover { transform:translateY(-3px); box-shadow:0 10px 22px var(--shadow); border-color:var(--celadon); }
.treat-thumb-card img { width:100%; aspect-ratio:1/1; object-fit:cover; display:block; }
.treat-gallery-cap { font-size:0.6875rem; color:var(--stone); padding:6px 8px; }
.treat-slider-arrow { position:absolute; top:calc(50% - 16px); width:32px; height:32px; border-radius:50%; border:none; background:rgba(26,18,8,.45); color:#fff; font-size:1.125rem; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .2s; }
.treat-slider-arrow:hover { background:rgba(26,18,8,.7); }
.treat-slider-arrow.prev { left:-10px; }
.treat-slider-arrow.next { right:-10px; }
.treat-slider-dots { display:flex; justify-content:center; gap:8px; margin-top:12px; }
.treat-dot { width:8px; height:8px; border-radius:50%; border:none; background:var(--mist); cursor:pointer; padding:0; transition:background .2s, transform .2s; }
.treat-dot.active { background:var(--celadon); transform:scale(1.25); }
@media(max-width:520px){
  .treat-slide { grid-template-columns:repeat(2,1fr); }
}
.cond-hero-desc { font-size:0.9375rem; color:var(--earth); line-height:1.8; margin-bottom:16px; }
.cond-hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.cond-hero-actions .btn-primary, .cond-hero-actions .btn-outline { padding:10px 22px; font-size:0.875rem; box-shadow:none; }
.cond-hero-actions .btn-outline { border-color:var(--stone); color:var(--earth); }
.cond-hero-actions .btn-outline:hover { border-color:var(--celadon); color:var(--celadon); }
.cond-info-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:28px; }
.cond-info-card { background:var(--parchment); border-radius:0 12px 12px 0; border-left:3px solid var(--celadon); padding:18px; transition:transform .25s, box-shadow .25s; cursor:default; }
.cond-info-card:hover { transform:translateY(-4px); box-shadow:0 14px 32px var(--shadow); }
.cond-info-card.caution { border-left-color:var(--gold); }
.cond-info-card h4 { font-size:0.875rem; font-weight:600; color:var(--bark); margin-bottom:8px; }
.cond-other-card { display:flex; align-items:center; gap:12px; padding:10px; background:#fff; border-radius:12px; border:1px solid var(--border); text-decoration:none; color:inherit; transition:transform .2s, box-shadow .2s, border-color .2s; }
.cond-other-card:hover { transform:translateY(-3px); box-shadow:0 10px 26px var(--shadow); border-color:var(--celadon); }
.cond-other-thumb { width:52px; height:52px; border-radius:10px; overflow:hidden; flex-shrink:0; background:var(--celadon-pale); display:flex; align-items:center; justify-content:center; font-size:1.5rem; }
.cond-other-thumb img { width:100%; height:100%; object-fit:cover; }
.cond-other-name { font-size:0.875rem; font-weight:600; color:var(--bark); }
.cond-info-card p { font-size:0.8125rem; color:var(--earth); line-height:1.7; }
.cond-effect-pills { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.cond-effect-pill { display:flex; align-items:center; gap:6px; font-size:0.8125rem; color:var(--earth); background:#fff; border:1px solid var(--border); padding:6px 14px; border-radius:16px; }
.cond-effect-pill::before { content:'✓'; color:var(--celadon); font-weight:700; }
@media(max-width:768px){
  .cond-hero { flex-direction:column; align-items:stretch; }
  .cond-hero-img { aspect-ratio:16/9; }
  .cond-info-cards { grid-template-columns:1fr; }
}

/* ── HOURS ── */
#hours, .hours-section { background:var(--parchment); }
.hours-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; margin-top:48px; }
.hours-card { background:#fff; border-radius:20px; padding:40px; border:1px solid var(--gold-light); box-shadow:0 4px 24px var(--shadow); }
.hours-title { font-family:'Noto Serif KR',serif; font-size:1.125rem; font-weight:700; color:var(--bark); margin-bottom:20px; padding-bottom:14px; border-bottom:2px solid var(--celadon-pale); display:flex; align-items:center; gap:10px; }
.hours-row { display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:1px solid var(--mist); font-size:0.9375rem; }
.hours-row.has-comment { flex-direction:column; align-items:flex-start; gap:2px; }
.hours-row-top { display:flex; justify-content:space-between; align-items:center; width:100%; }
.hours-row:last-child { border-bottom:none; }
.hours-day { color:var(--earth); font-weight:500; }
.hours-time { color:var(--bark); font-weight:600; font-family:'Playfair Display',serif; font-size:1rem; }
.hours-time.closed { color:#c0392b; font-family:'Noto Sans KR',sans-serif; font-size:0.9375rem; }
.hours-time.half { color:var(--celadon); }
.map-card { background:#fff; border-radius:20px; overflow:hidden; border:1px solid var(--gold-light); box-shadow:0 4px 24px var(--shadow); }
.map-placeholder { width:100%; height:280px; background:linear-gradient(135deg,#e8f2ef,#d4e8e0); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; position:relative; overflow:hidden; }
.map-placeholder::before { content:''; position:absolute; inset:0; background-image:linear-gradient(var(--celadon-pale) 1px,transparent 1px),linear-gradient(90deg,var(--celadon-pale) 1px,transparent 1px); background-size:40px 40px; opacity:.6; }
.map-pin { font-size:3rem; z-index:1; filter:drop-shadow(0 4px 8px rgba(0,0,0,.2)); animation:bounce 2s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.map-text { z-index:1; color:var(--celadon); font-weight:500; font-size:0.9375rem; }
.map-info { padding:24px; }
.map-info-row { display:flex; align-items:flex-start; gap:12px; padding:10px 0; font-size:0.9375rem; border-bottom:1px solid var(--mist); }
.map-info-row:last-child { border-bottom:none; }
.map-info-icon { font-size:1.125rem; flex-shrink:0; }
.map-info-label { color:var(--stone); font-size:0.875rem; }
.map-info-value { color:var(--bark); font-weight:500; }

/* ── NOTICES ── */
.notices-header-row { display:grid; grid-template-columns:80px 1fr 90px; gap:16px; padding:10px 0; border-bottom:2px solid var(--celadon-pale); margin-bottom:4px; font-size:0.875rem; font-weight:600; color:var(--stone); }
.notices-list { display:flex; flex-direction:column; }
.notice-item { display:grid; grid-template-columns:80px 1fr 90px; align-items:center; gap:16px; padding:16px 0; border-bottom:1px solid var(--mist); text-decoration:none; color:inherit; transition:all .2s; cursor:pointer; }
.notice-item:hover { padding-left:8px; }
.notice-badge { background:var(--celadon-pale); color:var(--celadon); font-size:0.8125rem; font-weight:600; padding:4px 10px; border-radius:10px; white-space:nowrap; }
.notice-badge.important { background:rgba(201,168,76,.12); color:var(--gold); border:1px solid rgba(201,168,76,.3); }
.notice-title { font-size:0.9375rem; color:var(--bark); font-weight:500; line-height:1.5; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.notice-date { font-size:0.875rem; color:var(--stone); white-space:nowrap; }
.notices-header { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:32px; flex-wrap:wrap; gap:16px; }
.see-all { display:inline-flex; align-items:center; gap:6px; color:var(--celadon); font-size:0.9375rem; text-decoration:none; font-weight:500; transition:gap .2s; }
.see-all:hover { gap:10px; }

/* ── NOTICE DETAIL ── */
.notice-detail-card { background:#fff; border-radius:20px; padding:48px; border:1px solid var(--gold-light); box-shadow:0 4px 24px var(--shadow); }
.notice-detail-header { padding-bottom:24px; border-bottom:2px solid var(--mist); margin-bottom:32px; }
.notice-detail-content { font-size:0.9375rem; color:var(--earth); line-height:2.2; }
.notice-nav { display:flex; gap:16px; margin-top:40px; flex-wrap:wrap; }

/* ── PAGINATION ── */
.pagination { display:flex; justify-content:center; align-items:center; gap:8px; margin-top:40px; }
.page-btn { width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:8px; font-size:0.9375rem; text-decoration:none; color:var(--stone); border:1px solid var(--mist); transition:all .2s; }
.page-btn:hover, .page-btn.active { background:var(--celadon); color:#fff; border-color:var(--celadon); }

/* ── RESERVATION MODAL ── */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:2000; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal-box { background:#fff; border-radius:20px; width:100%; max-width:480px; max-height:90vh; overflow-y:auto; box-shadow:0 24px 80px rgba(0,0,0,.3); }
.modal-header { display:flex; align-items:center; justify-content:space-between; padding:24px 28px; border-bottom:1px solid var(--mist); }
.modal-header h3 { font-family:'Noto Serif KR',serif; font-size:1.25rem; font-weight:600; color:var(--bark); }
.modal-close { background:none; border:none; font-size:1.25rem; cursor:pointer; color:var(--stone); padding:4px; }
#reserveForm, #reserveSuccess { padding:24px 28px; }
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:0.875rem; font-weight:500; color:var(--stone); margin-bottom:6px; }
.form-group input, .form-group select, .form-group textarea { width:100%; border:1px solid var(--mist); border-radius:10px; padding:10px 14px; font-size:0.9375rem; font-family:inherit; outline:none; transition:border-color .2s; background:#fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:var(--celadon); }
.form-group textarea { resize:vertical; min-height:80px; }

/* ── FOOTER ── */
footer { background:var(--ink); color:rgba(248,244,236,.6); padding:60px 24px 40px; }
.footer-inner { max-width:1200px; margin:0 auto; }
.footer-top { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; margin-bottom:48px; }
.footer-brand .logo-main { color:var(--cream); font-size:1.375rem; }
.footer-brand .logo-sub { color:rgba(248,244,236,.4); }
.footer-desc { font-size:0.875rem; line-height:1.9; margin-top:16px; color:rgba(248,244,236,.5); }
.footer-col-title { color:var(--gold); font-size:0.875rem; letter-spacing:.1em; font-weight:600; margin-bottom:16px; text-transform:uppercase; }
.footer-links { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-links a { color:rgba(248,244,236,.55); text-decoration:none; font-size:0.9375rem; transition:color .2s; }
.footer-links a:hover { color:var(--celadon-light); }
.footer-contact { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-contact li { font-size:0.9375rem; display:flex; gap:8px; align-items:flex-start; line-height:1.5; }
.footer-divider { border:none; border-top:1px solid rgba(248,244,236,.1); margin-bottom:24px; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; font-size:0.875rem; }
.footer-bottom-links { display:flex; gap:20px; }
.footer-bottom-links a { color:rgba(248,244,236,.4); text-decoration:none; transition:color .2s; }
.footer-bottom-links a:hover { color:var(--celadon-light); }

/* ── SCROLL TOP ── */
.scroll-top { position:fixed; bottom:32px; right:32px; width:48px; height:48px; background:var(--celadon); color:#fff; border:none; border-radius:50%; font-size:1.25rem; cursor:pointer; box-shadow:0 4px 16px rgba(107,158,142,.4); display:flex; align-items:center; justify-content:center; transition:bottom .3s ease, background .2s, transform .2s; opacity:0; pointer-events:none; z-index:999; }
.scroll-top.visible { opacity:1; pointer-events:all; }
.scroll-top:hover { background:var(--bark); transform:translateY(-2px); }
.float-reserve { position:fixed; bottom:32px; right:32px; display:flex; align-items:center; gap:6px; padding:12px 18px; background:var(--bark); color:#fff; border:none; border-radius:30px; font-size:0.875rem; font-weight:600; font-family:inherit; cursor:pointer; box-shadow:0 6px 20px var(--shadow-deep); transition:bottom .3s ease, background .2s, transform .2s; z-index:999; }
.float-reserve:hover { background:var(--celadon); transform:translateY(-2px); }
.float-reserve-icon { font-size:0.9375rem; }
.float-call { display:none; }
@media(max-width:768px){
  .scroll-top { bottom:20px; right:20px; width:44px; height:44px; font-size:1.125rem; }
  .float-reserve { bottom:20px; right:20px; padding:10px 16px; font-size:0.8125rem; }
  .float-call { display:flex; align-items:center; justify-content:center; position:fixed; bottom:20px; right:20px; width:48px; height:48px; border-radius:50%; background:var(--bark); color:#fff; text-decoration:none; font-size:1.25rem; box-shadow:0 6px 20px var(--shadow-deep); z-index:999; transition:bottom .3s ease, transform .2s; }
  .float-call:active { transform:scale(0.92); }
}

/* ── ANIMATIONS ── */
.fade-in { opacity:0; transform:translateY(24px); transition:opacity .6s ease,transform .6s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }
.fade-in:nth-child(2){transition-delay:.1s} .fade-in:nth-child(3){transition-delay:.2s}
.fade-in:nth-child(4){transition-delay:.3s} .fade-in:nth-child(5){transition-delay:.4s}
.fade-in:nth-child(6){transition-delay:.5s}

/* ── RESPONSIVE ── */
@media(max-width:1024px){
  .greeting-grid{grid-template-columns:1fr;gap:48px}
  .greeting-img{max-width:480px;margin:0 auto}
  .members-grid{grid-template-columns:1fr}
  .member-card{grid-template-columns:160px 1fr}
  .cond-grid-home{grid-template-columns:repeat(2,1fr)}
  .treatments-grid{grid-template-columns:repeat(2,1fr)}
  .treatment-detail-grid{grid-template-columns:1fr;gap:40px}
  .footer-top{grid-template-columns:1fr 1fr;gap:32px}
  .hours-grid{grid-template-columns:1fr;gap:24px}
}
@media(max-width:768px){
  /* 가로 스크롤 완전 차단 */
  body, main, section, header, footer { overflow-x:hidden; }
  header .logo-sub{display:none}
  nav{display:none}
  .hamburger{display:flex}
  .hero{min-height:100svh}
  .hero-img{width:100%;opacity:.15}
  .hero-stats{gap:28px}
  .stat-num{font-size:1.75rem}
  .hero-arrow{top:auto!important;right:auto!important;transform:none!important;bottom:24px!important;width:38px!important;height:38px!important;font-size:1.125rem!important}
  .hero-arrow-prev{left:20px!important}
  .hero-arrow-next{right:20px!important;left:auto!important}
  #heroDots{right:auto!important;left:0!important;width:100%!important;justify-content:center!important;bottom:32px!important}
  section{padding:60px 20px}
  .interior-grid{grid-template-columns:1fr 1fr}
  .interior-card.featured{grid-column:span 2;grid-row:span 1}
  .members-grid{grid-template-columns:1fr}
  .member-card{grid-template-columns:1fr;grid-template-rows:220px auto}
  .cond-grid-home{grid-template-columns:1fr}
  .treatments-grid{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr;gap:32px}
  .notice-detail-card{padding:24px}
  /* 진료시간/달력/지도/예약폼 2열→1열 */
  .col2-grid{grid-template-columns:1fr!important}
  /* notice_bar 모바일 높이 안정화 */
  #noticeBar{height:44px!important;overflow:hidden}
}
@media(max-width:480px){
  .hero h1{font-size:2rem}
  .hero-actions{flex-direction:column}
  .btn-primary,.btn-outline{text-align:center;justify-content:center}
  .interior-grid{grid-template-columns:1fr}
  .interior-card.featured{grid-column:span 1}
  .notices-header-row{grid-template-columns:60px 1fr 72px;gap:8px;font-size:0.8125rem}
  .notice-item{grid-template-columns:60px 1fr 72px;gap:8px;padding:12px 0}
  .notice-title{font-size:0.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .notice-date{font-size:0.8125rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* ── 갤러리 모바일 반응형 ── */
@media (max-width: 768px) {
  /* 전체보기 그리드: 모바일에서 세로 스택 */
  #galleryAll > div[style*="grid-template-columns:2fr"] {
    grid-template-columns: 1fr !important;
    grid-template-rows: 220px 160px 160px !important;
    height: auto !important;
  }
  #galleryAll > div[style*="grid-template-columns:2fr"] > div:first-child {
    grid-row: span 1 !important;
  }

  /* 카테고리 슬라이더: 썸네일 숨기고 풀너비 */
  .gallery-thumbs { display: none !important; }
  [id^="galleryCat_"] > div[style*="grid-template-columns:1fr 180px"] {
    grid-template-columns: 1fr !important;
    height: 280px !important;
  }

  /* 2장 나란히: 세로 스택 */
  [id^="galleryCat_"] > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }
  [id^="galleryCat_"] > div[style*="grid-template-columns:1fr 1fr"] > div {
    height: 200px;
  }

  /* 탭 스크롤 */
  #galleryTabs { -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  #galleryAll > div[style*="grid-template-columns:2fr"] {
    grid-template-rows: 200px 140px 140px !important;
  }
  [id^="galleryCat_"] > div[style*="grid-template-columns:1fr 180px"] {
    height: 240px !important;
  }
}

/* ── 히어로 슬라이더 모바일 ── */
@media (max-width: 768px) {
  .hero #heroSlider {
    width: 100% !important;
    opacity: 0.25;
  }
  .hero #heroSlider img {
    opacity: 1 !important;
  }
}

/* ── 관리자 care 페이지 반응형 ── */
@media (max-width: 1024px) {
  /* care.ejs 2열 → 1열 */
}

/* ── 이미지 크롭 모달 ── */
/* 크롭 모달 - gallery.ejs 인라인 스타일로 대체됨 (style.css는 참조용) */
.cropper-view-box { border-radius: 0 !important; }
.cropper-wrap-box { overflow: visible !important; }

/* ── 앵커 스크롤 오프셋 (고정 헤더 + 알림바 보정) ── */
:root { --notice-offset: 0px; }
section[id] {
  scroll-margin-top: calc(84px + var(--notice-offset));
}

/* ── 이미지 로드 전 공간 확보 (레이아웃 시프트 방지) ── */
.hero-slide img,
.gall_slide img,
.cslide_0 img, [class^="cslide_"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 갤러리 슬라이더 영역 고정 높이 */
#galleryAll > div { min-height: 120px; }

/* ── 앵커 대상 섹션 CLS 방지 ── */
/* 이미지 로드 전후로 섹션 높이가 변하지 않도록 최소 높이 확보 */
#interior  { min-height: 600px; }
#greeting  { min-height: 400px; }
#treatments{ min-height: 400px; }
#noncovered{ min-height: 400px; }
#members   { min-height: 400px; }
#notices   { min-height: 300px; }
#hours     { min-height: 300px; }

/* 갤러리 썸네일바 높이 고정 */
#gallThumbBar { min-height: 84px; }

/* ── 미니 달력 (홈 + schedule 페이지) ── */
.mini-cal { background:#fff;border-radius:16px;padding:20px;max-width:560px;box-sizing:border-box;width:100%; }
.mini-cal.mini-cal-wide { max-width:none; }
.mini-cal-nav { display:flex;align-items:center;justify-content:space-between;margin-bottom:14px; }
.mini-cal-title { font-family:'Noto Serif KR',serif;font-size:1rem;font-weight:700;color:var(--bark); }
.mini-cal-arrow { width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid var(--border);text-decoration:none;color:var(--stone);font-size:1rem;transition:all .2s; }
.mini-cal-arrow:hover { background:var(--primary);color:#fff;border-color:var(--primary); }
.mini-cal-grid { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px; }
.mc-head { text-align:center;font-size:0.8125rem;font-weight:700;color:#aaa;padding:4px 2px; }
.mc-head.mc-sun { color:#e74c3c; }
.mc-head.mc-sat { color:#3498db; }
.mc-cell { border-radius:8px;padding:5px 3px;text-align:center;min-height:48px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;overflow:hidden; }
.mc-cell.mc-empty { background:transparent; }
.mc-cell.mc-sun .mc-day { color:#e74c3c; }
.mc-cell.mc-sat .mc-day { color:#3498db; }
.mc-cell.mc-closed { background:#fff5f5; }
.mc-cell.mc-today { outline:2px solid var(--celadon);outline-offset:-2px;border-radius:8px; }
.mc-day { font-size:0.875rem;font-weight:600;color:var(--bark); }
.mc-status { font-size:0.6875rem;padding:1px 5px;border-radius:6px;font-weight:600;white-space:nowrap;max-width:100%; }
.mc-cell:not(.mc-closed):not(.mc-empty) .mc-status { background:#e8f5e9;color:#388e3c; }
.mc-cell.mc-closed .mc-status { background:#fce4ec;color:#c62828; }
.mini-cal-wide .mc-cell { min-height:84px;padding:8px 5px;justify-content:flex-start; }
.mini-cal-wide .mc-day { font-size:0.9375rem; }
.mini-cal-wide .mc-status { font-size:0.875rem;padding:2px 7px; }
.mc-note { font-size:0.6875rem;color:#c62828;line-height:1.3;word-break:keep-all;text-align:center;margin-top:2px; }
.mini-cal-wide .mc-note { font-size:0.8125rem;line-height:1.35;margin-top:3px; }
@media(max-width:480px){ .mini-cal { padding:10px; } .mc-cell { min-height:40px;padding:3px 1px; } .mc-day { font-size:0.8125rem; } .mc-status { font-size:0.5625rem;padding:1px 3px; }
  .mini-cal-wide .mc-cell { min-height:52px;padding:4px 2px; } .mini-cal-wide .mc-day { font-size:0.8125rem; } .mini-cal-wide .mc-status { font-size:0.5625rem;padding:1px 3px; } .mini-cal-wide .mc-note { font-size:0.5625rem;line-height:1.2;margin-top:1px; } }
@media(max-width:360px){ .mini-cal { padding:6px; } .mini-cal-grid { gap:2px; } .mc-cell { min-height:36px;padding:2px 0; } .mc-day { font-size:0.75rem; } .mc-status { font-size:0.5rem;padding:1px 2px; } .mini-cal-title { font-size:0.9375rem; }
  .mini-cal-wide .mc-cell { min-height:46px;padding:2px 1px; } .mini-cal-wide .mc-day { font-size:0.75rem; } .mini-cal-wide .mc-status { font-size:0.5rem;padding:1px 2px; } .mini-cal-wide .mc-note { font-size:0.5rem; } }
