/* 문제성 발톱 클리닉 (#ncl 안에서만 적용) */
#ncl {
  --navy: #0c2e86;
  --navy-deep: #071f5e;
  --ink: #1f1f1f;
  --body: #3c3636;
  --muted: #6b6767;
  --line: #d9d9d9;
  --paper: #f4f6fa;
  --red: #b85f00;
  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Noto Serif Variable", "Noto Serif KR", "Noto Serif", "Batang", serif;
}
#ncl, #ncl * { box-sizing: border-box; }
#ncl { scroll-behavior: smooth; }
#ncl {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: #fff;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
#ncl h1, #ncl h2, #ncl h3, #ncl h4, #ncl p, #ncl ul, #ncl ol, #ncl dl, #ncl dd, #ncl figure { margin: 0; }
#ncl ul, #ncl ol { padding: 0; list-style: none; }
#ncl h1, #ncl h2, #ncl h3 { font-family: var(--serif); color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
#ncl button { font: inherit; cursor: pointer; }
#ncl img { display: block; max-width: 100%; }
#ncl :focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
#ncl .wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
#ncl .block { padding: 88px 0; }
#ncl .block.paper { background: var(--paper); }
#ncl .block.navy { background: var(--navy-deep); color: #d6e8e8; }
#ncl .h2 { font-size: clamp(1.55rem, 4.6vw, 2.2rem); line-height: 1.4; margin-bottom: 14px; }
#ncl .navy .h2, #ncl .navy h3 { color: #fff; }
#ncl .lead { color: var(--muted); max-width: 560px; }
#ncl .lead.wide { max-width: 640px; text-wrap: balance; }
#ncl p, #ncl li, #ncl dd { text-wrap: pretty; }
#ncl h1, #ncl h2, #ncl h3, #ncl .statement { text-wrap: balance; }
#ncl .navy .lead { color: #b8d6d6; }
#ncl .small { font-size: 0.85rem; color: var(--muted); }
#ncl .side { display: grid; gap: 32px; align-items: start; }
#ncl .hero { background: var(--navy-deep); color: #fff; }
#ncl .hero .wrap { padding-top: 80px; padding-bottom: 72px; }
#ncl .hero-text { max-width: 640px; }
#ncl .hero h1, #ncl .hero h2 { color: #fff; font-size: clamp(2rem, 7vw, 3.1rem); line-height: 1.3; margin-bottom: 20px; }
#ncl .hero p { color: #c6dfdf; max-width: 520px; }
#ncl .hero-meta { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.25); font-size: 0.9rem; color: #c6dfdf; display: flex; flex-wrap: wrap; gap: 6px 24px; }
#ncl .rule-list > li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
#ncl .rule-list > li:last-child { border-bottom: 1px solid var(--line); }
#ncl .rule-list h3 { font-size: 1.08rem; }
#ncl .rule-list p { color: var(--muted); font-size: 0.95rem; }
#ncl .navy .rule-list > li { border-color: rgba(255,255,255,0.22); }
#ncl .navy .rule-list p { color: #b8d6d6; }
#ncl .two { display: grid; gap: 40px; }
#ncl .two h3 { font-size: 1.3rem; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
#ncl .dots li { padding: 9px 0 9px 16px; position: relative; border-bottom: 1px solid #eee; }
#ncl .dots li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 5px; height: 5px; background: var(--navy); }
#ncl .photo { background: var(--paper); }
#ncl .photo img { width: 100%; height: 100%; object-fit: cover; }
#ncl .ph-block { aspect-ratio: 4 / 5; max-width: 420px; }
#ncl .cap { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
#ncl .sub-head { font-size: 1.25rem; margin: 0 0 12px; }
#ncl .grp + .grp { margin-top: 48px; }
#ncl .quiz { background: #fff; border-top: 3px solid var(--navy); padding: 28px 24px 24px; max-width: 600px; }
#ncl .progress { height: 3px; background: var(--line); margin-bottom: 10px; }
#ncl .progress > div { height: 100%; background: var(--navy); }
#ncl .qmeta { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
#ncl .q { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); line-height: 1.55; min-height: 3.1em; font-weight: 600; }
#ncl .answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
#ncl .ans { min-height: 50px; border: 1px solid var(--navy); background: #fff; color: var(--navy); font-weight: 600; border-radius: 2px; transition: background .15s, color .15s; }
#ncl .ans:hover { background: var(--navy); color: #fff; }
#ncl .result .tag { display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--navy); margin-bottom: 12px; }
#ncl .result .tag.hot { color: var(--red); border-color: var(--red); }
#ncl .result h3 { font-size: 1.3rem; margin-bottom: 8px; }
#ncl .result p { color: var(--muted); margin-bottom: 10px; }
#ncl .link-btn { background: none; border: 0; color: var(--navy); font-weight: 600; text-decoration: underline; padding: 10px 0; min-height: 44px; }
#ncl .stages { display: grid; gap: 0; margin-top: 8px; }
#ncl .stage { padding: 24px 24px 24px 0; border-top: 1px solid rgba(255,255,255,0.3); }
#ncl .stage b { font-family: var(--serif); font-size: 1.1rem; color: #f5a23a; display: block; margin-bottom: 4px; }
#ncl .stage h3 { font-size: 1.05rem; margin-bottom: 6px; }
#ncl .stage p { font-size: 0.95rem; color: #b8d6d6; }
#ncl .steps > .step { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
#ncl .steps > .step:last-child { border-bottom: 1px solid var(--line); }
#ncl .steps .n { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); line-height: 1; }
#ncl .steps h3 { font-size: 1.1rem; margin-bottom: 2px; }
#ncl .steps p { color: var(--muted); font-size: 0.95rem; }
#ncl .spec { margin-top: 18px; border-top: 1px solid var(--line); }
#ncl .spec div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
#ncl .spec dt { color: var(--muted); }
#ncl .spec dd { font-weight: 600; color: var(--ink); text-align: right; }
#ncl .tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 36px; overflow-x: auto; }
#ncl .tab { border: 0; background: none; padding: 12px 20px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; min-height: 48px; }
#ncl .tab[aria-selected="true"] { color: var(--navy); border-color: var(--navy); }
#ncl .case { margin-bottom: 56px; }
#ncl .case h3 { font-size: 1.15rem; margin-bottom: 14px; }
#ncl .case h3 span { font-family: var(--sans); font-weight: 500; font-size: 0.85rem; color: var(--muted); margin-left: 8px; }
#ncl .shots { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
#ncl .shots.s2 { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
#ncl .shots figure { background: var(--paper); }
#ncl .shots img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
#ncl .shots figcaption { padding: 8px 2px 0; font-size: 0.85rem; font-weight: 600; color: var(--ink); background: #fff; }
#ncl .statement { font-family: var(--serif); font-size: clamp(1.5rem, 4.6vw, 2.2rem); line-height: 1.45; color: var(--ink); font-weight: 700; margin-bottom: 14px; }
#ncl .faq > div { border-top: 1px solid var(--line); }
#ncl .faq > div:last-child { border-bottom: 1px solid var(--line); }
#ncl .faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 1.02rem; color: var(--ink); min-height: 56px; }
#ncl .faq-a { padding: 0 0 20px; color: var(--muted); max-width: 560px; }
@media (prefers-reduced-motion: reduce) { #ncl { scroll-behavior: auto; }
#ncl, #ncl * { transition-duration: 0.01ms !important; }

 }
