/* sub-hero */
.sub-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-hero {
  --sub-hero-bg: url("../img/sub/hospital-intro-hero1.png");
}
.sub-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background: var(--sub-hero-bg) no-repeat center center / cover;
  z-index: -1;
  animation: movingBackground 30s ease-in-out infinite;
}
@keyframes movingBackground {
  0% {
    transform: translate(-10%, -10%) scale(1.1);
  }
  50% {
    transform: translate(0%, 0%) scale(1.15);
  }
  100% {
    transform: translate(-10%, -10%) scale(1.1);
  }
}

.sub-hero-content {
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fcfcfc;
}
.sub-hero-content-inner {
  padding: 210px 0 100px;
}

.sub-hero-subtitle {
  display: inline-block;
  max-width: 120px;
  margin-bottom: 10px;
  opacity: 0;
  animation: subHeroSubtitleIn 0.8s ease forwards 0.2s;
}

.sub-hero-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 3px;
  opacity: 0;
  animation: subHeroTitleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;
}

@keyframes subHeroSubtitleIn {
  from {
    opacity: 0;
    letter-spacing: 0.15em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.032em;
  }
}
@keyframes subHeroTitleIn {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.sub-tab {
  display: flex;
  gap: 6px;
  font-size: 20px;
}

.sub-tab li {
  border-radius: 30px 30px 0 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  gap: 10px;
  flex: 1 0 0;
  text-align: center;
  transition:
    background 0.3s,
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.sub-tab li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px 30px 0 0;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.15) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.sub-tab li a {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 15px 0;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.sub-tab li.active {
  background: #fff;
  color: var(--color-primary);
}
/* hospital-greeting (병원소개)  */

.hospital-greeting-title {
  color: #656565;
  text-align: center;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 80px;
}
.hospital-greeting-title img {
  max-width: 190px;
  margin: 0 auto;
  margin-bottom: 60px;
}
.hospital-greeting-title > * {
  display: block;
}

.hospital-greeting-title b {
  font-size: 1.3em;
  color: var(--color-primary);
  font-weight: 700;
}
.hospital-greeting-banner {
  width: 100%;
  background: url("/assets/img/sub/hospital-greeting-banner.png") no-repeat 50%
    50% / cover;
  border-radius: 40px;
  overflow: hidden;
  margin-bottom: 80px;
}
.hospital-greeting-banner .inner {
  width: 100%;
  padding: 70px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  text-align: center;
}
.hospital-greeting-banner-title {
  font-size: 30px;
  margin-bottom: 30px;
}
.hospital-greeting-banner .desc {
  font-size: 20px;
  line-height: 1.7;
}

/* wrap: sticky 왼쪽 + 타임라인 오른쪽 */
.hospital-greeting-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.hospital-greeting-left {
  flex: 0 0 45%;
  position: sticky;
  top: 120px;
  align-self: flex-start;
  padding: 40px 40px 40px 0;
}
.hospital-greeting-left-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-grey);
  margin-bottom: 40px;
}

.hospital-greeting-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hospital-greeting-nav a {
  display: block;
  font-size: 20px;
  color: var(--color-grey-light);
  padding: 10px 0;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hospital-greeting-nav a:hover {
  color: #6ca91c;
}

.hospital-greeting-nav li.active a {
  font-size: 24px;
  color: #6ca91c;
  font-weight: 700;
}

.hospital-greeting-right {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-width: 0;
  padding-left: 0;
}

/* 타임라인 */
.hospital-greeting-timeline {
  flex: 0 0 48px;
  position: relative;
  align-self: stretch;
}

.hospital-greeting-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: var(--m13-line-height, 0);
  transform: translateX(calc(-50%));
  background: linear-gradient(180deg, #fff 0%, #6ca91c 100%);
  border-radius: 3px;
  pointer-events: none;
  z-index: 2;
}
.hospital-greeting-timeline::before {
  height: var(--hospital-greeting-line-height, 0);
}

.hospital-greeting-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #fff 0%, #ccc 100%);
  border-radius: 3px;
  pointer-events: none;
}

.hospital-greeting-timeline-dot {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  width: 65px;
  height: 65px;
  margin-left: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(108, 169, 28, 0.35);
  pointer-events: none;
  z-index: 3;
}

.hospital-greeting-timeline-dot img {
  width: 65px;
  height: 65px;
}

.hospital-greeting-sections {
  flex: 1;
  padding-left: 24px;
}

.hospital-greeting-section:not(:last-of-type) {
  margin-bottom: 120px;
}

.hospital-greeting-section {
  filter: grayscale(1);
  opacity: 0.85;
  transition:
    filter 0.4s ease,
    opacity 0.4s ease;
}

.hospital-greeting-section.active {
  filter: grayscale(0);
  opacity: 1;
}

.hospital-greeting-section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
}

.hospital-greeting-section-title i {
  color: #6ca91c;
  font-size: 0.8em;
  display: block;
}

.hospital-greeting-section-img {
  line-height: 0;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
}

.hospital-greeting-section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hospital-greeting-section-desc {
  font-size: 20px;
  color: #353535;
  opacity: 0.8;
  line-height: 1.7;
}

