/* AILO Medical M05 — 자연담 한의원
   원형: E 미니멀 타이포형 — 큰 한글 제목 + 넓은 여백 + 풀폭 진료 공간 사진 띠, 흰 헤더(얇은 하단 선), 원형은 체질 도식 1곳만
   타이포: Pretendard + Lora(영문 eyebrow·숫자만) / 컬러: 쑥색 #56634a 1색 + 먹색·한지 무채색 */

:root {
  --ailo-bg: #ffffff;
  --ailo-fg: #1f211e;
  --ailo-muted: #50534d;
  --ailo-line: #e4e1d9;
  --ailo-accent: #56634a;
  --ailo-header-h: 84px;

  --m05-ssuk: #56634a;
  --m05-ssuk-d: #45503b;
  --m05-ink: #1f211e;
  --m05-paper: #f5f2ea;
  --m05-r: 2px;
  --m05-sec: clamp(80px, 9vw, 140px);
  --m05-en: "Lora", "Pretendard Variable", Pretendard, serif;
}

body { font-size: 17px; letter-spacing: -.01em; }
main img { height: auto; }
.sec { padding-block: var(--m05-sec); }
.ailo-eyebrow { font-family: var(--m05-en); font-weight: 600; letter-spacing: .12em; }

.j-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: var(--m05-r); font-size: 16px; font-weight: 700;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; white-space: nowrap;
}
.j-btn--ink { background: var(--m05-ink); color: #fff; }
.j-btn--ink:hover, .j-btn--ink:focus-visible { background: var(--m05-ssuk); color: #fff; }
.j-btn--ssuk { background: var(--m05-ssuk); color: #fff; }
.j-btn--ssuk:hover { background: var(--m05-ssuk-d); color: #fff; }
.j-btn--line { border-color: #c9c5bb; color: var(--ailo-fg); }
.j-btn--line:hover { border-color: var(--m05-ink); }
.j-btn--block { width: 100%; }

/* ---------- Header ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 100; background: #fff; border-bottom: 1px solid var(--ailo-line); }
.hd.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .05); }
.hd__in { display: flex; align-items: center; gap: 28px; height: var(--ailo-header-h); }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.seal { display: grid; place-items: center; width: 40px; height: 40px; background: var(--m05-ssuk); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.1; text-align: center; border-radius: 2px; }
.logo__txt { display: flex; flex-direction: column; font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.logo__txt small { font-family: var(--m05-en); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--ailo-muted); }
.gnb { display: flex; gap: clamp(18px, 2.2vw, 34px); margin-left: auto; }
.gnb a { font-size: 16px; font-weight: 600; padding: 8px 0; }
.gnb a:hover { color: var(--m05-ssuk); }
.hd__cta { min-height: 42px; padding: 0 20px; font-size: 15px; }

.mnav { background: #fff; }
.mnav__in { padding: 104px var(--ailo-gutter) 40px; display: grid; gap: 24px; }
.mnav nav a { display: block; padding: 15px 0; font-size: 21px; font-weight: 700; border-bottom: 1px solid var(--ailo-line); }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--ailo-header-h) + clamp(56px, 7vw, 112px)); }
.hero__title { font-size: clamp(40px, 5.6vw + 4px, 96px); font-weight: 800; line-height: 1.12; letter-spacing: -.045em; margin-top: 8px; }
.hero__row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero__lead { font-size: clamp(16px, .3vw + 15px, 19px); line-height: 1.8; color: var(--ailo-muted); max-width: 36em; }
.hero__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__band { position: relative; margin: 0; }
.hero__band img { width: 100%; height: clamp(320px, 42vw, 620px); object-fit: cover; }
.hero__cap { position: absolute; left: 0; right: 0; bottom: 24px; }
.hero__cap span { display: inline-block; background: #fff; padding: 10px 16px; font-size: 15px; font-weight: 600; border-radius: var(--m05-r); font-variant-numeric: tabular-nums; }

/* ---------- Story ---------- */
.story__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 112px); align-items: center; }
.story__big { font-size: clamp(22px, 1.6vw + 12px, 30px); font-weight: 700; line-height: 1.5; letter-spacing: -.02em; margin: 28px 0 18px; color: var(--m05-ssuk); }
.story__txt { font-size: 17px; color: var(--ailo-muted); line-height: 1.8; }
.story__three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; border-top: 1px solid var(--ailo-line); padding-top: 28px; }
.story__three b { display: block; font-size: 30px; font-weight: 700; color: var(--m05-ssuk); line-height: 1; }
.story__three span { display: block; font-size: 16px; font-weight: 700; margin: 10px 0 4px; }
.story__three p { font-size: 15px; color: var(--ailo-muted); }
.story__img { margin: 0; }
.story__img img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--m05-r); }

