@import url("./swiper-bundle.min.css");
@import url("./font.css");
@import url("./main.css");

@theme {
  --font-sans: a2z, sans-serif;
  --color-brand-purple: #0E78EB;
  --color-brand-dark-purple: #0B60BD;
  --color-brand-soft-purple: #3B93F0;
  --color-brand-dark: #0F172A;
}

:root {
  --font-sans: 'a2z', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

html,
body {
  font-family: "a2z", sans-serif;
}

.sub-page-header {
  width: 100%;
  padding-top: 56px;
}

@media (min-width: 768px) {
  .sub-page-header {
    padding-top: 80px;
  }
}

.sub-page-header__inner,
.sub-page-contents {
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
  padding-inline: 16px;
}

.sub-page-header__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.sub-page-header__title {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
}

.sub-page-header__title h2 {
  font-size: 20px;
  line-height: 1;
}

.sub-page-header__title p {
  font-size: 18px;
  line-height: 1.4;
}

.sub-page-header__motion {
  display: none;
  width: 100%;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.sub-page-header__smiley {
  width: 128px;
  height: 128px;
}

@media (min-width: 640px) {
  .sub-page-header__inner,
  .sub-page-contents {
    padding-inline: 24px;
  }

  .sub-page-header__title h2 {
    font-size: 36px;
  }

  .sub-page-header__title p {
    font-size: 20px;
    line-height: 1.4;
  }
}

@media (min-width: 768px) {
  .sub-page-header__row {
    flex-direction: row;
  }

  .sub-page-header__title,
  .sub-page-header__motion {
    width: auto;
    flex: 1 1 0;
  }

  .sub-page-header__motion {
    display: flex;
    height: 160px;
  }

  .sub-page-header__smiley {
    width: 130px;
    height: 130px;
  }
}

@media (min-width: 1024px) {
  .sub-page-header__motion {
    height: 208px;
  }

  .sub-page-header__smiley {
    width: 176px;
    height: 176px;
  }
}

@media (min-width: 1024px) {
  .sub-page-header__inner,
  .sub-page-contents {
    padding-inline: 32px;
  }

  .sub-page-header__row {
    padding-block: 40px;
  }

  .sub-page-header__title h2 {
    font-size: 48px;
  }
}

.smiley-eye1 {
  animation: eye1 3s ease-in-out infinite;
  transform-origin: 64px 64px;
}

.smiley-eye2 {
  animation: eye2 3s ease-in-out infinite;
  transform-origin: 64px 64px;
}

.smiley-mouth1 {
  animation: mouth1 3s ease-in-out infinite;
}

.smiley-mouth2 {
  visibility: hidden;
  animation: mouth2 3s ease-in-out infinite;
}

@keyframes eye1 {
  0% {
    transform: rotate(-260deg) translate(0, -56px);
  }
  50%,
  60% {
    animation-timing-function: cubic-bezier(0.17, 0, 0.58, 1);
    transform: rotate(-40deg) translate(0, -56px) scale(1);
  }
  100% {
    transform: rotate(225deg) translate(0, -56px) scale(0.35);
  }
}

@keyframes eye2 {
  0% {
    transform: rotate(-260deg) translate(0, -56px);
  }
  50% {
    transform: rotate(40deg) translate(0, -56px) rotate(-40deg) scale(1);
  }
  52.5% {
    transform: rotate(40deg) translate(0, -56px) rotate(-40deg) scale(1, 0);
  }
  55%,
  70% {
    animation-timing-function: cubic-bezier(0, 0, 0.28, 1);
    transform: rotate(40deg) translate(0, -56px) rotate(-40deg) scale(1);
  }
  100% {
    transform: rotate(150deg) translate(0, -56px) scale(0.4);
  }
}

@keyframes mouth1 {
  0% {
    animation-timing-function: ease-in;
    stroke-dasharray: 0 351.86;
    stroke-dashoffset: 0;
  }
  25% {
    animation-timing-function: ease-out;
    stroke-dasharray: 175.93 351.86;
    stroke-dashoffset: 0;
  }
  50% {
    visibility: visible;
    animation-timing-function: steps(1, start);
    stroke-dasharray: 175.93 351.86;
    stroke-dashoffset: -175.93;
  }
  75%,
  100% {
    visibility: hidden;
  }
}

@keyframes mouth2 {
  0% {
    visibility: hidden;
    animation-timing-function: steps(1);
  }
  50% {
    visibility: visible;
    animation-timing-function: ease-in-out;
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -351.86;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smiley-eye1,
  .smiley-eye2,
  .smiley-mouth1,
  .smiley-mouth2 {
    animation: none;
  }
}
