:root {
  --navy: #182744;
  --sky: #4dc5e8;
  --gray: #bec2bf;
  --white: #fff;
  --muted: #4f5b71;
  --line: #dbdddc;
  --paper: #f9f9f9;
  --wash: #eaf8fc;
  --kakao: #fee500;
  --naver: #03c75a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  color: var(--navy);
  font-synthesis: none;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--paper); padding: 24px 16px; min-height: 100vh; min-height: 100svh; line-height: 1.65; font-size: 16px; }
.container { max-width: 440px; margin: 0 auto; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 36px rgb(24 39 68 / 5%); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.icon { display: inline-block; width: 22px; height: 22px; flex: 0 0 22px; vertical-align: -5px; }
.back-link { display: flex; align-items: center; min-height: 44px; width: fit-content; font-size: 14px; color: var(--muted); margin: -12px 0 16px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 19px; line-height: 1.4; font-weight: 750; margin: 28px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--navy); letter-spacing: -.5px; }
.section-title .icon { width: 21px; height: 21px; }
.links-group { display: flex; flex-direction: column; gap: 10px; }
.links-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link-button, .main-button { display: flex; align-items: center; min-height: 54px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--navy); font-size: 16px; font-weight: 650; line-height: 1.45; text-align: left; }
.button-label { display: flex; align-items: center; gap: 10px; flex: 1; padding: 14px 16px; }
.main-button .button-label::after, .page-suin .link-button .button-label::after { content: '›'; margin-left: auto; font-size: 24px; font-weight: 400; line-height: 1; }
.link-icon { display: inline-flex; flex: 0 0 22px; }
.clinic-button { background: var(--navy); border-color: var(--navy); color: var(--white); }
.doctor-button { background: var(--wash); border-color: var(--line); }
.main-button { min-height: 62px; font-size: 17px; }
.home-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.role { font-size: 15px; font-weight: 600; color: var(--muted); }
.home-name h1 { font-size: 38px; line-height: 1.3; letter-spacing: -1.5px; margin-top: 4px; font-weight: 750; }
.logo { display: block; width: 55px; height: auto; }
.credentials { margin: 22px 0; padding-left: 12px; border-left: 3px solid var(--sky); font-size: 14px; line-height: 1.9; }
.card-download { display: block; margin: 0 0 24px; }
.business-card { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.card-hint { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.page-home .links-group { gap: 10px; }
.clinic-header { display: flex; align-items: center; gap: 12px; }
.clinic-logo { width: 37px; height: auto; }
.clinic-name { font-family: 'Jua', sans-serif; font-size: 30px; font-weight: 400; letter-spacing: -1px; }
.clinic-name-en { font-size: 11px; letter-spacing: 1px; color: var(--muted); font-weight: 600; margin: 6px 0 20px; }
.page-clinic .clinic-name-en + .section-title { border-top: 0; padding-top: 0; margin-top: 24px; }
.call-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--navy); color: var(--white); border-radius: 14px; min-height: 64px; padding: 14px 18px; font-size: 18px; font-weight: 700; }
.call-number { font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kakao-button { background: var(--kakao); border-color: var(--kakao); }
.talk-button { background: var(--naver); border: 2px solid var(--naver); color: var(--white); }
/* Keep the original brand green and white lettering; navy protects text contrast. */
.talk-button .button-label { padding: 0; gap: 0; }
.talk-button .link-icon { align-self: stretch; display: flex; align-items: center; justify-content: center; flex-basis: 52px; color: var(--navy); }
.talk-button .button-label { background: var(--navy); border-radius: 12px; min-height: 52px; }
.talk-button .link-icon { background: var(--naver); border-radius: 10px 0 0 10px; margin-right: 14px; }
.links-row .button-label { justify-content: center; padding: 13px 8px; font-size: 15px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.info-table th { text-align: left; font-weight: 650; padding: 12px 0; vertical-align: top; width: 110px; }
.info-table td { text-align: right; padding: 12px 0; color: var(--muted); }
.info-table tr + tr { border-top: 1px solid var(--line); }
.closed { color: var(--navy) !important; font-weight: 750; }
.address { font-size: 15px; line-height: 1.95; margin-bottom: 16px; }
.address strong { font-weight: 700; }
.note { font-size: 14px; line-height: 1.85; padding: 16px; border-radius: 14px; background: var(--paper); margin: 16px 0 12px; color: var(--muted); overflow-wrap: anywhere; }
.note .icon { width: 18px; height: 18px; }
.clinic-story { margin: 28px 0 0; border-top: 1px solid var(--line); padding-top: 24px; }
.slogan { font-family: 'Jua', sans-serif; font-size: 20px; line-height: 1.85; text-align: center; padding: 20px 12px; border-radius: 16px; background: var(--wash); }
.slogan strong { font-weight: 400; color: var(--navy); text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 4px; text-underline-offset: 5px; }
.intro { font-size: 15px; line-height: 1.9; }
.page-clinic .intro { margin-top: 16px; text-align: center; }
.profile-section { text-align: left; }
.profile-image { display: block; width: 100px; height: 100px; border-radius: 30px; object-fit: cover; border: 3px solid var(--wash); margin-bottom: 18px; }
.name { font-size: 32px; letter-spacing: -1px; font-weight: 750; margin-bottom: 16px; }
.page-suin .intro { border-radius: 14px; padding: 18px 16px; background: var(--wash); border-left: 3px solid var(--sky); }
.page-suin .links-group { gap: 0; border-top: 1px solid var(--line); }
.page-suin .link-button { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 58px; background: var(--white); }
.page-suin .link-button .button-label { padding: 16px 0; }
.page-suin .links-group button:first-child { font-weight: 750; }
/* 원장 소개: 링크마다 색 아이콘 */
.page-suin .link-icon { flex: 0 0 38px; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 11px; margin-right: 4px; }
.icon-portfolio { background: #e3f5fb; color: #1592c4; }
.icon-instagram { background: #fdedf3; }
.icon-blog { background: #e2f8eb; color: #03a64b; }
.icon-wordpress { background: #e5eff5; color: #21759b; }
.icon-facebook { background: #e7f0fe; color: #1877f2; }
.modal { display: none; position: fixed; z-index: 1000; inset: 0; background: rgb(24 39 68 / 50%); overflow-y: auto; }
.modal.show { display: block; }
.modal-content { background: var(--white); width: calc(100% - 24px); max-width: 520px; margin: 20px auto; padding: 24px; border-radius: 20px; }
.modal-header { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.modal-title { font-size: 21px; line-height: 1.5; }
.modal-title .icon { display: none; }
.close-btn { display: grid; place-items: center; color: var(--navy); min-width: 44px; min-height: 44px; border: 0; border-radius: 12px; background: var(--paper); font-size: 28px; }
.portfolio-section { margin-bottom: 24px; }
.portfolio-section[style] { background: var(--wash) !important; }
.portfolio-section p[style], .portfolio-section strong[style] { color: var(--navy) !important; }
.portfolio-section-title { display: flex; align-items: center; gap: 6px; font-weight: 750; font-size: 16px; color: var(--navy); margin-bottom: 12px; }
.portfolio-list { padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.portfolio-list li + li { margin-top: 6px; }
@media (hover: hover) {
  a:hover, button:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 380px) {
  body { padding: 16px 12px; }
  .container { padding: 24px 20px; border-radius: 22px; }
  .main-button { font-size: 16px; }
  .button-label { padding-left: 13px; padding-right: 13px; }
}
