@font-face {
  font-family: 'SEBANG_Gothic_Bold';
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2104@1.0/SEBANG_Gothic_Bold.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NEXON Lv1 Gothic OTF Light';
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv1 Gothic OTF Light.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NEXON Lv1 Gothic OTF Bold';
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv1 Gothic OTF Bold.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

.blog {
  width: 100%;
  background-color: #fffef0;
}

.blog .flex {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  white-space: nowrap;
  text-align: center;
  padding: 100px 0px;
}

.blog .flex h2 {
  font-size: 60px;
  font-family: "SEBANG_Gothic_Bold";
  color: #1a2a5f;
  margin-bottom: 30px;
  line-height: 1.2;
}

.blog .flex h2 span {
  font-size: 60px;
  color: #ff7f00;
  line-height: 1.2;
}

.blog .flex > a {
  font-size: 30px;
  font-weight: bold;
  font-family: "NEXON Lv1 Gothic OTF Light";
  margin-bottom: 70px;
  opacity: 0;
  transition: opacity 1s;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid #cdcdcd;
  padding-bottom: 5px;
}

.blog.on .flex > a {
  opacity: 1;
}

.blog.on .flex > a i {
  font-size: 30px;
  color: #ff7f00;
  margin-left: 10px;
}

.blog .flex > p b {
  font-family: "NEXON Lv1 Gothic OTF Bold";
  font-size: 24px;
}

.blog .flex ul {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 0.9fr 1.1fr;
      grid-template-columns: 0.9fr 1.1fr;
  grid-gap: 50px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.blog .flex ul li:nth-child(1){
  position: relative;
  left: -100px;
  opacity: 0;
  transition: opacity 1s .2s, left 1s .2s;
}
.blog .flex ul li:nth-child(2){
  position: relative;
  right: -100px;
  opacity: 0;
  transition: opacity 1s .2s, right 1s .2s;
}
.blog.on .flex ul li:nth-child(1){
  position: relative;
  left: 0px;
  opacity: 1;
}
.blog.on .flex ul li:nth-child(2){
  position: relative;
  right: 0px;
  opacity: 1;
}

.blog .flex ul li:first-child div {
  background-color: #ff7f00;
  padding: 20px 0px;
  text-align: center;
  border-radius: 70px;
  color: #fff;
}

.blog .flex ul li:first-child div p {
  font-size: 26px;
  font-family: "NEXON Lv1 Gothic OTF Light";
  margin-bottom: 10px;
}

.blog .flex ul li:first-child div h3 {
  font-size: 45px;
  font-family: "SEBANG_Gothic_Bold";
}

.blog .flex ul li:first-child div h3 span {
  color: #fff664;
  font-size: 45px;
}

.blog .flex ul li > .img {
  position: relative;
}

.blog .flex ul li > .img img:last-child {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) scale(0.5);
          transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: opacity .5s 1.2s, transform .5s 1.2s;
}

.blog.on .flex ul li > .img img:last-child{
  -webkit-transform: translate(-50%, -50%) scale(1);
          transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

@media(max-width:1200px){
  .blog .flex h2{
    font-size: 40px;
  }
  .blog .flex h2 span{
    font-size: 40px;
  }
  .blog .flex ul{
    grid-template-columns: 1fr;
  }
  .blog.on .flex ul li:nth-child(1){
    order: 1;
  }
  .blog .flex ul li:first-child div{
    display: inline-block;
    padding: 20px 100px;
  }
}

@media(max-width: 800px){
  .blog .flex h2{
    font-size: 30px;
  }
  .blog .flex h2 span{
    font-size: 30px;
  }
  .blog .flex > p{
    margin-bottom: 40px;
    font-size: 20px;
  }
  .blog .flex > p b{
    font-size: 20px;
  }
}

@media(max-width: 600px){
  .blog .flex h2{
    font-size: 24px;
  }
  .blog .flex h2 span{
    font-size: 24px;
  }
  .blog .flex > p{
    font-size: 16px;
  }
  .blog .flex > p b{
    font-size: 16px;
    display: block;
  }
  .blog .flex ul li > .img img:first-child{
    width: 90%;
  }
  .blog.on .flex ul li > .img img:last-child{
    width: 100%;
  }
  .blog .flex ul li:first-child div{
    width: 100%;
    padding: 20px 0px;
  }
  .blog .flex ul li:first-child div p{
    font-size: 20px;
  }
  .blog .flex ul li:first-child div h3{
    font-size: 40px;
  }
}

@media (max-width:500px) {
  .blog .flex h2{
    font-size: 20px;
  }
  .blog .flex h2 span{
    font-size: 20px;
  }
  .blog .flex ul li:first-child div{
    padding: 20px 15px;
  }
  .blog .flex ul li:first-child div p{
    font-size: 18px;
  }
  .blog .flex ul li:first-child div h3{
    font-size: 30px;
  }
  .blog .flex ul li:first-child div h3 span{
    font-size: 30px;
  }
  .blog .flex > a{
    margin-bottom: 30px;
  }
}

@media (max-width:350px) {
  .blog .flex h2{
    font-size: 18px;
  }
  .blog .flex h2 span{
    font-size: 18px;
  }
}