.ani {
  transition: all 1s;
}
.ani.down {
  transform: translateY(-80px);
}
.ani.up {
  transform: translateY(80px);
}
.ani.left {
  transform: translateX(80px);
}
.ani.right {
  transform: translateX(-80px);
}
.ani.opacity {
  opacity: 0;
}
.ani.off {
  position: relative;
}
.ani.off::after {
  content: "";
  display: block;
  background: var(--color-white);
  position: absolute;
  top: 0;
  bottom: 0;
  transition: all 0.8s ease;
  width: 100%;
  height: 100%;
}
.ani.off.off-left::after {
  left: 0;
}
.ani.off.off-right::after {
  right: 0;
}
.ani.on.down, .ani.on.up {
  transform: translateY(0);
}
.ani.on.left, .ani.on.right {
  transform: translateX(0);
}
.ani.on.opacity {
  opacity: 1;
}
.ani.on.off::after {
  width: 0;
}

.color-m {
  color: var(--color-main) !important;
}

.redhat {
  font-family: var(--font-redhat) !important;
}

.icon img {
  max-height: 100%;
}

.hyphen {
  display: flex;
  column-gap: 5px;
}
.hyphen::before {
  content: "-";
  flex-shrink: 0;
}

.plus-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: relative;
  transition: all 0.6s var(--slow);
}
.plus-circle span {
  display: block;
  background: var(--color-white);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.plus-circle span:first-child {
  width: 12px;
  height: 2px;
}
.plus-circle span:last-child {
  width: 2px;
  height: 12px;
}
.plus-circle.color {
  background: var(--color-main);
}
.plus-circle.gray {
  background: #ddd;
}

.button {
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  color: var(--color-gray);
  position: relative;
  transition: all 0.6s;
}
.button::after {
  content: "";
  display: block;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border: 2px solid var(--color-border);
  border-radius: 100px;
  pointer-events: none;
  transition: all 0.6s;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.button.padding {
  display: inline-flex;
  font-weight: 600;
  font-size: 2.1rem;
  padding: 20px 100px;
}
.button.form {
  display: flex;
  width: 395px;
  height: 80px;
  font-weight: 700;
  font-size: 2rem;
}
.button:hover, .button.on {
  background: var(--color-main);
  color: var(--color-white);
}
.button:hover::after, .button.on::after {
  border-color: var(--color-main);
}

.shrinkable {
  border-radius: 20px;
  padding: 50% 0;
  position: relative;
  transition: all 0.4s var(--slow);
}
.shrinkable * {
  transition: all 0.4s var(--slow);
}
.shrinkable::before,
.shrinkable .inner {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.shrinkable::before {
  content: "";
  display: block;
  background: #f8f8f8;
  border-radius: 20px;
  z-index: -1;
  transition: all 0.4s var(--slow);
}
.shrinkable:hover::before {
  width: 92.105%;
  height: 92.105%;
  background: var(--color-main);
}
.shrinkable:hover * {
  color: var(--color-white) !important;
}
.shrinkable:hover .icon {
  filter: brightness(0) invert(1);
}

.tab-title {
  display: flex;
  flex-direction: column;
}
.tab-title li {
  width: 100%;
}
.tab-title li button {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.tab-title li button::before {
  content: "";
  display: block;
  width: 84%;
  height: 100%;
  background: transparent;
  transition: all 0.6s var(--slow);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.tab-title li span {
  display: flex;
  align-items: center;
  column-gap: 10px;
  color: var(--color-gray);
  font-weight: 700;
  position: relative;
  transform: translateX(-15px);
  transition: all 0.6s var(--slow);
}
.tab-title li span::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  background: var(--color-white);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(15px);
  transition: all 0.6s var(--slow);
}
.tab-title li .angle {
  width: 8px;
  height: 13px;
  transition: all 0.6s var(--slow);
  filter: brightness(0) invert(1);
}
.tab-title li:hover button::before, .tab-title li.on button::before {
  width: 100%;
  background: var(--color-main);
}
.tab-title li:hover span,
.tab-title li:hover span::before, .tab-title li.on span,
.tab-title li.on span::before {
  transform: translateX(0);
}
.tab-title li:hover span, .tab-title li.on span {
  color: var(--color-white);
}
.tab-title li:hover span::before, .tab-title li.on span::before {
  opacity: 1;
}
.tab-title li:hover .angle, .tab-title li.on .angle {
  transform: translateX(0) !important;
}

.popup {
  width: 100%;
  z-index: 3;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.popup .inner {
  width: 100%;
  background: var(--color-white);
  border-radius: 20px;
  position: relative;
}
.popup .close {
  width: 27px;
  height: 27px;
  position: absolute;
  top: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.popup .close span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--color-black);
}
.popup .close span:first-child {
  transform: translate(0, 1.5px) rotate(-45deg);
}
.popup .close span:last-child {
  transform: translate(0, -1.5px) rotate(45deg);
}

.sub-contents h3,
.sub-contents h4,
.sub-contents h5 {
  color: #111;
}
.sub-contents h3.center,
.sub-contents h4.center,
.sub-contents h5.center {
  text-align: center;
}
.sub-contents h3 {
  font-size: calc(var(--font78) - 0.4rem);
  font-weight: 700;
}
.sub-contents h3.small {
  font-size: calc(var(--font58) + 0.6rem);
}
.sub-contents h4 {
  font-size: var(--font48);
  font-weight: 700;
}
.sub-contents h4.big {
  font-size: calc(var(--font48) + 0.6rem);
}
.sub-contents h4.small {
  font-size: calc(var(--font48) - 0.6rem);
}
.sub-contents h5 {
  font-size: var(--font32);
  font-weight: 600;
  font-family: var(--font-pretendard);
}
.sub-contents h5.big {
  font-size: calc(var(--font32) + 0.4rem);
}
.sub-contents h5.small {
  font-size: calc(var(--font32) - 0.2rem);
}
.sub-contents p.big, .sub-contents p.small {
  font-weight: 300;
  font-family: var(--font-pretendard);
}
.sub-contents p.big {
  font-size: 2.2rem;
}
.sub-contents p.small {
  font-size: 2rem;
}

@media (max-width: 1200px) {
  .button.form {
    width: auto;
    height: auto;
    padding: 20px 80px;
  }
  .sub-contents p.big {
    font-size: 1.9rem;
  }
  .sub-contents p.small {
    font-size: 1.8rem;
  }
}
@media (max-width: 1024px) {
  .shrinkable:hover::before {
    width: 100%;
    height: 100%;
  }
  .button.padding {
    font-size: 1.9rem;
    padding: 20px 70px;
  }
  .popup .close {
    top: 20px;
    right: 20px;
  }
  .sub-contents h4.big {
    font-size: var(--font48);
  }
  .sub-contents h5.big {
    font-size: var(--font32);
  }
  .sub-contents p.big {
    font-size: 1.8rem;
  }
  .sub-contents p.small {
    font-size: 1.7rem;
  }
}
@media (max-width: 768px) {
  .plus-circle {
    width: 40px;
    height: 40px;
  }
  .button.padding {
    font-size: 1.7rem;
    padding: 15px 40px;
  }
  .popup .close {
    width: 24px;
    height: 24px;
  }
  .sub-contents h4.big, .sub-contents h4.small {
    font-size: var(--font48);
  }
}
@media (max-width: 600px) {
  .button.form {
    font-size: 1.7rem;
    padding: 15px 60px;
  }
  .sub-contents p.big {
    font-size: 1.7rem;
    line-height: 1.6;
  }
  .sub-contents p.small {
    font-size: 1.6rem;
  }
}