@font-face {
  font-family: "NanumSquareRound";
  src: url("https://m5-dev.matamath.net/font/NanumSquareRound/NanumSquareRoundOTFR.otf")
      format("opentype"),
    url("https://m5-dev.matamath.net/font/NanumSquareRound/NanumSquareRoundR.ttf")
      format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "NanumSquareRound";
  src: url("https://m5-dev.matamath.net/font/NanumSquareRound/NanumSquareRoundOTFB.otf")
      format("opentype"),
    url("https://m5-dev.matamath.net/font/NanumSquareRound/NanumSquareRoundB.ttf")
      format("truetype");
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "NanumSquareRound";
  src: url("https://m5-dev.matamath.net/font/NanumSquareRound/NanumSquareRoundOTFEB.otf")
      format("opentype"),
    url("https://m5-dev.matamath.net/font/NanumSquareRound/NanumSquareRoundEB.ttf")
      format("truetype");
  font-style: normal;
  font-weight: 800;
}

body {
  font-family: "NanumSquareRound";
  position: relative;
}
.logo {
  position: absolute;
  top: 30px;
  left: 50%;
  z-index: 2;
  transform: translate3d(-50%, 0, 0);
}

#lottieContainer {
  width: 80%;
  max-width: 750px;
  margin: 0 auto 100px;
  padding-top: 92px;
  position: relative;
  left: 8.3%;
  @media screen and (max-width: 767px) {
    left: 0%;
  }
}
/* 링크들 */
.linkBox {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: max-content;
  gap: 60px;
  margin: auto;
  align-items: center;
  justify-content: center;
  max-width: 1080px;
  animation: fadeIn 0.8s ease-in-out;

  @media screen and (max-width: 1080px) {
    margin: 20px;
    gap: 30px;
  }
  @media screen and (max-width: 750px) {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 50px auto;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.serviceLink {
  display: block;
  aspect-ratio: 1;
  background-repeat: no-repeat;
  background-size: 100%;
  transition: all 0.2s ease-in-out;
  @media screen and (max-width: 750px) {
    margin: 0 40px;
  }
}

.es {
  background-image: url("./assets/image/button_es_off.png");
}
.mhs {
  background-image: url("./assets/image/button_mhs_off.png");
}
.ac {
  background-image: url("./assets/image/button_ac_off.png");
}
.es:hover {
  background-image: url("./assets/image/button_es_on.png");
}
.mhs:hover {
  background-image: url("./assets/image/button_mhs_on.png");
}
.ac:hover {
  background-image: url("./assets/image/button_ac_on.png");
}

.nonShow {
  display: none;
}

/* 하단 푸터 */
footer {
  margin: 0 auto;
  padding: 110px 0 40px;
  text-align: center;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 700;
}

div,
address,
dl {
  display: flex;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 795px) {
  div {
    flex-direction: column;
  }
}
@media screen and (max-width: 482px) {
  div {
    gap: 0;
  }
  dl {
    margin: 6px 0 20px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    position: relative;
    left: -25px;
  }
  dt {
    text-align: right;
  }
  dd {
    text-align: left;
  }
}
dl {
  margin-left: 2px;
}
dt,
span {
  color: rgba(0, 0, 0, 0.9);
  font-weight: 800;
  margin: 0 3px 0 4px;
}
dd {
  margin: 0;
}
.email,
address {
  text-decoration: none;
  color: inherit;
  font-style: normal;
  line-height: 1;
}
