﻿@charset "utf-8";

@font-face {
  font-family: 'Pretendard-Regular';
  src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'JSArirang-Regular';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/JSArirang-RegularA1.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

a,
p,
h2,
h3,
h4,
li {
  font-family: 'Pretendard-Regular';
}

h2 {
  letter-spacing: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

ul,
ol,
li {
  list-style: none;
}

body {
  width: 100%;
  overflow-x: hidden;
  margin: 0 auto;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
}

/*스크롤 다운*/
@keyframes move {
  0% {
    transform: translate(-50%, 10px);
    opacity: 0;
  }

  50% {
    transform: translate(-50%, 40px);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 80px);
    opacity: 0;
  }
}

@keyframes fill {
  0% {
    width: 0%;
    height: 1px;
  }

  50% {
    width: 100%;
    height: 1px;
  }

  100% {
    width: 100%;
    height: 100%;
    background: #000;
  }
}

/*nav*/
.nav h2 {
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: #000;
  font-family: 'Pretendard-Regular';
}

.nav ul {
  display: flex;
  align-items: center;
}

.nav ul li {
  display: inline-block;
}

.nav ul li a {
  color: #000;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-left: 50px;
  font-weight: 500;
  font-family: 'Pretendard-Regular';
  padding: 5px 20px;
  transition: all 0.2s ease;
}

.nav ul li a,
.nav ul li a:after,
.nav ul li a:before {
  transition: all .5s;
}

.nav.stroke ul li a,
.nav.fill ul li a {
  position: relative;
}

.nav.stroke ul li a:after,
.nav.fill ul li a:after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 0%;
  content: '.';
  color: transparent;
  background: #fff;
  height: 1px;
}

.nav.stroke ul li a:hover:after {
  width: 100%;
}

.nav.fill ul li a {
  transition: all 0.5s;
}

.nav.fill ul li a:after {
  text-align: left;
  content: '.';
  margin: 0;
  opacity: 0;
}

.nav.fill ul li a:hover {
  color: #fff;
  z-index: 1;
}

.nav.fill ul li a:hover:after {
  z-index: -10;
  animation: fill 0.8s forwards;
  -webkit-animation: fill 0.8s forwards;
  -moz-animation: fill 0.8s forwards;
  opacity: 1;
}

/*nav click*/
.nav_active {
  background: #000 !important;
  color: #fff !important;
}

/*top btn*/
#top-btn {
  display: inline-block;
  background-color: #000;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border-radius: 2px;
  position: fixed;
  bottom: 4%;
  right: 2%;
  transition: background-color .3s, opacity .5s, visibility .5s;
  opacity: 0;
  visibility: hidden;
  z-index: 9;
}

#top-btn::after {
  content: "\f077";
  font-family: FontAwesome;
  font-weight: normal;
  font-style: normal;
  font-size: 2em;
  color: #fff;
}

#top-btn:hover {
  cursor: pointer;
  background-color: #99dff9;
}

#top-btn.show {
  opacity: 1;
  visibility: visible;
}