/* ---------- Clinic ---------- */
.clinic { background: var(--m05-paper); }
.screen { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--m05-ink); }
.panel { position: relative; padding: 34px 32px 30px; border-bottom: 1px solid var(--ailo-line); display: flex; flex-direction: column; gap: 10px; transition: background-color .25s; }
.panel:not(:nth-child(3n+1)) { border-left: 1px solid var(--ailo-line); }
.panel:hover { background: #fff; }
.panel__no { font-size: 15px; font-weight: 700; color: var(--m05-ssuk); }
.panel__t { font-size: 22px; font-weight: 700; }
.panel p { font-size: 16px; color: var(--ailo-muted); flex: 1; }
.panel a { font-size: 15px; font-weight: 700; color: var(--m05-ssuk); margin-top: 6px; }

/* ---------- Herbs ---------- */
.herbs__lead { margin-top: 0; max-width: 34em; }
.herbs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.herbs__grid li { display: grid; gap: 6px; }
.herbs__grid svg { width: 120px; height: 90px; overflow: visible; margin-bottom: 8px; }
.hb { fill: none; stroke: var(--m05-ssuk); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hb > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ailo-ease); }
.is-drawn .hb > * { stroke-dashoffset: 0; }
.herbs__grid h3 { font-size: 21px; font-weight: 700; }
.herbs__grid h3 small { font-size: 15px; font-weight: 500; color: var(--ailo-muted); margin-left: 4px; }
.herbs__nat { font-size: 15px; font-weight: 600; color: var(--m05-ssuk); }
.herbs__grid p:not(.herbs__nat) { font-size: 16px; color: var(--ailo-muted); }
.herbs__note { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--ailo-line); font-size: 15px; color: var(--ailo-muted); }

/* ---------- Constitution ---------- */
.type { background: var(--m05-ink); color: #f1efe9; --ailo-muted: #b7b4ab; --ailo-line: rgba(255, 255, 255, .14); }
.type .ailo-eyebrow { color: #b3c0a3; }
.type__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 112px); align-items: start; }
.type__wheel { width: min(280px, 70%); margin-top: 40px; }
.tw-ring { fill: none; stroke: rgba(255, 255, 255, .2); }
.tw-q { fill: rgba(255, 255, 255, .05); stroke: var(--m05-ink); stroke-width: 2; transition: fill .3s; }
.tw-q.is-on { fill: var(--m05-ssuk); }
.tw-t { fill: #f1efe9; font-size: 18px; font-weight: 700; text-anchor: middle; }
.tw-core { fill: var(--m05-ink); }
.type__tabs { display: flex; border-bottom: 1px solid var(--ailo-line); margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; }
.type__tabs button { flex: 1 0 auto; min-height: 56px; padding: 0 18px; border: 0; background: transparent; color: var(--ailo-muted); font-size: 18px; font-weight: 600; position: relative; }
.type__tabs button[aria-selected="true"] { color: #fff; }
.type__tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #b3c0a3; }
.tp[hidden] { display: none; }
.tp:focus-visible { outline-color: #fff; outline-offset: 6px; }
.tp__han { font-size: 15px; font-weight: 600; color: #b3c0a3; letter-spacing: .2em; }
.tp h3 { font-size: clamp(26px, 2.2vw, 34px); font-weight: 800; margin: 8px 0 22px; }
.tp h3 small { font-size: 16px; font-weight: 500; color: var(--ailo-muted); margin-left: 8px; }
.tp dl { margin: 0; border-top: 1px solid var(--ailo-line); }
.tp dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--ailo-line); }
.tp dt { font-size: 16px; font-weight: 700; }
.tp dd { margin: 0; font-size: 16px; color: #d6d3cb; }

/* ---------- Numbers ---------- */
.nums { padding-block: clamp(56px, 6vw, 88px); border-bottom: 1px solid var(--ailo-line); }
.nums__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.nums__list li { display: flex; align-items: baseline; gap: 10px; padding-left: 28px; border-left: 1px solid var(--ailo-line); }
.nums__list li:first-child { padding-left: 0; border: 0; }
.nums__list b { font-family: var(--m05-en); font-size: clamp(44px, 4vw, 64px); font-weight: 500; color: var(--m05-ssuk); line-height: 1; font-variant-numeric: tabular-nums; }
.nums__list span { font-size: 16px; color: var(--ailo-muted); }

/* ---------- Doctors ---------- */
.docs__list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.dr { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; }
.dr__img { margin: 0; }
.dr__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--m05-r); background: var(--m05-paper); }
.dr__role { font-size: 15px; font-weight: 600; color: var(--m05-ssuk); }
.dr h3 { font-size: 28px; font-weight: 800; margin: 4px 0 6px; }
.dr__field { font-size: 16px; margin-bottom: 14px; }
.dr__cv { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--ailo-line); }
.dr__cv li { font-size: 15px; color: var(--ailo-muted); }

