/* Breakpoints (디자인 가이드 기준)
  - mobile: ~767px
  - tablet: 768px ~ 1199px
  - desktop: 1200px ~
*/

:root {
  /* background colors */
  --color-bg-white: #fff;
  --color-bg-dimmed: rgba(0, 0, 0, 0.75);
  --color-bg-gradient-start: #e3ecff;
  --color-bg-gradient-end: #edf0f6;
  --color-bg-topNavi: rgba(227, 236, 255, 0.9);
  --color-surface-secondary: #150f96;

  /* surface */
  --color-surface-card-white: #e3ecff;
  --color-surface-form-disabled: #e2e8f0;

  /* border */
  --color-border-focus: #150f96;
  --color-border-default: #e2e8f0;
  --color-border-error: #e41913;

  /* Text Colors*/
  --color-text-white: #ffffff;
  --color-text-strong: #020618;
  --color-text-title: #020618;
  --color-text-body: #1f2732;
  --color-text-caption: #45556c;
  --color-text-state-disabled: #9aa5b3;
  --color-text-state-selected: #150f96;
  --color-text-highlighted: #ff0198;
  --color-text-warning: #ffb617;
  --color-text-success: #00a155;
  --color-text-danger: #e41913;
  --color-icon-point: #ff0198;

  /* Button Colors */
  --color-btn-primary: #150f96;
  --color-btn-primary-hover: #100b7e;
  --color-btn-primary-active: #0a0755;

  --color-btn-secondary: #fff;
  --color-btn-secondary-border: #64748e;
  --color-btn-secondary-hover: #f8fafc;
  --color-btn-secondary-active: #f1f5f9;

  --color-btn-: #e2e8f0;

 /* 0701 font-family 수정 */
  /* font */
  --font-family-base: "LINASans", sans-serif;

  --font-family-point: "Jalnan2", "LINASans", sans-serif;
  /* //0701 font-family 수정 */
    'Noto Sans KR', sans-serif;

  /* 잘난체 padding-top 추가 적용  */
  --padding-top-20: 0.2rem;
  --padding-top-30: 0.3rem;
  --padding-top-40: 0.4rem;

  /* Font Weight */
  --font-weight-medium: 500;
  --font-weight-extrabold: 700;

  /* Font-size */
  /* display */
  --display-01-pc: 9.6rem;
  --display-01-mo: 4rem;

  --display-large-pc: 4.8rem;
  --display-large-mo: 3.2rem;

  --display-small-pc: 4rem;
  --display-small-mo: 2.8rem;

  /* Title */
  --title-h1-pc: 5.6rem;
  --title-h1-mo: 3.2rem;

  --title-h2-pc: 4rem;
  --title-h2-mo: 2.2rem;

  --title-h3-pc: 3rem;
  --title-h3-mo: 2rem;

  --title-h4-pc: 2.6rem;
  --title-h4-mo: 1.8rem;

  --title-h5-pc: 2rem;
  --title-h5-mo: 1.6rem;

  /* Body */
  --body-large-pc: 3rem;
  --body-large-mo: 2rem;

  --body-medium-pc: 1.8rem;
  --body-medium-mo: 1.6rem;

  --body-small-pc: 1.6rem;
  --body-small-mo: 1.4rem;

  --caption-pc: 1.4rem;
  --caption-mo: 1.3rem;

  /* Paragraph */
  --p-pc: 1.8rem;
  --p-mo: 1.6rem;

  --font-size-h2-pc: 4rem;
  --font-size-h2-mo: 2.4rem;

  --font-size-h3-pc: 3rem;
  --font-size-h3-mo: 2rem;

  --font-size-h4-pc: 2.6rem;
  --font-size-h4-mo: 1.8rem;

  --font-size-h5-pc: 2.4rem;
  --font-size-h5-mo: 1.8rem;

  /* shadow */
  --color-shadow-20: rgb(227, 236, 255);
  --color-shadow-selected: rgb(227, 236, 255);
}

/* =========================================================
RESET
========================================================= */
/* root font */
html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

/* body base */
body {
  min-height: 100vh;
  font-family: var(--font-family-base); /* pretendard*/
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.5;
  word-break: keep-all;
  color: var(--color-text-body);
}
/* 보더박스 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* margin reset */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

a,
address {
  text-decoration: none;
  color: inherit;
  font-style: normal;
}

a:hover,
a:focus {
  text-decoration: none;
}

.blind {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
}
.pc-only {
  display: block;
}
.mo-only {
  display: none;
}

/* 
모바일 ~ 767px 
*/
@media screen and (max-width: 767px) {
  html {
    font-size: 62.5%;
  }
  .pc-only {
    display: none;
  }
  .mo-only {
    display: block;
  }
}

/*
태블릿 768px ~ 1199px
 */
@media (min-width: 768px) and (max-width: 1199px) {
  .pc-only {
    display: block;
  }
  .mo-only {
    display: none;
  }
  html {
    font-size: 50%;
  }
}

