/* 힘찬한의원 홈페이지 공통 디자인
   색·글꼴·간격은 아래 :root 값만 바꾸면 사이트 전체에 반영됩니다. */
:root {
  --bg: #F5F1E8;          /* 바탕 (따뜻한 미색) */
  --surface: #FFFDF8;     /* 카드·흰 구역 */
  --sand: #EDE6D6;        /* 칩·연한 채움 */
  --line: #E3DCCD;
  --ink: #1E2621;         /* 본문 글자 */
  --ink-2: #3E4842;       /* 보조 글자 */
  --muted: #55605A;
  --accent: #2E5A47;      /* 포인트 녹색 (버튼) */
  --accent-dark: #1F3F31;
  --deep: #1F3A2F;        /* 짙은 녹색 구역 */
  --on-deep: #E6E0D2;
  --gold: #8A5A22;        /* 작은 제목(라벨) */
  --gold-soft: #D9C9A6;
  --radius: 24px;
  --serif: "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.75;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.alt { background: var(--surface); }
.label { font-size: 15px; font-weight: 600; color: var(--gold); letter-spacing: .3px; }
.title { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1.4; letter-spacing: -1px; }
.lead { font-size: 18px; line-height: 1.85; color: var(--ink-2); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #FFFDF8; }
.btn-primary:hover { background: var(--accent-dark); color: #FFFDF8; }
.btn-line { border: 1px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--bg); color: var(--deep); }
.btn-light:hover { background: #fff; color: var(--deep); }
.btn-line-light { border: 1px solid var(--bg); color: var(--bg); }
.btn-line-light:hover { background: var(--bg); color: var(--deep); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }

/* 사진 자리 — 사진을 받으면 <img>로 바꿉니다 (시작하기.txt 참고) */
.ph { background: #E7E0D1; border: 1px dashed #9A9383; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: 15px; padding: 16px; }
.photo { border-radius: var(--radius); object-fit: cover; width: 100%; height: 100%; }
.todo { color: var(--gold); font-weight: 600; }

/* 상단 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,241,232,.94);
  backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--deep); color: var(--bg);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 800; font-size: 20px; }
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 23px; letter-spacing: -.5px; color: var(--ink); }
.nav { display: flex; gap: 32px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--accent); }
.header-cta { display: flex; gap: 10px; }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

/* 첫 화면 */
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(38px, 5vw, 60px); line-height: 1.28; letter-spacing: -1.5px; }
.hero .copy { display: flex; flex-direction: column; gap: 28px; }
.hero .ph, .hero .photo { height: 560px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hours-mini { display: flex; gap: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); flex-wrap: wrap; }
.hours-mini div { display: flex; flex-direction: column; gap: 2px; }
.hours-mini b { color: var(--ink); font-weight: 600; }

/* 소개 */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: center; }
.principle { padding: 28px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
.principle .num { font-family: var(--serif); font-weight: 800; font-size: 28px; color: var(--accent); }
.principle h3 { font-size: 19px; font-weight: 600; }
.principle p { font-size: 16px; line-height: 1.7; color: var(--ink-2); }

/* 대표 진료 */
.care-main { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { padding: 48px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 24px; }
.card h3.big { font-family: var(--serif); font-weight: 800; font-size: 32px; line-height: 1.45; }
.card-deep { background: var(--deep); color: var(--bg); }
.card-deep .label { color: var(--gold-soft); }
.card-deep p { color: var(--on-deep); }
.card-light { background: var(--surface); border: 1px solid var(--line); }
.card-light p { color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.steps li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid #3C5A4D; }
.steps li:last-child { border-bottom: 1px solid #3C5A4D; }
.steps span:first-child { font-weight: 600; color: var(--gold-soft); width: 24px; flex-shrink: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: auto; }
.card-foot strong { font-size: 18px; font-weight: 600; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 8px 18px; border-radius: 999px; background: var(--sand); font-size: 15px; font-weight: 500; }
.card .ph { height: 180px; border-radius: 16px; }

.care-sub { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-top: 24px; }
.card-sm { padding: 36px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.card-sm h3 { font-size: 22px; font-weight: 600; line-height: 1.5; }
.card-sm p { font-size: 16px; color: var(--ink-2); }
.others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.others div { padding: 20px; border-radius: 14px; background: var(--bg); font-size: 18px; font-weight: 600; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 16px; color: var(--ink-2); }

/* 의료진 */
.doctor .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: center; }
.doctor .ph, .doctor .photo { height: 440px; }
.doctor-name { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.doctor-name span { font-size: 18px; color: var(--ink-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.box-dashed { padding: 24px; border: 1px dashed #9A9383; border-radius: 14px; display: flex; flex-direction: column; gap: 6px; }
.box-dashed b { font-size: 16px; }

/* 진료안내 */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hours { width: 100%; border-collapse: collapse; font-size: 17px; }
.hours th, .hours td { text-align: left; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; width: 30%; }
.hours td.note { color: var(--ink-2); }
.big-phone { font-family: var(--serif); font-weight: 800; font-size: clamp(34px, 4vw, 44px); letter-spacing: -.5px; color: var(--bg); text-decoration: none; }
.big-phone:hover { color: #fff; }
.map-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.map-row .ph { min-height: 420px; flex-direction: column; gap: 16px; }
.way { display: flex; flex-direction: column; gap: 28px; padding: 8px 0; }
.way h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.way p, .way ul { color: var(--ink-2); }
.way ul { margin: 0; padding-left: 20px; }

/* 건강정보 */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { padding: 32px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: border-color .15s; }
.post-card:hover { border-color: var(--accent); color: var(--ink); }
.post-meta { font-size: 14px; color: var(--muted); }
.post-card h3 { font-size: 20px; font-weight: 600; line-height: 1.5; }
.post-card p { font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.empty { padding: 40px; border: 1px dashed #9A9383; border-radius: 20px; color: var(--muted); text-align: center; grid-column: 1 / -1; }

/* 글 본문 */
.article { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.article .back { font-size: 15px; font-weight: 600; text-decoration: none; }
.article header { margin: 24px 0 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.article h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 4vw, 42px); line-height: 1.4; letter-spacing: -1px; }
.article .body h2 { font-family: var(--serif); font-weight: 800; font-size: 26px; line-height: 1.45; margin: 48px 0 16px; }
.article .body h3 { font-size: 20px; font-weight: 600; margin: 32px 0 10px; }
.article .body p { margin: 0 0 18px; font-size: 18px; line-height: 1.9; color: var(--ink); }
.article .body ul, .article .body ol { margin: 0 0 18px; padding-left: 22px; font-size: 18px; line-height: 1.9; }
.article .body figure { margin: 32px 0; }
.article .body figure img { border-radius: 16px; }
.article .body figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.article .body blockquote { margin: 24px 0; padding: 20px 24px; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); }
.article .notice { margin-top: 48px; padding: 20px 24px; border-radius: 14px; background: var(--sand); font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.article .cta { margin-top: 32px; padding: 32px; border-radius: 20px; background: var(--deep); color: var(--bg); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.article .cta strong { font-size: 19px; }

/* 하단 */
.site-footer { background: var(--ink); color: #CFC8B8; padding: 56px 0 120px; font-size: 15px; line-height: 1.8; }
.site-footer .name { font-family: var(--serif); font-weight: 800; font-size: 24px; color: var(--bg); margin-bottom: 12px; }
.site-footer .meta { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.site-footer a { color: #CFC8B8; }

/* 휴대폰 하단 고정 버튼 */
.mobile-bar { display: none; }

/* ---------- 태블릿 ---------- */
@media (max-width: 1024px) {
  .nav { gap: 20px; }
  .header-cta .btn-line { display: none; }
  .hero .wrap, .about .wrap { gap: 48px; }
}

/* ---------- 휴대폰 ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .site-header .wrap { height: 64px; }
  .brand-name { font-size: 20px; }
  .brand-mark { width: 36px; height: 36px; font-size: 18px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: none; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg);
    flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a:last-child { border-bottom: 0; }

  .hero .wrap, .about .wrap, .care-main, .care-sub, .doctor .wrap, .info-grid, .map-row { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .hero .ph, .hero .photo { height: 280px; }
  .card { padding: 32px 24px; }
  .card h3.big { font-size: 26px; }
  .card-sm { padding: 28px 24px; }
  .others { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .doctor .ph, .doctor .photo { height: 320px; }
  .map-row .ph { min-height: 260px; }
  .posts { grid-template-columns: 1fr; }
  .lead { font-size: 17px; }
  .article { padding-top: 40px; }
  .article .body p, .article .body ul, .article .body ol { font-size: 17px; }

  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(245,241,232,.97); border-top: 1px solid var(--line); }
  .mobile-bar .btn { width: 100%; }
}

/* ---------- 휴대폰 전용 화면 요소 ----------
   휴대폰으로 열면 첫 화면 바로 아래에 '빠른 메뉴'와 '오늘 진료시간'이 나옵니다.
   데스크톱에서는 보이지 않습니다. */
.m-only { display: none; }
.today { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.today b { color: var(--accent); font-weight: 600; }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick a { min-height: 76px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.quick a b { font-size: 17px; font-weight: 600; }
.quick a span { font-size: 13px; color: var(--muted); }
.quick a.primary { background: var(--accent); border-color: var(--accent); color: #FFFDF8; }
.quick a.primary span { color: #DCE7E1; }

@media (max-width: 860px) {
  .m-only { display: block; }
  .d-only { display: none !important; }
  .m-quick { display: flex; flex-direction: column; gap: 10px; }
  .hero .ph, .hero .photo { height: 220px; }
  /* 휴대폰에서는 사진보다 글과 버튼이 먼저 보이도록 첫 화면 사진을 뒤로 */
  .hero .visual { order: 2; }
  .hero h1 { font-size: 34px; }
}

/* 휴대폰에서 시간 글자가 중간에 끊기지 않도록 */
.hours td:not(.note), .today b { white-space: nowrap; }
.today { flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 860px) {
  .hours { font-size: 16px; }
  .hours th { width: 26%; }
  .hours td.note { font-size: 14px; }
}
.hours td.note { padding-left: 12px; }
@media (max-width: 860px) {
  .info-grid .card { padding: 28px 20px !important; }
}

/* ---------- 공지 배너 (notices.json 에서 자동으로 켜지고 꺼집니다) ---------- */
.notice-bar { background: #8C3B1F; color: #FFF8F0; font-size: 15px; }
.notice-bar .wrap { min-height: 48px; display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.notice-bar .nb-text { flex: 1; min-width: 0; line-height: 1.5; }
.notice-bar .nb-text b { font-weight: 600; margin-right: 8px; }
.notice-bar button { font: inherit; cursor: pointer; border-radius: 999px; }
.notice-bar .nb-more { min-height: 36px; padding: 0 16px; background: #FFF8F0; color: #8C3B1F; border: 0; font-weight: 600; font-size: 14px; white-space: nowrap; }
.notice-bar .nb-close { width: 36px; height: 36px; background: transparent; color: #FFF8F0; border: 1px solid rgba(255,248,240,.5); font-size: 18px; line-height: 1; flex-shrink: 0; }
.notice-dialog { border: 0; padding: 0; border-radius: 20px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--ink); }
.notice-dialog::backdrop { background: rgba(20, 24, 22, .6); }
.notice-dialog img { width: 100%; height: auto; display: block; }
.notice-dialog .nd-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.notice-dialog .nd-body p { font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.notice-dialog .nd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.today.special { border-color: #C9876A; background: #FFF3EC; }
@media (max-width: 860px) {
  .notice-bar { font-size: 14px; }
  .notice-bar .nb-text span { display: none; }   /* 휴대폰에서는 제목만, 내용은 [자세히] 안에 */
  .notice-bar .wrap { padding-left: 16px; padding-right: 12px; }
}

/* 의료진 */
.doctors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.doc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 5fr 7fr; }
.doc-photo { width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: center top; }
.doc-body { padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.doc-name { display: flex; align-items: baseline; gap: 12px; }
.doc-name h3 { font-family: var(--serif); font-weight: 800; font-size: 32px; letter-spacing: -.5px; }
.doc-name span { font-size: 16px; color: var(--ink-2); }
.doc-quote { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.doc-quote p { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.todo-chip { background: transparent; border: 1px dashed #9A9383; color: var(--gold); }
@media (max-width: 1180px) { .doctors { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; }
  .doc-photo { height: auto; aspect-ratio: 4 / 5; max-height: 460px; min-height: 0; }
  .doc-body { padding: 24px 20px 28px; }
  .doc-name h3 { font-size: 28px; }
}

/* 그 밖의 진료 — 4칸 + 담당 원장 */
.others { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.others div { display: flex; flex-direction: column; gap: 4px; }
.others div span { font-size: 13px; font-weight: 500; color: var(--muted); }
@media (max-width: 1180px) { .others { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .others { grid-template-columns: repeat(2, minmax(0, 1fr)); } .others div { font-size: 16px; padding: 16px; } }

/* ---------- 첫 화면 사진 슬라이드 ---------- */
.slider { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #E7E0D1; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(30, 38, 33, .72); color: #FFFDF8; font-size: 13px; font-weight: 500; }
.slider-dots { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 6px; padding: 6px 8px; border-radius: 999px; background: rgba(30, 38, 33, .5); }
.slider-dots button { width: 24px; height: 24px; border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slider-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 253, 248, .55); transition: all .2s; }
.slider-dots button[aria-current="true"]::before { background: #FFFDF8; width: 18px; border-radius: 4px; }
.slider-pause { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(30, 38, 33, .5); color: #FFFDF8; font-size: 11px; cursor: pointer; letter-spacing: -1px; }
.card-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; display: block; }
@media (max-width: 860px) {
  .hero .visual { margin: 0 -24px; }
  .slider { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* 지도 */
.map-box { display: flex; flex-direction: column; gap: 12px; }
.map-frame { width: 100%; flex: 1; min-height: 360px; border: 0; border-radius: var(--radius); background: #E7E0D1; display: block; }
.map-links { display: flex; gap: 10px; flex-wrap: wrap; }
.map-links .btn { flex: 1; }
@media (max-width: 860px) { .map-frame { min-height: 280px; } }

/* 로고 */
.brand-logo { height: 40px; width: auto; display: block; }
@media (max-width: 860px) { .brand-logo { height: 34px; } }

/* 길찾기 앱 선택 */
.dir-sheet { border: 0; padding: 20px 20px 24px; border-radius: 20px; width: min(420px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); }
.dir-sheet::backdrop { background: rgba(20, 24, 22, .55); }
.ds-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ds-title { font-size: 19px; font-weight: 600; }
.ds-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 20px; cursor: pointer; color: var(--ink); }
.ds-sub { font-size: 14px; color: var(--muted); margin: 6px 0 16px; }
.ds-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ds-item { min-height: 56px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; }
.ds-item:hover { border-color: var(--accent); }
.ds-msg { margin-top: 12px; font-size: 14px; color: var(--gold); min-height: 1em; }
@media (max-width: 860px) {
  .dir-sheet { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: 20px 20px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* 비급여 안내 */
.np-date { font-size: 14px; color: var(--muted); }
.np-tabs { position: sticky; top: 80px; z-index: 10; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin-bottom: 8px; background: var(--bg); scrollbar-width: none; }
.np-tabs::-webkit-scrollbar { display: none; }
.np-tabs a { flex-shrink: 0; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.np-tabs a:hover { border-color: var(--accent); }
.np-group { padding: 32px 0 8px; scroll-margin-top: 150px; }
.np-group h2 { font-family: var(--serif); font-weight: 800; font-size: 26px; margin-bottom: 6px; }
.np-desc { font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }
.np-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); font-size: 16px; }
.np-table thead th { background: var(--sand); font-size: 14px; font-weight: 600; text-align: left; padding: 12px 20px; }
.np-table thead th:last-child, .np-table td { text-align: right; }
.np-table tbody th { font-weight: 400; text-align: left; padding: 14px 20px; border-top: 1px solid var(--line); }
.np-table td { padding: 14px 20px; border-top: 1px solid var(--line); white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.np-notice { margin-top: 40px; padding: 20px 24px; border-radius: 14px; background: var(--sand); font-size: 15px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
@media (max-width: 860px) {
  .np-tabs { top: 64px; margin: 0 -24px 8px; padding: 12px 24px; }
  .np-table { font-size: 15px; }
  .np-table tbody th, .np-table td, .np-table thead th { padding: 12px 14px; }
}
.hours-note { font-size: 14px; color: var(--muted); margin-top: -16px; }

/* 찾아오시는 길 — 건물 사진 */
.landmark { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 24px; margin-bottom: 24px;
  padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.landmark-photo { position: relative; margin: 0; border-radius: 16px; overflow: hidden; }
.landmark-photo img { width: 100%; height: auto; display: block; }
.pin { position: absolute; transform: translate(-6px, -6px); display: flex; align-items: center; gap: 8px; pointer-events: none; }
.pin i { width: 14px; height: 14px; border-radius: 50%; background: #E8A21E; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(232,162,30,.35); flex-shrink: 0; }
.pin b { padding: 6px 12px; border-radius: 999px; background: rgba(30,38,33,.86); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.pin-daiso b { background: #C8102E; }
.landmark-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.landmark-title { font-family: var(--serif); font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.4; letter-spacing: -1px; }
.landmark-title mark { background: linear-gradient(transparent 58%, #F6D58E 58%); color: inherit; padding: 0 2px; }
.landmark-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--ink-2); }
.landmark-list li { display: flex; gap: 12px; align-items: flex-start; }
.landmark-list li b { width: 26px; height: 26px; border-radius: 50%; background: var(--deep); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.landmark-list strong { color: var(--ink); }
@media (max-width: 860px) {
  .landmark { grid-template-columns: 1fr; gap: 20px; padding: 0 0 24px; background: none; border: 0; }
  .landmark-photo { margin: 0 -24px; border-radius: 0; }
  .pin b { font-size: 12px; padding: 5px 10px; }
}
.pin-left { flex-direction: row-reverse; transform: translate(calc(-100% + 8px), -6px); }

/* 의료진 — 한 줄에 한 분, 사진 옆에 소개 + 진료 시간표 */
.doctors { grid-template-columns: 1fr; gap: 28px; }
.doc { grid-template-columns: 340px 1fr; }
.doc-photo { min-height: 0; height: 100%; aspect-ratio: auto; }
.doc-body { padding: 36px 40px; gap: 20px; justify-content: center; }
.sched-wrap { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.sched-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.sched { width: 100%; border-collapse: separate; border-spacing: 6px 0; table-layout: fixed; margin: 0 -6px; width: calc(100% + 12px); }
.sched th { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0 0 8px; text-align: center; }
.sched th.wkend { color: var(--gold); }
.sched td { padding: 0; text-align: center; }
.sched td span { display: flex; align-items: center; justify-content: center; min-height: 64px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.35; font-variant-numeric: tabular-nums; }
.sched .on { background: var(--deep); color: #FFFDF8; }
.sched .on.short { background: #D9C9A6; color: var(--ink); }
.sched .off { background: transparent; border: 1px dashed #C9C1AF; color: #8A8F88; font-weight: 500; font-size: 13px; }
.sched-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.sched-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sched-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.on-dot { background: var(--deep); }
.short-dot { background: #D9C9A6; }
@media (max-width: 1024px) { .doc { grid-template-columns: 280px 1fr; } .doc-body { padding: 28px; } }
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; }
  .doc-photo { height: auto; aspect-ratio: 4 / 5; max-height: 460px; }
  .doc-body { padding: 24px 20px 28px; }
  .sched { border-spacing: 4px 0; margin: 0 -4px; width: calc(100% + 8px); }
  .sched td span { min-height: 58px; font-size: 13px; border-radius: 10px; }
  .sched .off { font-size: 12px; }
}

/* 진료 일정표 — 병원 표준 양식 (오전/오후 × 요일, ● 진료) */
.sched { margin: 0; width: 100%; border-collapse: collapse; border-spacing: 0; table-layout: fixed; background: var(--surface);
  border-top: 2px solid var(--deep); font-size: 15px; }
.sched th, .sched td { padding: 12px 0; text-align: center; border-bottom: 1px solid var(--line); }
.sched thead th { background: #EFE9DC; font-size: 14px; font-weight: 600; color: var(--ink); padding: 10px 0; }
.sched thead th.sat { color: #2F5DA8; }
.sched thead th.sun { color: #C0392B; }
.sched tbody th { font-size: 14px; font-weight: 600; color: var(--ink-2); background: #F7F3EA; }
.sched .sc-corner { width: 17%; }
.sched td span { display: inline; min-height: 0; background: none; border: 0; border-radius: 0; padding: 0; }
.sched .dot { color: var(--accent); font-size: 16px; line-height: 1; }
.sched .dash { color: #B5AE9E; font-size: 15px; }
.sched-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.sched-legend .dot { color: var(--accent); }
.sched-legend .dash { color: #B5AE9E; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 860px) {
  .sched { font-size: 14px; margin: 0; width: 100%; }
  .sched th, .sched td { padding: 10px 0; }
  .sched thead th, .sched tbody th { font-size: 13px; }
}

/* 자주 묻는 질문 */
.faq { max-width: 860px; }
.faq-group { padding-top: 32px; }
.faq-group h2 { font-family: var(--serif); font-weight: 800; font-size: 24px; margin-bottom: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 52px 18px 20px; font-size: 17px; font-weight: 600; position: relative; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-item .q { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--deep); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.faq-a { padding: 0 20px 20px 62px; }
.faq-a p { font-size: 16px; line-height: 1.85; color: var(--ink-2); }
@media (max-width: 860px) {
  .faq-item summary { font-size: 16px; padding: 16px 44px 16px 16px; gap: 10px; }
  .faq-a { padding: 0 16px 18px 16px; }
}

/* 방문 후기 안내 띠 */
.review-band { background: #EAF4EC; border-top: 1px solid #D3E7D8; border-bottom: 1px solid #D3E7D8; }
.review-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.review-text { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.review-lead { font-size: 18px; line-height: 1.7; color: var(--ink); }
.review-sub { font-size: 15px; color: var(--ink-2); }
.review-btn { background: #fff; border: 1px solid #03A94D; color: #0B6B36; gap: 10px; padding: 0 22px 0 8px; min-height: 52px; }
.review-btn:hover { background: #F4FBF6; color: #0B6B36; }
.naver-mark { background: #03A94D; color: #fff; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; letter-spacing: .5px; }
@media (max-width: 860px) {
  .review-inner { padding-top: 32px; padding-bottom: 32px; }
  .review-lead { font-size: 16px; }
  .review-btn { width: 100%; justify-content: center; }
}
@media (max-width: 1180px) { .nav { gap: 18px; } .nav a { font-size: 15px; } }

/* 첫 화면 문구 */
.hero h1 .h1-em { color: var(--accent); }
.hero-lead { font-size: 20px; color: var(--ink); font-weight: 500; }
.hero-sub { font-size: 15px; color: var(--muted); margin-top: -14px; letter-spacing: .2px; }
@media (max-width: 860px) { .hero h1 { font-size: 32px; } .hero-lead { font-size: 17px; } .hero-sub { font-size: 14px; } }
.hero-review { align-self: flex-start; margin-top: -8px; }
@media (max-width: 860px) { .hero-review { align-self: stretch; margin-top: 0; white-space: normal; text-align: center; } }

/* 한의원 소개 보강 */
.about .wrap { align-items: start; }
.about-copy { gap: 20px; position: sticky; top: 120px; }
.about-copy .lead { font-size: 17px; }
.about-facts { list-style: none; margin: 8px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.about-facts li { display: flex; flex-direction: column; gap: 2px; }
.about-facts b { font-family: var(--serif); font-weight: 800; font-size: 20px; color: var(--accent); }
.about-facts span { font-size: 14px; color: var(--muted); }
.principles { grid-template-columns: 1fr; gap: 14px; }
.principle { padding: 26px 28px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; gap: 12px; transition: border-color .2s; }
.principle:hover { border-color: var(--accent); }
.p-head { display: flex; align-items: center; gap: 14px; }
.principle .num { font-family: var(--serif); font-weight: 800; font-size: 15px; color: #fff; background: var(--deep); width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.principle h3 { font-size: 20px; }
.principle p { font-size: 16px; line-height: 1.8; }
@media (max-width: 860px) {
  .about-copy { position: static; }
  .about-facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .about-facts b { font-size: 16px; }
  .about-facts span { font-size: 12px; }
  .principle { padding: 22px 20px; }
  .principle h3 { font-size: 18px; }
}
.naver-mark { font-family: Arial, "Helvetica Neue", sans-serif; font-weight: 800; letter-spacing: .8px; font-size: 12px; }

/* 첫 화면 사진 크게 (PC) — 글 5 : 사진 7, 사진은 오른쪽 화면 끝까지 */
@media (min-width: 861px) {
  .hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; max-width: none;
    padding-left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); padding-right: 0; }
  .hero .visual { align-self: stretch; }
  .hero .slider { aspect-ratio: auto; height: 100%; min-height: 560px; border-radius: var(--radius) 0 0 var(--radius); }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 860px) { .hero .slider { aspect-ratio: 1 / 1; max-height: 520px; } }

/* 건강 칼럼 목록 */
.board-head { margin-bottom: 20px; }
.post-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.post-filter button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.post-filter button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.post-card.has-thumb { padding: 0; overflow: hidden; gap: 0; }
.post-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #fff; border-bottom: 1px solid var(--line); display: block; }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.post-card:not(.has-thumb) .post-body { padding: 0; }
.post-cat { align-self: flex-start; background: #E4EFE8; color: var(--accent); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.board-foot { margin-top: 32px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .posts { grid-template-columns: 1fr; }
  .post-card.has-thumb { flex-direction: row; }
  .post-card.has-thumb .post-thumb { width: 112px; aspect-ratio: auto; height: auto; min-height: 112px; border-bottom: 0; border-right: 1px solid var(--line); flex-shrink: 0; }
  .post-body { padding: 14px 16px; gap: 6px; }
  .post-card h3 { font-size: 16px; }
  .post-card p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ===== 첫 화면 균형 조정 (이전 '사진 크게' 규칙을 덮어씀) ===== */
@media (min-width: 861px) {
  .hero .wrap { max-width: var(--wrap); padding-left: 24px; padding-right: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: center; }
  .hero .visual { align-self: center; }
  .hero .slider { height: auto; min-height: 0; aspect-ratio: 5 / 4; border-radius: var(--radius); }
}
.hero-title { white-space: nowrap; font-size: clamp(30px, 3.3vw, 46px) !important; letter-spacing: -1.5px; }
@media (max-width: 860px) { .hero-title { font-size: 28px !important; letter-spacing: -1px; } }

/* 슬라이드 속 공지 이미지 */
.slide-notice { background: #F1E9DD; }
.slide-notice-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.slide-notice-btn img { width: 100%; height: 100%; object-fit: contain; }

/* 수壽 한약 */
.soo { background: #F3EDE3; }
.soo-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.soo-visual { margin: 0; }
.soo-visual img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 8px 28px rgba(60, 40, 20, .12); }
.soo-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.soo-event { background: #fff; border: 1px solid #E5D8C4; border-radius: 16px; padding: 18px 22px; width: 100%; }
.soo-badge { display: inline-block; background: #7A4A1E; color: #fff; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.soo-event ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.soo-event li b { display: inline-block; min-width: 56px; font-family: var(--serif); font-size: 22px; color: #7A4A1E; }
.soo-event small { color: var(--muted); }
.soo-btn { background: #7A4A1E; }
.soo-btn:hover { background: #5E3814; }
.soo-note { font-size: 13px; color: var(--muted); }
.soo-inner:has(.soo-visual[hidden]) { grid-template-columns: 1fr; }
@media (max-width: 860px) {
  .soo-inner { grid-template-columns: 1fr; gap: 28px; }
  .soo-btn { width: 100%; }
}

/* 한의원 소개 — 리뷰 한 줄 */
.about-review { margin-top: 8px; padding: 20px 22px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ar-main { font-size: 18px; color: var(--ink); }
.ar-main strong { color: var(--accent); }
.ar-sub { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.ar-sub span { color: var(--muted); font-size: 12px; }
.ar-link { font-size: 14px; font-weight: 600; text-decoration: none; margin-top: 4px; }
.soo-simple { grid-template-columns: 1fr; max-width: 760px; text-align: center; }
.soo-simple .soo-text { align-items: center; }
