/* ========= 섹션 페이지 ========= */
@keyframes floating {
  0%,
  100% {
    transform: translateY(-50%) translateY(0px);
  }

  50% {
    transform: translateY(-50%) translateY(-15px);
  }
}

.sec-olidia-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  z-index: 0;
  padding-left: 10%;
}

.sec-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sec-background-bottom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/home_assets/img/main/skin/section_background_bottom.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
}

.sec-background-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/home_assets/img/main/skin/section_background_top.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 3;
}

.sec-filler-image {
  position: absolute;
  top: 35%;
  right: 6%;
  transform: translateY(-50%);
  z-index: 1;
  animation: floating 3s ease-in-out infinite;
}

.sec-filler-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sec-filler-image-top {
  position: absolute;
  top: 35%;
  right: 6%;
  transform: translateY(-50%);
  z-index: 5;
  overflow: hidden;
  animation: floating 3s ease-in-out infinite;
}

.sec-filler-image-top img {
  display: block;
  max-width: 100%;
  height: auto;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.sec-content {
  text-align: center;
  color: #333;
  max-width: 590px;
  padding: 10px;
  position: relative;
  z-index: 5;
  word-break: keep-all;
}

.sec-subtitle {
  font-family: "Pretendard", sans-serif;
  font-weight: 100;
  /* thin */
  font-size: 24px;
  color: #666;
  margin-bottom: 20px;
}

.sec-main-title {
  font-family: "Dream Orphans", serif;
  font-weight: 400;
  /* regular */
  font-size: 96px;
  color: #333;
  line-height: 0.9;
  margin-bottom: 0;
}

.sec-sub-title {
  font-family: "Dream Orphans", serif;
  font-weight: 400;
  /* regular */
  font-size: 40px;
  color: #333;
  margin-bottom: 40px;
  line-height: 1.2;
}

.sec-description-main {
  font-family: "Pretendard", sans-serif;
  font-weight: 400;
  /* regular */
  font-size: 32px;
  color: #333;
  line-height: 1.4;
  margin-bottom: 30px;
}

.sec-separator {
  font-family: "Pretendard", sans-serif;
  font-weight: 400;
  /* regular */
  font-size: 20px;
  color: #333;
  margin-bottom: 30px;
}

.sec-description-detail {
  font-family: "Pretendard", sans-serif;
  font-weight: 200;
  /* extralight */
  font-size: 20px;
  color: #555;
  line-height: 1.6;
}

.fanning_section {
  position: relative;
  width: 100%;
  height: 300vh;

  background-attachment: fixed;
}
.fanning-container {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: url("/home_assets/img/main/skin/fanningGlass.png") no-repeat;
  background-size: contain;
  background-position: center;
}
.fanning-title {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-style: normal;
  color: #ffffff;
  text-align: center;
}
.fanning-main-title {
  font-family: "Dream Orphans";
  font-weight: 400;
  font-size: 48px;
  line-height: 58px;
}

.fanning-main-subtitle {
  font-family: "Pretendard";
  font-weight: 300;
  font-size: 24px;
  line-height: 29px;
}
.about-list {
  position: absolute;
  bottom: 20%;
  width: 100%;
}
.about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.6s ease;
}
.about.show {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.about-tit,
.about-tit span:nth-child(2) {
  display: flex;
  flex-direction: column;
  font-family: "Noto Serif KR";
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 34px;
  text-align: center;
  color: #000000;
}
.about-tit span:first-child {
  font-family: "Noto Serif KR";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 23px;
  text-align: center;

  color: #000000;
}

.about-content {
  max-width: 730px;
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 200;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: -0.03em;
  color: #000000;
  line-height: 1.5em;
  max-height: 3em;
  overflow: visible;
  word-break: keep-all;
}

/* 폰트 헬퍼 (페이지에 이미 있다면 생략 가능) */
.do-regular-48 {
  font-family: "Dream Orphans", sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.2;
  color: #111;
}

.pretendard-light-20 {
  font-family: "Pretendard", sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.8;
  color: #111;
}

/* 섹션 레이아웃 */
.treatment-section {
  padding: 80px 20px;
  background: #fff;
  overflow: hidden;
}

.treatment-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  /* 왼쪽 텍스트 / 오른쪽 이미지 */
  align-items: center;
  gap: 48px;
}

