/* 전역 */

:root {
  --main-color: #3e61d4;
  --primary-color: #a7b8f3;
  --secondary-color: #c10007;
  /* --third-color:  */
  --text-color: #333333;
  --max-width: 1080px;
  --max-width-wide: 1440px;
  --nav-height: 100px;
}

@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: "BMDOHYEON";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/BMDOHYEON.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
  font-family: "Pretendard-Regular";
  color: var(--text-color);
}

header {
  position: relative;
  max-width: 100vw;
  width: 100vw;
}

nav {
  max-width: var(--max-width-wide);
  height: var(--nav-height);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

main {
  position: relative;
  min-height: 920px;
  width: 100vw;
}

section {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 10px;
}

article.sub {
  background-color: #fff;
}

footer {
  min-height: 220px;
  width: 100%;
  background-color: var(--text-color);
  margin-top: 100px;
}
footer > section {
  max-width: var(--max-width-wide);
}
footer * {
  color: #fff;
}
button {
  font-family: "Pretendard-Regular";
  color: var(--text-color);
}

a {
  display: inline-block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.sub-font {
  font-family: "Black Han Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.accent-font {
  font-family: "BMDOHYEON";
}

.text-main {
  color: var(--main-color);
}
.text-primary {
  color: var(--primary-color);
}
.text-secondary {
  color: var(--secondary-color);
}

.text-white {
  color: #ffffff;
}
.text-red {
  color: red;
}
.text-green {
  color: #00aa5a;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

.bold {
  font-weight: 700;
}

.black-18 {
  font-size: 18px;
}

.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 간격 */

.mt16 {
  margin-top: 16px; /* 제목과 내용 사이 간격*/
}

/* 배경 */

.bg-main {
  background-color: var(--main-color);
}

.bg-primary {
  background-color: var(--primary-color);
}
.bg-white {
  background-color: #fff;
}

.bg-third {
  background-color: var(--third-color);
  padding-bottom: 120px;
}

.border-right {
  border-right: 1px solid #ffffff;
}

.border-b {
  border-bottom: 1px solid #dddddd;
}
.main-pt {
  padding-top: 110px;
}

.line-gray {
  color: #e1e1e1;
}

.vh100-border {
  width: 100%;
  border-bottom: 1px solid #e1e1e1;
}

/* flex */
.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: 4px;
}

.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}

.text-shadow {
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.7);
}
/* grid */

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  gap: 12px;
}
/* custom */
.title-m {
  font-weight: 700;
  font-size: 1.8rem;
  padding: 8px 0;
}

.title-l {
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 2.8rem;
}

.title-xl {
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 3.5rem;
}

@media (max-width: 1024px) {
  .grid-5 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .grid-5 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-around;
  }
  .title-m {
    font-size: 1.2rem;
    padding: 8px 0;
  }

  .title-l {
    font-size: 1.8rem;
    line-height: 2.4rem;
  }

  .title-xl {
    font-size: 2.2rem;
    line-height: 2.8rem;
  }
}

@media (max-width: 480px) {
  .title-m {
    font-size: 1rem;
    padding: 8px 0;
  }

  .title-l {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .title-xl {
    font-size: 1.8rem;
    line-height: 2.2rem;
  }
}
