/* style-c6.css */

/* ====================== C6 ====================== */
.c6{
  position:relative;
  padding: clamp(90px, 10vw, 150px) 0 160px;
  overflow:hidden;
  word-break: keep-all;
}

/* 배경 */
.c6__bg{
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgb(255 255 255 / 0%), rgb(255 255 255 / 0%)), url(../img/c6/c6_bg.png) center / cover no-repeat;
  opacity:1;
  z-index:0;
}

/* content */
.c6__inner{
  position:relative;
  z-index:2;
  max-width: 1030px;
  margin:0 auto;
  text-align:center;
  padding:0 24px;
}

/* pill */
.c6__pill{
  height: 68px;               
  display: flex;
  justify-content:center;
  align-items:center;
  margin-bottom: 16px;       
}



.c6__pill-shape span{
  transform: scaleY(5.8);     
  font-size: 30px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.1;
  line-height: 1.6;
}


/* title */
.c6__title{
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 500;
  margin-bottom: 24px;
  line-height:1.3;
  letter-spacing: -1.2px;
  word-spacing: -1.1px;
  position: relative;
  padding: 100px;
}


.c6__title strong::before{
  content: '';
  width: 3px;
  height: 30px;
  top: 5%;
  left: 48%;
  background: #fff;
  position: absolute;
}


.c6__title span {
  color: #f5e1ad;
  font-weight: 800;
  letter-spacing: 5px;
  font-size: 70px;
  padding-top: 50px;
}



.c6__title strong{
  color: #fff;
  font-weight: 800;
  font-size: 70px;
}

/* subtitle */
.c6__subtitle{
  font-size: clamp(15px, 1.6vw, 22px);
  color:#fff;
  line-height: 2.0;
  margin-top: 78px;
  letter-spacing: -0.4px;
  border: 1px solid #fff;
  padding: 60px;
}
/* 카드 전체 래퍼 */
.c6__cards{
  position: relative;
  max-width: 930px;          /* 가운데로 모아주기 */
  margin: 90px auto 0;
  padding-bottom: 940px;     /* 마지막 카드까지 공간 확보 (밑 섹션 안 겹치게) */
}
.c6__card{
  position:absolute;
  width: 480px;
}

/* 왼쪽/오른쪽 위치 */
.c6__card--left{
  left:0;
}
.c6__card--right{
  right:0;
}

/* 카드별 세로 위치 + 겹치는 순서(아래 → 위) */
.c6__card:nth-child(1){  /* 왼쪽 첫번째 카드 - 당뇨, 고혈압 */
  top:0;
  z-index:1;              /* 제일 아래 */
}
.c6__card:nth-child(2){  /* 오른쪽 첫번째 카드 - 통증이 적어요 */
  top: 220px;
  z-index:2;
}
.c6__card:nth-child(3){  /* 왼쪽 두번째 카드 - 수술 후 회복이 빨라요 */
  top: 420px;
  z-index:3;
}
.c6__card:nth-child(4){  /* 오른쪽 두번째 카드 - 오래가고 튼튼해요 */
  top: 640px;
  z-index:4;              /* 제일 위 */
}

.bottom1{ top:240px; }
.bottom2{ top:280px; }

/* 파란 점 */
.c6__dot{
  position:absolute;
  top: -5px;
  width:16px;
  height:16px;
  border-radius:50%;
  background: #2086c8;
}

/* 왼쪽 카드의 점 : 오른쪽 모서리 쪽 */
.c6__card--left .c6__dot{
  left: -5px;            /* 필요하면 거리 조절 */
}

/* 오른쪽 카드의 점 : 왼쪽 모서리 쪽 */
.c6__card--right .c6__dot{
  right: -5px;
}

/* 박스 모양 */
.c6__box{
  background:#ffffff;
  border: 1.5px solid #2086c8;
  border-radius: 0;
  padding: 10px 26px;
  box-shadow: 1px 5px 11px rgb(0 0 0 / 14%);
  letter-spacing: -0.5px;
  line-height: -1.1px;
}

.c6__box h3{
  color: #2086c8;
  font-size: 32px;
  font-weight:700;
  margin-bottom:10px;
  word-spacing: -2.1px;
}

.c6__box p{
  font-size: 20px;
  color:#333;
  font-weight: 500;
  line-height: 1.6;
}

@media (max-width: 900px){
  .c6__inner{
    max-width:100%;
  }
  .c6__cards{
    max-width: 100%;
    padding-bottom: 0;
  }
  .c6__card{
    position: static;
    width: 100%;
    margin-bottom: 20px;
  }
  .c6__dot{
    /*left: 32px;*/                    /* 모바일에선 왼쪽 위에 점 */
    transform: none;
  }
    .c6-inner {
      width: 100%;}
  
}
@media(max-width:768px){
  .c6{
    padding: clamp(90px, 10vw, 150px) 0;
  }
  .c6__pill{
    height: 68px;               
    display: flex;
    justify-content:center;
    align-items:center;
    margin-bottom: 16px;    

  }
  

  .c6__pill-shape span{
    transform: scaleY(5.8);
    font-size: 20px;
    color: #fff;
    letter-spacing: -0.1;
  }
  .c6__subtitle{
    margin-bottom:0px;
  }
  .c6__cards{
    margin: 50px auto 0;
  }
  .c6__box h3{
    color: #2086c8;
    font-size: 28px;
    font-weight:700;
    margin-bottom:10px;
    word-spacing: -2.1px;
  }
  
  .c6__box p{
    font-size: 16px;
    color:#333;
    font-weight: 500;
    line-height: 1.6;
  }
  .c6__subtitle{
    font-size: 20px;
  }
  .c6__title span{
    margin: 0 auto;
    font-size: 40px;
  }
  .c6__title strong {
    font-size: 40px;

  }
}