/* 좌측 텍스트 */
.treatment-left {
  text-align: center;
  /* 기존 left → center */
  max-width: 620px;
  /* 가독성 위해 폭 제한 */
  margin: 0 auto;
  /* 좌우 중앙 배치 */
}

.treatment-title {
  margin: 0 0 12px;
}

.treatment-sub {
  margin: 0 0 18px;
  color: #333;
}

.treatment-desc {
  margin: 0;
  color: #222;
}

/* 우측 이미지 */
.treatment-right {
  display: flex;
  justify-content: center;
}

.treatment-right img {
  width: 100%;
  max-width: 740px;
  /* 이미지 최대 폭 제한 */
  height: auto;
  object-fit: contain;
  display: block;
}

.face-wrap {
  position: relative;
  width: 100%;
  max-width: 740px;
}

.face-wrap > img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 공통 라벨 스타일 */
.face-tag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: var(--w);

  /* ⬇️ 높이 커스텀 */
  height: var(--h, auto);

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  font-family: "Pretendard", sans-serif;
  font-weight: bold;
  font-size: clamp(12px, 1.4vw, 20px);
  line-height: 1.1;
  color: #fff;

  border-radius: 999px;
  box-sizing: border-box;
  pointer-events: none;
}

/* 채움형(반투명) */
.tag-fill {
  background: #a76e3d33;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* 외곽선형 */
.tag-outline {
  background: rgba(167, 110, 61, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.treatment-right .face-wrap {
  position: relative;
  --glass-pad: 20px;
  --mx: -9999px;
  --my: -9999px;
  --r: 10vw;
  --rx-mul: 1.5;
  --ry-mul: 1;
  --rx: calc(var(--r) * var(--rx-mul));
  --ry: calc(var(--r) * var(--ry-mul));
}

.treatment-right .face-wrap > img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 라벨은 막대 아래/위 원하는 레이어로—기본은 아래(필요시 z-index: 10) */
.treatment-right .face-wrap .face-tag {
  position: absolute;
  z-index: 10;
}

/* 유리막대 레이어: 얼굴 영역 위에만 표시됨 */
.treatment-right .glass-vband {
  flex: 0 0 43px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.16) 55%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: inset 1px 0 rgba(255, 255, 255, 0.6),
    /* 왼쪽 엣지 하이라이트 = 흰색 */ inset -1px 0 rgba(255, 255, 255, 0.6),
    /* 오른쪽 엣지 하이라이트 = 흰색 */ inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -8px 18px rgba(255, 255, 255, 0.14),
    0 14px 34px rgba(15, 54, 112, 0.12);
  backdrop-filter: blur(18px) brightness(1.12) saturate(1) contrast(1);
  -webkit-backdrop-filter: blur(18px) brightness(1.12) saturate(1) contrast(1);
  opacity: 0.99;
}

.treatment-right .glass-vband + .glass-vband {
  margin-left: -1px;
}

.treatment-right .glass-frost {
  position: absolute;
  inset: -20px;
  z-index: 19;
  /* 밴드 아래, 라벨 위 */
  pointer-events: none;
  /* 색상 왜곡 없이 배경만 흐리게 */
  background: transparent;
  backdrop-filter: blur(22px) contrast(0.95) saturate(1) brightness(1);
  -webkit-backdrop-filter: blur(22px) contrast(0.95) saturate(1) brightness(1);
}

.treatment-right .glass-layer,
.treatment-right .glass-frost {
  position: absolute;
  inset: calc(var(--glass-pad) * -1);
  pointer-events: none;
  overflow: hidden;
}

.treatment-right .glass-layer.reveal,
.treatment-right .glass-frost.reveal {
  -webkit-mask-image: radial-gradient(
    ellipse var(--rx) var(--ry) at calc(var(--mx) + var(--glass-pad))
      calc(var(--my) + var(--glass-pad)),
    transparent 99%,
    #fff 100%
  );
  mask-image: radial-gradient(
    ellipse var(--rx) var(--ry) at calc(var(--mx) + var(--glass-pad))
      calc(var(--my) + var(--glass-pad)),
    transparent 99%,
    #fff 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.treatment-right .glass-reveal-ring {
  position: absolute;
  left: var(--mx);
  top: var(--my);
  width: calc(var(--rx) * 2);
  /* ← 가로 지름 */
  height: calc(var(--ry) * 2);
  /* ← 세로 지름 */
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  /* 타원에 정확히 맞춤 (원 유지 원하면 500px 그대로 OK) */
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.treatment-right .face-wrap.is-reveal .glass-reveal-ring {
  opacity: 1;
}

.treatment-right .glass-layer {
  position: absolute;
  inset: -20px;
  z-index: 20;
  pointer-events: none;
  display: flex;
  overflow: hidden;
}
.treatment-right .glass-layer::after {
  /* content: "마우스를 올려서\A시술 부위를 확인해보세요"; */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 92px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(7.75px);
  border-radius: 500px;
  padding: 16px;
  font-size: 24px;
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: pre-line; /* 줄바꿈 문자 처리 */
}
.treatment-right .mouseHover {
  position: absolute;
  z-index: 21;
  pointer-events: none;
  display: flex;
  overflow: hidden;
}

/*=== 올리디아 ===*/
.section-olida {
  position: relative;
  min-height: 1080px;
  padding: 80px 20px;
  background: #fff;
  overflow: hidden;
}

.olida-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 1080px;
  display: grid;
  place-items: center;
}

.olida-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 0;
  pointer-events: none;
}

.olida-bg img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.olida-panel {
  position: relative;
  z-index: 1;
  margin: 0;
  width: clamp(360px, 78vw, 980px);
  height: clamp(320px, 60vw, 720px);
  background: rgba(134, 72, 1, 0.1);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* SVG 사이즈 (패널과 동일한 중앙 배치) */
.olida-hex {
  width: clamp(360px, 78vw, 980px);
  height: clamp(320px, 52vw, 720px);
  display: block;
}

/* 육각형 라인 */
.hex {
  fill: none;
  stroke: #fff;
}

.hex-solid {
  stroke-width: 3;
}

.hex-dashed {
  stroke-width: 2;
  stroke-dasharray: 6 8;
  opacity: 0.9;
}

/* 꼭짓점 점 */
.hex-dots .dot-inner {
  fill: #fff;
  stroke: #2f6db5;
  stroke-width: 3;
}

.hex-dots .dot-outer {
  fill: none;
  stroke: rgba(47, 109, 181, 0.55);
  stroke-width: 2;
}

/* 연결선 */
.hex-links polyline {
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  opacity: 0.9;
}

/* 대각선 텍스트: 흰 텍스트만(얇게), textPath 충돌 방지용 transform 없음 */
.edge-text {
  fill: #fff;
  stroke: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  transform: none;
  opacity: 0;
  /* 기본은 숨김 → in-view 시에만 페이드인 */
}

/* 중앙 텍스트 */
.olida-center {
  font-family: "Dream Orphans", sans-serif;
  font-weight: 400;
  font-size: 64px;
  fill: #fff;
  text-anchor: middle;
  opacity: 0;
  /* 기본은 숨김 → in-view 시에만 페이드인 */
}

/* 라벨(알약 모양) */
.pill {
  fill: rgba(255, 85, 0, 0.2);
  stroke: rgba(255, 255, 255, 1);
  stroke-width: 1.2;
  rx: 18;
  ry: 18;
}

.pill-txt {
  font-family: "Pretendard", sans-serif;
  font-weight: 600;
  font-size: 20px;
  fill: #ffffff;
  stroke: #b46224;
  stroke-width: 1.2px;
  paint-order: stroke fill;
  stroke-linejoin: round;
  opacity: 0;

  /* 기본은 숨김 → in-view 시에만 페이드인 */
}

/* SVG 텍스트 기준점 안정화 */
.olida-hex text {
  transform-box: fill-box;
  transform-origin: center;
}

/* 키프레임 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInOpacity {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ===== 뷰포트 진입 시에만 애니메이션 실행 ===== */
.section-olida.is-inview .olida-center {
  animation: fadeInUp 0.6s ease forwards 0.1s;
}

.section-olida.is-inview .edge-text {
  animation: fadeInOpacity 0.6s ease forwards 0.2s;
}

/* 라벨 텍스트 순차 등장 (12시 → 10시) */
.section-olida.is-inview .pill-group > g:nth-of-type(1) .pill-txt {
  animation: fadeInUp 0.6s ease forwards 0.3s;
}

/* 12시 */
.section-olida.is-inview .pill-group > g:nth-of-type(2) .pill-txt {
  animation: fadeInUp 0.6s ease forwards 0.4s;
}

/* 2시  */
.section-olida.is-inview .pill-group > g:nth-of-type(3) .pill-txt {
  animation: fadeInUp 0.6s ease forwards 0.5s;
}

/* 4시  */
.section-olida.is-inview .pill-group > g:nth-of-type(4) .pill-txt {
  animation: fadeInUp 0.6s ease forwards 0.6s;
}

/* 6시  */
.section-olida.is-inview .pill-group > g:nth-of-type(5) .pill-txt {
  animation: fadeInUp 0.6s ease forwards 0.7s;
}

/* 8시  */
.section-olida.is-inview .pill-group > g:nth-of-type(6) .pill-txt {
  animation: fadeInUp 0.6s ease forwards 0.8s;
}

/* 10시 */

/* 접근성: 모션 최소화 환경에서는 즉시 표시 */
@media (prefers-reduced-motion: reduce) {
  .section-olida .olida-center,
  .section-olida .edge-text,
  .section-olida .pill-group > g .pill-txt {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  /* sec-olidia-section */
  .sec-olidia-section {
    padding: 8px;
  }
  /* fanning */
  .fanning_section {
    height: 100%;
  }
  .fanning-container {
    background-size: cover;
  }
  .fanning-main-title {
    font-size: 24px;
    line-height: normal;
  }
  .fanning-main-subtitle {
    font-size: 16px;
  }
  .about-list {
    width: 100%;
    bottom: 25%;
  }
  .about {
    width: 100%;
    gap: 16px;
  }
  .about-tit {
    font-size: 20px;
  }
  .about-tit span:first-child {
    font-size: 18px;
  }
  .about-content {
    width: 80%;
    max-height: calc(line-height * 2);
    font-size: 18px;
    word-break: keep-all;
  }

  /* treatment */
  .treatment-container {
    grid-template-columns: none;
    grid-template-rows: 0.5fr 1.1fr;
  }
  .treatment-right {
    padding: 25px;
  }
  .treatment-right .glass-layer::after {
    font-size: 18px;
    padding: 8px;
  }
  /* section-olidia */
  .section-olida {
    padding: 80px 0;
    overflow: hidden;
  }
  .sec-olidia-section {
    position: relative;
  }
  .sec-content {
    width: 100%;
    position: absolute;
    left: 50%;
    bottom: calc(60px + 5%);
    transform: translateX(-50%);
  }
  .sec-subtitle {
    font-size: 20px;
  }
  .sec-main-title {
    font-size: 92px;
  }
  .sec-sub-title {
    font-size: 36px;
  }
  .sec-description-main {
    font-size: 28px;
  }
  .sec-separator {
    display: none;
  }
  .sec-description-detail {
    font-family: "Pretendard", sans-serif;
    font-weight: 200;
    /* extralight */
    font-size: 20px;
    color: #555;
    line-height: 1.6;
    word-break: keep-all;
    word-wrap: break-word;
    display: none;
  }

  .pretendard-light-20 {
    font-family: "Pretendard", sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.8;
    color: #111;
    word-break: keep-all;
  }

  .pretendard-light-20 br {
    display: none;
    word-break: keep-all;
    line-break: strict;
    overflow-wrap: break-word;
  }

  /* 라벨(상자 속 제목): Pretendard_semibold_32 */
  .benefit-card-label p {
    word-break: keep-all;
  }

  .cautions-panel {
    padding: 32px 24px;
    margin-top: 60px;
    font-size: 16px;
    border-radius: 16px;
    word-break: keep-all;
  }
  .sec-subtitle {
    font-family: "Pretendard", sans-serif;
    font-weight: 300;
    /* thin */
    font-size: 24px;
    color: #666;
    margin-bottom: 20px;
  }

  .olida-panel {
    width: calc(100% - 16px);
  }

  .pill-txt {
    stroke: none;
    fill: rgb(150, 50, 0);
  }
}
