@import url(./reset.css);

.blue {
  color: #2f70fe;
}
.yellow {
  color: #ffc700;
}

/* display */
.pc {
  display: block;
}
.mobile {
  display: none;
}

/* 두줄, 세줄 ... 처리 */
.line_clamp2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  /* 여러 줄 자르기 추가 스타일 */
  white-space: normal;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.content-area {
  width: 100%;
  max-width: 128rem;
  margin: 0 auto;
  padding: 0 6rem;
}

.container-main {
  width: 100%;
}

/* 네비게이션 */
.container-main nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9999;
  background-color: #082142;
}

.container-main nav .nav-wrap {
  display: flex;
  align-items: center;
  height: 10rem;
}

.container-main nav a.logo {
  font-size: 0px;
  display: inline-block;
  width: 15.5rem;
  height: 3.4rem;
  background: url("../img/logo.png") center center no-repeat;
  background-size: contain;
}

.container-main nav .menu {
  display: block;
  margin-left: auto;
}

.container-main nav .menu a {
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
}

.container-main nav .menu a + a {
  margin-left: 6.5rem;
}

.container-main nav .btn-menu {
  display: none;
}

.container-main section.top {
  position: relative;
  padding-top: 10rem;
  height: 93rem;
}

.container-main section.top::after {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 100%;
  height: 79rem;
  background-color: #082142;
  z-index: -1;
}

/* 상단영역 */
.container-main section.top > ul {
  position: relative;
  max-width: 118rem;
}
.container-main section.top > ul > li > h2 {
  position: relative;
  display: inline-block;
  font-size: 12rem;
  font-weight: bold;
  color: #fff;
  /* padding-left: 6rem; */
}

.container-main section.top > ul > li > h2 .Typewriter__cursor {
  font-size: 0;
  position: absolute;
  content: "";
  right: -5rem;
  bottom: 2.5rem;
  width: 2.6rem;
  height: 2.6rem;
  background-color: #0083de;
}

.container-main section .swiper-button {
  position: absolute;
  left: 50%;
  top: 37rem;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
}

.container-main section .swiper-button .swiper-button-prev {
  position: relative;
  display: inline-block;
  width: 6.8rem;
  height: 6.8rem;
  border: 0.1rem solid #fff;
  left: 0;
  background: url("../img/btn_top_arrow.png") center center no-repeat;
}
.container-main section .swiper-button .swiper-button-prev::after {
  font-size: 0;
}

.container-main section .swiper-button .swiper-button-next {
  position: relative;
  display: inline-block;
  width: 6.8rem;
  height: 6.8rem;
  border: 0.1rem solid #fff;
  left: 0;
  margin-left: 2rem;
  background: url("../img/btn_top_arrow.png") center center no-repeat;
  transform: rotate(-180deg);
}
.container-main section .swiper-button .swiper-button-next::after {
  font-size: 0;
}

.container-main section > ul > li > .content {
  display: flex;
  margin-top: 30rem;
  cursor: pointer;
  flex-direction: row;
}

.container-main section.top > ul > li > .content .thumb {
  flex: none;
  order: 1;
  margin-top: 0;
}

.container-main section.top > ul > li > .content .thumb img {
  width: 56rem;
  height: 41.8rem;
  border-radius: 1.5rem;
  box-shadow: 0px 4px 40px 0px rgba(0, 0, 0, 0.25);
}

.container-main section.top > ul > li > .content .descript {
  padding: 3rem 0 0 8rem;
  order: 2;
}

.container-main section.top > ul > li > .content .descript h3 {
  font-size: 2.8rem;
  line-height: 4.3rem;
  color: #fff;
}

.container-main section.top > ul > li > .content .descript .btn-project {
  position: relative;
  display: inline-block;
  width: 22.4rem;
  height: 4.8rem;
  border: 0.1rem solid #fff;
  color: #fff;
  font-size: 2rem;
  line-height: 2.6rem;
  font-weight: bold;
  font-family: "Noto Sans KR" !important;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  margin-top: 3.5rem;
}

.container-main section.top > ul > li > .content .descript .btn-project::after {
  position: absolute;
  content: "";
  top: -0.1rem;
  right: -0.1rem;
  width: 5.6rem;
  height: 4.8rem;
  background-color: #fff;
  background: url("../img/btn_project_arrow.png") center center no-repeat;
  background-size: contain;
}

/* 제작기술 */
.container-main section.skill {
  margin-top: 10rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.container-main section.skill > h2 {
  font-size: 4.8rem;
  line-height: 4.8rem;
  color: #082142;
  font-weight: bold;
  margin-bottom: 8rem;
}

.container-main section.skill > .rolling-list ul {
  display: flex;
  flex-wrap: nowrap;
  flex: none;
  padding-right: 4rem;
}
.container-main section.skill > .rolling-list ul > li + li {
  margin-left: 4rem;
}
.container-main section.skill > .rolling-list ul > li img {
  width: 15rem;
  height: 15rem;
  box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.25);
  border-radius: 1.5rem;
}

