/* 진료 안내 페이지 공통 스타일 (/treatments/*) */
@font-face { font-family: "Noto Sans KR"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/noto-sans-kr-400-700.b0cb50a2ef.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --navy: #1E3863;
  --blue: #34507F;
  --sky: #9AAAC6;
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f2efe9;
  --ink: #172036;
  --muted: #4A5265;
  --line: #e7e2d9;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --serif: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; /* 제목도 로고 옆 이름과 같은 글꼴 */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-y: scroll; } /* 짧은 페이지에서도 스크롤바 자리를 유지해 메뉴 크기가 변하지 않게 */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 1.0625rem; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
body.lang-en [data-ko] { display: none !important; }
body:not(.lang-en) [data-en] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* 상단 메뉴 */
/* 상단 메뉴: 홈페이지와 똑같은 모양 (떠 있는 둥근 메뉴, 휴대폰은 메뉴 버튼) */
.utility { position: sticky; top: 0; z-index: 30; padding: 14px 24px 0; pointer-events: none; view-transition-name: site-header; }
.utility-inner { pointer-events: auto; position: relative; max-width: 1180px; margin: auto; min-height: 64px; padding: 6px 8px 6px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-radius: 999px; background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 0 0 1px rgba(30, 56, 99, .07), 0 16px 40px -18px rgba(30, 56, 99, .22); }
.brand-mark { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark img { width: 46px; height: 43px; object-fit: contain; }
.brand-name { color: var(--navy); font-size: 1.08rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.brand-name[data-en] { letter-spacing: .045em; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 1rem; font-weight: 600; }
.nav a { position: relative; padding: 8px 2px; text-decoration: none; transition: color .3s var(--ease); }
.nav a:after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover { color: var(--blue); }
.nav a:hover:after, .nav a[aria-current]:after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--blue); }
.actions { display: flex; align-items: center; gap: 10px; }
.lang, .menu-toggle { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .92rem; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.lang:hover { border-color: var(--blue); color: var(--navy); }
.call-small { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); transition: background .3s var(--ease); }
.call-small:hover { background: var(--blue); }
.call-small svg { color: var(--sky); width: 22px !important; height: 22px !important; }
.call-small svg, .mobile-call svg { width: 18px; height: 18px; flex: 0 0 auto; }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 7px; font-weight: 600; }
.burger { position: relative; width: 18px; height: 12px; display: inline-block; }
.burger i { position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), opacity .3s var(--ease), top .45s var(--ease); }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 5px; } .burger i:nth-child(3) { top: 10px; }
body.nav-open .burger i:nth-child(1) { top: 5px; transform: rotate(45deg); }
body.nav-open .burger i:nth-child(2) { opacity: 0; transform: scaleX(.3); }
body.nav-open .burger i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
@media (min-width: 801px) and (max-width: 1050px) { .call-small { display: none; } .nav { gap: 16px; } }
@media (min-width: 801px) and (max-width: 940px) { .nav { gap: 13px; font-size: .92rem; } .utility-inner { gap: 12px; padding-left: 14px; } .brand-mark { gap: 8px; } }
@media (max-width: 800px) {
  .utility { padding: 0; }
  .utility-inner { border-radius: 0; padding: 5px 16px; min-height: 64px; gap: 10px; background: rgba(250, 248, 244, .9); box-shadow: 0 1px 0 var(--line); }
  .brand-mark { gap: 9px; }
  .brand-mark img { width: 48px; height: 45px; }
  .brand-name { font-size: 1rem; }
  .brand-name[data-en] { font-size: .8rem; letter-spacing: .025em; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .call-small { display: none; }
  .actions { margin-left: auto; }
  body.nav-open .nav { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 6px 20px 18px; background: var(--surface); border-bottom: 1px solid var(--line); border-radius: 0 0 24px 24px; box-shadow: 0 22px 50px -24px rgba(30, 56, 99, .2); }
  body.nav-open .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; opacity: 0; transform: translateY(10px); animation: navIn .55s var(--ease) forwards; }
  body.nav-open .nav a:last-child { border-bottom: 0; }
  body.nav-open .nav a:after { display: none; }
  body.nav-open .nav a:nth-child(2) { animation-delay: .05s; } body.nav-open .nav a:nth-child(3) { animation-delay: .1s; } body.nav-open .nav a:nth-child(4) { animation-delay: .15s; } body.nav-open .nav a:nth-child(5) { animation-delay: .2s; } body.nav-open .nav a:nth-child(6) { animation-delay: .25s; }
}
@media (max-width: 420px) {
  .actions { gap: 6px; }
  .lang { padding: 0 12px; }
  .menu-toggle { padding: 0 11px; }
  .menu-toggle > span[data-ko], .menu-toggle > span[data-en] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}
