/* 사이트 전역에 걸쳐 공통으로 적용되는 CSS 파일 */

:root {
  /* font */
  --gray-text: #adadad;

  /* z-index */
  --header-z-index: 99999;
  --overlay-z-index: 999;
  --gnb-z-index: 99999;
  --form-modal: 99999;
  --privacy-modal: 999999;

  /* color */
  --background-black: #16151b;
  --background-white: #f7f8f9;
  --primary-color: #2f66ea;
}

/* font 설정 */
@font-face {
  font-family: "Pretendard";
  font-weight: 100;
  font-style: normal;
  src: url("../fonts/pretendard/Pretendard-Thin.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  font-weight: 200;
  font-style: normal;
  src: url("../fonts/pretendard/Pretendard-ExtraLight.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  font-weight: 300;
  font-style: normal;
  src: url("../fonts/pretendard/Pretendard-Light.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  font-weight: 400;
  font-style: normal;
  src: url("../fonts/pretendard/Pretendard-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  font-weight: 500;
  font-style: normal;
  src: url("../fonts/pretendard/Pretendard-Medium.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  font-weight: 600;
  font-style: normal;
  src: url("../fonts/pretendard/Pretendard-SemiBold.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  font-weight: 700;
  font-style: normal;
  src: url("../fonts/pretendard/Pretendard-Bold.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  font-weight: 800;
  font-style: normal;
  src: url("../fonts/pretendard/Pretendard-ExtraBold.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  font-weight: 900;
  font-style: normal;
  src: url("../fonts/pretendard/Pretendard-Black.woff2") format("woff2");
  font-display: swap;
}

body {
  font-family: "pretendard", sans-serif;
  font-weight: 400;
  color: #111;
  letter-spacing: -0.6px;
}

body.notScroll {
  overflow: hidden;
}

img {
  width: 100%;
}

.inner {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.main {
  /* padding-top: 70px; */
}

.btn-open-form-modal,
.btn-go-form {
  padding: 13px 25px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: var(--background-black);
  border-radius: 50px;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--overlay-z-index);
}

.overlay.active {
  display: block;
}

section {
  padding: 80px 0;
}

/* section-header 공통 스타일 */
.section-header {
  margin-bottom: 40px;
}

.section-header__name,
.section-header__title,
.section-header__subtitle {
  display: block;
  /* letter-spacing: -0.3px; */
}

.section-header__name {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
  color: var(--gray-text);
}

.section-header__title {
  margin-bottom: 10px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  word-break: normal;
}

.section-header__subtitle {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
}

/* section-header 공통 스타일 반응형 */
@media screen and (max-width: 767px) {
  .section-header__title {
    font-size: 31px;
  }
}

@media screen and (max-width: 586px) {
  .section-header__name,
  .section-header__title,
  .section-header__subtitle {
    text-align: center;
  }

  .section-header__title {
    font-size: 27px;
  }
}

@media screen and (max-width: 430px) {
  .section-header__title {
    font-size: 26px;
  }

  .section-header__subtitle {
    font-size: 16px !important;
  }

  .section-header__name {
    font-size: 17px;
  }
}