/* 포트폴리오 */
.container-main section.portfolio {
  padding-top: 20rem;
}
.container-main section.portfolio .text-wrap > h2 {
  font-size: 4.2rem;
  line-height: 4.2rem;
}
.container-main section.portfolio .text-wrap > p {
  margin-top: 2rem;
  font-size: 4.8rem;
  line-height: 4.8rem;
  font-weight: bold;
}

.container-main section.portfolio > ul {
  margin-top: 6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  /* gap: 4px; */
}

.container-main section.portfolio > ul > li {
  position: relative;
  width: calc(50% - 4px);
  display: inline-block;
  margin-bottom: 0.8rem;
}
.container-main section.portfolio > ul > li img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container-main section.portfolio > ul > li:hover::after {
  content: "자세히 보기";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #082142;
  cursor: pointer;
  color: #fff;
  font-size: 3.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.98;
}

.swiper-slide > h2 {
  opacity: 0.2;
  transition: opacity 0.3s;
}
.swiper-slide-active > h2 {
  opacity: 1;
}

.swiper-slide .descript {
  opacity: 0;
  transform: translateX(50%);
  transition: transform 0.5s;
}

.swiper-slide-active .descript {
  opacity: 1;
  transform: translateX(0%);
}

/* 푸터 */
footer {
  padding: 12rem 0 18rem;
  background-color: #082142;
}

footer > ul {
  display: flex;
}

footer > ul > li:nth-of-type(1) > h2 {
  font-size: 4.8rem;
  line-height: 4.8rem;
  color: #fff;
  font-weight: bold;
}

footer > ul > li:nth-of-type(2) {
  margin-left: 37.8rem;
}

footer > ul > li:nth-of-type(2) > article > h3 {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  line-height: 2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 3rem;
}

footer > ul > li:nth-of-type(2) > article > h3.essential::after {
  position: absolute;
  right: -1.5rem;
  top: 0rem;
  content: "*";
  font-size: 1.5rem;
  color: #f16719;
}

footer > ul > li:nth-of-type(2) .checkbox .checkbox_text {
  color: #fff;
  font-size: 2rem;
  line-height: 2rem;
}

footer > ul > li:nth-of-type(2) > article.project > ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

footer > ul > li:nth-of-type(2) > article.project > ul > li {
  width: 50%;
  margin-bottom: 2.8rem;
}

footer > ul > li:nth-of-type(2) > article > input {
  display: block;
  width: 100%;
  height: 5rem;
  background-color: transparent;
  box-sizing: border-box;
  border: 0;
  border-bottom: 0.1rem solid #fff;
  color: #fff;
  font-size: 2rem;
}

footer > ul > li:nth-of-type(2) > article > input::placeholder {
  opacity: 0.3;
  color: #fff;
  font-size: 2rem;
}

footer > ul > li:nth-of-type(2) > article + article {
  margin-top: 4rem;
}

footer > ul > li:nth-of-type(2) .agreement {
  margin-top: 5rem;
}

footer > ul > li:nth-of-type(2) .btn-footer-project {
  display: inline-block;
  margin-top: 7rem;
  width: 21.2rem;
  height: 5.2rem;
  line-height: 4.8rem;
  background-color: #fff;
  color: #082142;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  font-family: "Noto Sans KR" !important;
  font-weight: bold;
  border: 0;
  cursor: pointer;
}

/* 포트폴리오 보기 */
.portfolio-view {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #e7e5e3;
  z-index: 999;
}

.portfolio-view .btn-close {
  position: absolute;
  top: 6rem;
  right: 6rem;
  width: 8rem;
  height: 8rem;
  font-size: 0;
  background: url("../img/btn_view_close_black.png") center center no-repeat;
  background-size: contain;
  border: 0;
  cursor: pointer;
}

.portfolio-view.black .btn-close {
  background: url("../img/btn_view_close_black.png") center center no-repeat;
  background-size: contain;
}

.portfolio-view.white .btn-close {
  background: url("../img/btn_view_close_white.png") center center no-repeat;
  background-size: contain;
}

.portfolio-view .content {
  width: 100%;
  max-width: 104rem;
  margin: 0 auto;
  padding: 12rem 0;
  text-align: center;
}

.portfolio-view .content .text-wrap {
  margin: 0 3rem 12rem;
  color: #000;
  text-align: left;
}

.portfolio-view.black .content .text-wrap,
.portfolio-view.black .content .text-wrap a {
  color: #000;
}

.portfolio-view.white .content .text-wrap,
.portfolio-view.white .content .text-wrap a {
  color: #fff;
}

.portfolio-view .content .text-wrap > h2 {
  font-size: 5.4rem;
  line-height: 5.8rem;
  font-weight: bold;
}

.portfolio-view .content .text-wrap .label {
  margin-top: 0.8rem;
}

.portfolio-view .content .text-wrap .label > article {
  display: inline-block;
  border: 0.1rem solid #000;
  padding: 0.8rem 1.2rem;
  font-size: 1.6rem;
}

.portfolio-view.black .content .text-wrap .label > article {
  border: 0.1rem solid #000;
}