/* hospital-doctor */
.hospital-doctor {
  background: url("/assets/img/sub/hospital-doctor-bg.png") no-repeat center
    center / cover;
  background-attachment: fixed;
}
.doctor-name {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
}
.doctor-name .name {
  font-size: 1.5em;
  font-weight: 700;
}
.doctor-name .position {
  color: var(--color-grey);
}
.doctor-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.doctor-content-img {
  flex: 1;
  width: 100%;
  border-radius: 50px;
  background:
    linear-gradient(
      180deg,
      rgba(248, 250, 244, 0.6) 0%,
      rgba(255, 255, 255, 0.6) 60%
    ),
    #fff;
  box-shadow: 0 0 25px 5px rgba(63, 85, 42, 0.15);
  overflow: hidden;
  display: flex;
  justify-content: left;
  align-items: flex-end;
  line-height: 0;
  position: relative;
  padding-top: 40px;
  padding-right: 180px;
}
.doctor-content-img img {
  width: 100%;
  height: 100%;
}
.doctor-desc {
  width: 250px;
  position: absolute;
  right: 20px;
  top: 70px;
  font-size: 20px;
  color: var(--color-primary);
  font-size: 20px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 5px;
  &::before {
    content: "";
    width: 35px;
    height: 35px;
    background: url("/assets/img/sub/doctor-quote-open.png") no-repeat center
      center / contain;
  }
  &::after {
    align-self: flex-end;
    content: "";
    width: 35px;
    height: 35px;
    background: url("/assets/img/sub/doctor-quote-close.png") no-repeat center
      center / contain;
  }
}
.doctor-content-text {
  flex: 1;
  width: 100%;
  padding-left: 10px;
}
.doctor-content-title {
  color: #7ca24a;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  gap: 10px;
  margin: 30px 0 20px;
  & em {
    position: relative;
  }
  & em::before {
    content: "";
    position: absolute;
    top: -9px;
    left: -9px;
    width: 9px;
    height: 9px;
    background: rgba(124, 162, 74, 0.6);
    display: block;
  }
  &::after {
    content: "";
    height: 1px;
    width: 100%;
    background: rgba(124, 162, 74, 0.6);
    opacity: 0.6;
    align-self: center;
  }
}

.doctor-content ul:not(:last-child) {
  margin-bottom: 20px;
}
.doctor-content ul li {
  font-size: 18px;
  color: var(--color-grey);
  display: flex;
  gap: 5px;
  line-height: 2;
  &::before {
    content: "•";
  }
}
.doctor-content-paper ul li:not(:last-child) {
  margin-bottom: 10px;
}
/* hospital-equipment */
.hospital-greeting-title em {
  font-size: 24px;
}
.hospital-equipment-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hospital-equipment-item {
  border-radius: 40px;
  background: linear-gradient(180deg, #f5f5f5 0%, #fff 19.71%);
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
  padding: 40px 30px 0px;
}
.hospital-equipment-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  & strong {
    display: block;
    font-weight: 700;
    color: var(--color-primary-light);
  }
  & span {
    display: block;
    font-size: 0.7em;
    font-weight: 400;
    color: var(--color-grey);
  }
}
/* hospital-tour: 메인 슬라이더 + 썸네일 연동 */
.hospital-tour-gallery {
  width: 100%;
}
.hospital-tour-main-slider {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #f5f5f5;
}
.hospital-tour-main-slider .swiper-wrapper {
  align-items: stretch;
}
.hospital-tour-main-slider .swiper-slide {
  height: auto;
}
.hospital-tour-slide-img {
  width: 100%;
  aspect-ratio: 16/10;
  line-height: 0;
  overflow: hidden;
}
.hospital-tour-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hospital-tour-thumbnails {
  position: relative;
}
.hospital-tour-thumbnails .swiper-slide {
  height: auto;
}
.hospital-tour-thumb {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    border-color 0.25s ease,
    opacity 0.25s ease;
  opacity: 0.7;
}
.hospital-tour-thumb:hover {
  opacity: 1;
}
.hospital-tour-thumb.active {
  border-color: var(--color-primary-light);
  opacity: 1;
}
.hospital-tour-thumb img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

