@charset "utf-8";

*{margin:0; padding:0;  font-family: 'Noto Sans KR', sans-serif; box-sizing:border-box;}
.pc{display:block;}
.mb{display:none;}

.main-wrap {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-direction: column;
  position:relative;
}
.main-wrap .bg{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: mainvisualFadeIn ease .85s forwards;
  z-index: -1;
}
.main-wrap .bg::before {
  background-image: url(../images/intro_re/bg.png);
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: scale(1.15);
  animation: 3s mainVisual cubic-bezier(0.39, 0.58, 0.57, 1) forwards;
}

@keyframes mainvisualFadeIn {
  to { opacity: 1; }
}
@keyframes mainVisual {
    to { transform: scale(1); }
}

h1.logo {
  margin: 80px 0 60px;
  transition: 1s;
}
h1.logo a,
h1.logo img {display: block;}

.main-title {
  text-align:center;
  line-height: 1;
  color:#FFF;
}
.main-title * {font-family: 'EnjoyStories'}
.main-title strong {
  display: inline-block;
  color:#1aabe1;
  font-size: 6.25rem;
  opacity: 0;
  animation: fade-in 0.8s 0.5s forwards cubic-bezier(0.11, 0, 0.5, 0);
  transition: 1s;
}
.main-title span{
  opacity: 0;
  font-size: 5.6rem;
  color:#45af4e;
  animation: fade-in 0.8s 1s forwards cubic-bezier(0.11, 0, 0.5, 0);
  transition: 1s;
}

@keyframes fade-in {
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.main-card {
  max-width: 1100px;
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  align-items: center;
  margin-top: 3rem;
}
.main-card ul {
  position: relative;
  list-style: none;
  background: #FFF;
  width: 258px;
  height: 286px;
  border-radius: 2rem 2rem 2rem 0;
  padding: 2rem;
  box-shadow: 0px 4px 6.3px 0.7px rgba(4, 30, 13, 0.16);;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  transition: 1s;
}
.main-card ul:nth-child(even) {
  background: #54ba1c;
  color:#FFF;
}
.main-card .card-title,
.main-card .card-body {
  position: relative;
  font-family: 'RidiBatang';
  letter-spacing: -2px;
}
.main-card .card-title {font-size: 26px;}
.main-card ul:nth-child(3) .card-title,
.main-card ul:nth-child(4) .card-title {
  flex-grow: 2;
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 37px;
}
.main-card ul:nth-child(3) .card-title {
  flex-direction: column;
  justify-content: center;
}
.main-card ul:nth-child(3) .card-title small {font-size: 20px;}
.main-card ul:nth-child(3) .card-title::after {top: 1rem !important;}
.main-card .card-body {font-size: 36px;}
.main-card .card-body::after,
.main-card ul:nth-child(3) .card-title::after  {
  content: url(../images/intro_re/i-quotes-green.png);
  position: absolute;
  right: -1.5rem;
  top: -1rem;
}
/* .main-card ul:nth-child(3) .card-title::after {top: 2.75rem;} */

.main-card ul:nth-child(even) .card-body::after,
.main-card ul:nth-child(4) .card-title::after  {
  content: url(../images/intro_re/i-quotes.png);
}
.main-card ul:nth-child(4) .card-title::after{
  position: absolute;
  right: .5rem;
  top: 1.5rem;
}
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}
.card-btn a {
  border: none;
  cursor: pointer;
  border-radius: 30px;
  padding: .5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  width: 180px;
  height: 44px;
  font-family: 'Pretendard';
  font-size: 21px;
  background-color: #54ba1c;
  color: #FFF;
}
.card-btn::after {
  content: url(../images/intro_re/i-arrow.png);
  position: absolute;
  height: 21px;
  right: 61px;
  bottom: 43px;
}
.main-card ul:nth-child(even) .card-btn a {
  background-color: #fff;
  color: #54ba1c;
}

.main-card ul:nth-child(even) .card-btn::after {
  content: url(../images/intro_re/i-arrow-green.png)
}

/* FOOTER */
.main-wrap footer {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color:#FFF;
}
.snswrap {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 5px;
}

.snswrap li a{display: block; width: 50px; height: 50px; text-indent: -9999px;}
.snswrap li.youtube{background: url(/images/intro_re/i-youtube.png) no-repeat;}
.snswrap li.instagram{background: url(/images/intro_re/i-instagram.png) no-repeat;}
.snswrap li.blog{background: url(/images/intro_re/i-blog.png) no-repeat;}

