@charset "UTF-8";
/* ==========================================================
   neroweb17 layout.css
   공통 토큰 · 기본 · 헤더 · 메뉴 · 서브 공통 · 푸터
   기준 : 정형외과 홈페이지 디자인 정의서
   ========================================================== */

:root {
  /* 색상 (정형외과 디자인 정의서 3.2) */
  --n17-primary: #1B2738;
  --n17-accent: #3F5776;
  --n17-accent-d: #1B2738;
  --n17-accent-l: #EEF4F8;
  --n17-strong: #20252B;
  --n17-text: #59616B;
  --n17-muted: #8D949C;
  --n17-line: #DDE2E7;
  --n17-surface: #EEF4F8;
  --n17-white: #FFFFFF;
  --n17-error: #C62828;
  --n17-success: #18794E;
  --n17-navy9: #121720;
  --n17-blue5: #667F9F;
  --n17-warm: #F7F5F1;
  --n17-notice: #FFF8D8;
  --n17-dark: #121720;
  --n17-notice-h: 36px;
  /* 규격 */
  --n17-hd-h: 100px;
  --n17-gutter: 40px;
  --n17-max: 1320px;
  --n17-gap: 24px;
  --n17-radius: 20px;
  /* 폰트 (정형외과 디자인 정의서 4.1) */
  --n17-font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --n17-ease: cubic-bezier(.22, .61, .36, 1);
}