/* 임플란트 */
.sub-title {
  text-align: center;
  margin-bottom: 80px;
}
.sub-title h2 {
  font-size: 52px;
  font-weight: 800;
  color: var(--color-primary-dark);
}
.sub-title h2 i {
  color: #353535;
  opacity: 0.8;
}
.sub-title h2 em {
  font-weight: 400;
}
.sub-title .desc {
  margin-top: 40px;
  font-size: 20px;
  color: var(--color-grey);
}
.implant-immediate-content {
  display: flex;
}
/* 짝수 */
.implant-immediate-content:nth-of-type(odd) {
  flex-direction: row-reverse;

  & .img-wrap {
    line-height: 0;
    position: relative;
    overflow: hidden;
    & > img {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      object-position: center;
      -webkit-object-fit: cover;
      -webkit-object-position: center;
    }
  }
  & .text-wrap {
    border-radius: 0 50px 50px 0;
    background: #e8eee2;
    margin-right: -50px;
    position: relative;
  }
  & .implant-immediate-title {
    color: var(--color-primary);
  }
  & .text-wrap .inner-wrap {
    padding-right: 60px;
    padding-left: calc((100vw - 1280px) / 2);
  }
}
.implant-immediate-content .img-wrap {
  flex: 1;
  background: #fff;
  border-radius: 0;
}
/* 홀수 */
.implant-immediate-content:nth-of-type(even) {
  & .img-wrap {
    border-radius: 0 50px 50px 0;
    line-height: 0;
    position: relative;
    & .inner-wrap {
      height: 100%;
      margin-left: calc((100vw - 1280px) / 2);
      padding: 50px;
      position: relative;
      z-index: 1;
      & > img {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
      }
    }
    & .bg-text {
      position: absolute;
      top: 50%;
      left: 0%;
      transform: translateY(-50%);
      font-size: 165px;
      line-height: 0.85;
      font-weight: 700;
      & span {
        display: block;
        color: transparent;
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke-width: 1px;
        -webkit-text-stroke-color: var(--color-primary);
        opacity: 0.3;
      }
      & em {
        display: block;
        color: transparent;
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke-width: 1px;
        -webkit-text-stroke-color: var(--color-grey);
        opacity: 0.2;
      }
    }
  }
  & .text-wrap {
    border-radius: 50px 0 0 50px;
    background: #f0f8e3;
    position: relative;
  }
  & .text-wrap .inner-wrap {
    padding-left: 60px;
    padding-right: calc((100vw - 1280px) / 2);
    & img {
      width: 1.5em;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }
  & .implant-immediate-title {
    color: var(--color-primary-light);
  }
}

.implant-immediate-content .text-wrap {
  flex: 1;
  padding-top: 120px;
  padding-bottom: 120px;
}
.implant-immediate-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 40px;
}
.implant-immediate-title .title-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.implant-immediate-title .title-inner img {
  width: 1.2em;
  aspect-ratio: 1/1;
  object-fit: contain;
}
.implant-immediate-title .title-num {
  font-size: 250px;
  font-weight: 700;
  line-height: 0.8;
  color: var(--color-white) !important;
}
.implant-immediate-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.implant-immediate-list li {
  font-size: 20px;
  display: flex;
  gap: 10px;
  border-radius: 50px;
  background: #fff;
  padding: 10px 20px;
  letter-spacing: -0.02em;
}
.implant-immediate-list li::before {
  content: "";
  width: 1.5em;
  aspect-ratio: 1/1;
  background: url("/assets/img/sub/implant-immediate-list-icon.png") no-repeat
    center center / contain;
  flex-shrink: 0;
}
/* Q & A */
.implant-immediate-qa {
  background: url("/assets/img/sub/implant-immediate-qa-bg.png") no-repeat
    center center / cover;
  background-attachment: fixed;
}
.implant-immediate-qa-content {
  box-shadow: 0 0 20px rgba(63, 85, 42, 0.2);
  position: relative;
  display: flex;
  gap: 0;
  margin-top: 40px;
}
.qa-deco {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  max-width: 150px;
  z-index: 1;
}
.qa-deco img {
  transform-origin: center center;
  animation: qaDecoSpin 10s linear infinite;
}
@keyframes qaDecoSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.qa-tab-list {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  width: 100%;
  border-right: 1px solid #ddd;
}
.qa-tab {
  font-family: "Paperlogy";
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 30px;
  border: none;
  border-bottom: 1px solid #eee;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s;
  border-left: 6px solid #cce5aa;
  background: rgba(255, 255, 255, 0.8);
}
.qa-tab .qa-num {
  font-weight: 300;
  color: #bbb;
  min-width: 30px;
  font-size: 40px;
  transition: all 0.3s;
  flex-shrink: 0;
}
.qa-tab .qa-question {
  font-size: 20px;
  color: #bbb;
  line-height: 1.5;
  transition: all 0.3s;
}
.qa-tab.active {
  background: #fff;
  border-left: 6px solid var(--color-primary);
}
.qa-tab.active .qa-num {
  font-weight: 700;
  color: var(--color-primary);
}
.qa-tab.active .qa-question {
  font-weight: 600;
  color: var(--color-primary);
}
.qa-panel-wrap {
  flex: 1;
  padding: 40px 50px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 1);
  position: relative;
  z-index: 2;
}
.qa-panel {
  display: none;
}
.qa-panel.active {
  width: 100%;
  display: block;
}
.qa-panel-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-primary-dark);
  padding-bottom: 24px;
  display: block !important;
  border-bottom: 0.5px solid rgba(101, 101, 101, 0.3);
  margin-bottom: 30px;
  line-height: 1.4;
}
.qa-panel-answer {
  font-size: 20px;
  color: #666;
  line-height: 1.8;
}
@media (max-width: 768px) {
  .implant-immediate-qa-content {
    flex-direction: column;
  }
  .qa-tab-list {
    min-width: auto;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
  .qa-tab {
    padding: 16px 20px;
    gap: 14px;
  }
  .qa-panel-wrap {
    padding: 24px 20px;
  }
  .qa-panel-title {
    font-size: 20px;
  }
}
/* ======================================================================= */
/* 일반치과 진료 */
/* ======================================================================= */
.general-checkup.implant-immediate-content:nth-of-type(2n) {
  & .text-wrap {
    background: rgba(227, 246, 245, 0.9);
  }
  & .implant-immediate-title {
    color: #00d4c5;
  }
}
.general-checkup.implant-immediate-content:nth-of-type(2n + 1) {
  & .text-wrap {
    background: #dbeae9;
  }
  & .implant-immediate-title {
    color: var(--color-mint-dark);
  }
}
.implant-immediate-list.mint li::before {
  background: url(/assets/img/sub/implant-immediate-list-icon-mint.png)
    no-repeat center center / contain;
}
.general-checkup.implant-immediate-content:nth-of-type(2n) {
  & .img-wrap {
    & .bg-text {
      & span {
        -webkit-text-stroke-color: var(--color-mint);
      }
    }
  }
}
.general-checkup .sub-title h2 {
  color: var(--color-mint-dark);
}
.general-checkup .qa-tab {
  border-left-color: #ace9e5;
}
.general-checkup .qa-tab.active {
  border-left-color: var(--color-mint-dark);
}
.general-checkup.implant-immediate-qa {
  background: url("/assets/img/sub/general-checkup-qa-bg.png") no-repeat center
    center / cover;
}
.general-checkup .qa-panel-title {
  color: var(--color-mint-dark);
}
.general-checkup .qa-tab.active .qa-question {
  color: var(--color-mint-dark);
}
.general-checkup .qa-tab.active .qa-num {
  color: var(--color-mint-dark);
}
/* ======================================================================= */
/* 잇몸치료 */
/* ======================================================================= */
.treatment-gum.implant-immediate-content:nth-of-type(2n) {
  & .text-wrap {
    background: #e9e9e9;
    border-radius: 0;
  }
}
.treatment-gum.implant-immediate-content:nth-of-type(2n) {
  & .implant-immediate-title {
    color: var(--color-grey);
  }
}

.treatment-gum.implant-immediate-content:nth-of-type(2n + 1) {
  & .text-wrap {
    border-radius: 0;
    background: #f0f8e3;
  }
}
.treatment-gum.implant-immediate-qa {
  background: url("/assets/img/sub/treatment-gum-qa-bg.png") no-repeat center
    center / cover;
}
.treatment-gum:nth-of-type(2n) .img-wrap .inner-wrap {
  position: relative;
}
.treatment-gum:nth-of-type(2n) .img-wrap .bg-round {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: #e9e9e9;
  border-radius: 100px 0 0 100px;
}
/* 라미네이트 */
.treatment-laminate.implant-immediate-qa {
  background: url("/assets/img/sub/treatment-laminate-qa-bg.png") no-repeat
    center center / cover;
}
.treatment-laminate.implant-immediate-content:nth-of-type(2n + 1) {
  & .text-wrap {
    border-radius: 0;
    background: #e7f8f7;
  }
}
.treatment-laminate.implant-immediate-content:nth-of-type(2n + 1) {
  & .implant-immediate-title {
    color: var(--color-mint-dark);
  }
}
.treatment-laminate.general-checkup.implant-immediate-qa {
  background: url(/assets/img/sub/treatment-laminate-qa-bg.png) no-repeat center
    center / cover;
}
.treatment-laminate .qa-tab.active .qa-num {
  color: var(--color-mint-dark);
}
/* ======================================================================= */
/* 전체 · 부분 틀니치료 */
/* ======================================================================= */
.dentures-all-content {
  position: relative;
}
.dentures-all-content::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  display: block;
  background: #f5f5f5;
  z-index: -1;
}
.dentures-all-content:nth-of-type(2n + 1) {
  &::before {
    background: #f0f8e3;
    height: 55%;
  }
  & .inner {
    flex-direction: row-reverse;
  }
  & .img-wrap {
    border-radius: 100px;
    box-shadow: 0 5.182px 15.547px 0 rgba(0, 0, 0, 0.15);
    overflow: hidden;
    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  & .dentures-all-title .title-num {
    color: #f0f8e3;
  }
  & .dentures-all-title .title-inner {
    color: var(--color-primary-dark);
  }
  & .dentures-all-list li::before {
    background: #fff url(/assets/img/sub/implant-immediate-list-icon.png)
      no-repeat center center / 70%;
  }
}
.dentures-all-content .inner {
  padding: 100px 0;
  display: flex;
  gap: 100px;
}
.dentures-all-content .img-wrap {
  flex: 1;
  max-width: 570px;
  line-height: 0;
}
.dentures-all-content .text-wrap {
  flex: 1;
  align-self: center;
}
.dentures-all-title .title-num {
  display: block;
  color: #f2f2f2;
  font-size: 128px;
  line-height: 1;
  font-weight: 700;
}
.dentures-all-title .title-inner {
  display: block;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 40px;
}
.dentures-all-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dentures-all-list li {
  display: flex;
  gap: 15px;
  font-size: 20px;
  align-items: center;
}
.dentures-all-list li::before {
  content: "";
  display: block;
  width: 2.5em;
  aspect-ratio: 1/1;
  background: #fff url(/assets/img/sub/implant-immediate-list-icon-mint.png)
    no-repeat center center / 70%;
  border-radius: 50%;
}
.dentures-all-qa-content.implant-immediate-qa {
  background: url("/assets/img/sub/dentures-all-qa-bg.png") no-repeat center
    center / cover;
  background-attachment: fixed;
}
/* 특수진료 */
.dentures-all-content.speciality-recovery-content:nth-of-type(2n + 1) {
  &::before {
    background: #e7f9f8;
  }
  & .dentures-all-title .title-num {
    color: #e7f9f8;
  }
  & .dentures-all-list li::before {
    background: #fff url(/assets/img/sub/implant-immediate-list-icon-mint.png)
      no-repeat center center / 70%;
  }
}
.speciality-recovery-qa-content.implant-immediate-qa {
  background: url("/assets/img/sub/speciality-recovery-qa-bg.png") no-repeat
    center center / cover;
  background-attachment: fixed;
}
.speciality-recovery-qa-content .sub-title h2 {
  color: var(--color-mint-dark);
}
.speciality-recovery-qa-content .qa-panel-title {
  color: var(--color-mint-dark);
}
.speciality-recovery-qa-content .qa-tab {
  border-left-color: #e7f9f8;
}
.speciality-recovery-qa-content .qa-tab.active {
  border-left-color: var(--color-mint-dark);
}
.speciality-recovery-qa-content .qa-tab.active .qa-num {
  color: var(--color-mint-dark);
}
.speciality-recovery-qa-content .qa-tab.active .qa-question {
  color: var(--color-mint-dark);
}
/* ======================================================= */
/* 비급여 안내 */
/* ======================================================= */
.non-covered .noti_txt {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  text-align: center;
}
.non-covered .noti_txt li {
  font-size: 18px;
  color: #888;
  line-height: 1.8;
}

/* 사이트맵 */
.sitemap {
  background: #fff;
}
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  margin-top: 40px;
}
.sitemap-group-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
}
.sitemap-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sitemap-group li + li {
  margin-top: 6px;
}
.sitemap-group a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  color: #555;
  text-decoration: none;
  position: relative;
}
.sitemap-group a::before {
  content: "·";
  color: var(--color-primary);
  font-weight: 700;
}
.sitemap-group a:hover {
  color: var(--color-primary-dark);
}
.non-covered .site {
  margin-top: 30px;
  text-align: left;
  font-size: 18px;
  line-height: 1.9;
  color: #4b4b4b;
}
.non-covered .site h6 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.non-covered .site br + br {
  line-height: 0;
}
.non-covered .site_tit {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-top: 60px;
  margin-bottom: 20px;
}
.table_sty03 {
  width: 100%;
}
.table_sty03 table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.table_sty03 table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}
.table_sty03 thead th {
  background: rgba(135, 118, 102, 0.1);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary-dark);
  padding: 14px 10px;
  border: 1px solid rgba(135, 118, 102, 0.2);
  text-align: center;
  word-break: keep-all;
}
.table_sty03 tbody td {
  font-size: 17px;
  color: #595757;
  padding: 14px 10px;
  border: 1px solid rgba(135, 118, 102, 0.15);
  text-align: center;
  word-break: break-all;
}
.table_sty03 tbody tr:hover {
  background: rgba(135, 118, 102, 0.04);
}
.m_scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.m_scroll.w950 table {
  min-width: 950px;
}

