@charset "UTF-8";
/* ================================
   서브페이지 공통
   ================================ */
.sub_page {
  overflow-x: clip;
}
.sub_page p:last-child {
  margin-bottom: 0;
}
@media (max-width: 1279px) {
  .sub_page :where(h1, h2, h3, p) {
    padding: 0;
  }
}

.sub_inner {
  max-width: var(--container-s-width);
  margin: 0 auto;
}
@media (max-width: 1279px) {
  .sub_inner {
    padding: 0 var(--space-sm);
  }
}
@media (max-width: 900px) {
  .sub_inner {
    padding: 0 var(--space-xs);
  }
}

.sub_title_box {
  margin-bottom: 80px;
  text-align: center;
}
@media (max-width: 900px) {
  .sub_title_box {
    margin-bottom: var(--space-md);
  }
}

.sub_caption {
  margin-bottom: var(--space-xs);
  font-size: calc(var(--p-title) - 3px);
  color: var(--sub-c-02);
  letter-spacing: 0.02em;
}

.sub_title {
  margin-bottom: var(--space-sm);
  font-size: var(--h2-size);
  font-weight: var(--font-w-r);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
.sub_title .mc {
  font-weight: var(--font-w-bm);
}

.sub_page_title {
  margin-bottom: var(--space-md);
  font-size: var(--h1-size);
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--main-c);
}
.sub_page_title_plain {
  font-weight: var(--font-w-r);
  color: var(--sub-c-01);
}
@media (max-width: 900px) {
  .sub_page_title {
    margin-bottom: var(--space-sm);
  }
}

@media (max-width: 900px) {
  :is(.sub_title, .sub_page_title, .sub_sticky_title, .sub_check_title, .info_location_title, .doctor_name, .sinus_intro_title, .message_title):is(h1) {
    font-size: var(--h1-size);
  }
  :is(.sub_title, .sub_page_title, .sub_sticky_title, .sub_check_title, .info_location_title, .doctor_name, .sinus_intro_title, .message_title):is(h2) {
    font-size: var(--h2-size);
  }
  :is(.sub_title, .sub_page_title, .sub_sticky_title, .sub_check_title, .info_location_title, .doctor_name, .sinus_intro_title, .message_title):is(h3) {
    font-size: var(--h3-size);
  }
}
.sub_lead {
  margin-bottom: var(--space-md);
  font-size: calc(var(--p-title) + 3px);
  font-weight: var(--font-w-m);
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
.sub_lead span {
  font-weight: inherit;
}
@media (max-width: 900px) {
  .sub_lead br:not(.mo_br) {
    display: none;
  }
}

.sub_desc {
  font-size: calc(var(--p-title) - 4px);
  letter-spacing: -0.02em;
}
@media (max-width: 900px) {
  .sub_desc br:not(.mo_br) {
    display: none;
  }
}

/* 제목 아래 가운데 대표 이미지. 원본 크기보다 커지지 않는다 */
.sub_visual {
  text-align: center;
}
.sub_visual img {
  width: auto;
  max-width: 100%;
}

/* 글 + 사진 한 줄 (앞니 레진치료, 인레이 등). 연달아 놓으면 사이에 선이 생긴다 */
.sub_feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: 1172px;
  margin: 0 auto;
  padding: 80px 60px;
}
.sub_feature + .sub_feature {
  border-top: 1px solid #e5e5e5;
}
.sub_feature_title {
  margin-bottom: var(--space-sm);
  font-size: calc(var(--p-title) + 4px);
  font-weight: var(--font-w-bm);
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
.sub_feature_title span {
  font-weight: inherit;
}
.sub_feature_media {
  flex: none;
  width: 348px;
}
.sub_feature_media img {
  border-radius: 12px;
}
.sub_feature_media--case {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 1279px) {
  .sub_feature {
    padding: 64px 0;
  }
}
@media (max-width: 1023px) {
  .sub_feature_media {
    width: 42%;
  }
}
@media (max-width: 900px) {
  .sub_feature {
    flex-direction: column;
    align-items: stretch;
    padding: 48px 0;
    text-align: center;
  }
  .sub_feature_text p br {
    display: none;
  }
  .sub_feature_media {
    width: 100%;
    max-width: 348px;
    margin: 0 auto;
  }
}

/* 체크리스트 (OO, 어떤 분들께 필요한가요?) */
.sub_check {
  padding: calc(var(--section-padding) * 0.7) 0;
  background-color: var(--sub-c-03);
}
.sub_check_inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 630px);
  align-items: start;
  gap: var(--space-md);
}
.sub_check_title {
  position: sticky;
  top: 200px;
  margin-bottom: 0;
  font-size: var(--h2-size);
  font-weight: var(--font-w-r);
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
.sub_check_em {
  font-weight: var(--font-w-bm);
}
.sub_check_list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sub_check_list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: start;
  gap: var(--space-xs);
  min-height: 74px;
  padding: 18px var(--space-md);
  border-radius: 40px;
  background-color: var(--white-c);
  font-size: calc(var(--p-title) - 2px);
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.sub_check_list li::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: calc((1.4em - 28px) / 2);
  background: url("../images/icon-check.svg") no-repeat center/61px auto;
}
@media (max-width: 1023px) {
  .sub_check_list li {
    padding: 16px var(--space-sm);
  }
}
@media (max-width: 900px) {
  .sub_check_inner {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .sub_check_title {
    position: static;
    text-align: center;
  }
  .sub_check_list {
    gap: 12px;
  }
  .sub_check_list li {
    min-height: 60px;
    padding: 14px 20px;
    border-radius: 30px;
  }
}

/* FAQ — <details> 기반. 높이 애니메이션은 custom.js(initSubFaq)가 맡는다
   닫히는 중(.is_closing)에는 색을 먼저 되돌려 애니메이션과 함께 바뀌게 한다 */
.sub_faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 970px;
  margin: 100px auto 0;
}
.sub_faq_item {
  border-radius: 8px;
  background-color: var(--sub-c-03);
  transition: background-color 0.3s ease;
}
.sub_faq_item[open]:not(.is_closing) {
  background-color: var(--sub-c-04);
}
.sub_faq_item[open]:not(.is_closing) .sub_faq_q,
.sub_faq_item[open]:not(.is_closing) .sub_faq_num,
.sub_faq_item[open]:not(.is_closing) .sub_faq_text,
.sub_faq_item[open]:not(.is_closing) .sub_faq_a p {
  color: var(--white-c);
}
.sub_faq_item[open]:not(.is_closing) .sub_faq_q::after {
  transform: rotate(-135deg);
  margin-top: 6px;
}
.sub_faq_q {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  color: var(--sub-c-01);
  transition: color 0.3s ease;
}
.sub_faq_q::-webkit-details-marker {
  display: none;
}
.sub_faq_q::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-left: auto;
  margin-top: -6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.sub_faq_q:focus-visible {
  outline: 2px solid var(--main-c);
  outline-offset: 2px;
  border-radius: 8px;
}
.sub_faq_num, .sub_faq_text {
  font-size: calc(var(--p-title) - 2px);
  transition: color 0.3s ease;
}
.sub_faq_num {
  flex: none;
  font-weight: var(--font-w-b);
}
.sub_faq_text {
  letter-spacing: -0.02em;
}
@media (max-width: 900px) {
  .sub_faq_text {
    line-height: 1.5;
  }
}
.sub_faq_a {
  overflow: hidden;
}
.sub_faq_a p {
  padding: 0 28px 24px 70px;
  font-size: var(--p-body);
  transition: color 0.3s ease;
}
@media (max-width: 900px) {
  .sub_faq {
    margin-top: 64px;
  }
}
@media (max-width: 480px) {
  .sub_faq_q {
    gap: 12px;
    padding: 18px 16px;
  }
  .sub_faq_a p {
    padding: 0 16px 20px;
  }
}