/* 기본 (요소 선택자만 사용 : 아래 클래스 스타일이 항상 우선하도록) */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body.n17 { margin: 0; font-family: var(--n17-font); font-size: 18px; line-height: 1.75; letter-spacing: -0.01em; color: var(--n17-text); background: var(--n17-white); word-break: keep-all; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
p { word-break: keep-all; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: top; border: 0; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
input, select, textarea { font-family: inherit; font-size: 18px; }
body.n17 :focus-visible { outline: 2px solid var(--n17-accent); outline-offset: 2px; }
body.n17-lock { overflow: hidden; }
.sound_only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.n17-skip { position: absolute; left: 16px; top: -60px; z-index: 2000; padding: 10px 16px; background: var(--n17-accent); color: #fff; border-radius: 6px; transition: top .2s; }
.n17-skip:focus { top: 12px; }

.n17-wrapall { overflow-x: clip; }
.n17-wrap { width: 100%; max-width: calc(var(--n17-max) + var(--n17-gutter) * 2); margin: 0 auto; padding: 0 var(--n17-gutter); }
.n17-container { display: block; min-height: 50vh; }
.n17-center { text-align: center; }
.n17-mb8 { margin-bottom: 8px; }
.n17-pc { display: inline; }

/* 버튼 (Button 17px / 600 / 높이 48) */
.n17-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; min-height: 48px; padding: 0 24px; border-radius: 48px; font-size: 17px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s; white-space: nowrap; }
.n17-btn--point { background: var(--n17-accent); color: #fff; }
.n17-btn--point:hover { background: var(--n17-accent-d); }
.n17-btn--line { border-color: var(--n17-line); color: var(--n17-strong); background: #fff; }
.n17-btn--line:hover { border-color: var(--n17-strong); }
.n17-btn--line-w { border-color: rgba(255, 255, 255, .6); color: #fff; }
.n17-btn--line-w:hover { background: #fff; color: var(--n17-primary); }
.n17-btn--sm { height: 44px; min-height: 44px; padding: 0 18px; font-size: 16px; }
.n17-btn i { font-size: .9em; line-height: 1; }
.n17-btn[disabled] { opacity: .55; cursor: default; }
.n17-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; font-weight: 600; color: var(--n17-strong); }
.n17-more i { transition: transform .25s; }
.n17-more:hover i { transform: translateX(4px); }

/* 라벨 (Caption 14px / 500) · 상태 (색 + 글자 + 점 아이콘을 함께 사용) */
.n17-label { display: inline-block; padding: 4px 10px; border-radius: 4px; background: var(--n17-accent-l); color: var(--n17-accent-d); font-size: 14px; font-weight: 500; line-height: 1.4; }
.n17-label--line { background: none; border: 1px solid var(--n17-line); color: var(--n17-muted); }
.n17-label--pin { background: var(--n17-primary); color: #fff; }
.n17-st { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: 14px; font-weight: 600; line-height: 1.4; border: 1px solid currentColor; background: #fff; }
.n17-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.n17-st--draft { color: #4B5563; }
.n17-st--review { color: #9A5B00; }
.n17-st--reviewing { color: #1D4ED8; }
.n17-st--revise { color: var(--n17-error); }
.n17-st--scheduled { color: #6D28D9; }
.n17-st--publish { color: var(--n17-success); }
.n17-st--private { color: #374151; }
.n17-st--archive { color: var(--n17-muted); }
.n17-st--main { color: var(--n17-primary); }


/* ---------- 상단 안내 띠 · 헤더 (정의서 6장 : 높이 100) ---------- */
.n17-notice { position: fixed; left: 0; right: 0; top: 0; z-index: 910; display: flex; align-items: center; justify-content: center; height: var(--n17-notice-h); padding: 0 50px; background: var(--n17-notice); font-size: 13px; color: #4A4A35; text-align: center; }
.n17-notice b { margin-right: 8px; padding: 2px 8px; border-radius: 20px; background: #4A4A35; color: #fff; font-size: 12px; }
.n17-notice__close { position: absolute; right: 14px; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); color: #4A4A35; }
body.is-notice-off .n17-notice { display: none; }
.n17-hd { position: fixed; left: 0; right: 0; top: 0; z-index: 900; background: #fff; transition: background .24s, box-shadow .24s, top .24s; }
.n17-hd.has-notice { top: var(--n17-notice-h); }
body.is-notice-off .n17-hd.has-notice { top: 0; }
.n17-hd.is-scrolled { box-shadow: 0 6px 24px rgba(18, 23, 32, .08); }
.n17-hd__bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 30px; width: min(100% - 80px, 1600px); height: var(--n17-hd-h); margin: 0 auto; }
.n17-hd__logo img { width: 200px; }
.n17-gnb { align-self: stretch; margin: 0 auto; }
.n17-gnb__list { display: flex; height: 100%; }
.n17-gnb__item { position: relative; }
.n17-gnb__link { position: relative; display: flex; align-items: center; height: var(--n17-hd-h); padding: 0 24px; font-size: 17px; font-weight: 600; color: var(--n17-strong); transition: color .2s; }
.n17-gnb__link::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; background: var(--n17-accent); transform: scaleX(0); transition: transform .2s; }
.n17-gnb__item:hover .n17-gnb__link, .n17-gnb__item:focus-within .n17-gnb__link { color: var(--n17-blue5); }
.n17-gnb__item:hover .n17-gnb__link::after, .n17-gnb__item:focus-within .n17-gnb__link::after, .n17-gnb__item.is-on .n17-gnb__link::after { transform: scaleX(1); }
.n17-gnb__sub { position: absolute; left: 50%; top: 100%; min-width: 180px; padding: 14px 0; border-radius: 0 0 14px 14px; background: #fff; box-shadow: 0 16px 30px rgba(18, 23, 32, .1); opacity: 0; visibility: hidden; transform: translate(-50%, -8px); transition: all .2s; text-align: center; }
.n17-gnb__item:hover .n17-gnb__sub, .n17-gnb__item:focus-within .n17-gnb__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.n17-gnb__sub a { display: block; padding: 9px 18px; font-size: 15px; color: var(--n17-text); white-space: nowrap; }
.n17-gnb__sub a:hover, .n17-gnb__sub a:focus-visible, .n17-gnb__sub a.is-on { color: var(--n17-accent); font-weight: 600; }
.n17-gnb__bg { display: none; }
.n17-hd__util { display: flex; align-items: center; gap: 22px; }
.n17-hd__member { display: flex; gap: 16px; font-size: 14px; color: var(--n17-muted); }
.n17-hd__member a:hover { color: var(--n17-strong); }
.n17-hd__cta { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 46px; background: var(--n17-primary); color: #fff; font-size: 15px; font-weight: 600; transition: background .2s; }
.n17-hd__cta:hover, .n17-hd__cta:focus-visible { background: var(--n17-accent); }
.n17-hd__burger { display: none; position: relative; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.n17-hd__burger span { display: block; width: 26px; height: 2px; background: var(--n17-strong); }

/* 전체 메뉴 (오른쪽에서 들어오는 네이비 화면) */
.n17-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1000; display: flex; flex-direction: column; width: min(480px, 100%); background: var(--n17-navy9); color: #fff; transform: translateX(100%); visibility: hidden; transition: transform .4s ease, visibility .4s; overflow-y: auto; }
.n17-drawer.is-open { transform: translateX(0); visibility: visible; }
.n17-drawer__top { display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 12px 0 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.n17-drawer__logo img { width: 170px; }
.n17-drawer__close { position: relative; width: 50px; height: 50px; }
.n17-drawer__close span { position: absolute; left: 12px; top: 50%; width: 26px; height: 2px; background: #fff; }
.n17-drawer__close span:nth-child(1) { transform: rotate(45deg); }
.n17-drawer__close span:nth-child(2) { transform: rotate(-45deg); }
.n17-drawer__body { flex: 1; padding: 10px 24px 30px; }
.n17-drawer__dep1 { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 19px; font-weight: 600; color: #fff; text-align: left; }
.n17-drawer__dep1::after { content: "+"; font-weight: 300; }
.n17-drawer__item.is-open .n17-drawer__dep1::after { content: "\2212"; }
.n17-drawer__dep2 { display: none; padding: 8px 0 14px 12px; }
.n17-drawer__item.is-open .n17-drawer__dep2 { display: block; }
.n17-drawer__dep2 a { display: block; padding: 8px 0; font-size: 16px; color: rgba(255, 255, 255, .72); }
.n17-drawer__dep2 a:hover, .n17-drawer__dep2 a.is-on { color: #fff; }
.n17-drawer__call { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.n17-drawer__util { margin-top: 24px; }
.n17-drawer__search { display: flex; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.n17-drawer__search input { flex: 1; height: 46px; border: 0; background: none; color: #fff; font-size: 16px; }
.n17-drawer__search input::placeholder { color: rgba(255, 255, 255, .5); }
.n17-drawer__search button { width: 46px; color: #fff; }
.n17-drawer__member { display: flex; gap: 20px; margin-top: 18px; font-size: 15px; }
.n17-drawer__member a { color: rgba(255, 255, 255, .75); }
.n17-dim { position: fixed; inset: 0; z-index: 990; background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transition: all .3s; }
.n17-dim.is-on { opacity: 1; visibility: visible; }

/* ---------- 서브 공통 : 서브 비주얼(280 / 180) → 현재 위치 → 제목·설명 ---------- */
.n17-svisual { position: relative; display: flex; align-items: center; height: 420px; margin-top: var(--n17-hd-h); color: #fff; overflow: hidden; background: #0d2a3f; text-align: center; }
.n17-svisual__bg { position: absolute; inset: 0; }
.n17-svisual__bg img { width: 100%; height: 100%; object-fit: cover; animation: n17Zoom 8s var(--n17-ease) both; }
.n17-svisual__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.n17-svisual__txt { position: relative; z-index: 1; }
.n17-svisual__en { font-size: 20px; font-weight: 500; letter-spacing: .12em; color: rgba(255, 255, 255, .85); }
.n17-svisual__tit { margin-top: 10px; font-size: 56px; font-weight: 600; line-height: 1.25; letter-spacing: -0.03em; color: #fff; }
.n17-svisual__desc { margin-top: 12px; font-size: 19px; line-height: 1.7; letter-spacing: -0.015em; color: rgba(255, 255, 255, .82); }
@keyframes n17Zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* 현재 위치 (Body Small 16) */
.n17-path__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 22px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.n17-path__home a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
.n17-path__dep { position: relative; display: flex; align-items: center; }
.n17-path__dep::before { content: "/"; margin: 0 6px 0 2px; opacity: .5; }
.n17-lnb__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 4px; font-size: 16px; color: inherit; }
.n17-lnb__btn i { font-size: 12px; opacity: .8; transition: transform .2s; }
.n17-lnb__dep.is-open .n17-lnb__btn i { transform: rotate(180deg); }
.n17-lnb__drop { display: none; position: absolute; left: 10px; top: 100%; z-index: 30; min-width: 180px; padding: 8px 0; background: #fff; border: 1px solid var(--n17-line); border-radius: 8px; box-shadow: 0 14px 30px rgba(11, 31, 51, .15); }
.n17-lnb__dep.is-open .n17-lnb__drop { display: block; }
.n17-lnb__drop a { display: flex; align-items: center; min-height: 40px; padding: 0 18px; font-size: 17px; color: var(--n17-text); }
.n17-lnb__drop a:hover, .n17-lnb__drop a.is-on { color: var(--n17-accent-d); background: var(--n17-surface); }

/* 2차 메뉴 탭 (높이 52 / 48, 활성 = 색 + 하단 보더) */
.n17-tabs { position: sticky; top: var(--n17-hd-h); z-index: 50; border-bottom: 1px solid var(--n17-line); background: #fff; }
.n17-tabs__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.n17-tabs__list::-webkit-scrollbar { display: none; }
.n17-tabs__list a { position: relative; display: flex; align-items: center; height: 52px; padding: 0 16px; font-size: 17px; font-weight: 600; color: var(--n17-muted); white-space: nowrap; }
.n17-tabs__list a:hover { color: var(--n17-strong); }
.n17-tabs__list a.is-on { color: var(--n17-accent); }
.n17-tabs__list a.is-on::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--n17-accent); }
.n17-subgap { height: 80px; }


/* ---------- 다크 푸터 · 고정 요소 ---------- */
.n17-ft { background: var(--n17-navy9); color: rgba(255, 255, 255, .6); padding: 80px 0 60px; }
.n17-ft__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.n17-ft__logo img { width: 200px; }
.n17-ft__links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 15px; }
.n17-ft__links a { color: rgba(255, 255, 255, .75); }
.n17-ft__links b { color: #fff; }
.n17-ft__body { display: flex; justify-content: space-between; gap: 50px; padding-top: 36px; }
.n17-ft__info { font-style: normal; font-size: 14px; line-height: 1.9; }
.n17-ft__info span + span::before { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 12px; background: rgba(255, 255, 255, .2); }
.n17-ft__warn { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .45); }
.n17-ft__copy { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .4); }
.n17-ft__side { flex: 0 0 340px; }
.n17-ft__tel small { display: block; font-size: 13px; }
.n17-ft__tel a { font-size: 32px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.n17-ft__hours { margin-top: 14px; font-size: 14px; }
.n17-ft__hours div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); }
.n17-ft__hours dd { color: rgba(255, 255, 255, .85); }
.n17-ft__sns { display: flex; gap: 10px; margin-top: 20px; }
.n17-ft__sns a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: #fff; transition: all .2s; }
.n17-ft__sns a:hover { background: #fff; color: var(--n17-navy9); }

.n17-fab { position: fixed; right: 28px; bottom: 96px; z-index: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 76px; height: 76px; border-radius: 50%; background: var(--n17-accent); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 12px 28px rgba(27, 39, 56, .3); transition: transform .2s, background .2s; }
.n17-fab i { font-size: 22px; }
.n17-fab:hover, .n17-fab:focus-visible { background: var(--n17-primary); transform: translateY(-3px); }
.n17-mbar { display: none; }
.n17-top { position: fixed; right: 40px; bottom: 28px; z-index: 800; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--n17-primary); border: 1px solid var(--n17-line); font-size: 16px; box-shadow: 0 8px 20px rgba(18, 23, 32, .12); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; }
.n17-top.is-show { opacity: 1; visibility: visible; transform: none; }

/* 등장 효과 */
.n17-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--n17-ease), transform .8s var(--n17-ease); }
.n17-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .n17-reveal { opacity: 1; transform: none; transition: none; }
  .n17-svisual__bg img { animation: none; }
}


/* ---------- 반응형 (정의서 10장) ---------- */
html, body { overflow-x: clip; }
@media (max-width: 1439px) {
  :root { --n17-hd-h: 92px; }
  .n17-gnb__link { padding: 0 16px; font-size: 16px; }
  .n17-gnb__link::after { left: 16px; right: 16px; }
  .n17-hd__member { display: none; }
}
@media (max-width: 1100px) {
  :root { --n17-hd-h: 76px; }
  .n17-hd__bar { width: calc(100% - 40px); }
  .n17-gnb { display: none; }
  .n17-hd__util { margin-left: auto; }
  .n17-hd__burger { display: flex; }
  .n17-hd__logo img { width: 170px; }
  .n17-svisual { height: 340px; }
  .n17-svisual__tit { font-size: 42px; }
  .n17-ft__body { flex-direction: column; }
  .n17-ft__side { flex-basis: auto; }
}
@media (max-width: 767px) {
  :root { --n17-hd-h: 68px; --n17-gutter: 20px; --n17-gap: 16px; --n17-notice-h: 32px; }
  body.n17 { font-size: 16px; padding-bottom: 72px; }
  .n17-notice { font-size: 12px; padding: 0 40px 0 12px; justify-content: flex-start; white-space: nowrap; overflow: hidden; }
  .n17-hd__cta { display: none; }
  .n17-hd__logo img { width: 150px; }
  .n17-svisual { height: 240px; }
  .n17-svisual__en { font-size: 14px; }
  .n17-svisual__tit { font-size: 30px; }
  .n17-svisual__desc { font-size: 15px; }
  .n17-tabs__list a { padding: 0 12px; font-size: 15px; }
  .n17-subgap { height: 48px; }
  .n17-btn { padding: 0 20px; font-size: 16px; }
  .n17-ft { padding: 56px 0 40px; }
  .n17-ft__info span { display: block; }
  .n17-ft__info span + span::before { display: none; }
  .n17-fab { display: none; }
  .n17-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; display: grid; grid-template-columns: 1fr 1.2fr 1fr; height: 64px; background: #fff; box-shadow: 0 -4px 16px rgba(18, 23, 32, .1); padding-bottom: env(safe-area-inset-bottom); }
  .n17-mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 13px; font-weight: 600; color: var(--n17-strong); }
  .n17-mbar a i { font-size: 18px; }
  .n17-mbar a.is-main { background: var(--n17-primary); color: #fff; }
  .n17-top { right: 16px; bottom: 80px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .n17-drawer, .n17-gnb__sub { transition: none; }
}