/* ======================== 게시판 (공지사항/치료후기) ======================== */
.board-header-text {
  padding-bottom: 60px;
  margin-bottom: 60px;
  border-bottom: 1px solid rgba(135, 118, 102, 0.4);
  text-align: center;
}
.board-title {
  font-size: 52px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0 0 10px;
}
.board-desc {
  font-size: 20px;
  color: var(--color-grey);
  opacity: 0.8;
  margin: 0;
}

.board-search {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  background: #e8eee2;
  max-width: 420px;
  margin-bottom: 40px;
}
.board-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}
.board-search input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  border-radius: 4px;
  color: #333;
}
.board-search input::placeholder {
  color: #aaa;
}
.board-search button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #888;
  padding: 0;
  line-height: 0;
}

/* 공지사항 3열 그리드 */
.board-grid--notice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* 카드 공통 */
.board-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.board-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.board-card-thumb {
  aspect-ratio: 4/3;
  background: #fff;
  line-height: 0;
  overflow: hidden;
}
.board-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.board-card:hover .board-card-thumb img {
  transform: scale(1.05);
}
.board-card-body {
  background: #f1f5ee;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.board-section--review .board-card-body {
  background: #f6f2ee;
}
.board-card-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--color-primary);
  margin: 0 0 30px;
  line-height: 1.4;
  white-space: normal;
  word-break: break-all;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.board-card-desc {
  font-size: 14px;
  color: #888;
  margin: 0 0 auto;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board-card-date {
  font-size: 16px;
  color: var(--color-grey);
  opacity: 0.6;
  display: block;
}
.board-section--review .board-card-date {
  color: var(--color-primary);
}

/* 빈 상태 */
.board-empty {
  text-align: center;
  font-size: 18px;
  color: #999;
  padding: 80px 0;
}

/* 페이지네이션 */
.board-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 60px;
}
.board-page-btn,
.board-page-num {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  transition: all 0.2s;
}
.board-page-num:hover {
  background: rgba(135, 118, 102, 0.1);
}
.board-page-num.active {
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 700;
}
.board-page-btn {
  font-size: 18px;
  color: #999;
}
.board-page-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* 상세보기 */
.board-view-section {
  background: #fff;
}
.board-view {
  margin: 0 auto;
}
.board-view-head {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}
.board-view-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 16px;
  line-height: 1.4;
}
.board-view-date {
  font-size: 15px;
  color: #888;
  margin: 0;
}
.board-view-footer {
  margin: 0 auto;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}