.portfolio-view.white .content .text-wrap .label > article {
  border: 0.1rem solid #fff;
}

.portfolio-view .content .text-wrap .label > article + article {
  margin-left: 0.5rem;
}

.portfolio-view .content .text-wrap > p {
  margin-top: 4rem;
  font-size: 2.8rem;
  line-height: 4.2rem;
}

.portfolio-view .content .text-wrap a {
  display: inline-block;
  padding-top: 1rem;
  font-size: 2rem;
}

.portfolio-view .content .text-wrap .client {
  margin-top: 4rem;
}

.portfolio-view .content .text-wrap .client > h3 {
  font-size: 2.8rem;
  line-height: 4.2rem;
  font-weight: bold;
}

.portfolio-view .content .text-wrap .client > p {
  font-size: 2.8rem;
  line-height: 4.2rem;
}

.portfolio-view .content .pc-image {
  margin: 0 3rem;
}

.portfolio-view .content .pc-image > img + img {
  margin-top: 6rem;
}

.grid.three .grid-sizer,
.grid.three .grid-item {
  width: calc(33.333% - 6rem);
  margin: 3rem 3rem 0.5rem;
}

.grid-sizer,
.grid-item {
  width: calc(50% - 6rem);
  margin: 3rem;
}

/* 플로팅 버튼 */
.floating {
  position: fixed;
  right: 3rem;
  bottom: 3rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.floating > a {
  font-size: 0;
  box-shadow: 3.6px 7.2px 7.2px 0px rgba(0, 0, 0, 0.1);
  border-radius: 18rem;
}
.floating .kakao {
  display: inline-block;
  width: 8rem;
  height: 8rem;
  background: url("../img/btn_kakao.png") center center no-repeat;
  background-size: contain;
}

.floating .top {
  display: inline-block;
  width: 8rem;
  height: 8rem;
  background: url("../img/btn_top.png") center center no-repeat;
  background-size: contain;
  margin-top: 1.5rem;
}

/* 체크박스 인풋은 숨김처리 */
.checkbox input {
  display: none;
}

.checkbox {
  display: inline-block;
}

.checkbox .input-wrap {
  display: flex;
  align-items: center;
}

.checkbox .checkbox_text {
  margin-left: 1rem;
}

/* 체크박스 테두리 */
.checkbox_icon {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background-color: transparent;
  /* border: 0.1rem solid red; */
  background-color: #fff;
  position: relative;
  cursor: pointer;
}

/* 체크박스 가상요소 */
.checkbox_icon::before,
.checkbox_icon::after {
  content: "";
  display: inline-block;
  width: 0.3rem;
  height: 0;
  background-color: #f16719;
  position: absolute;
  transform-origin: left top;
}

/* 가상요소 before */
.checkbox_icon::before {
  top: 9px;
  left: 2px;
  transform: rotate(-45deg);
}

/* 가상요소 after  */
.checkbox_icon::after {
  top: 16px;
  left: 9px;
  transform: rotate(-135deg);
}

/* 체크되었을 때 테투리 설정 */
.checkbox input:checked + .checkbox_icon {
  border-color: #f16719;
}

/* 체크되었을 때 가상요소 before */
.checkbox input:checked + .checkbox_icon::before {
  height: 10px;
  transition: all 0.15s ease;
}

/* 체크되었을 때 가상요소 after */
.checkbox input:checked + .checkbox_icon::after {
  height: 20px;
  transition: all 0.15s ease 0.15s;
}

#ani_arrow {
  position: fixed;
  bottom: 200px;
  right: 30px;
  width: 150px;
  height: 150px;
  z-index: 999;
}

@media (max-width: 1440px) {
  .container-main section.top {
    padding-top: 6rem;
    height: 64rem;
  }
  .container-main section.top::after {
    height: 52rem;
  }
  .container-main section.top > ul > li > h2 {
    font-size: 8.4rem;
  }
  .container-main section.top > ul > li > h2::after {
    right: -3rem;
    bottom: 1.7rem;
    width: 1.6rem;
    height: 1.6rem;
  }
  .container-main section .swiper-button {
    top: 24rem;
  }

  .container-main section .swiper-button .swiper-button-prev {
    width: 4.8rem;
    height: 4.8rem;
    background-size: 4.8rem 4.8rem;
  }

  .container-main section .swiper-button .swiper-button-next {
    width: 4.8rem;
    height: 4.8rem;
    background-size: 4.8rem 4.8rem;
    margin-left: 1.2rem;
  }

  .container-main section.top > ul > li > .content {
    margin-top: 17rem;
  }

  .container-main section.top > ul > li > .content .thumb img {
    width: 39.2rem;
    height: 29.2rem;
    border-radius: 1rem;
  }
  .container-main section.top > ul > li > .content .descript h3 {
    font-size: 1.9rem;
    line-height: 3rem;
  }

  .container-main section.skill {
    margin-top: 7rem;
  }

  footer {
    margin-top: 20rem;
  }

  footer > ul {
    display: block;
  }
  footer > ul > li:nth-of-type(2) {
    margin: 6rem 0 0;
  }
}