/* 블로그 배너 링크 — 배경 이미지는 페이지별 modifier 로 지정한다 */
.sub_blog {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1050px;
  min-height: 400px;
  margin: 120px auto 0;
  padding: var(--space-lg) 120px;
  border-radius: 32px;
  background: var(--main-c) no-repeat right center/cover;
  color: var(--white-c);
}
.sub_blog--implant {
  background-image: url("../images/implant/implant-blog-banner-bg.jpg");
}
.sub_blog--cavity {
  background-image: url("../images/cavity/cavity-blog-banner-bg.jpg");
}
.sub_blog--crown {
  background-image: url("../images/cavity/crown-blog-banner-bg.jpg");
}
.sub_blog_caption {
  margin-bottom: var(--space-xs);
  font-size: calc(var(--p-title) - 2px);
  font-weight: 200;
}
.sub_blog_title {
  margin-bottom: 64px;
  font-size: var(--h3-size);
  font-weight: var(--font-w-m);
  line-height: 1.4;
  letter-spacing: -0.03em;
}
.sub_blog_more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: calc(var(--p-title) - 4px);
}
.sub_blog_more::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.sub_blog:hover .sub_blog_more::after, .sub_blog:focus-visible .sub_blog_more::after {
  transform: translateX(4px) rotate(45deg);
}
.sub_blog:focus-visible {
  outline: 3px solid var(--sub-c-04);
  outline-offset: 4px;
}
@media (max-width: 1023px) {
  .sub_blog {
    min-height: 380px;
    padding: var(--space-lg) 64px;
  }
}
@media (max-width: 900px) {
  .sub_blog {
    min-height: 0;
    margin-top: 72px;
    padding: var(--space-lg) var(--space-sm);
    border-radius: 20px;
    background-position: 70% center;
  }
  .sub_blog_title {
    margin-bottom: var(--space-md);
  }
}

/* ================================
   IMPLANT
   ================================ */
.implant_intro {
  text-align: center;
}
.implant_intro .sub_desc {
  margin-bottom: 64px;
}
@media (max-width: 900px) {
  .implant_intro .sub_desc {
    margin-bottom: var(--space-md);
  }
}