.board-view-footer-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.board-btn-next {
  display: inline-block;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary-dark);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
  background: #fff;
}
.board-btn-next:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(135, 118, 102, 0.25);
}
.board-btn-list {
  display: inline-block;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  border: 2px solid var(--color-primary-dark);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
  background: var(--color-primary-dark);
}
.board-btn-list:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(135, 118, 102, 0.25);
}
.board-btn-line {
  display: inline-block;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary-dark);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
  background: #fff;
}
.board-btn-line:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(135, 118, 102, 0.25);
}

/* 상세보기 post-body */
.board-view-section #post-body {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 40px;
}
.board-view-section #post-body p {
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 20px;
}
.board-view-section #post-body h1,
.board-view-section #post-body h2,
.board-view-section #post-body h3,
.board-view-section #post-body h4,
.board-view-section #post-body h5,
.board-view-section #post-body h6 {
  font-weight: 700;
  line-height: 1.4;
  margin: 32px 0 16px;
  color: #222;
}
.board-view-section #post-body h1 {
  font-size: 30px;
}
.board-view-section #post-body h2 {
  font-size: 26px;
}
.board-view-section #post-body h3 {
  font-size: 22px;
}
.board-view-section #post-body h4 {
  font-size: 20px;
}
.board-view-section #post-body h5,
.board-view-section #post-body h6 {
  font-size: 18px;
}
.board-view-section #post-body ul,
.board-view-section #post-body ol {
  margin: 0 0 20px 1.4em;
  padding: 0;
}
.board-view-section #post-body ul {
  list-style-type: disc;
}
.board-view-section #post-body ol {
  list-style-type: decimal;
}
.board-view-section #post-body li {
  margin-bottom: 6px;
  list-style-position: outside;
}
.board-view-section #post-body li::marker {
  color: var(--color-primary);
}
.board-view-section #post-body blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--color-primary-light);
  background: #faf7f3;
  border-radius: 8px;
  color: #444;
}
.board-view-section #post-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.board-view-section #post-body strong {
  font-weight: 700;
}
.board-view-section #post-body em {
  font-style: italic;
}
.board-view-section #post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}
.board-view-section #post-body th,
.board-view-section #post-body td {
  border: 1px solid #e1e1e1;
  padding: 10px 12px;
}
.board-view-section #post-body th {
  background: #faf7f3;
  font-weight: 700;
}
.board-view-section #post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px 0;
  display: block;
}

