@charset "utf-8";

/* ============================================================================
   main.css - 메인 페이지
   #hero / #business / #rnd / #notice / #contact / #bottom_banner
   ========================================================================= */

#hero {
   height: 100vh;
   background: url(/images/main.png) no-repeat center/cover;
   position: relative;
   overflow: hidden;
}

/* 배경 영상. index.php 에서 <video> 를 주석 처리하면 위 배경 이미지가 그대로 드러난다.
   쌓이는 순서는 배경 이미지 < 영상(0) < 어둡게 덮는 레이어(1) < 글자(2). */
#hero .hero_video {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   z-index: 0;
   pointer-events: none;
}

#hero::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(0, 0, 0, 0.5);
   z-index: 1;
}

#hero .hero_inner {
   z-index: 2;
}

/* 높이는 index.php 의 h-100(부트스트랩), 오버레이 위로 올리는 건 position-relative 가 담당 */
#hero h2 {
   letter-spacing: 0.8em;
}

#hero .scroll {
   position: absolute;
   bottom: 0;
   left: 50%;
   transform: translateX(-50%);
   height: 200px;
   animation: scroll-dot 1.8s ease-in-out infinite;
}

#hero .scroll::before {
   content: "";
   position: absolute;
   top: 30px;
   left: 50%;
   transform: translateX(-50%);
   height: 100%;
   border-left: 1px solid #fff;
}

#hero .scroll p {
   font-size: .67rem;
   position: absolute;
   top: 0;
   padding-top: 4px;
   border: 1px solid #fff;
   border-radius: 50px;
   width: 30px;
   height: 30px;
   font-weight: 800;
   margin-left: -15px;
   box-sizing: border-box;
}

#hero .scroll p i:last-child {
   margin-top: -6px;
}

@keyframes scroll-dot {
   0% {
      transform: translateY(0);
      opacity: 1;
   }

   50% {
      transform: translateY(18px);
      opacity: 0.7;
   }

   100% {
      transform: translateY(0);
      opacity: 1;
   }
}

#business .title {
   border-left: 1px solid #ccc;
   border-right: 1px solid #ccc;
   height: 120px;
   box-sizing: border-box;
}

#business .box {
   position: relative;
   overflow: hidden;      /* 아래 가로선이 좌우로 삐져나온 만큼을 잘라낸다 */
   border-top: 1px solid #ccc;
   border-bottom: 1px solid #ccc;
}

/* 줄 사이 가로선.
   .box 의 세로 한가운데(::after)로 그으면 두 줄 높이가 달라질 때 경계에서 어긋난다.
   (767 이하에서 설명문이 3줄이 되는 카드가 생긴다)
   그래서 아랫줄 첫 카드의 바로 위에 붙여 그리고,
   좌우로 넉넉히 늘려 위아래 선과 똑같은 화면 가로 100% 가 되게 한다. */
#business .box .biz-card:nth-child(3) {
   position: relative;
}

#business .box .biz-card:nth-child(3)::before {
   content: '';
   position: absolute;
   top: -1px;
   left: -50vw;
   width: 200vw;
   height: 1px;
   background: #ccc;
}

#business .box .biz-card {
   border-right: 1px solid #ccc;
   box-sizing: border-box;
}

#business .box .biz-card:nth-child(2n+1) {
   border-left: 1px solid #ccc;
}


#business .box .biz-card figure img {
   width: 100%;
   aspect-ratio: 700 / 455;
}

#business .box figure+div {
   padding: 30px;
}

#business .box .title-row {
   position: relative;
}

#business .box .title-row h4 {
   position: relative;
}

#business .box .title-row span {
   display: inline-block;
   margin-top: 4px;
}

#business .box .title-row span {
   display: inline-block;
   margin-top: 4px;
}

#business .box .title-row a {
   width: 50px;
   height: 50px;
   position: absolute;
   right: 0;
   top: 0;
   border-radius: 50px;
   font-weight: 900;
   text-align: center;
   padding-top: 1rem;
   background: #357140;
   color: #fff;
}
#business .box .title-row a:hover,
#business .box .title-row a:active {
   background: var(--txt-point02);
}
@media (max-width: 999.99px) {
   #business .box .title-row a {
      width: 33px;
      height: 33px;
      padding-top: 0.5rem;
   }
}
#business .box .biz-card p {
   margin-top: 40px;
}

#rnd .fl>div:first-child {
   width: 40%;
}

#rnd .rnd-visual {
   width: 50%;
   position: relative;
}
#rnd .rnd-visual .main-img{
   border-radius: 1.5rem;
   overflow: hidden;
}
@media (max-width: 1199px) {
   #rnd .rnd-visual .main-img img {
      width: 100%;
      aspect-ratio: 2 / 3;
      object-fit: cover;
      object-position: center 100%;
   }
}
@media (max-width: 991px) {
   #rnd .rnd-visual .main-img img {
      aspect-ratio: 3 / 2;
      object-position: center 55%;
   }
}

#rnd .circle-badge {
   position: absolute;
   top: 380px;
   left: -215px;
   width: 310px;
   height: 310px;
   border-radius: 50%;
   display: flex;
   justify-content: center;
   align-items: center;
   box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.15);
   z-index: 2;
}

#rnd .circle-badge svg {
   position: absolute;
   top: -20%;
   left: -20%;
   width: 140%;
   height: 140%;
   animation: rot 10s linear infinite;
   z-index: 2;
   pointer-events: none;
}