#ncl .rule-list > li.with-art { grid-template-columns: 84px 1fr; gap: 18px; align-items: center; }
#ncl .nailart { width: 84px; height: 84px; display: block; }
#ncl .panel-title { font-size: 1.2rem; margin: 8px 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
#ncl .qlist { margin: 0; padding: 0; list-style: none; }
#ncl.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .45s ease-out, transform .45s ease-out; }
#ncl.js .rv.in { opacity: 1; transform: none; }
#ncl .faq details { border-top: 1px solid var(--line); }
#ncl .faq details:last-child { border-bottom: 1px solid var(--line); }
#ncl .faq summary { list-style: none; cursor: pointer; }
#ncl .faq summary::-webkit-details-marker { display: none; }
#ncl .faq .arrow { transition: transform .2s; }
#ncl .faq details[open] .arrow { transform: rotate(180deg); }
@media (min-width: 900px) { #ncl .side { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
#ncl .side > .stick { position: sticky; top: 32px; }
#ncl .hero .wrap { padding-top: 120px; padding-bottom: 112px; }
#ncl .two { grid-template-columns: 1fr 1fr; gap: 56px; }
#ncl .stages { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 899px) { #ncl .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-right: -20px; padding-right: 20px; }
#ncl .shots figure { flex: 0 0 72%; scroll-snap-align: start; }
#ncl .shots.s2 { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin-right: 0; padding-right: 0; } }

#ncl .cssquiz .qr { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
#ncl .cssquiz .ans { display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; }
#ncl .cssquiz .result, #ncl .cssquiz .result-foot { display: none; }
#ncl .cssquiz .qlist li { padding: 10px 0; border-bottom: 1px solid #eee; }
#ncl .cssquiz .qlist li .qmeta, #ncl .cssquiz .qlist li .answers { display: none; }
#ncl .cssquiz:has(.qr) .quiz-fallback { display: none; }
#ncl .cssquiz:has(.qr) .qlist li { display: none; padding: 0; border: 0; }
#ncl .cssquiz:has(.qr) .qlist li .qmeta { display: block; }
#ncl .cssquiz:has(.qr) .qlist li .answers { display: grid; }
#ncl .cssquiz:has(.qr):not(:has(input[name="nclq0"]:checked)) li[data-q="0"] { display: block; }
#ncl .cssquiz:has(.qr):has(input[name="nclq0"]:checked):not(:has(input[name="nclq1"]:checked)) li[data-q="1"] { display: block; }
#ncl .cssquiz:has(.qr):has(input[name="nclq1"]:checked):not(:has(input[name="nclq2"]:checked)) li[data-q="2"] { display: block; }
#ncl .cssquiz:has(.qr):has(input[name="nclq2"]:checked):not(:has(input[name="nclq3"]:checked)) li[data-q="3"] { display: block; }
#ncl .cssquiz:has(.qr):has(input[name="nclq3"]:checked):not(:has(input[name="nclq4"]:checked)) li[data-q="4"] { display: block; }
#ncl .cssquiz:has(.qr):has(input[name="nclq4"]:checked):not(:has(input[name="nclq5"]:checked)) li[data-q="5"] { display: block; }
#ncl .cssquiz:has(.qr):has(input[name="nclq5"]:checked) .result-foot { display: block; }
#ncl .cssquiz:has(.qr):has(input[name="nclq5"]:checked):not(:has(input[name="nclq0"][value="y"]:checked, input[name="nclq1"][value="y"]:checked, input[name="nclq2"][value="y"]:checked)):not(:has(input[name="nclq3"][value="y"]:checked, input[name="nclq4"][value="y"]:checked, input[name="nclq5"][value="y"]:checked)) .r-none,
#ncl .cssquiz:has(.qr):has(input[name="nclq5"]:checked):has(input[name="nclq0"][value="y"]:checked, input[name="nclq1"][value="y"]:checked, input[name="nclq2"][value="y"]:checked):has(input[name="nclq3"][value="y"]:checked, input[name="nclq4"][value="y"]:checked, input[name="nclq5"][value="y"]:checked) .r-both,
#ncl .cssquiz:has(.qr):has(input[name="nclq5"]:checked):not(:has(input[name="nclq0"][value="y"]:checked, input[name="nclq1"][value="y"]:checked, input[name="nclq2"][value="y"]:checked)):is(:has(input[name="nclq3"][value="y"]:checked):has(input[name="nclq4"][value="y"]:checked), :has(input[name="nclq3"][value="y"]:checked):has(input[name="nclq5"][value="y"]:checked), :has(input[name="nclq4"][value="y"]:checked):has(input[name="nclq5"][value="y"]:checked)) .r-ihi,
#ncl .cssquiz:has(.qr):has(input[name="nclq5"]:checked):not(:has(input[name="nclq0"][value="y"]:checked, input[name="nclq1"][value="y"]:checked, input[name="nclq2"][value="y"]:checked)):has(input[name="nclq3"][value="y"]:checked, input[name="nclq4"][value="y"]:checked, input[name="nclq5"][value="y"]:checked):not(:is(:has(input[name="nclq3"][value="y"]:checked):has(input[name="nclq4"][value="y"]:checked), :has(input[name="nclq3"][value="y"]:checked):has(input[name="nclq5"][value="y"]:checked), :has(input[name="nclq4"][value="y"]:checked):has(input[name="nclq5"][value="y"]:checked))) .r-ilo,
#ncl .cssquiz:has(.qr):has(input[name="nclq5"]:checked):not(:has(input[name="nclq3"][value="y"]:checked, input[name="nclq4"][value="y"]:checked, input[name="nclq5"][value="y"]:checked)):has(input[name="nclq0"][value="y"]:checked):has(input[name="nclq1"][value="y"]:checked):has(input[name="nclq2"][value="y"]:checked) .r-fhi,
#ncl .cssquiz:has(.qr):has(input[name="nclq5"]:checked):not(:has(input[name="nclq3"][value="y"]:checked, input[name="nclq4"][value="y"]:checked, input[name="nclq5"][value="y"]:checked)):has(input[name="nclq0"][value="y"]:checked, input[name="nclq1"][value="y"]:checked, input[name="nclq2"][value="y"]:checked):not(:has(input[name="nclq0"][value="y"]:checked):has(input[name="nclq1"][value="y"]:checked):has(input[name="nclq2"][value="y"]:checked)) .r-flo { display: block; }

#ncl .cases .tab-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
#ncl .cases .tabs { display: none; }
#ncl .cases:has(.tab-radio) .tabs { display: flex; }
#ncl .cases:has(.tab-radio) .panel-title { display: none; }
#ncl .cases .tab { cursor: pointer; display: inline-flex; align-items: center; }

#ncl .cases:has(.tab-radio) .panel[data-panel="ingrown"] { display: none; }
#ncl .cases:has(#ncl-case-ingrown:checked) .panel[data-panel="ingrown"] { display: block; }
#ncl .cases:has(#ncl-case-ingrown:checked) .tab[data-tab="ingrown"] { color: var(--navy); border-color: var(--navy); }
#ncl .cases:has(.tab-radio) .panel[data-panel="fungus"] { display: none; }
#ncl .cases:has(#ncl-case-fungus:checked) .panel[data-panel="fungus"] { display: block; }
#ncl .cases:has(#ncl-case-fungus:checked) .tab[data-tab="fungus"] { color: var(--navy); border-color: var(--navy); }
#ncl .cases:has(.tab-radio) .panel[data-panel="both"] { display: none; }
#ncl .cases:has(#ncl-case-both:checked) .panel[data-panel="both"] { display: block; }
#ncl .cases:has(#ncl-case-both:checked) .tab[data-tab="both"] { color: var(--navy); border-color: var(--navy); }

#ncl, #ncl * { box-sizing: border-box !important; }
#ncl img { max-width: 100% !important; height: auto !important; border: 0; }
#ncl .shots { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
#ncl .shots.s2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
#ncl .shots figure { min-width: 0 !important; margin: 0 !important; padding: 0 !important; }
#ncl .shots img { width: 100% !important; aspect-ratio: 3 / 4; object-fit: cover; }
#ncl .photo img { width: 100% !important; }
#ncl .side > *, #ncl .two > *, #ncl .stages > * { min-width: 0; }
#ncl h1, #ncl h2, #ncl h3 { font-family: var(--serif) !important; color: var(--ink) !important; }
#ncl .hero h1, #ncl .hero h2, #ncl .navy h2, #ncl .navy h3 { color: #fff !important; }
#ncl .hero h1, #ncl .hero h2 { font-size: clamp(2rem, 7vw, 3.1rem) !important; line-height: 1.3 !important; margin: 0 0 20px !important; }
#ncl .stage b { color: #f5a23a !important; }
#ncl .hero p, #ncl .hero-meta { color: #c6dfdf !important; }
#ncl .navy p, #ncl .navy .lead { color: #b8d6d6 !important; }
#ncl .tab { font-family: var(--sans) !important; }
#ncl .faq-q { font-family: var(--sans) !important; color: var(--ink) !important; }
@media (max-width: 899px) {
  #ncl .shots:not(.s2) { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; }
  #ncl .shots:not(.s2) figure { flex: 0 0 72% !important; scroll-snap-align: start; }
}

/* ── v2 페이지 안에 넣을 때 보정 (2026-11-30) ── */
#ncl { font-size: 17px; }
/* 배경 띠는 화면 끝까지 */
#ncl .hero, #ncl .block.paper, #ncl .block.navy { box-shadow: 0 0 0 100vmax currentColor; clip-path: inset(0 -100vmax); }
#ncl .hero, #ncl .block.navy { color: var(--navy-deep); box-shadow: 0 0 0 100vmax var(--navy-deep); }
#ncl .block.paper { box-shadow: 0 0 0 100vmax var(--paper); }
#ncl .hero .wrap { color: #fff; }
#ncl .block.navy .wrap { color: #d6e8e8; }
#ncl .wrap { padding: 0; }
/* 사이트 공통 CSS(.cases .steps .faq)와 이름이 겹치는 부분 되돌리기 */
#ncl .cases { display: block; }
#ncl .cases p { font-size: inherit; line-height: inherit; font-weight: inherit; }
#ncl .steps { display: block; }
#ncl .steps p { font-size: 0.95rem !important; line-height: 1.7 !important; color: var(--muted); }
#ncl .faq { border-top: 0; }
#ncl .quiz { border: 1px solid var(--line); border-top: 3px solid var(--navy); }
.sub--full .sub__main:has(#ncl) { max-width: 1080px; }
.sub__main:has(#ncl) .sub__h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.sub__main:has(#ncl) .sub__top { margin-bottom: 32px; }