/* ======================== 반응형 ======================== */
@media (max-width: 1290px) {
  .sub-tab {
    gap: 5px;
    font-size: 18px;
  }
  .sub-hero-content-inner {
    padding: 120px 0 100px;
  }
  /* 병원소개 */
  .hospital-greeting-title {
    font-size: 28px;
    margin-bottom: 60px;
  }
  .hospital-greeting-title img {
    max-width: 150px;
    margin-bottom: 30px;
  }
  .hospital-greeting-title b {
    font-size: 1.2em;
  }
  .hospital-greeting-banner {
    border-radius: 20px;
  }
  .hospital-greeting-banner .inner {
    padding: 60px 30px;
  }
  .hospital-greeting-left-title {
    font-size: 30px;
  }
  .hospital-greeting-left {
    padding: 0;
  }
  .hospital-greeting-nav a {
    font-size: 18px;
  }
  .hospital-greeting-nav li.active a {
    font-size: 20px;
  }
  /* 의료진 소개 */
  .doctor-desc {
    font-size: 16px;
    width: 220px;
  }
  .doctor-name {
    font-size: 20px;
  }
  .doctor-content ul li {
    font-size: 16px;
  }
  /* 장비소개 */
  .hospital-greeting-title em {
    font-size: 18px;
  }
  .hospital-equipment-title {
    font-size: 22px;
  }
  /* 임플란트 */
  .implant-immediate-content:nth-of-type(2n) {
    & .img-wrap {
      & .inner-wrap {
        margin-left: 2.5vw;
      }
    }
    & .text-wrap .inner-wrap {
      padding-right: 2.5vw;
      padding-left: 30px;
    }
  }
  .implant-immediate-content:nth-of-type(2n + 1) {
    & .text-wrap .inner-wrap {
      padding-left: 2.5vw;
      padding-right: 30px;
    }
  }
  .sub-title {
    margin-bottom: 60px;
  }
  .sub-title h2 {
    font-size: 44px;
  }
  .sub-title .desc {
    margin-top: 25px;
    font-size: 18px;
  }
  .implant-immediate-content .text-wrap {
    padding: 80px 0;
  }
  .implant-immediate-title .title-num {
    font-size: 170px;
  }
  .implant-immediate-title {
    font-size: 34px;
    margin-bottom: 25px;
  }
  .implant-immediate-list li {
    font-size: 18px;
  }
  /* 틀니 보철 치료 */
  .dentures-all-content .inner {
    padding: 80px 0;
    gap: 30px;
  }
}
@media (max-width: 1024px) {
  .sub-hero-content-inner {
    padding: 100px 0 80px;
  }
  .sub-hero-title {
    font-size: 42px;
  }
  .sub-tab {
    gap: 4px;
    font-size: 16px;
  }
  .sub-tab li {
    border-radius: 20px 20px 0 0;
    padding: 0 8px;
  }
  .sub-tab li::before {
    border-radius: 20px 20px 0 0;
  }
  .sub-tab li.active {
    font-size: 1.05em;
  }
  /* 병원소개 */

  /* 의료진 소개 */
  .doctor-name {
    margin-bottom: 30px;
  }
  .doctor-content {
    flex-direction: column-reverse;
    gap: 0;
  }
  .doctor-content-img {
    width: 90%;
    margin: 0 auto;
    max-width: 500px;
  }
  /* 게시판 */
  .board-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .board-search {
    min-width: 75%;
  }
  .board-featured-row {
    grid-template-columns: 1fr;
  }
  /* 임플란트 */
  .implant-immediate-content,
  .implant-immediate-content:nth-of-type(odd) {
    flex-direction: column;
  }
  .implant-immediate-content:nth-of-type(2n) {
    & .text-wrap {
      border-radius: 50px 50px 0 0;
      & .inner-wrap {
        padding-left: 2.5vw;
      }
    }
    & .img-wrap {
      & .inner-wrap {
        margin-right: 2.5vw;
        & > img {
          max-width: 500px;
          width: 70%;
          margin: auto;
        }
      }
    }
  }
  .implant-immediate-content:nth-of-type(2n + 1) {
    & .img-wrap {
      & > img {
        position: relative;
      }
    }
    & .text-wrap {
      margin-top: -50px;
      margin-right: 0;
      border-radius: 50px 50px 0 0;
      & .inner-wrap {
        padding-right: 2.5vw;
      }
    }
  }
  .implant-immediate-qa-content {
    margin-top: 0;
    flex-direction: column;
  }
  .qa-tab-list {
    flex-direction: row;
    max-width: 100%;
  }
  .qa-tab {
    gap: 10px;
    padding: 10px 10px;
  }

  .qa-tab .qa-num {
    font-size: 25px;
  }
  .qa-tab .qa-question {
    font-size: 16px;
  }
  .qa-tab-content {
    padding: 30px;
  }
  .qa-tab-list {
    position: relative;
    z-index: 2;
  }
  /* 잇몸 치주 치료 */
  .treatment-gum.implant-immediate-content:nth-of-type(2n) {
    & .img-wrap {
      padding: 0;
      margin-bottom: -60px;
      & .inner-wrap {
        margin: 0;
      }
    }
    & .text-wrap {
      position: relative;
      z-index: 2;
    }
  }
  .treatment-gum:nth-of-type(2n) .img-wrap .bg-round {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: #e9e9e9;
    border-radius: 80px 80px 0 0;
  }
  /* 틀니 보철 치료 */
  .dentures-all-content .inner,
  .dentures-all-content:nth-of-type(2n + 1) .inner {
    flex-direction: column;
  }
  .dentures-all-content .img-wrap {
    margin: auto;
    width: 90%;
  }
  .dentures-all-content .text-wrap {
    width: 100%;
  }
  .dentures-all-title .title-num {
    font-size: 90px;
    color: var(--color-white) !important;
  }
  .dentures-all-content::before {
    height: 70% !important;
  }
  .dentures-all-list li {
    font-size: 18px;
    gap: 10px;
  }
  .dentures-all-list li::before {
    width: 2em;
  }
  .dentures-all-title .title-inner {
    font-size: 36px;
    margin-bottom: 20px;
    margin-top: 6px;
  }
}
@media (max-width: 768px) {
  .sub-hero-content-inner {
    padding: 80px 0 60px;
  }
  .sub-hero-title {
    font-size: 32px;
    letter-spacing: 1px;
  }
  .sub-hero-subtitle {
    max-width: 80px;
  }
  .sub-tab {
    gap: 4px;
    font-size: 16px;
    flex-wrap: wrap;
    margin: 0 -10px;
    padding: 0 10px 10px;
  }
  .sub-tab li {
    border-radius: 18px;
    flex: 1 0 25%;
    min-width: 0;
  }
  .sub-tab li::before {
    border-radius: 18px;
  }
  .sub-tab li a {
    padding: 10px 10px;
    white-space: nowrap;
  }
  .sub-tab li.active {
    font-size: 1em;
  }
  /* 병원소개 */
  .hospital-greeting-title {
    font-size: 24px;
    margin-bottom: 50px;
  }
  .hospital-greeting-banner .inner {
    padding: 40px 20px;
  }
  .hospital-greeting-banner-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .hospital-greeting-banner .desc {
    font-size: 17px;
  }
  /* m13 / hospital-greeting: 세로 배치 + 스티키 유지 */
  .hospital-greeting-wrap {
    flex-direction: column;
    gap: 32px;
  }
  .hospital-greeting-left-title {
    margin-bottom: 14px;
  }
  .hospital-greeting-left {
    position: sticky;
    top: 60px;
    width: 100%;
    z-index: 2;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 1) 90%,
      transparent
    );
    flex-direction: column;
    padding: 20px 20px 20px 0;
  }
  .hospital-greeting-right {
    position: relative;
    z-index: 1;
  }
  .hospital-greeting-right .hospital-greeting-timeline-dot {
    position: sticky;
    top: 65%;
    transform: translateY(-50%);
  }
  .hospital-greeting-section-desc {
    font-size: 16px;
  }
  .hospital-greeting-section-img {
    margin-right: 30px;
  }
  /* 의료진 소개 */
  .doctor-name {
    margin-bottom: 20px;
  }
  .doctor-content {
    flex-direction: column-reverse;
    gap: 0;
  }
  /* 장비소개 */
  .hospital-equipment-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .hospital-equipment-item {
    border-radius: 20px;
    padding: 20px 10px 0px;
  }
  /* 게시판 */
  .board-grid--notice,
  .board-grid--review {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .board-featured-row {
    gap: 16px;
  }
  .board-title {
    font-size: 28px;
  }
  .board-featured-title {
    font-size: 18px;
  }
  .board-view-title {
    font-size: 26px;
  }
  /* 페이지네이션: 태블릿 */
  .board-pagination {
    margin-top: 48px;
    gap: 4px;
  }
  .board-page-btn,
  .board-page-num {
    width: 34px;
    height: 34px;
    font-size: 14px;
    border-radius: 6px;
  }
  .board-page-btn {
    font-size: 16px;
  }
  .board-view-section #post-body,
  .board-view-section #post-body p {
    font-size: 16px;
  }
  .board-view-section #post-body h1 {
    font-size: 24px;
  }
  .board-view-section #post-body h2 {
    font-size: 22px;
  }
  .board-view-section #post-body h3 {
    font-size: 20px;
  }
  .board-view-section #post-body h4 {
    font-size: 18px;
  }
  .board-view-section #post-body h5,
  .board-view-section #post-body h6 {
    font-size: 16px;
  }
  .board-view-section #post-body table {
    font-size: 15px;
  }
  /* 이용약관 / 개인정보처리방침 */
  .non-covered .site {
    font-size: 15px;
    line-height: 1.8;
  }
  .non-covered .site h6 {
    font-size: 17px;
    margin: 24px 0 8px;
  }
  /* 임플란트 */
  .sub-title {
    margin-bottom: 50px;
  }
  .sub-title h2 {
    font-size: 38px;
  }
  .implant-immediate-content:nth-of-type(2n) {
    & .img-wrap {
      & .bg-text {
        font-size: 23vw;
      }
    }
  }
  .implant-immediate-content .text-wrap {
    padding: 50px 0;
  }
  .implant-immediate-title .title-num {
    font-size: 130px;
  }
  .qa-tab .qa-question {
    display: none;
  }
  .qa-tab-list {
    position: relative;
    z-index: 2;
  }
  .qa-tab {
    width: 100%;
    padding: 5px 20px;
  }
  .qa-panel-title {
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
}
@media (max-width: 640px) {
  .sub-hero-content-inner {
    padding: 60px 0 50px;
  }
  .sub-hero-title {
    font-size: min(9vw, 52px);
  }
  .sub-tab {
    font-size: 3.7vw;
    font-size: clamp(10px, 3.7vw, 18px);
  }
  .sub-tab li {
    border-radius: 14px;
    flex: 1 0 40%;
  }
  .sub-tab li::before {
    border-radius: 14px;
  }
  .sub-tab li a {
    padding: 8px;
  }
  /* 병원소개 */
  .hospital-greeting-title img {
    max-width: 100px;
    margin-bottom: 20px;
  }
  .hospital-greeting-banner .inner {
    padding: 30px 10px;
  }
  .hospital-greeting-title {
    font-size: 5vw;
    margin-bottom: 30px;
  }
  .hospital-greeting-banner-title {
    font-size: 7vw;
  }
  .hospital-greeting-banner .desc {
    font-size: 4vw;
  }
  .hospital-greeting-left-title {
    font-size: 6.5vw;
  }
  .hospital-greeting-timeline-dot {
    width: 45px;
    height: 45px;
  }
  .hospital-greeting-timeline-dot img {
    width: 45px;
    height: 45px;
  }
  .hospital-greeting-sections {
    padding: 0 10px;
  }
  .hospital-greeting-nav a {
    font-size: 4.3vw;
    padding: 5px 0;
  }
  .hospital-greeting-nav li.active a {
    font-size: 4.7vw;
  }
  .hospital-greeting-section-title {
    font-size: 6vw;
  }
  .hospital-greeting-section-img {
    margin-right: 15px;
  }
  /* 의료진 소개 */
  .doctor-name {
    font-size: 4.5vw;
  }
  .doctor-desc {
    top: 20px;
    font-size: 3.3vw;
    width: 35%;
    &::before {
      width: 25px;
      height: 25px;
    }
    &::after {
      width: 25px;
      height: 25px;
    }
  }
  .doctor-content-img {
    padding-top: 20px;
    width: 90%;
    padding-right: 30%;
  }
  .doctor-content-title {
    font-size: 4.5vw;
    margin: 30px 0 10px;
  }
  .doctor-content ul:not(:last-child) {
    margin-bottom: 10px;
  }
  .doctor-content ul li {
    font-size: 3.5vw;
  }
  .hospital-greeting-section-desc {
    font-size: 3.8vw;
  }
  /* 페이지네이션: 작은 태블릿/모바일 */
  .board-pagination {
    margin-top: 40px;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .board-page-btn,
  .board-page-num {
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-radius: 6px;
  }
  .board-page-btn {
    font-size: 15px;
  }
  /* 장비소개 */
  .hospital-greeting-title em {
    margin-top: 7px;
    font-size: 4vw;
  }
  .hospital-equipment-wrap {
    grid-template-columns: 1fr;
  }
  .hospital-equipment-item {
    padding: 20px 10px 0px;
    margin: 0 20px;
  }
  .hospital-equipment-title {
    font-size: 6vw;
  }
  /* 게시글 상세 post-body 타이포 축소 */
  .board-card-title {
    font-size: 4vw;
    margin: 0 0 10px;
  }
  .board-card-body {
    padding: 12px;
  }
  .board-card-date {
    font-size: 3.2vw;
  }
  .board-card {
    border-radius: 14px;
  }
  .board-btn-next,
  .board-btn-list {
    padding: 7px 18px;
    font-size: 14px;
  }
  .board-search {
    padding: 10px 21px;
    min-width: 30%;
    max-width: 80%;
    margin-bottom: 20px;
  }
  .board-view-section #post-body,
  .board-view-section #post-body p {
    font-size: 15px;
    line-height: 1.7;
  }
  .board-view-section #post-body h1 {
    font-size: 22px;
  }
  .board-view-section #post-body h2 {
    font-size: 20px;
  }
  .board-view-section #post-body h3 {
    font-size: 18px;
  }
  .board-view-section #post-body h4 {
    font-size: 17px;
  }
  .board-view-section #post-body h5,
  .board-view-section #post-body h6 {
    font-size: 16px;
  }
  .board-view-section #post-body table {
    font-size: 14px;
  }
  .board-view-section #post-body img {
    margin: 20px 0;
  }
  /* 이용약관 / 개인정보처리방침 */
  .non-covered .site {
    font-size: 14px;
    line-height: 1.7;
  }
  .non-covered .site h6 {
    font-size: 16px;
    margin: 22px 0 8px;
  }
  /* 어디가 아프신가요? / 인사말 */

  /* 비급여 */
  .non-covered .site_tit {
    font-size: 5.5vw;
    margin: 30px 0 10px;
  }
  .table_sty03 thead th {
    font-size: 14px;
    word-break: normal;
  }
  .table_sty03 tbody td {
    padding: 8px;
  }
  .table_sty03 tbody td {
    font-size: 12px;
  }
  .table_sty03 table {
    min-width: 590px;
  }
  /* 임플란트 */
  .sub-title {
    margin-bottom: 35px;
  }
  .sub-title h2 {
    font-size: min(7vw, 38px);
  }
  .sub-title h2 em {
    display: block;
    font-size: 0.8em;
  }
  .sub-title .desc {
    margin-top: 25px;
    font-size: 18px;
  }
  .sub-title .desc {
    margin-top: 15px;
    font-size: min(4vw, 18px);
  }
  .implant-immediate-content:nth-of-type(2n) {
    & .img-wrap {
      & .inner-wrap {
        padding: 30px;
        & > img {
          max-width: 500px;
          width: 90%;
          margin: auto;
        }
      }
    }
  }
  .implant-immediate-title .title-num {
    font-size: min(130px, 30vw);
  }
  .implant-immediate-title {
    font-size: min(7vw, 34px);
    margin-bottom: 25px;
  }
  .implant-immediate-content:nth-of-type(2n) {
    & .text-wrap {
      border-radius: 30px 30px 0 0;
      padding: 30px 0;
    }
  }
  .implant-immediate-content:nth-of-type(2n + 1) {
    & .text-wrap {
      border-radius: 30px 30px 0 0;
      padding: 40px 0;
    }
  }
  .implant-immediate-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .implant-immediate-list li {
    font-size: min(4vw, 18px);
    gap: 8px;
    border-radius: 12px;
    padding: 10px 15px;
    align-items: flex-start;
  }
  .qa-deco {
    display: none;
  }
  .qa-tab .qa-num {
    font-size: min(7vw, 25px);
  }
  .qa-panel-title {
    font-size: min(5vw, 26px);
  }
  .qa-panel-answer {
    font-size: min(4vw, 18px);
  }
  /* 잇몸 치주 치료 */
  .treatment-gum.implant-immediate-content:nth-of-type(2n) {
    & .img-wrap {
      padding: 0;
      margin-bottom: -30px;
    }
  }
  /* 틀니 보철 치료 */
  .dentures-all-content .inner {
    padding: 40px 0;
  }
  .dentures-all-title .title-num {
    font-size: min(25vw, 90px);
  }
  .dentures-all-title .title-inner {
    font-size: min(8vw, 40px);
    margin-bottom: 20px;
    margin-top: 6px;
  }
  .dentures-all-list {
    gap: 10px;
  }
  .dentures-all-list li {
    font-size: min(4vw, 18px);
    gap: 7px;
    align-items: flex-start;
  }
  .dentures-all-list li::before {
    margin-top: -0.2em;
  }
}
@media (max-width: 480px) {
  .sub-hero-content-inner {
    padding: 60px 0 50px;
  }
  /* 페이지네이션: 소형 모바일 */
  .board-pagination {
    margin-top: 32px;
    gap: 2px;
  }
  .board-page-btn,
  .board-page-num {
    width: 30px;
    height: 30px;
    font-size: 12px;
    border-radius: 6px;
  }
  .board-page-btn {
    font-size: 14px;
  }
  /* 게시글 상세 post-body: 가장 작은 화면에서 추가 축소 */
  .board-view-section #post-body,
  .board-view-section #post-body p {
    font-size: 14px;
    line-height: 1.7;
  }
  .board-view-section #post-body h1 {
    font-size: 20px;
  }
  .board-view-section #post-body h2 {
    font-size: 18px;
  }
  .board-view-section #post-body h3 {
    font-size: 17px;
  }
  .board-view-section #post-body h4 {
    font-size: 16px;
  }
  .board-view-section #post-body h5,
  .board-view-section #post-body h6 {
    font-size: 15px;
  }
  .board-view-section #post-body table {
    font-size: 13px;
  }
  .board-view-section #post-body img {
    margin: 16px 0;
  }
  /* 이용약관 / 개인정보처리방침 */
  .non-covered .site {
    font-size: 13px;
    line-height: 1.7;
  }
  .non-covered .site h6 {
    font-size: 15px;
    margin: 20px 0 8px;
  }
}
@media screen and (max-width: 340px) {
  .board-grid--notice,
  .board-grid--review {
    grid-template-columns: 1fr;
  }
}