.implant_type_list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 735px;
  margin: 0 auto;
  text-align: left;
}
.implant_type_item {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 20px 59px;
  border: 1px solid #dcdcdc;
  border-radius: 24px;
  background-color: var(--white-c);
  transition: border-color 0.3s ease;
}
.implant_type_item img {
  flex: none;
  width: 148px;
}
@media (hover: hover) {
  .implant_type_item:hover {
    border-color: var(--main-c);
  }
}
.implant_type_item p {
  color: var(--bagic-color);
}
.implant_type_title {
  margin-bottom: var(--space-xs);
  font-size: var(--p-title);
  font-weight: var(--font-w-bm);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
@media (max-width: 900px) {
  .implant_type_item {
    gap: var(--space-sm);
    padding: 20px var(--space-sm);
  }
  .implant_type_item img {
    width: 110px;
  }
  .implant_type_title {
    margin-bottom: 8px;
  }
}
@media (max-width: 480px) {
  .implant_type_item {
    gap: var(--space-xs);
    padding: var(--space-xs);
    border-radius: 16px;
  }
  .implant_type_item img {
    width: 80px;
  }
}

.implant_special_list {
  display: flex;
  flex-direction: column;
  gap: 100px;
  max-width: 1124px;
  margin: 0 auto;
}
.implant_special_item {
  display: grid;
  grid-template-columns: 1fr minmax(0, 571px);
  align-items: center;
  gap: var(--space-md);
}
.implant_special_item img {
  border-radius: 8px;
}
.implant_special_num {
  margin-bottom: 14px;
  font-weight: var(--font-w-m);
  color: var(--sub-c-02);
}
.implant_special_title {
  margin-bottom: var(--space-xs);
  font-size: calc(var(--p-title) + 4px);
  font-weight: var(--font-w-bm);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
.implant_special_title span {
  font-weight: inherit;
}
@media (max-width: 1023px) {
  .implant_special_list {
    gap: 72px;
  }
  .implant_special_item {
    grid-template-columns: 1fr 48%;
  }
}
@media (max-width: 900px) {
  .implant_special_list {
    gap: 56px;
  }
  .implant_special_item {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    text-align: center;
  }
  .implant_special_item img {
    max-width: 571px;
    margin: 0 auto;
  }
  .implant_special_text p br {
    display: none;
  }
}

.sinus_intro {
  padding: calc(var(--section-padding) * 0.75) 0;
  background: var(--main-c) url("../images/implant/sinus-lift-bg.jpg") no-repeat center/cover;
}
.sinus_intro_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.sinus_intro_title {
  margin-bottom: var(--space-md);
  font-size: var(--h3-size);
  font-weight: var(--font-w-bm);
  letter-spacing: -0.03em;
  color: var(--white-c);
}
.sinus_intro p {
  font-size: calc(var(--p-title) - 4px);
  letter-spacing: -0.02em;
  color: var(--white-c);
}
.sinus_intro_img {
  flex: none;
  width: 348px;
  margin-right: 64px;
}
@media (max-width: 1279px) {
  .sinus_intro_img {
    margin-right: 0;
  }
}
@media (max-width: 1023px) {
  .sinus_intro_img {
    width: 36%;
  }
}
@media (max-width: 900px) {
  .sinus_intro_inner {
    flex-direction: column;
    text-align: center;
  }
  .sinus_intro p br {
    display: none;
  }
  .sinus_intro_img {
    width: 100%;
    max-width: 348px;
  }
}

.sinus_method {
  --step-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%232cbdae'/%3E%3Cpath d='M13.5 10l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.sinus_method_group {
  max-width: 1040px;
  margin: 0 auto;
}
.sinus_method_group + .sinus_method_group {
  margin-top: 72px;
}
.sinus_method_title {
  margin-bottom: var(--space-sm);
  padding-left: 22px;
  border-left: 6px solid var(--main-c);
  font-size: var(--p-title);
  font-weight: var(--font-w-bm);
  line-height: 1.2;
  color: var(--sub-c-01);
}

.sinus_steps {
  --step-gap: 95px;
  --pair-gap: 4px;
  display: grid;
  -moz-column-gap: var(--step-gap);
       column-gap: var(--step-gap);
}
.sinus_steps--crestal {
  grid-template-columns: 215fr 422fr 214fr;
}
.sinus_steps--lateral {
  --step-gap: 34px;
  grid-template-columns: repeat(4, 1fr);
}
.sinus_steps p {
  margin-top: var(--space-xs);
  text-align: center;
}

.sinus_step {
  min-width: 0;
}
.sinus_step_img {
  position: relative;
}
.sinus_step--pair .sinus_step_img {
  display: flex;
  gap: var(--pair-gap);
}
.sinus_step--pair .sinus_step_img img {
  flex: 1 1 0;
  min-width: 0;
}
.sinus_step:not(:last-child) .sinus_step_img::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--step-gap) / -2 - 16px);
  width: 32px;
  height: 32px;
  margin-top: -16px;
  background: var(--step-arrow) no-repeat center/contain;
}

