.contentWrapper1 {
    position: relative;
    width: 1066px;
    left: 50%;
    transform: translateX(-50%);
}
.contentWrapper1 .loader {
    position: absolute;
    left: 50%;
    top: 0%;
    transform: translate(80px, -40px);
    opacity: 0;
    transition-duration: .6s;
}
.contentWrapper1.active .loader {
    transition-delay: 1.1s;
    opacity: 1;
    transform: translate(40px, -40px);
}
.contentWrapper1 h1 {
    font-size: 67px;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 50px;
    transition-duration: .6s;
    opacity: 0;
    transform: translateX(40px);
}
.contentWrapper1.active h1 {
    transition-delay: .3s;
    opacity: 1;
    transform: translateX(0px);
}
.contentWrapper1 p:nth-child(3) {
    font-size: 26px;
    font-weight: 400;
    color: #000000;
    line-height: 32px;
    transition-duration: .6s;
    opacity: 0;
    transform: translateX(40px);
}
.contentWrapper1.active p:nth-child(3) {
    transition-delay: .5s;
    opacity: 1;
    transform: translateX(0px);
    margin-bottom: 5px;
}
.contentWrapper1 p:nth-child(4) {
    font-size: 17px;
    font-weight: 300;
    text-align: justify;
    color: #7c7c7c;
    line-height: 32px;
    transition-duration: .6s;
    opacity: 0;
    transform: translateX(40px);
}
.contentWrapper1.active p:nth-child(4) {
    transition-delay: .7s;
    opacity: 1;
    transform: translateX(0px);
}
.contentWrapper1 img {
    width: 1120px;
    padding: 70px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    transition-duration: .6s;
    opacity: 0;
}
.contentWrapper1.active img {
    transition-delay: .9s;
    opacity: 1;
}

