/* =========================================================
   서브페이지 공통 스타일 (style.css 다음에 로드)
   ========================================================= */

/* 현재 메뉴 표시 */
.gnb > ul > li.is-on > a { color: var(--coral); }
.gnb > ul > li.is-on > a::after { transform: scaleX(1); }

/* ---------- 서브 상단 배너 ---------- */
.sub-hero {
  position: relative; overflow: hidden; height: 400px;
  background: linear-gradient(110deg, #FBF4F1 0%, #F4E0DA 100%);
  display: flex; align-items: center;
}
.sub-hero__bg { position: absolute; inset: 0; }
.sub-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; animation: kenburns 12s var(--ease) both; }
.sub-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(252,246,243,.95) 0%, rgba(252,246,243,.75) 36%, rgba(252,246,243,0) 66%);
}
.sub-hero__txt { position: relative; z-index: 2; }
.sub-hero__txt > * { max-width: 620px; }
.sub-hero .crumb { font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }
.sub-hero .crumb span + span::before { content: '/'; margin: 0 8px; color: var(--line); }
.sub-hero__en { margin-top: 16px; font-family: var(--f-en); font-style: italic; font-size: 22px; color: var(--coral); line-height: 1; }
.sub-hero h1 { margin-top: 12px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.35; }
.sub-hero__desc { margin-top: 16px; font-size: 16.5px; color: var(--ink-2); }
.motion .sub-hero__txt > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.motion .sub-hero__txt > :nth-child(2) { animation-delay: .1s; }
.motion .sub-hero__txt > :nth-child(3) { animation-delay: .2s; }
.motion .sub-hero__txt > :nth-child(4) { animation-delay: .3s; }