@media (max-width: 1023px) {
  .sinus_steps {
    --step-gap: 56px;
  }
  .sinus_steps--lateral {
    --step-gap: 40px;
  }
  .sinus_step:not(:last-child) .sinus_step_img::after {
    width: 28px;
    height: 28px;
    right: calc(var(--step-gap) / -2 - 14px);
    margin-top: -14px;
  }
}
@media (max-width: 900px) {
  .sinus_method_group + .sinus_method_group {
    margin-top: 56px;
  }
  .sinus_steps,
  .sinus_steps--crestal,
  .sinus_steps--lateral {
    --step-gap: 36px;
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-md);
  }
  .sinus_step p br {
    display: none;
  }
  .sinus_step:nth-child(even) .sinus_step_img::after {
    display: none;
  }
  .sinus_steps--crestal {
    row-gap: 64px;
  }
  .sinus_steps--crestal .sinus_step {
    position: relative;
    grid-column: 1/-1;
  }
  .sinus_steps--crestal .sinus_step:not(.sinus_step--pair) {
    justify-self: center;
    width: calc((100% - var(--pair-gap)) / 2);
  }
  .sinus_steps--crestal .sinus_step:not(:last-child) .sinus_step_img::after {
    display: none;
  }
  .sinus_steps--crestal .sinus_step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -46px;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    background: var(--step-arrow) no-repeat center/contain;
    transform: rotate(90deg);
  }
}
.bone_graft_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1157px;
  margin: 0 auto;
}
.bone_graft_item {
  padding: 40px var(--space-sm) 48px;
  border-radius: 16px;
  background-color: var(--sub-c-03);
  text-align: center;
}
.bone_graft_item p {
  color: var(--bagic-color);
}
.bone_graft_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  background-color: var(--white-c);
}
.bone_graft_icon img {
  width: auto;
  max-width: 64%;
}
.bone_graft_title {
  margin-bottom: var(--space-xs);
  font-size: var(--p-title);
  font-weight: var(--font-w-bm);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
@media (max-width: 1023px) {
  .bone_graft_list {
    gap: 12px;
  }
  .bone_graft_icon {
    width: 120px;
    height: 120px;
  }
  .bone_graft_item p br {
    display: none;
  }
}
@media (max-width: 900px) {
  .bone_graft_list {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .bone_graft_item {
    padding: 32px var(--space-sm);
  }
  .bone_graft_icon {
    width: 100px;
    height: 100px;
    margin-bottom: var(--space-xs);
  }
}

.insurance .sub_title_box {
  margin-bottom: 80px;
}
@media (max-width: 900px) {
  .insurance .sub_title_box {
    margin-bottom: var(--space-lg);
  }
}
.insurance_lead {
  font-size: var(--p-title);
  font-weight: var(--font-w-m);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
.insurance_note {
  margin-top: 12px;
  font-size: var(--p-caption);
  color: var(--sub-c-02);
}
.insurance_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) 56px;
}
.insurance_list li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--p-title);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
.insurance_icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: #ededed;
}
.insurance_icon img {
  width: auto;
  max-width: 56%;
}
@media (max-width: 1023px) {
  .insurance_list {
    gap: var(--space-sm) var(--space-md);
  }
  .insurance_icon {
    width: 80px;
    height: 80px;
  }
}
@media (max-width: 900px) {
  .insurance_list {
    flex-direction: column;
    align-items: flex-start;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
    gap: var(--space-xs);
  }
  .insurance_icon {
    width: 64px;
    height: 64px;
  }
}

/* ================================
   CAVITY (일반/심미치료 : 충치 · 신경치료 · 크라운)
   ================================ */
.cavity_stage_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
}
.cavity_stage_img {
  position: relative;
  max-width: 264px;
  margin-bottom: var(--space-sm);
}
.cavity_stage_img img {
  border-radius: 12px;
  transform-origin: center bottom;
  transition: transform 0.4s ease;
}
.cavity_stage_img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--white-c);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.cavity_stage_text {
  transition: opacity 0.4s ease;
}
.cavity_stage_text p {
  color: var(--bagic-color);
}
.cavity_stage_title {
  margin-bottom: 12px;
  font-size: calc(var(--p-title) + 2px);
  font-weight: var(--font-w-bm);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
.cavity_stage_title span {
  font-weight: inherit;
}
@media (max-width: 900px) {
  .cavity_stage_title {
    font-size: var(--p-title);
  }
}
.cavity_stage_treat {
  margin-top: var(--space-sm);
}
.cavity_stage_treat::before {
  content: "+ ";
  font-weight: var(--font-w-b);
}
@media (min-width: 1024px) and (hover: hover) {
  .cavity_stage_item:not(.is_active) .cavity_stage_img img {
    transform: scale(0.88);
  }
  .cavity_stage_item:not(.is_active) .cavity_stage_img::after {
    opacity: 0.6;
  }
  .cavity_stage_item:not(.is_active) .cavity_stage_text {
    opacity: 0.45;
  }
  .cavity_stage_list:has(.cavity_stage_item:hover) .cavity_stage_item:not(:hover) .cavity_stage_img img {
    transform: scale(0.88);
  }
  .cavity_stage_list:has(.cavity_stage_item:hover) .cavity_stage_item:not(:hover) .cavity_stage_img::after {
    opacity: 0.6;
  }
  .cavity_stage_list:has(.cavity_stage_item:hover) .cavity_stage_item:not(:hover) .cavity_stage_text {
    opacity: 0.45;
  }
  .cavity_stage_list:has(.cavity_stage_item:hover) .cavity_stage_item:hover .cavity_stage_img img {
    transform: none;
  }
  .cavity_stage_list:has(.cavity_stage_item:hover) .cavity_stage_item:hover .cavity_stage_img::after {
    opacity: 0;
  }
  .cavity_stage_list:has(.cavity_stage_item:hover) .cavity_stage_item:hover .cavity_stage_text {
    opacity: 1;
  }
}
@media (max-width: 1023px) {
  .cavity_stage_list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg) var(--space-sm);
    max-width: 600px;
  }
  .cavity_stage_img {
    margin-bottom: var(--space-xs);
  }
  .cavity_stage_treat {
    margin-top: 12px;
  }
}
@media (max-width: 480px) {
  .cavity_stage_list {
    gap: var(--space-md) var(--space-xs);
  }
  .cavity_stage_text p br {
    display: none;
  }
}