.bulbPart {
    position: relative;
    height: 600px;
    width: 100%;
    background-image: url(https://hktechco.com/images/SidePage/2_2/img2.jpg);
    background-position: center center;
    text-align: center;
    background-repeat: no-repeat;
}
.bulbPart h1 {
    display: inline-block;
    margin: 140px 0 55px;
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    opacity: 0;
    transition-duration: .6s;
}
.bulbPart.active h1 {
    transition-delay: .3s;
    opacity: 1;
}
.bulbPart .flexBox {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1066px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.bulbPart .flexBox .box {
    width: 260px;
    height: 70px;
    border-radius: 5px;
    text-align: center;
    margin: 7px 4px;
    opacity: 0;
    transition-duration: 1s;
    cursor: pointer;
}
.bulbPart.active .flexBox .box {
    opacity: 1;
}
.bulbPart .flexBox .flexPart {
    display: flex;
  }
.bulbPart .flexBox .box p {
    font-size: 22px;
    font-weight: 300;
    line-height: 70px;
}
.bulbPart .flexBox:nth-child(even) .box {
    background-color: #21aac1;
}
.bulbPart .flexBox:nth-child(even) .box p {
    color: #ffffff;
}
.bulbPart .flexBox:nth-child(odd) .box {
    background-color: #ffffff;
}
.bulbPart .flexBox:nth-child(odd) .box p {
    color: #21aac1;
}
.bulbPart>p {
    color: #222222;
    padding-top: 15px;
    font-size: 16px;
    font-weight: 200;
    position: relative;
    transform: translateX(-305px);
    opacity: 0;
    transition-duration: .6s;
}
.bulbPart.active>p {
    transition-delay: 1.5s;
    opacity: 1;
    transform: translateX(-325px);
}

/* === ㄱ 모양 코너: 기본 셋업 === */
.bulbPart .flexBox .box{
  position: relative;
  --corner-size: 16px;              /* 호버 시 최종 길이 */
  --corner-gap: 8px;                /* 모서리 안쪽 간격 */
  --corner-thickness: 1px;
  --corner-speed: .35s;
  --corner-color: #21aac1;          /* 기본값(흰 배경용) */
  transition: opacity 1s ease, transform .25s ease, box-shadow .25s ease;
}

/* 코너(좌상: ::before, 우하: ::after) — 초기엔 '숨김' 상태 */
.bulbPart .flexBox .box::before,
.bulbPart .flexBox .box::after{
  content: "";
  position: absolute;
  width: 0;                         /* 처음엔 0 → 호버 시 자람 */
  height: 0;
  opacity: 0;                       /* 처음엔 보이지 않음 */
  pointer-events: none;
  transition:
    width var(--corner-speed) ease,
    height var(--corner-speed) ease,
    opacity var(--corner-speed) ease;
}

/* 좌상단 ㄱ */
.bulbPart .flexBox .box::before{
  top: var(--corner-gap);
  left: var(--corner-gap);
  border-top: var(--corner-thickness) solid var(--corner-color);
  border-left: var(--corner-thickness) solid var(--corner-color);
  border-top-left-radius: 5px;
}

/* 우하단 ㄱ */
.bulbPart .flexBox .box::after{
  right: var(--corner-gap);
  bottom: var(--corner-gap);
  border-bottom: var(--corner-thickness) solid var(--corner-color);
  border-right: var(--corner-thickness) solid var(--corner-color);
  border-bottom-right-radius: 5px;
}

/* 호버: 코너 나타나며 자람 + 상자 살짝 리프트 */
.bulbPart .flexBox .box:hover{
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.bulbPart .flexBox .box:hover::before,
.bulbPart .flexBox .box:hover::after{
  width: calc(var(--corner-size) * 1.8);
  height: calc(var(--corner-size) * 1.8);
  opacity: 1;                       /* 호버 때만 보이기 */
}

/* 접근성: 모션 최소화 환경 */
@media (prefers-reduced-motion: reduce){
  .bulbPart .flexBox .box,
  .bulbPart .flexBox .box::before,
  .bulbPart .flexBox .box::after{
    transition: none !important;
  }
}

/* === 배경색별 코너 색상 규칙 ===
   1) 배경이 흰색인 .box → 코너 #21aac1
   2) 배경이 #21aac1인 .box → 코너 #fff
*/

/* (A) odd/even으로 배경을 나누는 레이아웃이라면 예시처럼 변수만 바꿔줘 */
.bulbPart .flexBox:nth-child(odd) .box{  /* 흰 배경 카드 */
  --corner-color: #21aac1;
}
.bulbPart .flexBox:nth-child(even) .box{ /* #21aac1 배경 카드 */
  --corner-color: #ffffff;
}

/* (B) 만약 클래스명을 쓰는 구조라면, 위 nth-child 대신 아래를 사용
.bulbPart .flexBox .box.is-whiteBG    { --corner-color: #21aac1; }
.bulbPart .flexBox .box.is-primaryBG  { --corner-color: #ffffff; }
*/

@keyframes spin {
  from {
    transform: rotate(0deg); /* Starting state: no rotation */
  }
  to {
    transform: rotate(180deg); /* Ending state: full 360-degree rotation */
  }
}
@keyframes spinOff {
  from {
    transform: rotate(180deg); /* Starting state: no rotation */
  }
  to {
    transform: rotate(0deg); /* Ending state: full 360-degree rotation */
  }
}

.closeBtn:hover {
    animation-name: spin;
    animation-duration: .6s;
    animation-fill-mode: forwards;
}
.closeBtn:not(:hover) {
    animation-name: spinOff;
    animation-duration: .6s;
    animation-fill-mode: forwards;
}

.bgBlack {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .6s ease, visibility .6s ease;
  z-index: 9999;
}
.bgBlack.bgOn {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.bgBlack.bgOn .closeBtnWrap {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  aspect-ratio: 31 / 19;
}
.bgBlack img:not(.closeBtn) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
}
.bgBlack .closeBtn {
  position: absolute;
  top: 3.1%;
  right: 2%;
  cursor: pointer;
  z-index: 10000;
}


/**** Responsive CSS Code ****/
/* 0~767 768~1279 1280~1980*/

/** 0~768 **/
@media (max-width: 768px) {

}
/** 768~1280 **/
@media (min-width: 768px) and (max-width: 1279px) {

    .br {
      display: none;
    }

    .contentWrapper1 .loader {
        transform: translate(250px, -40px);
    }
    .contentWrapper1.active .loader {
        transform: translate(210px, -40px);
    }
    .contentWrapper1 {
        width: 768px;
        margin-top: 120px;
        padding: 0 13px;
    }
    .contentWrapper1 img {
      width: 100%;
      padding: 50px 0;
    }

    /* 박스 부분 */
    .bulbPart .flexBox {
      display: block;
      width: 476px;
    }
    .bulbPart .flexBox .flexPart:nth-child(even) .box {
    background-color: #21aac1;
    }
    .bulbPart .flexBox .flexPart:nth-child(even) .box p {
        color: #ffffff;
    }
    .bulbPart .flexBox .flexPart:nth-child(odd) .box {
        background-color: #ffffff;
    }
    .bulbPart .flexBox .flexPart:nth-child(odd) .box p {
        color: #21aac1;
    }
    .bulbPart .flexBox .flexPart:nth-child(odd) .box{  /* 흰 배경 카드 */
        --corner-color: #21aac1;
    }
    .bulbPart .flexBox .flexPart:nth-child(even) .box{ /* #21aac1 배경 카드 */
        --corner-color: #ffffff;
    }
    .bulbPart h1 {
      margin: 110px 0 15px;
    }
    .bulbPart .flexBox .box {
      width: 230px;
      height: 40px;
      margin: 6px 4px;
    }
    .bulbPart .flexBox .box p {
      font-size: 20px;
      line-height: 41px;
    }
    .bulbPart>p {
      transform: translateX(-9px);
    }
    .bulbPart.active>p {
      transform: translateX(-29px);
    }
    .bulbPart .flexBox .box {
      --corner-size: 12px;
      --corner-gap: 4px;
    }

}