/* ---------- LNB (같은 메뉴 안의 페이지 탭) ---------- */
.lnb { position: sticky; top: var(--hd-h); z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.lnb__in { display: flex; justify-content: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.lnb a {
  position: relative; flex: none; padding: 18px 26px; font-size: 15.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: color .2s;
}
.lnb a::after { content: ''; position: absolute; left: 26px; right: 26px; bottom: -1px; height: 2px; background: var(--coral); transform: scaleX(0); transition: transform .3s var(--ease); }
.lnb a:hover, .lnb a.is-on { color: var(--ink); }
.lnb a.is-on { font-weight: 700; }
.lnb a.is-on::after, .lnb a:hover::after { transform: scaleX(1); }

/* 페이지 안 섹션 바로가기 */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.jump a {
  padding: 10px 22px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; color: var(--ink-2);
  transition: border-color .2s, color .2s, background .2s;
}
.jump a:hover { border-color: var(--coral); color: var(--coral); }

/* ---------- 섹션 공통 ---------- */
.sub-sec { padding: 110px 0; }
.sub-sec + .sub-sec { padding-top: 0; }
.sub-sec--soft { background: #FAF6F5; padding: 110px 0 !important; }
.sub-sec--soft + .sub-sec { padding-top: 110px; }
.sub-head { text-align: center; margin-bottom: 52px; }
.sub-head h2 { margin-top: 10px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.5; }
.sub-head p.lead { margin-top: 14px; color: var(--ink-2); }
.anchor { scroll-margin-top: calc(var(--hd-h) + 60px); }

/* 소개: 이미지 + 글 */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.intro--rev .img { order: 2; }
.intro .img { aspect-ratio: 4 / 3; }
.intro__txt h2 { margin-top: 12px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.5; }
.intro__txt p { margin-top: 20px; color: var(--ink-2); }
.intro__txt p + p { margin-top: 12px; }

/* 시술 정보 6칸 */
.info6 { display: grid; grid-template-columns: repeat(6, 1fr); background: #fff; border: 1px solid var(--line); }
.info6 li { padding: 28px 12px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.info6 li + li { border-left: 1px solid var(--line); }
.info6 b { font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.info6 span { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.4; }

/* 체크 목록 */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; max-width: 980px; margin: 0 auto; }
.checks li {
  position: relative; padding: 18px 0 18px 40px; border-bottom: 1px solid var(--line); font-size: 16px;
}
.checks li::before {
  content: ''; position: absolute; left: 0; top: 19px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--peach) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.4L17.5 8' fill='none' stroke='%23DF624B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.checks--one { grid-template-columns: 1fr; max-width: 760px; }

/* 번호형 효과/특징 (가로) */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: p; }
.points li { counter-increment: p; padding-top: 22px; border-top: 1px solid var(--ink); }
.points li::before { content: counter(p, decimal-leading-zero); display: block; font-family: var(--f-en); font-size: 30px; color: var(--coral); line-height: 1; }
.points b { display: block; margin-top: 16px; font-size: 18px; font-weight: 600; line-height: 1.5; }
.points span { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.points--4 { grid-template-columns: repeat(4, 1fr); }
.points--2 { grid-template-columns: repeat(2, 1fr); }

/* 카드 (흰 박스) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards li { background: #fff; border: 1px solid var(--line); padding: 30px 28px; }
.cards b { display: block; font-size: 17.5px; font-weight: 600; line-height: 1.5; }
.cards b::before { content: ''; display: block; width: 24px; height: 1px; background: var(--coral); margin-bottom: 16px; }
.cards span { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

/* 짧은 태그형 목록 */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: 0 auto; }
.tags li { padding: 12px 22px; background: #fff; border: 1px solid var(--line); font-size: 15px; }

/* 단계 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 22px; border-top: 1px solid var(--ink); }
.steps li::before { content: 'STEP ' counter(s); display: block; font-family: var(--f-en); font-size: 15px; letter-spacing: .12em; color: var(--coral); }
.steps b { display: block; margin-top: 12px; font-size: 18px; font-weight: 600; }
.steps span { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.7; }

/* 일러스트 카드 (유형 · 단계) */
.figs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; text-align: center; }
.figs--4 { grid-template-columns: repeat(4, 1fr); }
.figs li { display: flex; flex-direction: column; align-items: center; }
.figs figure { width: 100%; max-width: 220px; aspect-ratio: 1; }
.figs img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.figs li:hover img { transform: scale(1.04); }
.figs b { margin-top: 16px; font-size: 17px; font-weight: 600; }
.figs span { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.figs--steps { counter-reset: fs; }
.figs--steps li { counter-increment: fs; }
.figs--steps b::before { content: 'STEP ' counter(fs); display: block; margin-bottom: 6px; font-family: var(--f-en); font-size: 14px; font-weight: 400; letter-spacing: .12em; color: var(--coral); }
.illust { display: block; margin: 0 auto; width: 100%; max-width: 760px; }
.illust--sm { max-width: 520px; }
.illust-cap { display: flex; justify-content: center; gap: 0; max-width: 760px; margin: 10px auto 0; }
.illust-cap span { flex: 1; text-align: center; font-size: 15px; font-weight: 600; }
.illust-cap span:last-child { color: var(--coral); }

/* 검진 패키지 */
.pkg { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 44px 48px; background: #fff; border: 1px solid var(--line); }
.pkg + .pkg { margin-top: 20px; }
.pkg__name { font-family: var(--f-en); font-size: 56px; line-height: 1; color: var(--coral); }
.pkg__name small { display: block; margin-top: 14px; font-family: var(--f-ko); font-size: 20px; font-weight: 600; color: var(--ink); }
html[lang="ja"] .pkg__name small { font-family: var(--f-ja); }
.pkg__desc { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.pkg__body h4 { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--coral); }
.pkg__body h4:not(:first-child) { margin-top: 26px; }
.pkg__body .plus { display: inline-block; margin-bottom: 10px; padding: 4px 12px; background: var(--peach); color: var(--coral-deep); font-size: 13.5px; }
.pkg ul { columns: 2; column-gap: 40px; }
.pkg ul li { break-inside: avoid; padding: 9px 0 9px 14px; position: relative; border-bottom: 1px solid #F3EEEC; font-size: 15px; }
.pkg ul li::before { content: ''; position: absolute; left: 0; top: 19px; width: 4px; height: 4px; border-radius: 50%; background: var(--coral); }

/* 질염 종류 등 상세 카드 */
.detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.detail article { background: #fff; border: 1px solid var(--line); padding: 34px 32px; }
.detail .n { font-family: var(--f-en); font-size: 26px; color: var(--coral); line-height: 1; }
.detail h3 { margin-top: 12px; font-size: 20px; font-weight: 600; }
.detail p { margin-top: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.detail dl { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.detail dt { color: var(--coral); font-weight: 600; }
.detail dd { margin: 0; color: var(--ink-2); }

/* 안내 박스 */
.notebox {
  display: flex; gap: 20px; align-items: flex-start; max-width: 980px; margin: 44px auto 0;
  padding: 26px 30px; background: var(--peach); border-left: 3px solid var(--coral);
}
.notebox strong { flex: none; font-weight: 700; color: var(--coral-deep); }
.notebox p { color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq { max-width: 980px; margin: 0 auto; border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative; display: flex; gap: 16px; align-items: baseline;
  padding: 24px 48px 24px 4px; font-size: 17px; font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { font-family: var(--f-en); font-style: normal; font-size: 24px; color: var(--coral); line-height: 1; }
.faq__item summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); transition: transform .3s;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__a { padding: 0 8px 26px 38px; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }

/* 인용 */
.quote { text-align: center; max-width: 1020px; margin: 0 auto; }
.quote p { font-size: clamp(19px, 2vw, 25px); line-height: 1.7; }
.quote p::before, .quote p::after { font-family: var(--f-en); color: var(--coral); font-size: 1.6em; line-height: 0; vertical-align: -.3em; }
.quote p::before { content: '“'; margin-right: 6px; }
.quote p::after { content: '”'; margin-left: 6px; }

/* 원장 프로필 */
.doctor { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: start; }
.doctor .img { aspect-ratio: 372 / 430; }
.doctor__role { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.doctor__name { margin-top: 4px; font-size: 32px; }
.doctor__cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.doctor__cols h4 { margin: 0 0 12px; font-size: 14px; color: var(--coral); font-weight: 600; }
.doctor__cols li { position: relative; padding: 5px 0 5px 14px; font-size: 15px; color: var(--ink-2); }
.doctor__cols li::before { content: ''; position: absolute; left: 0; top: 16px; width: 4px; height: 4px; border-radius: 50%; background: var(--coral); }

/* 원내 둘러보기 */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery figure { position: relative; overflow: hidden; aspect-ratio: 1198 / 572; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; bottom: 0; padding: 6px 12px; background: rgba(255,255,255,.9);
  font-size: 13px; font-weight: 500;
}

/* 하단 상담 띠 */
.cta-band { background: var(--peach); padding: 80px 0; text-align: center; }
.cta-band h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.5; }
.cta-band p { margin-top: 12px; color: var(--ink-2); }
.cta-band .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .info6 { grid-template-columns: repeat(3, 1fr); }
  .info6 li:nth-child(4) { border-left: 0; }
  .info6 li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .cards--4, .points--4 { grid-template-columns: repeat(2, 1fr); }
  .figs { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .figs--4 { grid-template-columns: repeat(2, 1fr); }
  .doctor { grid-template-columns: 300px 1fr; gap: 48px; }
}
@media (max-width: 960px) {
  .sub-hero { height: auto; flex-direction: column; align-items: stretch; background: var(--peach); }
  .sub-hero__bg { position: relative; aspect-ratio: 16 / 9; }
  .sub-hero::before { display: none; }
  .sub-hero__txt { padding: 28px 20px 36px; }
  .sub-hero h1 { font-size: clamp(26px, 7vw, 32px); }
  .sub-hero__desc { font-size: 15px; }
  .sub-hero__desc br { display: none; }
  .lnb__in { justify-content: flex-start; padding: 0 8px; }
  .lnb a { padding: 15px 14px; font-size: 14.5px; }
  .lnb a::after { left: 14px; right: 14px; }

  .sub-sec { padding: 72px 0; }
  .sub-sec--soft { padding: 72px 0 !important; }
  .sub-sec--soft + .sub-sec { padding-top: 72px; }
  .sub-head { margin-bottom: 36px; }
  .intro, .intro--rev { grid-template-columns: 1fr; gap: 28px; }
  .intro--rev .img { order: 0; }
  .info6 { grid-template-columns: repeat(2, 1fr); }
  .info6 li { padding: 20px 10px; }
  .info6 li:nth-child(odd) { border-left: 0; }
  .info6 li:nth-child(4) { border-left: 1px solid var(--line); }
  .info6 li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .info6 span { font-size: 15.5px; }
  .checks { grid-template-columns: 1fr; }
  .points, .points--4, .points--2, .cards, .cards--2, .cards--4, .detail, .steps { grid-template-columns: 1fr; gap: 16px; }
  .points li, .steps li { padding-bottom: 8px; }
  .figs, .figs--4 { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .figs figure { max-width: 150px; }
  .figs b { font-size: 15.5px; }
  .figs span { font-size: 13.5px; }
  .pkg { grid-template-columns: 1fr; gap: 20px; padding: 30px 22px; }
  .pkg__name { font-size: 44px; }
  .pkg ul { columns: 1; }
  .detail article { padding: 26px 22px; }
  .notebox { flex-direction: column; gap: 6px; padding: 20px 22px; }
  .faq__item summary { font-size: 16px; padding: 20px 40px 20px 2px; }
  .faq__a { padding-left: 34px; font-size: 15px; }
  .doctor { grid-template-columns: 1fr; gap: 28px; }
  .doctor .img { max-width: 320px; }
  .doctor__cols { grid-template-columns: 1fr; gap: 24px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cta-band { padding: 60px 0; }
  .cta-band .btns .btn { flex: 1 1 100%; }
}