/* ---------- Hours + Booking ---------- */
.book { background: var(--m05-paper); }
.book__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.hours__list { margin: 28px 0 16px; border-top: 1px solid var(--m05-ink); }
.hours__list li { display: flex; justify-content: space-between; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--ailo-line); font-size: 17px; font-variant-numeric: tabular-nums; }
.hours__list b { font-weight: 600; }
.hours__list em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--m05-ssuk); margin-left: 6px; }
.hours__list .is-sub { color: var(--ailo-muted); }
.hours__list .is-off b { color: #a0303a; }
.hours__list .is-today { background: #fff; }
.hours__now { font-size: 17px; font-weight: 700; color: var(--m05-ssuk); margin-bottom: 6px; }
.hours__note { font-size: 15px; color: var(--ailo-muted); }
.booking { background: #fff; padding: clamp(28px, 3vw, 48px); border-radius: var(--m05-r); }
.booking__t { font-size: clamp(24px, 2vw, 30px); font-weight: 800; }
.booking__d { font-size: 16px; color: var(--ailo-muted); margin: 6px 0 24px; }
.jf { display: grid; gap: 16px; }
.jf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jf__fld { display: grid; gap: 6px; }
.jf__fld > span { font-size: 15px; font-weight: 600; }
.jf__fld input, .jf__fld select, .jf__fld textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #d3cfc5; border-radius: var(--m05-r); background: #fff; font-size: 16px; color: var(--ailo-fg); }
.jf__fld input:focus, .jf__fld select:focus, .jf__fld textarea:focus { outline: none; border-color: var(--m05-ssuk); box-shadow: 0 0 0 3px rgba(86, 99, 74, .15); }
.jf__agree { display: flex; gap: 10px; font-size: 14px; color: var(--ailo-muted); }
.jf__agree input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--m05-ssuk); }
.jf__agree a { color: var(--ailo-fg); text-decoration: underline; }

/* ---------- Notice + Fee ---------- */
.notice__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.notice__grid > * { min-width: 0; }
.notice__head { margin-bottom: 20px; }
.fee { display: grid; gap: 10px; padding: 32px; background: var(--m05-paper); border-radius: var(--m05-r); transition: background-color .2s; }
.fee:hover { background: #ece8dd; }
.fee__han { font-size: 30px; font-weight: 700; color: var(--m05-ssuk); line-height: 1; }
.fee b { font-size: 21px; }
.fee small { font-size: 16px; color: var(--ailo-muted); line-height: 1.6; }
.fee__go { font-size: 15px; font-weight: 700; color: var(--m05-ssuk); }

/* ---------- Partners ---------- */
.partners { padding: 40px 0; border-top: 1px solid var(--ailo-line); }
.partners__in { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.partners__in p { font-size: 15px; font-weight: 700; }
.partners__in ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.partners .ailo-wordmark { font-size: 18px; height: 44px; }

/* ---------- Location ---------- */
.loc { background: var(--m05-paper); }
.loc__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.loc__map svg { width: 100%; height: auto; border-radius: var(--m05-r); }
.lm-bg { fill: #ebe6da; }
.lm-mtn { fill: none; stroke: #c6c0b0; stroke-width: 2; }
.lm-river { fill: none; stroke: #c9d0c1; stroke-width: 14; }
.lm-road { fill: none; stroke: #fff; stroke-width: 14; }
.lm-st { fill: var(--m05-ink); }
.lm-t { font-size: 14px; font-weight: 700; fill: #4a4c46; }
.lm-t--b { fill: #fff; text-anchor: middle; }
.lm-t--s { fill: #8a8577; font-weight: 500; }
.lm-walk { fill: none; stroke: var(--m05-ssuk); stroke-width: 3; stroke-dasharray: 5 6; }
.lm-bld { fill: var(--m05-ssuk); }
.loc__addr { font-size: 19px; font-weight: 600; margin: 18px 0 24px; }
.loc__dl { margin: 0 0 28px; border-top: 1px solid var(--ailo-line); }
.loc__dl > div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ailo-line); }
.loc__dl dt { font-size: 16px; font-weight: 700; color: var(--m05-ssuk); }
.loc__dl dd { margin: 0; font-size: 16px; }
.loc__dl a { font-weight: 700; }

/* ---------- Footer ---------- */
.ft { background: #1a1c19; color: #b0ada4; padding: 56px 0 40px; font-size: 14px; }
.ft__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.logo--ft { color: #fff; }
.logo--ft small { color: #a29f96; }
.ft__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.ft__nav a:hover, .ft__nav strong { color: #fff; }
.ft__info { line-height: 1.9; }
.ft__copy { margin-top: 14px; font-size: 13px; color: #8b887f; }

.mbar { display: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 1199.98px) {
  .gnb { gap: 16px; }
  .gnb a { font-size: 15px; }
  .hd__cta { display: none; }
  .dr { grid-template-columns: 1fr; }
  .dr__img img { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 991.98px) {
  :root { --ailo-header-h: 68px; }
  .gnb { display: none; }
  .hd__in { justify-content: space-between; }
  .hero__row { grid-template-columns: 1fr; gap: 24px; }
  .story__grid, .type__grid, .book__grid, .notice__grid, .loc__grid { grid-template-columns: 1fr; }
  .screen, .herbs__grid { grid-template-columns: 1fr 1fr; }
  .panel:not(:nth-child(3n+1)) { border-left: 0; }
  .panel:nth-child(even) { border-left: 1px solid var(--ailo-line); }
  .type__wheel { display: none; }
  .nums__list { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .nums__list li:nth-child(3) { padding-left: 0; border: 0; }
  .mbar { display: grid; grid-template-columns: 1fr 1.2fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid var(--ailo-line); padding-bottom: env(safe-area-inset-bottom); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; font-size: 15px; font-weight: 700; }
  .mbar i { color: var(--m05-ssuk); }
  .mbar__main, .mbar__main:hover { background: var(--m05-ssuk); color: #fff; }
  .mbar__main i { color: #fff; }
  body { padding-bottom: 60px; }
}
@media (max-width: 575.98px) {
  .screen, .herbs__grid, .docs__list, .jf__row { grid-template-columns: 1fr; }
  .panel:nth-child(even) { border-left: 0; }
  .panel { padding: 26px 4px; }
  .story__three { grid-template-columns: 1fr; gap: 18px; }
  .tp dl > div { grid-template-columns: 1fr; gap: 4px; }
  .nums__list li { flex-direction: column; gap: 4px; padding-left: 16px; }
  .hero__cap { bottom: 12px; }
  .hero__cap span { font-size: 14px; padding: 8px 12px; }
  .ailo-postlist__date { display: none; }
}