/* 갤럭스 폴더 폰 */
@media screen and (max-width: 359px) {
  .pc-only {
    display: block;
  }
  .mo-only {
    display: none;
  }
  html {
    font-size: 50%;
  }
}
/* =========================================================
TYPOGRAPHY
========================================================= */
/* Pretendard Regular */
@font-face {
  font-family: 'LINASans';
  src: url('/resources/front/fonts/Pretendard/woff2/LINASans-Light.woff2') format('woff2'),
   		 url('/resources/front/fonts/Pretendard/woff/LINASans-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LINASans';
  src: url('/resources/front/fonts/Pretendard/woff2/LINASans.woff2') format('woff2'),
    	url('/resources/front/fonts/Pretendard/woff/LINASans.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LINASans';
  src: url('/resources/front/fonts/Pretendard/woff2/LINASans-Bold.woff2') format('woff2'),
    url('/resources/front/fonts/Pretendard/woff/LINASans-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jalnan2';
  src: url('/resources/front/fonts/Jalnan2/Jalnan2TTF.woff2') format('woff');
  font-style: normal;
  font-display: swap;
}

/* prettier-ignore */
h1, h2, h3, h4, h5, h6 { font-weight: 400; }

/* prettier-ignore */
strong { font-weight: 400; }
b {
  font-weight: 700;
}
/* prettier-ignore */
em, i { font-style: normal; }

/* pc */
/* p {
  font-size: var(--p-pc);
} */

/* 밑줄 스타일 */
.highlighter-blue,
.highlighter-skyblue {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.highlighter-blue::after {
  content: '';
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: -0.04em;
  height: 2.4rem;
  border-radius: 999px;
  background-color: rgba(21, 15, 150, 0.16);
  z-index: -1;
}

.highlighter-skyblue::after {
  content: '';
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: -0.04em;
  height: 2.4rem;
  border-radius: 999px;
  background-color: rgba(1, 193, 214, 0.16);
  z-index: -1;
}

/* 모바일 */
@media screen and (max-width: 767px) {
  .highlighter-blue::after {
    bottom: -0.08em;
    height: 1.6rem;
  }
  .highlighter-skyblue::after {
    bottom: -0.08em;
    height: 1.6rem;
  }
}

/* =========================================================
   MEDIA
========================================================= */
/* prettier-ignore */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  border: 0;
}

/* =========================================================
   FORM
========================================================= */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

input[type='search'] {
  appearance: none;
}

/* =========================================================
   TABLE
========================================================= */

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: middle;
}

/* =========================================================
   motion
========================================================= */
:root {
  --motion-duration: 1s;
  --motion-duration-late: 2s;
  --motion-duration-fast: 0.5s;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-distance-sm: 2rem;
  --motion-distance-md: 4rem;
  --motion-distance-lg: 10rem;
  --motion-scale-sm: 0.6;
  --motion-delay-step: 0.12s;
}

/* 모션 공통 */
.motion,
.motion-item {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease);
}

.motion--late {
  transition-duration: var(--motion-duration-late);
}

/* 등장 완료 */
.motion.is-show,
.motion-item.is-show {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* fade up */
.fade-up {
  transform: translate3d(0, var(--motion-distance-md), 0);
}

.fade-up--lg {
  transform: translate3d(0, var(--motion-distance-lg), 0);
}

/* fade in */
.fade-in {
  transform: translate3d(0, 0, 0);
}

/* scale in */
.scale-in {
  transform: scale(var(--motion-scale-sm));
  transition-duration: 0.8s;
  opacity: 1;
}

/* slide left */
.slide-left {
  transform: translate3d(var(--motion-distance-md), 0, 0);
}

/* slide right */
.slide-right {
  transform: translate3d(calc(var(--motion-distance-md) * -1), 0, 0);
}

/* 약하게 빠른 버전 */
.motion--fast,
.motion--fast.motion-item {
  transition-duration: var(--motion-duration-fast);
}

/* delay 유틸 */
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
.delay-5 {
  transition-delay: 0.5s;
}
.delay-6 {
  transition-delay: 0.6s;
}
.delay-8 {
  transition-delay: 0.8s;
}
.delay-10 {
  transition-delay: 1s;
}

/* stagger 그룹 */
.motion-group.stagger .motion-item:nth-child(1) {
  transition-delay: calc(var(--motion-delay-step) * 0);
}
.motion-group.stagger .motion-item:nth-child(2) {
  transition-delay: calc(var(--motion-delay-step) * 2);
}
.motion-group.stagger .motion-item:nth-child(3) {
  transition-delay: calc(var(--motion-delay-step) * 4);
}
.motion-group.stagger .motion-item:nth-child(4) {
  transition-delay: calc(var(--motion-delay-step) * 6);
}
.motion-group.stagger .motion-item:nth-child(5) {
  transition-delay: calc(var(--motion-delay-step) * 8);
}
.motion-group.stagger .motion-item:nth-child(6) {
  transition-delay: calc(var(--motion-delay-step) * 10);
}
.motion-group.stagger .motion-item:nth-child(7) {
  transition-delay: calc(var(--motion-delay-step) * 12);
}
.motion-group.stagger .motion-item:nth-child(8) {
  transition-delay: calc(var(--motion-delay-step) * 14);
}
.motion-group.stagger .motion-item:nth-child(9) {
  transition-delay: calc(var(--motion-delay-step) * 16);
}
.motion-group.stagger .motion-item:nth-child(10) {
  transition-delay: calc(var(--motion-delay-step) * 18);
}

/* 접근성 - 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  .motion,
  .motion-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