#rnd .circle-badge text {
   font-size: 6px;
   letter-spacing: 2px;
   fill: #357140;
   font-weight: bold;
   text-transform: uppercase;
}

#rnd .circle-badge img {
   width: 100%;
   height: 100%;
   border-radius: 50%;
   object-fit: cover;
   position: relative;
   z-index: 1;
}
@media (max-width: 1199.99px) {
   #rnd .circle-badge {
      top: 240px;
      left: -110px;
      width: 220px;
      height: 220px;
   }
   #rnd .circle-badge text {
      font-size: 5.5px;
      letter-spacing: 1px;
}
}
@keyframes rot {
   100% {
      transform: rotate(360deg);
   }
}



#notice {
   border-bottom: 1px solid #ccc;
}

#notice .title-col {
   width: calc(100% - 1040px);
}

#notice .title-col a {
   display: inline-block;
   margin-top: 60px;
   text-transform: uppercase;
}

#notice .list-col {
   width: 440px;
   margin-left: 40px;
}

#notice .list-col h4 {
   padding-bottom: 14px;
   border-bottom: 1px solid #ccc;
   margin-bottom: 14px;
}

#notice ul li {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 8px 0;
   cursor: pointer;
}

#notice ul li i {
   font-weight: 900;
   margin-right: 14px;
}

#contact .contact-icon {
   width: calc(100% - 1040px);
   padding-top: 60px;
}

#contact .contact-icon img {
   width: 60px;
   height: auto;
}

#contact .contact-info {
   width: 440px;
   margin-left: 40px;
}

#contact h3 {
   border-bottom: 1px solid #357140;
   padding-bottom: 14px;
   margin-bottom: 20px;
}

#contact .info-row {
   display: flex;
   margin-bottom: 15px;
   font-size: 18px;
   line-height: 1.6;
}

#contact .label {
   width: 80px;
   font-weight: bold;
}

#contact .value {
   color: #555;
   word-break: break-all;
}

#contact .value.bold {
   font-weight: bold;
   color: #000;
}

#contact .inquiry-info {
   width: 440px;
   margin-left: 40px;
}

#contact .inquiry-info p {
   margin-bottom: 10px;
}

#contact .btn-green {
   display: inline-block;
   background: #357140;
   color: #fff;
   padding: 15px 40px;
   border-radius: 50px;
   font-size: 15px;
   transition: all 0.3s;
}



#bottom_banner {
   background: url(/images/bg_bottom.png) no-repeat center/cover;
}


/* 모바일 (991px 이하)
   세로 쌓기는 index.php 의 flex-column flex-lg-row(부트스트랩) 가 담당하므로
   여기서는 폭·여백·글자크기만 조정한다. 경계를 991 로 둔 이유는
   flex-lg-row 가 992px 부터 가로로 돌아오기 때문이다. */
@media (max-width:991px) {

   /* Hero */
   #hero {
      height: 400px;
   }

   #hero h2 {
      letter-spacing: 0.2em;
      font-size: 20px;
      line-height: 1.4;
   }

   #hero .scroll {
      height: 100px;
   }

   /* Business Area */
   #business .title {
      height: auto;
      padding: 40px 0;
   }

   /* 테두리는 위쪽 기본 규칙(오른쪽 전부 / 왼쪽 홀수번째 / 아래 마지막 줄 제외)을 그대로 쓴다.
      여기서 카드마다 좌우를 다 그으면 이웃한 카드끼리 겹쳐 2px 로 보인다. */
   #business .box .biz-card {
      width: 100%;
   }

   #business .box .biz-card figure img {
      height: 250px;
      object-fit: cover;
   }

   #business .box figure+div {
      padding: 20px;
   }

   #business .box .biz-card p {
      margin-top: 20px;
   }

   /* R&D Center */
   #rnd {
      padding: 80px 0;
   }

   #rnd .fl>div:first-child {
      width: 100%;
      padding-bottom: 60px;
      text-align: center;
   }

   #rnd .rnd-visual {
      width: 100%;
   }

   #rnd .circle-badge {
      display: none;
      width: 150px;
      height: 150px;
      top: -50px;
      left: 50%;
      transform: translateX(-50%);
   }

   #rnd .main-img img {
      width: 100%;
   }

   /* Notice */
   #notice {
      padding: 80px 0;
   }

   #notice .title-col {
      width: 100%;
      margin-bottom: 40px;
      text-align: center;
   }

   #notice .title-col a {
      margin-top: 20px;
   }

   #notice .list-col {
      width: 100%;
      margin-left: 0;
      margin-top: 30px;
   }

   /* Contact */
   #contact {
      padding-top: 80px;
      padding-bottom: 80px;
   }

   #contact .contact-icon {
      width: 100%;
      padding-top: 0;
      margin-bottom: 30px;
      text-align: center;
   }

   #contact .contact-icon img {
      width: 40px;
   }

   #contact .contact-info {
      width: 100%;
      margin-left: 0;
      margin-bottom: 40px;
   }

   #contact .inquiry-info {
      width: 100%;
      margin-left: 0;
   }

   #contact .btn-green {
      margin-top: 30px;
      width: 100%;
      box-sizing: border-box;
      text-align: center;
   }

   /* Bottom Banner */
   #bottom_banner h2 {
      font-size: 20px;
      line-height: 1.4;
   }
}