/* 번호 슬라이드 (충치치료 방법 · 통증완화시스템). 사진은 Swiper, 글은 custom.js(initSubPoint)가 교체 */
.sub_point {
  padding: calc(var(--section-padding) * 0.6) 0;
  background-color: var(--sub-c-03);
}
.sub_point--plain {
  padding: 0;
  background: none;
}
.sub_point_inner {
  display: grid;
  grid-template-columns: minmax(0, 530px) 1fr;
  align-items: center;
  gap: 90px;
  max-width: 940px;
}
.sub_point_swiper {
  width: 100%;
  border-radius: 24px;
}
.sub_point_swiper img {
  display: block;
}
.sub_point_texts {
  display: grid;
}
.sub_point_text {
  grid-area: 1/1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}
.sub_point_text.is_active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.sub_point_text p {
  color: var(--bagic-color);
}
.sub_point_num {
  margin-bottom: 8px;
  font-size: var(--p-caption);
  color: #c6c6c6;
  letter-spacing: 0.02em;
}
.sub_point_title {
  margin-bottom: var(--space-sm);
  font-size: calc(var(--p-title) + 2px);
  font-weight: var(--font-w-bm);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
.sub_point_nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}
.sub_point_prev, .sub_point_next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--sub-c-01);
}
.sub_point_prev::before, .sub_point_next::before {
  content: "";
  width: 11px;
  height: 11px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.sub_point_prev:focus-visible, .sub_point_next:focus-visible {
  outline: 2px solid var(--main-c);
  outline-offset: 2px;
}
.sub_point_prev {
  color: var(--sub-c-02);
}
.sub_point_prev::before {
  margin-left: 4px;
  transform: rotate(-135deg);
}
.sub_point_next::before {
  margin-right: 4px;
  transform: rotate(45deg);
}
.sub_point_pagination {
  display: flex;
  gap: var(--space-xs);
}
.sub_point_pagination.swiper-pagination-horizontal {
  width: auto;
}
.sub_point_pagination .swiper-pagination-bullet {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0 4px;
  border-radius: 0;
  background: none;
  opacity: 1;
  font-size: var(--p-body);
  color: var(--sub-c-02);
  transition: color 0.3s ease;
}
.sub_point_pagination .swiper-pagination-bullet-active {
  color: var(--sub-c-01);
}
@media (max-width: 1023px) {
  .sub_point_inner {
    gap: var(--space-md);
  }
}
@media (max-width: 900px) {
  .sub_point_inner {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    max-width: 560px;
  }
  .sub_point_swiper {
    border-radius: 16px;
  }
  .sub_point_info {
    text-align: center;
  }
  .sub_point_text p br:not(.keep_br) {
    display: none;
  }
  .sub_point_nav {
    justify-content: center;
    margin-top: var(--space-sm);
  }
}

.cavity_feature .sub_feature:first-child {
  padding-top: 0;
}

.root_canal_steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 970px;
  margin: 0 auto;
}
.root_canal_step {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 48px 70px;
  border-radius: 12px;
  background-color: #f3f3f3;
}
.root_canal_step p {
  color: var(--bagic-color);
}
.root_canal_icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: var(--white-c);
}
.root_canal_icon img {
  width: auto;
  max-width: 55%;
  max-height: 66%;
}
.root_canal_title {
  margin-bottom: 12px;
  font-size: calc(var(--p-title) + 2px);
  font-weight: var(--font-w-bm);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
@media (max-width: 1023px) {
  .root_canal_step {
    gap: var(--space-md);
    padding: var(--space-md);
  }
  .root_canal_icon {
    width: 120px;
    height: 120px;
  }
  .root_canal_step p br {
    display: none;
  }
}
@media (max-width: 900px) {
  .root_canal_step {
    gap: var(--space-sm);
    padding: var(--space-sm);
  }
  .root_canal_icon {
    width: 88px;
    height: 88px;
  }
}
@media (max-width: 480px) {
  .root_canal_step {
    flex-direction: column;
    text-align: center;
  }
}

.crown {
  background-color: var(--sub-c-03);
}
.crown .sub_title_box {
  margin-bottom: var(--space-lg);
}
.crown_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 816px;
  margin: 0 auto;
}
.crown_item {
  text-align: center;
}
.crown_item img {
  margin-bottom: var(--space-sm);
  border-radius: 16px;
}
.crown_item p {
  color: var(--bagic-color);
}
.crown_title {
  margin-bottom: 12px;
  font-size: var(--p-title);
  font-weight: var(--font-w-bm);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
@media (max-width: 900px) {
  .crown_list {
    gap: var(--space-sm) var(--space-xs);
  }
  .crown_item p br {
    display: none;
  }
}
@media (max-width: 480px) {
  .crown_list {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.crown_case .sub_feature {
  padding-top: 0;
}

/* ================================
   일반진료 (template-general.php)
   LAMINATE · WHITENING
   ================================ */
.whitening_steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 1000px;
  margin: 72px auto 0;
}
.whitening_step {
  position: relative;
  text-align: center;
}
.whitening_step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 64px;
  right: calc(var(--space-md) / -2 - 6px);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 12px solid #d5d5d5;
}
.whitening_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  height: 154px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  background-color: #f3f3f3;
}
.whitening_icon img {
  width: auto;
  max-height: 58%;
}
.whitening_num {
  margin-bottom: 12px;
  font-size: var(--p-caption);
  color: var(--sub-c-02);
  letter-spacing: 0.02em;
}
.whitening_title {
  margin-bottom: 0;
  font-size: calc(var(--p-title) - 2px);
  font-weight: var(--font-w-m);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
@media (max-width: 1023px) {
  .whitening_icon {
    width: 120px;
    height: 120px;
  }
  .whitening_step:not(:last-child)::after {
    top: 51px;
  }
}
@media (max-width: 900px) {
  .whitening_steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md) var(--space-sm);
    max-width: 480px;
    margin-top: var(--space-lg);
  }
  .whitening_step:not(:last-child)::after {
    top: 41px;
    right: calc(var(--space-sm) / -2 - 6px);
  }
  .whitening_step:nth-child(2n)::after {
    display: none;
  }
  .whitening_icon {
    width: 100px;
    height: 100px;
  }
}

