:root {
  --basic-text: #222;
  --color-green: #44841a;
}

/* Title */
.tit {
  font-family: "dunkel-sans-expanded", "Pretendard", "Noto Sans KR", sans-serif;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #221e1f;
}

/* 둥켈산스 대신 본문 서체를 쓰는 제목 */
.tit-pre {
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-weight: 700;
}

.tit-xxl {
  font-size: 5rem;
  line-height: 1.3;
}

.tit-xl {
  font-size: 3.5rem;
  line-height: 1.3;
}

.tit-l {
  font-size: 2.75rem;
  line-height: 1;
}

.tit-m {
  font-size: 1.5rem;
  line-height: 1;
}

.tit-s {
  font-size: 1.25rem;
  line-height: 1.3;
}

.tit-group > * + * {
  margin-top: calc(20 * var(--u));
}

/* Text Color */
.txt-white {
  color: #fff;
}

.txt-green {
  color: var(--color-green);
}

/* Button */
.btn-round {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(999 * var(--u));
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-round::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: calc(999 * var(--u));
  background: var(--color-green);
}

.btn-round:hover,
.btn-round:focus-visible {
  transform: scale(1.06);
}

.btn-round:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .btn-round {
    transition: none;
  }

  .btn-round:hover,
  .btn-round:focus-visible {
    transform: none;
  }
}

.btn-crumb {
  position: absolute;
  width: 0.32em;
  height: 0.28em;
  margin: -0.14em 0 0 -0.16em;
  background: var(--color-green);
  opacity: 0;
  pointer-events: none;
}

.btn-crumb:nth-of-type(1) {
  --rot: 200deg;
  width: 0.32em;
  height: 0.28em;
  clip-path: polygon(10% 20%, 60% 0, 100% 35%, 85% 90%, 30% 100%, 0 60%);
}

.btn-crumb:nth-of-type(2) {
  --rot: -240deg;
  width: 0.24em;
  height: 0.22em;
  clip-path: polygon(0 30%, 45% 0, 100% 20%, 90% 75%, 50% 100%, 10% 80%);
}

.btn-crumb:nth-of-type(3) {
  --rot: 260deg;
  width: 0.36em;
  height: 0.3em;
  clip-path: polygon(20% 0, 80% 10%, 100% 60%, 60% 100%, 0 85%, 5% 30%);
}

.btn-crumb:nth-of-type(4) {
  --rot: -180deg;
  width: 0.22em;
  height: 0.24em;
  clip-path: polygon(15% 10%, 70% 0, 95% 45%, 75% 100%, 20% 90%, 0 45%);
}

.btn-crumb:nth-of-type(5) {
  --rot: -220deg;
  width: 0.34em;
  height: 0.3em;
  clip-path: polygon(30% 0, 100% 25%, 85% 80%, 40% 100%, 0 70%, 5% 20%);
}

.btn-crumb:nth-of-type(6) {
  --rot: 190deg;
  width: 0.24em;
  height: 0.2em;
  clip-path: polygon(0 15%, 55% 0, 100% 40%, 80% 100%, 25% 85%);
}

.btn-round:hover .btn-crumb,
.btn-round:focus-visible .btn-crumb,
.btn-round.is-bite .btn-crumb {
  animation-name: crumbFall;
  animation-duration: 0.9s;
  animation-fill-mode: forwards;
}

@keyframes crumbFall {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(0.6);
    animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1);
  }

  35% {
    transform: translate(calc(var(--dx) * 0.6), var(--dy))
      rotate(calc(var(--rot) * 0.4)) scale(1);
    animation-timing-function: cubic-bezier(0.5, 0, 0.8, 0.5);
  }

  75% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(var(--dx), calc(var(--dy) + var(--fall, 1.4em)))
      rotate(var(--rot)) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-crumb {
    display: none;
  }
}

.btn-round-l {
  padding: calc(18 * var(--u)) calc(38 * var(--u));
  font-size: 1.5rem;
}

.btn-round-m {
  padding: calc(16 * var(--u)) calc(40 * var(--u));
  font-size: 1.25rem;
  line-height: 1.25;
}

.show-default {
  display: block !important;
}

.hide-default {
  display: none !important;
}

@media all and (max-width: 1024px) {
  .tit-xxl {
    font-size: 3.5rem;
  }

  .tit-xl {
    font-size: 2.25rem;
  }

  .tit-l {
    font-size: 2.125rem;
  }

  .show-1024 {
    display: block !important;
  }

  .hide-1024 {
    display: none !important;
  }
}

@media all and (max-width: 768px) {
  .tit-xxl {
    font-size: 2.5rem;
  }

  .tit-xl {
    font-size: 2rem;
  }

  .tit-l {
    font-size: 1.75rem;
  }

  .tit-m {
    font-size: 1rem;
  }

  .tit-s {
    font-size: 0.8125rem;
  }

  .btn-round-l {
    padding: calc(10 * var(--u)) calc(18 * var(--u));
    font-size: 0.875rem;
  }

  .btn-round-m {
    padding: calc(16 * var(--u)) calc(40 * var(--u));
    font-size: 1rem;
  }

  .show-768 {
    display: block !important;
  }

  .hide-768 {
    display: none !important;
  }
}

@media all and (max-width: 640px) {
  .show-640 {
    display: block !important;
  }

  .hide-640 {
    display: none !important;
  }
}

@media all and (max-width: 470px) {
  .show-470 {
    display: block !important;
  }
}