@keyframes navIn { to { opacity: 1; transform: none; } }
.call-small svg, .mobile-call svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* 제목 띠 */
.guide-hero { background: var(--navy); color: #fff; padding: 56px 0 60px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0 0 22px; padding: 0; font-size: .95rem; color: rgba(255, 255, 255, .78); }
.crumbs li + li:before { content: "/"; margin: 0 10px; color: rgba(255, 255, 255, .45); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: #fff; font-weight: 600; }
.guide-hero h1 { margin: 0; max-width: 760px; font-family: var(--serif); font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.22; letter-spacing: -.035em; }
.byline { margin: 20px 0 0; color: rgba(255, 255, 255, .8); font-size: .98rem; }

/* 본문 */
.guide-body { max-width: 760px; margin: 0 auto; padding: 56px 24px 24px; }
.lede { margin: 0 0 12px; font-size: 1.16rem; line-height: 1.85; }
.guide-body h2 { margin: 52px 0 14px; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.7rem); line-height: 1.35; letter-spacing: -.02em; color: var(--navy); }
.guide-body h2 .num { margin-right: .35em; color: var(--blue); }
.guide-body p { margin: 0 0 14px; line-height: 1.85; color: var(--ink); }
.guide-body strong { color: var(--navy); }
.steps { list-style: none; counter-reset: step; margin: 18px 0 8px; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.steps li:before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem; }
.steps b { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 1rem; }
.steps li.has-img { grid-template-columns: 40px 128px 1fr; gap: 18px; padding: 16px 20px 16px 16px; align-items: center; }
.steps li.has-img img { width: 128px; height: auto; border-radius: 12px; }
.steps li.has-img b { font-size: 1.08rem; margin-bottom: 6px; }
.note { margin: 40px 0 0; padding: 24px 26px; border-left: 4px solid var(--navy); background: var(--surface); border-radius: 0 16px 16px 0; }
.note p { margin: 0; }
.note .note-by { margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* 본문 위 그림·사진 */
.guide-figure { margin: 0 0 40px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.guide-figure img { display: block; width: 100%; height: auto; }
.guide-figure { position: relative; }
.figure-badge { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(23, 32, 54, .78); color: #fff; font-size: .86rem; font-weight: 700; line-height: 1.3; }
.guide-figure figcaption strong { color: var(--ink); }
.guide-figure figcaption { padding: 14px 20px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .98rem; line-height: 1.65; }
.section-figure { margin: 20px 0 6px; }
@media (max-width: 800px) { .figure-badge { top: 7px; left: 7px; padding: 2px 8px; font-size: .7rem; } }
@media (max-width: 800px) { .guide-figure { margin-bottom: 32px; border-radius: 18px; } .guide-figure figcaption { padding: 12px 16px 14px; } }

/* 비교표 */
.table-wrap { margin: 18px 0 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.compare { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.compare th, .compare td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--navy); color: #fff; font-weight: 700; }
.compare tbody th { color: var(--navy); font-weight: 700; white-space: nowrap; background: var(--bg); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* 블로그 글 목록 */
.post-list { padding-top: 48px; padding-bottom: 8px; }
.post-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.post-card:hover { border-color: var(--sky); transform: translateY(-3px); }
.post-meta { color: var(--blue); font-size: .92rem; font-weight: 600; }
.post-card b { color: var(--navy); font-size: 1.3rem; line-height: 1.4; letter-spacing: -.02em; }
.post-short { color: var(--muted); }
.post-more { margin-top: auto; padding-top: 6px; color: var(--blue); font-weight: 700; }

/* 치료 후 주의사항 */
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.care-tools { display: flex; justify-content: flex-end; padding-top: 28px; }
.btn-print { border: 1px solid var(--line); background: var(--surface); color: var(--navy); font: inherit; font-weight: 700; min-height: 46px; padding: 0 18px; cursor: pointer; }
.btn-print:hover { border-color: var(--sky); }
.care-body { padding-top: 20px; }
.care-first { margin: 0 0 8px; padding: 14px 18px; border-radius: 14px; background: var(--surface-2); color: var(--ink); }
.care-body h2 { margin-top: 40px; }
.check, .cross, .care-call ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check li, .cross li, .care-call li { position: relative; padding-left: 36px; line-height: 1.75; }
.check li:before, .cross li:before { content: ""; position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; }
.check li:before { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; }
.cross li:before { background: #9B3B3B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 14px no-repeat; }
.care-avoid h2 { color: #8A2F2F; }
.care-call { margin-top: 44px; padding: 26px 26px 24px; border: 2px solid #C4524F; border-radius: 20px; background: #FFF6F5; }
.care-body .care-call h2 { margin: 0 0 14px; color: #8A2F2F; }
.care-call li:before { content: "!"; position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #C4524F; color: #fff; font-weight: 700; font-size: .9rem; line-height: 24px; text-align: center; }
.care-er { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid #F0C9C6; color: var(--ink); font-size: .98rem; }
.care-er-index { max-width: 760px; margin-top: 28px; padding: 18px 20px; border: 2px solid #C4524F; border-radius: 16px; background: #FFF6F5; }

/* 자주 묻는 질문 */
.faq { margin-top: 60px; }
.faq h2 { margin-top: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 2px; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: ""; width: 12px; height: 12px; flex: 0 0 auto; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg) translateY(-4px); transition: transform .4s var(--ease); }
.faq details[open] summary:after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--navy); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* 상담 안내 띠 */
.guide-cta { margin-top: 72px; background: var(--navy); color: #fff; }
.guide-cta .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.guide-cta h2 { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(1.45rem, 2.8vw, 1.9rem); letter-spacing: -.02em; line-height: 1.3; }
.guide-cta p { margin: 0; color: rgba(255, 255, 255, .82); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background .3s var(--ease), color .3s var(--ease); }
.btn-light { background: #fff; color: var(--navy); }
.btn-home { background: var(--navy); color: #fff; }
.btn-home:hover { background: var(--blue); }
.btn-light:hover { background: var(--surface-2); }
.btn-line { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .12); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* 다른 진료 */
.others { padding: 64px 0 72px; }
.others h2 { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
.others ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.others a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.others a:hover { border-color: var(--sky); transform: translateY(-2px); }
.others b { color: var(--navy); font-size: 1.06rem; }
.others span { color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* 아래쪽 */
footer { border-top: 1px solid var(--line); padding: 32px 0 110px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: grid; gap: 10px; }
footer address { font-style: normal; }
footer a { font-weight: 600; }
.footer-nav { margin: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.disclaimer { font-size: .86rem; }
.mobile-call { display: none; }

@media (max-width: 800px) {
  .wrap { padding: 0 20px; }
  .guide-hero { padding: 40px 0 44px; }
  .guide-body { padding: 40px 20px 16px; }
  .guide-body h2 { margin-top: 42px; }
  .steps li { grid-template-columns: 34px 1fr; padding: 14px 14px; }
  .steps li:before { width: 30px; height: 30px; }
  .steps li.has-img { grid-template-columns: 30px 92px 1fr; gap: 12px; padding: 14px 14px 14px 12px; }
  .steps li.has-img img { width: 92px; border-radius: 10px; }
  .guide-cta .wrap { padding-top: 40px; padding-bottom: 40px; }
  .cta-buttons, .cta-buttons .btn { width: 100%; }
  .mobile-call { display: flex; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; min-height: 54px; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 0 0 5px rgba(250, 248, 244, .85), 0 18px 36px -12px rgba(30, 56, 99, .55); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition-duration: .01ms !important; animation: none !important; }
  body.nav-open .nav a { opacity: 1; transform: none; }
}

/* 페이지 이동: 메뉴는 그대로, 내용만 부드럽게 바뀜 (지원하는 브라우저에서) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .2s ease both; }
::view-transition-new(root) { animation: vtIn .38s cubic-bezier(.32, .72, 0, 1) both; }
::view-transition-group(site-header) { animation-duration: .38s; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* 인쇄: 메뉴·버튼을 빼고 내용만 */
@media print {
  body { background: #fff; font-size: 11pt; }
  .utility, .skip-link, .care-tools, .guide-cta, .others, .mobile-call, .footer-nav { display: none !important; }
  .guide-hero { background: none; color: var(--ink); padding: 0 0 12px; border-bottom: 2px solid var(--navy); }
  .guide-hero h1 { color: var(--navy); font-size: 20pt; }
  .crumbs ol { color: var(--muted); margin-bottom: 8px; }
  .crumbs [aria-current] { color: var(--ink); }
  .crumbs li + li:before { color: var(--muted); }
  .byline { color: var(--muted); }
  .guide-body { max-width: none; padding: 12px 0 0; }
  .care-body h2 { margin-top: 18px; break-after: avoid; }
  .care-call, .care-first { break-inside: avoid; }
  footer { padding: 12px 0 0; }
  .check li:before, .cross li:before, .care-call li:before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