/* ================================
   TMJ (턱관절)
   ================================ */
.tmj_laser {
  overflow: hidden;
  background: var(--main-c) url("../images/general/tmj-phl-bg.jpg") no-repeat center/cover;
}
.tmj_laser_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: 1040px;
  padding-top: var(--space-lg);
}
.tmj_laser_text {
  padding-bottom: var(--space-lg);
}
.tmj_laser_title {
  margin-bottom: var(--space-sm);
  font-size: calc(var(--p-title) + 4px);
  font-weight: var(--font-w-bm);
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: var(--white-c);
}
.tmj_laser p {
  font-size: calc(var(--p-title) - 4px);
  letter-spacing: -0.02em;
  color: var(--white-c);
}
.tmj_laser_img {
  flex: none;
  align-self: flex-end;
  width: 436px;
}
.tmj_laser_img img {
  display: block;
}
@media (max-width: 1023px) {
  .tmj_laser_img {
    width: 40%;
  }
}
@media (max-width: 900px) {
  .tmj_laser_inner {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }
  .tmj_laser_text {
    padding-bottom: var(--space-md);
  }
  .tmj_laser p br {
    display: none;
  }
  .tmj_laser_img {
    align-self: center;
    width: 100%;
    max-width: 340px;
  }
}

.tmj_phl_box {
  max-width: 1040px;
  margin: 0 auto;
}
.tmj_phl_title {
  margin-bottom: 8px;
  padding-left: 22px;
  border-left: 6px solid var(--main-c);
  font-size: var(--p-title);
  font-weight: var(--font-w-bm);
  line-height: 1.2;
  color: var(--sub-c-01);
}
.tmj_phl_sub {
  margin-bottom: var(--space-md);
  padding-left: 20px;
  color: var(--bagic-color);
}
.tmj_phl_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tmj_phl_item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 40px;
  border-radius: 12px;
  background-color: var(--sub-c-03);
}
.tmj_phl_item img {
  flex: none;
  width: 140px;
}
.tmj_phl_item p {
  color: var(--bagic-color);
}
.tmj_phl_item_title {
  margin-bottom: 12px;
  font-size: calc(var(--p-title) - 2px);
  font-weight: var(--font-w-bm);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
@media (max-width: 1023px) {
  .tmj_phl_item {
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-sm);
  }
  .tmj_phl_item img {
    width: 100px;
  }
}
@media (max-width: 900px) {
  .tmj_phl_list {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .tmj_phl_item p br {
    display: none;
  }
}

/* ================================
   WISDOM TOOTH (사랑니)
   ================================ */
.wisdom_method_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1072px;
  margin: 0 auto;
}
.wisdom_method_item {
  text-align: center;
}
.wisdom_method_item img {
  margin-bottom: var(--space-sm);
  border-radius: 12px;
}
.wisdom_method_item p {
  color: var(--bagic-color);
}
.wisdom_method_title {
  margin-bottom: 12px;
  font-size: var(--p-title);
  font-weight: var(--font-w-bm);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
.wisdom_method_title span {
  font-weight: inherit;
}
@media (max-width: 1023px) {
  .wisdom_method_item p br {
    display: none;
  }
}
@media (max-width: 900px) {
  .wisdom_method_list {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    max-width: 400px;
  }
}

/* ================================
   잇몸치료 (template-gum.php)
   ================================ */
.gum_stage {
  position: relative;
  text-align: center;
}
.gum_stage_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}
.gum_stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 94px;
  right: calc(var(--space-md) / -2 - 6px);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 12px solid #d5d5d5;
}
.gum_stage img {
  width: auto;
  max-width: 206px;
  margin: 0 auto var(--space-sm);
}
.gum_stage_title {
  margin-bottom: 12px;
  font-size: var(--p-title);
  font-weight: var(--font-w-m);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
.gum_stage p {
  color: var(--bagic-color);
}
@media (max-width: 1023px) {
  .gum_stage img {
    max-width: 150px;
  }
  .gum_stage:not(:last-child)::after {
    top: 66px;
  }
  .gum_stage p br {
    display: none;
  }
}
@media (max-width: 900px) {
  .gum_stage_list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md) var(--space-sm);
    max-width: 480px;
  }
  .gum_stage:not(:last-child)::after {
    top: 54px;
    right: calc(var(--space-sm) / -2 - 6px);
  }
  .gum_stage:nth-child(2n)::after {
    display: none;
  }
  .gum_stage img {
    max-width: 120px;
  }
}

