.treatment-nav-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.section-about[id^="care"] { scroll-margin-top: 176px; }
@media (max-width: 768px) {
  .treatment-nav-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .treatment-nav-list li { flex: 0 0 calc((100% - 16px) / 3); min-width: 0; }
  .treatment-nav-btn { height: auto; min-height: 44px; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; aspect-ratio: auto; padding: 4px; line-height: 1.2; word-break: keep-all; }
  .section-about[id^="care"] { scroll-margin-top: calc(var(--neck-nav-height, 130px) + var(--neck-header-height, 64px)); }
}
#main-content :where(p, span, h1, h2, h3, li, button, a) { word-break: keep-all; overflow-wrap: normal; }
#main-content .sub-label { text-transform: none; }
#main-content .about-desc {max-width: unset;white-space: unset;}
#definition .about-desc p:first-child { opacity: 1; }
#definition strong { font-weight: 650; }
#causes { background: #f6f6f6; }
#merits { background: var(--color-green); }
#merits .section-header-block :is(.sub-label, h2) { color: white; }
#treatments { padding-bottom: 0; }
#treatments .section-header-block { margin-bottom: 0; }
.effect-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; color: var(--color-green); font-weight: 600; font-size: clamp(17px, 1.5vw, 20px); }
@media (min-width: 1101px) {
  #merits .effect-list { grid-template-columns: repeat(3, minmax(0, 1fr)); width: calc(75% - 5px); margin-inline: auto; }
}
@media (min-width: 769px) {
  #causes .about-text-wrap { grid-column: 1; grid-row: 1; }
  #causes .about-image-wrap { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (min-width: 481px) and (max-width: 768px) {
  .section-treatment-nav { top: 80px; }
  :root { --neck-header-height: 80px; }
}
@font-face { font-family: Pretendard; src: url("../fonts/PretendardVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --font-ko: 'Noto Sans KR', 'Malgun Gothic', sans-serif; }
body, button, input, select, textarea { font-family: var(--font-ko); }
#definition strong, #causes .cause-highlight { color: var(--color-green); font-weight: 600; opacity: 1; }
.section-effect:not(#merits) { background: #edf5f0; }
#merits .effect-item:hover { background: white; border-color: rgba(119,172,142,.3); }
#merits .effect-item:hover :is(.effect-icon,.effect-num) { color: var(--color-green); }
#merits .effect-item:hover .effect-text { color: var(--color-black); }
#treatments { padding-bottom: clamp(28px, 4vw, 60px); }
.effect-tags span { display: inline-block; padding: 6px 18px; background: var(--color-green); color: #fff; border-radius: 999px; font-weight: 600; }
.care-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 20px; border-top: 1px solid var(--color-gray-mid); margin: 40px 0 0; padding-top: 28px; }
.care-facts div { display: flex; align-items: baseline; gap: 6px; }
.care-facts div + div::before { content: "•"; color: #b6b6b6; margin-right: 12px; }
.care-facts dt::after { content: " :"; }
.care-facts dd { margin: 0; color: var(--color-green); font-weight: 700; }
#neck-qna::before { background-image: url("../images/neck-qna.jpg"); }
@media (min-width: 1101px) {
  #effects0 .effect-list { display: flex; flex-wrap: wrap; justify-content: center; max-width: calc(75% - 5px); margin-inline: auto; }
  #effects0 .effect-item { flex: 0 0 calc((100% - 40px) / 3); }
}
@media (min-width: 769px) {
  #candidates .recommend-image-wrap { align-self: stretch; position: relative; }
  #candidates .recommend-figure { position: absolute; inset: 0; }
  #candidates .recommend-img { display: block; height: 100%; }
}
@media (max-width: 640px) {
  .care-facts { display: flex; flex-wrap: wrap; gap: 10px 12px; }
  .care-facts div { flex: 0 0 auto; flex-wrap: nowrap; gap: 3px; white-space: nowrap; }
  .care-facts div + div::before { content: none; }
}
#definition strong, #causes .cause-highlight { font-size: 19px; }
.section-about[id^="care"] .accent-subtitle { font-size: 19px !important; }
#treatments .accent-subtitle { margin-top: 36px; font-size: clamp(19px, 2vw, 22px) !important; font-weight: 550 !important; }
.treatment-nav-btn[aria-current="location"] { background: var(--color-green); color: white; }
.effect-tags { margin-top: 44px; gap: 5px 9px; font-size: clamp(16px, 1.45vw, 19px); }
.effect-tags span { padding-inline: 24px; }
.care-facts { margin-top: clamp(54px, 5vw, 76px); }
#detail3 .step-title small { display: block; margin-top: 4px; color: var(--color-green); font-size: .82em; }
#merits .effect-item { border-width: 4px; }
#results .effect-list { width: 80%; margin-inline: auto; gap: 20px; }
#results .effect-item { width: 100%; min-height: 0; border-width: 4px; aspect-ratio: 1; border-radius: 50%; padding: 6%; justify-self: center; align-self: center; }
#results.section-effect { background: var(--color-green); }
#results .section-header-block :is(.sub-label,h2) { color: white; }
#results .effect-item:hover { background: white; border-color: rgba(119,172,142,.3); }
#results .effect-item:hover :is(.effect-icon,.effect-num) { color: var(--color-green); }
#results .effect-item:hover .effect-text { color: var(--color-black); }
@media (min-width: 1101px) {
  .section-effect[id^="effects"]:not(#effects0) .effect-list { grid-template-columns: repeat(3,minmax(0,1fr)); width: calc(75% - 5px); margin-inline: auto; }
  :is(#detail2,#detail3) .principle-steps { grid-template-columns: repeat(3,minmax(0,1fr)); width: 82%; margin-inline: auto; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .section-effect[id^="effects"]:not(#effects0) .effect-list, :is(#detail2,#detail3) .principle-steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 768px) {
  #results .effect-list { width: 84%; gap: 14px; }
  #results .effect-item { gap: 4px; padding: 4%; }
  #results .effect-text { font-size: clamp(13px, 3.6vw, 17px); }
}

@media (max-width: 768px) {
  #detail3 .step-title { font-size: 22px; }
}

.section-intro::before { background-image: url('../images/neck-hero.jpg'); }
#detail4 .principle-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 500px)); justify-content: center; }
#detail4 .step-image-wrap { width: 100%; height: auto; aspect-ratio: 5 / 4; }
#detail4 .step-img { display: block; width: 100%; height: 100%; object-fit: contain; }
#detail4 .step-content { padding: 16px; text-align: center; background: #ebebeb; }
#detail4 .principle-step:last-child .step-content { background: var(--color-green); }
#detail4 .principle-step:last-child .step-title { color: white; }
#detail4 .step-title { margin: 0; }
@media (max-width: 640px) {
  #detail4 .principle-steps { grid-template-columns: minmax(0, 500px); }
}

#causes .about-image-wrap { align-self: center; }
#causes .about-figure { height: auto; padding: 0; aspect-ratio: auto; }
#causes .about-img { display: block; width: 100%; height: auto; }
#detail2, #detail3, #detail4 { background-color: #fafafa; }

/* 모바일 본문 사진은 각 카드 너비를 채우고 PC 프레임 비율을 유지한다. */
@media (max-width: 768px) {
  .section-about .about-image-wrap, .section-principle .step-image-wrap, #candidates .recommend-image-wrap { width: 100%; }
  .section-about .about-img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 540; object-fit: cover; }
  .section-principle .step-img { display: block; width: 100%; height: auto; aspect-ratio: 302 / 240; object-fit: cover; }
  :is(#detail2, #detail3) .step-img { aspect-ratio: 334 / 240; }
  #detail4 .step-img { aspect-ratio: 5 / 4; object-fit: cover; }
  #candidates .recommend-img { display: block; width: 100%; height: auto; object-fit: cover; }
  .section-about .about-img:hover, .section-principle .step-img:hover, #candidates .recommend-img:hover { transform: none; }
}
