@import url(./reset.css);

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

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

/* 두줄, 세줄 ... 처리 */
.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%;
  margin: 0 auto;
  padding: 0 3rem;
}

.container-main {
  width: 100%;
}

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

.container-main nav.open {
  height: 100vh;
}

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

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

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

.container-main nav.open .menu {
  display: block;
  position: absolute;
  width: 100%;
  top: 10rem;
  left: 0;
  padding-left: 3rem;
}

.container-main nav.open .menu > a {
  display: block;
  color: #fff;
  font-size: 2.2rem;
  line-height: 5rem;
}

.container-main nav .btn-menu {
  position: relative;
  right: -0.6rem;
  display: inline-block;
  width: 4rem;
  height: 4rem;
  background: url("../img/btn_menu_mo.png") center center no-repeat;
  background-size: contain;
  border: 0;
  margin-left: auto;
}

.container-main nav.open .btn-menu {
  background: url("../img/btn_menu_close_mo.png") center center no-repeat;
  background-size: contain;
}

.container-main section.top {
  position: relative;
  padding: 6rem 0 0;
  height: 56rem;
  overflow: hidden;
}

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

/* 상단영역 */
.container-main section.top > ul {
  position: relative;
}
.container-main section.top > ul > li > h2 {
  position: relative;
  display: inline-block;
  font-size: 4rem;
  font-weight: bold;
  color: #fff;
}
.container-main section.top > ul > li > h2 span {
  font-weight: bold;
}

.container-main section.top > ul > li > h2 .Typewriter__cursor {
  color: #0083de;
}

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

.container-main section .swiper-button {
  display: none;
}

.container-main section > ul > li > .content {
  position: absolute;
  top: 7rem;
  display: flex;
  cursor: pointer;
  flex-direction: column;
}

.container-main section.top > ul > li > .content .thumb {
  order: 2;
  flex: none;
  margin-top: 6rem;
}

.container-main section.top > ul > li > .content .thumb img {
  width: 28rem;
  height: 21rem;
  border-radius: 0.8rem;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
}

.container-main section.top > ul > li > .content .descript {
  order: 1;
  padding: 1.8rem 0 0 0;
}

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

.container-main section.top > ul > li > .content .descript .btn-project {
  position: relative;
  display: inline-block;
  width: 14.6rem;
  height: 3.2rem;
  border: 0.1rem solid #fff;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.2rem;
  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: 3.6rem;
  height: 3.2rem;
  background-color: #fff;
  background: url("../img/btn_project_arrow.png") center center no-repeat;
  background-size: contain;
}

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

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

.container-main section.skill > .rolling-list ul {
  display: flex;
  flex-wrap: nowrap;
  flex: none;
  padding-right: 1.8rem;
}
.container-main section.skill > .rolling-list ul > li + li {
  margin-left: 1.8rem;
}
.container-main section.skill > .rolling-list ul > li img {
  width: 6.2rem;
  height: 6.2rem;
  box-shadow: 0px 1.78683px 13.4012px 0px rgba(0, 0, 0, 0.1);
  border-radius: 0.6rem;
}

/* 포트폴리오 */
.container-main section.portfolio {
  padding-top: 10rem;
  padding-bottom: 12rem;
}
.container-main section.portfolio .text-wrap > h2 {
  font-size: 2rem;
  line-height: 3.8rem;
}
.container-main section.portfolio .text-wrap > p {
  margin-top: 0rem;
  font-size: 2.6rem;
  line-height: 3.4rem;
  font-weight: bold;
}

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

.container-main section.portfolio > ul > li {
  position: relative;
  width: 100%;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.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: 2rem;
  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.3s;
}

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

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

footer > ul {
  display: block;
}

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

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

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

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

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

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: 2rem;
}

footer > ul > li:nth-of-type(2) > article > input {
  display: block;
  width: 100%;
  height: 4rem;
  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: 1.6rem;
}

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

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

footer > ul > li:nth-of-type(2) .btn-footer-project {
  display: inline-block;
  margin-top: 5rem;
  width: 17rem;
  height: 4rem;
  line-height: 3.8rem;
  background-color: #fff;
  color: #082142;
  font-size: 1.4rem;
  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: 2rem;
  right: 2rem;
  width: 3.6rem;
  height: 3.6rem;
  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: 8rem 3rem;
  text-align: center;
}

.portfolio-view .content .text-wrap {
  margin: 0 0 6rem;
  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: 2.8rem;
  line-height: 3.2rem;
  font-weight: bold;
}

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

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

.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: 2rem;
  font-size: 1.4rem;
  line-height: 2.2rem;
}

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

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

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

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

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

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

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

.grid .grid-sizer,
.grid-item {
  width: calc(50% - 1rem);
  margin: 0 0.5rem 0.5rem;
}

/* 플로팅 버튼 */
.floating {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  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: 7rem;
  height: 7rem;
  background: url("../img/btn_kakao.png") center center no-repeat;
  background-size: contain;
}

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

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

.checkbox {
  display: inline-block;
}

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

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

/* 체크박스 테두리 */
.checkbox_icon {
  display: inline-block;
  width: 1.7rem;
  height: 1.7rem;
  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: 140px;
  right: 15px;
  width: 120px;
  height: 120px;
  z-index: 999;
}