/* ================================
   왼쪽 제목 고정 + 오른쪽 카드 스크롤 (잇몸치료 · 화이트펄치과 특별함)
   reset.css 의 .section 은 overflow:hidden 이라 sticky 가 멈추므로 이 섹션에는 .section 을 붙이지 않는다
   ================================ */
.sub_sticky {
  padding: var(--section-padding) 0;
}
.sub_sticky_inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 686px);
  align-items: start;
  gap: var(--space-md);
  max-width: 1172px;
  margin: 0 auto;
}
.sub_sticky_head {
  position: sticky;
  top: 200px;
}
.sub_sticky_title {
  margin-bottom: 0;
  font-size: var(--h2-size);
  font-weight: var(--font-w-r);
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
.sub_sticky_title .mc {
  font-weight: var(--font-w-bm);
}
.sub_sticky_symbol {
  display: block;
  width: 74%;
  max-width: 370px;
  margin-top: 100px;
}
.sub_sticky_list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
@media (max-width: 1023px) {
  .sub_sticky_inner {
    grid-template-columns: 1fr;
  }
  .sub_sticky_head {
    position: static;
    text-align: center;
  }
  .sub_sticky_symbol {
    display: none;
  }
  .sub_sticky_list {
    width: 100%;
    max-width: 686px;
    margin: 0 auto;
  }
}
@media (max-width: 900px) {
  .sub_sticky_list {
    gap: var(--space-sm);
  }
}

/* 회색 카드 + 오른쪽 배경 이미지(671x324). 이미지는 modifier 로 지정한다 */
.sub_card {
  min-height: 324px;
  padding: 40px 32px;
  border-radius: 12px;
  background: #f7f7f7 no-repeat right center/auto 100%;
}
.sub_card--gum-scaling {
  background-image: url("../images/gum/gum-card-scaling.jpg");
}
.sub_card--gum-root-planing {
  background-image: url("../images/gum/gum-card-root-planing.jpg");
}
.sub_card--gum-flap-surgery {
  background-image: url("../images/gum/gum-card-flap-surgery.jpg");
}
.sub_card--special-specialist {
  background-image: url("../images/special/special-card-specialist.jpg");
}
.sub_card--special-ct {
  background-image: url("../images/special/special-card-ct-diagnosis.jpg");
}
.sub_card--special-preservation {
  background-image: url("../images/special/special-card-tooth-preservation.jpg");
}
.sub_card--special-prosthesis {
  background-image: url("../images/special/special-card-prosthesis.jpg");
}
.sub_card_num {
  margin-bottom: 64px;
  font-size: var(--p-body);
  font-weight: var(--font-w-bm);
  color: #a4a4a4;
}
.sub_card_title {
  margin-bottom: 12px;
  font-size: calc(var(--p-title) + 2px);
  font-weight: var(--font-w-m);
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
.sub_card_title span {
  font-weight: inherit;
}
@media (max-width: 900px) {
  .sub_card {
    min-height: 0;
    padding: var(--space-md) var(--space-sm);
  }
  .sub_card_num {
    margin-bottom: var(--space-sm);
  }
  .sub_card p br {
    display: none;
  }
}

/* ================================
   병원 안내 (template-info.php)
   ================================ */
.info_equip {
  overflow: hidden;
  background-color: var(--sub-c-03);
}
.info_equip_swiper .swiper-wrapper {
  transition-timing-function: linear;
}
.info_equip_swiper .swiper-slide {
  width: 322px;
  text-align: center;
}
.info_equip_img {
  margin-bottom: var(--space-sm);
  overflow: hidden;
  border-radius: 24px;
  background-color: var(--white-c);
}
.info_equip_img img {
  display: block;
}
.info_equip_name {
  font-size: calc(var(--p-title) - 2px);
  letter-spacing: -0.02em;
  color: var(--sub-c-01);
}
@media (max-width: 1023px) {
  .info_equip_swiper .swiper-slide {
    width: 240px;
  }
}
@media (max-width: 900px) {
  .info_equip_swiper .swiper-slide {
    width: 180px;
  }
  .info_equip_img {
    border-radius: 16px;
  }
}

.info_space {
  overflow: hidden;
}
.info_space_swiper .swiper-slide {
  width: 771px;
}
.info_space_swiper img {
  display: block;
  width: 100%;
  border-radius: 12px;
}
@media (max-width: 1023px) {
  .info_space_swiper .swiper-slide {
    width: 70%;
  }
}
@media (max-width: 900px) {
  .info_space_swiper .swiper-slide {
    width: 84%;
  }
}

.info_location {
  scroll-margin-top: 154px;
}
@media (max-width: 900px) {
  .info_location {
    scroll-margin-top: 70px;
  }
}
.info_location_inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 543px);
  align-items: center;
  gap: var(--space-md);
  max-width: 1180px;
}
.info_location_title {
  margin-bottom: var(--space-sm);
  font-size: var(--h2-size);
  font-weight: var(--font-w-r);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
.info_location_title .mc {
  font-weight: var(--font-w-bm);
}
.info_location_addr {
  margin-bottom: var(--space-md);
  font-size: calc(var(--p-title) - 4px);
  font-style: normal;
  line-height: 1.7;
  color: var(--sub-c-01);
}
.info_location_row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) 40px;
}
.info_location_label {
  margin-bottom: 12px;
  font-size: calc(var(--p-title) - 2px);
  font-weight: var(--font-w-bm);
  color: var(--sub-c-01);
}
.info_location_hours dl > div {
  display: flex;
  gap: var(--space-sm);
  font-size: calc(var(--p-title) - 4px);
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: var(--sub-c-01);
}
.info_location_hours dt {
  display: flex;
  flex: none;
  justify-content: space-between;
  width: 4.6em;
  letter-spacing: 0;
}
.info_location_hours .mc {
  font-weight: var(--font-w-bm);
}
.info_location_notes {
  margin-top: 12px;
}
.info_location_notes li {
  font-size: calc(var(--p-body) - 1px);
  line-height: 1.7;
  color: var(--sub-c-01);
}
.info_location_tel a {
  font-size: var(--h3-size);
  font-weight: var(--font-w-bm);
  letter-spacing: -0.01em;
  color: var(--sub-c-01);
}
.info_location_map img {
  display: block;
  border-radius: 4px;
}
@media (max-width: 1023px) {
  .info_location_inner {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
}
@media (max-width: 900px) {
  .info_location_text {
    text-align: center;
  }
  .info_location_addr, .info_location_label, .info_location_hours dl > div {
    font-size: var(--p-title);
  }
  .info_location_row {
    flex-direction: column;
    align-items: center;
  }
  .info_location_hours dl > div {
    text-align: left;
  }
}

/* ================================
   화이트펄치과 특별함 (template-special.php · 메인 공용 template-parts/)
   ================================ */
.doctor_inner {
  display: grid;
  grid-template-columns: minmax(0, 471px) 1fr;
  align-items: start;
  gap: 112px;
  max-width: 1150px;
  margin: 0 auto;
}
.doctor_img img {
  display: block;
}
.doctor_name {
  margin-bottom: var(--space-md);
  font-size: var(--h2-size);
  font-weight: var(--font-w-r);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
.doctor_name strong {
  font-weight: var(--font-w-b);
}
.doctor_list li {
  position: relative;
  padding-left: 12px;
  font-size: calc(var(--p-body) + 1px);
  line-height: 1.75;
  letter-spacing: -0.02em;
  color: var(--sub-c-01);
}
.doctor_list li::before {
  content: "·";
  position: absolute;
  left: 0;
}
.doctor_list + .doctor_list {
  margin-top: var(--space-sm);
}
.doctor_list .doctor_badge {
  font-weight: var(--font-w-bm);
  color: var(--main-c);
}
.doctor_list .doctor_badge::before {
  color: var(--sub-c-01);
}
.doctor_paper {
  display: block;
  margin-bottom: 4px;
  font-size: var(--p-caption);
  line-height: 1.6;
  color: var(--bagic-color);
}
@media (max-width: 1023px) {
  .doctor_inner {
    gap: var(--space-md);
  }
}
@media (max-width: 900px) {
  .doctor_inner {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .doctor_img {
    max-width: 400px;
    margin: 0 auto;
  }
  .doctor_name {
    text-align: center;
  }
  .doctor_paper br {
    display: none;
  }
}

.message {
  padding: 100px 0;
  background: var(--main-c) url("../images/special/philosophy-bg.jpg") no-repeat center/cover;
  text-align: center;
}
.message_title {
  margin-bottom: var(--space-md);
  font-size: var(--h3-size);
  font-weight: var(--font-w-bm);
  letter-spacing: -0.03em;
  color: var(--white-c);
}
.message_text {
  margin-bottom: var(--space-md);
  font-size: var(--p-title);
  line-height: 1.8;
  letter-spacing: -0.02em;
  color: var(--white-c);
}
.message_sign {
  font-size: var(--p-title);
  color: var(--white-c);
}
.message_sign strong {
  font-weight: var(--font-w-bm);
}
@media (max-width: 900px) {
  .message {
    padding: 72px 0;
  }
  .message_text br {
    display: none;
  }
}

.pain_control_badge {
  display: inline-block;
  margin-bottom: var(--space-md);
  padding: 20px 72px;
  border-radius: 40px;
  background-color: var(--sub-c-03);
  font-size: calc(var(--p-title) - 2px);
  font-weight: var(--font-w-m);
  letter-spacing: -0.03em;
  color: var(--sub-c-01);
}
@media (max-width: 900px) {
  .pain_control_badge {
    padding: 16px var(--space-md);
  }
}