@media(max-width:410px){
    .c6__box h3{
    color: #2086c8;
    font-size: 24px;
    font-weight:700;
    margin-bottom:10px;
    word-spacing: -2.1px;
  }
  
  .c6__box p{
    font-size: 14px;
    color:#333;
    font-weight: 500;
    line-height: 1.6;
  }
  .c6__title strong {
    font-size: 40px;
    display: grid;
  }
  .c6__title span{
    margin: 0 auto;
    font-size: 40px;
  }
}


@media(max-width:360px){

  .c6__title{
        font-size: 20px;
  }
  .c6__subtitle{
    font-size: clamp(12px, 1.6vw, 19.5px);
  }
  .c6__box h3{
    font-size: 20px;
  }
  .c6__box p{
    font-size: 12px;
  }
  .c6{
    padding:clamp(140px, 10vw, 150px) 0;
  }
  .c6__title span{
    margin: 0 auto;
    font-size: 40px;
  }
  .c6__title strong {
    font-size: 40px;

  }
}


/* ✅ 모바일에서 C6 파란 점이 밖으로 안 튀어나가게 */
@media (max-width: 900px){
  .c6__card--left .c6__dot{
    left: 12px;    /* 카드 안쪽으로 이동 */
  }
  .c6__card--right .c6__dot{
    right: 12px;   /* 카드 안쪽으로 이동 */
  }
}






/* ===== C6 : "통증을 낮추는" 떨어지는 글자 효과 ===== */

/* 전체 컨테이너 */
.c6__title-main{
  display:inline-block;
  white-space:nowrap;
}

/* 글자/공백 공통 기본 스타일 */
.c6__char,
.c6__char--space{
  display:inline-block;
  padding: 4px;
}

/* 일반 글자 기본 상태 (처음엔 위 + 투명) */
.c6__char{
  opacity:0;
  transform:translateY(-40px);
}

/* 공백은 그대로, 애니메이션 없음 */
.c6__char--space{
  opacity:1;
  transform:translateY(0);
}

/* 섹션이 활성화됐을 때만 애니메이션 실행 (글자만) */
.c6__title-main.is-active .c6__char{
  animation:c6DropChar 0.6s cubic-bezier(.22,1.1,.36,1) forwards;
}

/* 위에서 아래로 톡 떨어지는 모션 */
@keyframes c6DropChar{
  0%{
    opacity:0;
    transform:translateY(-40px);
  }
  60%{
    opacity:1;
    transform:translateY(4px);
  }
  100%{
    opacity:1;
    transform:translateY(0);
  }
}







/* ✅ 420px 이하에서 C6 타이틀(통증을 낮추는) 가운데 정렬 + 잘리지 않게 */
@media (max-width: 420px){
  /* 1) 타이틀 주변 패딩 줄이기 (100px → 좌우 여유 확보) */
  .c6__title{
    padding: 30px 10px 0;  /* 필요하면 숫자 조금씩 조절 가능 */
  }

  /* 2) 떨어지는 글자 컨테이너를 가운데 정렬 + 줄바꿈 허용 */
  .c6__title-main{
    display: inline-flex;         /* 하나의 덩어리로 취급하면서 */
    justify-content: center;      /* 내부 글자들을 가운데 모으고 */
    flex-wrap: wrap;              /* 필요하면 여러 줄로 내려가게 */
    white-space: normal;          /* 기존 nowrap 해제 (줄바꿈 허용) */
    text-align: center;           /* 여러 줄일 때도 가운데 정렬 느낌 유지 */
  }

  /* 3) 글자 주변 여백 살짝 줄여서 화면에 더 잘 맞게 */
  .c6__char,
  .c6__char--space{
    padding: 2px;                 /* 기존 4px → 2px 정도로 줄이기 */
  }

  /* 4) 글자 크기/자간도 조금 줄여서 ‘통증을 낮추는’ 전체가 화면 중앙에 보기 좋게 */
  .c6__title span,
  .c6__title strong{
    font-size: 32px;              /* 모바일에서 너무 크면 28~34px 정도로 조절 */
    letter-spacing: 0.2em;        /* 5px 고정값보다 em 단위가 반응형에 더 자연스러움 */
  }
}







@media (max-width: 900px){

  /* 레이아웃/여백만 조정하고, 애니메이션은 건드리지 않는다 */
  .c6__title-main{
    display: inline-flex;
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
    text-align: center;
  }

  .c6__char,
  .c6__char--space{
    padding: 2px;
  }

  /* 필요하면 글자 크기만 살짝 줄이는 용도 */
  .c6__title span{
    font-size: 30px;
    letter-spacing: -2px;
  }
  .c6__title strong{
    font-size: 36px;
  }
}




.c6__title[data-aos]{ opacity:1 !important; transform:none !important; }

.c6__subtitle[data-aos]{ opacity:1 !important; transform:none !important; }