@media all and (max-width:1099px){
  .main-wrap .bg::before {background-image: url(../images/intro_re/bg-tablets.png);}
  h1.logo {margin: 60px 0 25px;}
  .main-title strong {font-size: 4rem;}
  .main-title span{font-size: 3.5rem;}

  .main-card {
    width: 65%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .main-card ul {
    width: 214px;
    height: 241px;    
  }
  .main-card .card-title {font-size: 21px;}
  .main-card .card-body,
  .main-card ul:nth-child(3) .card-title,
  .main-card ul:nth-child(4) .card-title {font-size: 31px;}
  /* .main-card ul:nth-child(3) .card-title::after {top: 1.75rem;} */
  .main-card ul:nth-child(4) .card-title::after{top: .5rem;}
  .card-btn a {
    font-size: 17px;
    width: 151px;
    height: 37px;
  }
  .card-btn::after {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    background: url(../images/intro_re/i-arrow.png) no-repeat center / 41%;
    right: 46px;
    bottom: 42px;
  }
  .main-card ul:nth-child(even) .card-btn::after {
    content: '';
    background: url(../images/intro_re/i-arrow-green.png) no-repeat center / 41%;
  }
  
  .main-wrap footer {
    width:90%;
    bottom: 22px;
    font-size: 14px;
  }
  
}

@media all and (max-width:690px){
  .main-wrap {
    overflow: visible;
    background: url(../images/intro_re/bg-mobile.png) no-repeat center / cover;
    min-height: 770px;
  }

  .main-wrap .bg{display: none;}
  h1.logo a {text-align: center;}  
  h1.logo img {display: inline; width: 70%;}
  .main-title strong {font-size: 3rem;}
  .main-title span{font-size: 2.5rem;}

  .main-card {width: 96%; margin-top: 2rem;}
  .main-card ul {width: 150px; height: 170px; padding: 1.5rem 1rem;}
  .main-card .card-title {font-size: 15px;}
  .main-card .card-body,
  .main-card ul:nth-child(3) .card-title,
  .main-card ul:nth-child(4) .card-title {font-size: 21px;}
  .main-card ul:nth-child(3) .card-title::after {top: 1.75rem;}
  .main-card ul:nth-child(4) .card-title::after{top: .5rem;}

  .main-card .card-body::after,
  .main-card ul:nth-child(3) .card-title::after  {
    content: '';
    background: url(../images/intro_re/i-quotes-green.png) no-repeat center / 50%;
    right: -1.5rem;
    top: -.5rem;
    width: 20px;
    height: 20px;    
  }
  /* .main-card ul:nth-child(3) .card-title::after {top: 1.65rem;} */
  .main-card ul:nth-child(3) .card-title::after {top: 0;}
  .main-card ul:nth-child(even) .card-body::after,
  .main-card ul:nth-child(4) .card-title::after  {
    content: '';
    background: url(../images/intro_re/i-quotes.png) no-repeat center / 50%;  
  }
  .main-card ul:nth-child(4) .card-title::after{
    position: absolute;
    width: 20px;
    height: 20px;
    right: -.5rem;
    top: .75rem;
  }
  .main-card ul:nth-child(3) .card-title small {font-size: 14px;}
  
  .card-btn a {
    font-size: 15px;
    width: 106px;
    height: 26px;
  }
  .card-btn::after {
    background: url(../images/intro_re/i-arrow.png) no-repeat center / 30%;
    right: 29px;
    bottom: 29px;
  }
  .main-card ul:nth-child(even) .card-btn::after {
    content: '';
    background: url(../images/intro_re/i-arrow-green.png) no-repeat center / 30%;
  }
  .main-wrap footer {font-size: 12px;bottom: 10px;}
  .main-wrap .snswrap {scale:.6}

  .pc{display:none;}
  .mb{display:block;}
}

@media (max-height: 820px) and (orientation: landscape) {
  /* @media all and (max-width:1099px)과 유사 */
  .main-wrap{min-height: 750px;}
  .main-wrap .bg::before {background-image: url(../images/intro_re/bg.png);}
  h1.logo {margin: 60px 0 25px;}
  .main-title strong {font-size: 4rem;}
  .main-title span{font-size: 3.5rem;}
  .main-card {
    flex-wrap: nowrap;
  }
  .main-card ul {
    width: 214px;
    height: 241px;    
  }
  .main-card .card-title {font-size: 21px;}
  .main-card .card-body,
  .main-card ul:nth-child(3) .card-title,
  .main-card ul:nth-child(4) .card-title {font-size: 31px;}
  .main-card ul:nth-child(3) .card-title::after {top: 1.75rem;}
  .main-card ul:nth-child(4) .card-title::after{top: .5rem;}
  .card-btn a {
    font-size: 17px;
    width: 151px;
    height: 37px;
  }
  .card-btn::after {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    background: url(../images/intro_re/i-arrow.png) no-repeat center / 41%;
    right: 46px;
    bottom: 42px;
  }
  .main-card ul:nth-child(even) .card-btn::after {
    content: '';
    background: url(../images/intro_re/i-arrow-green.png) no-repeat center / 41%;
  }

  .main-wrap footer {
    width:90%;
    bottom: 22px;
    font-size: 14px;
  }
}

@media (max-height: 430px) and (orientation: landscape) {
  .main-wrap{min-height: 750px;}
  .main-card {scale: 0.8; margin: 0;}
}