.home-services {
  position: relative;
  &::before, &::after {
    content: "";
    width: 113.75%;
    min-width: 80rem;
    aspect-ratio: 1920 / 785;
    position: absolute;
    background-image: url(/system_panel/uploads/images/grad-band.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  
  &::before {
    transform: rotate(202deg);
    top: 6rem;
    left: -9%;
  }
  &::after {
    bottom: 16rem;
    left: -9%;
  }
}

.home-profile-image {
  aspect-ratio: 5 / 7;
  max-width: 18.75rem;
  width: 100%;
  align-self: center;
  
  & img {
    mask-image: url(/system_panel/uploads/images/home-profile-mask.png);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  @media (min-width: 1024px) {
    flex: 1 0 0%;
    aspect-ratio: unset;
    max-width: 37.5rem;
    align-self: stretch;
  }
}

.home-profile-dec {
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 3.75rem;
  line-height: 0.92;
  white-space: nowrap;
  
  @media (min-width: 768px) {
    font-size: 6rem;
  }
  @media (min-width: 1024px) {
    font-size: 8rem;
    transform: none;
    top: 2rem;
    left: auto;
    right: -3rem;
  }
  @media (min-width: 1200px) {
    font-size: 10rem;
    transform: none;
    top: 2rem;
    left: auto;
    right: -1rem;
  }
}

.home-profile.swiper {
  overflow: visible;
  & .swiper-pagination {
    position: static;
    
    & .swiper-pagination-progressbar-fill {
      background-color: var(--ink);
    }
  }
  & .swiper-button-prev, & .swiper-button-next {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--ink);
    color: var(--snow);
    border-radius: 9999px;
    margin: 0;
    & svg {
      display: none;
    }
  }
}

.profile-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 1 / 1;
  position: relative;
  padding: 2.5rem 1rem;
  
  @media (min-width: 768px) {
    padding: 3rem 1.5rem;
  }
  @media (min-width: 1200px) {
    padding: 3rem 2rem;
  }

  & .image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  & .contents {
    width: 100%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 -4px 4px rgba(0, 0, 0, 0.08)) drop-shadow(0 12px 12px rgba(0, 0, 0, 0.08)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12)) drop-shadow(0 -8px 8px rgba(0, 0, 0, 0.12)) drop-shadow(0 16px 16px rgba(0, 0, 0, 0.25));
  }
  & .copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform: skewX(-8deg);
    font-weight: 700;
    line-height: 1.25;
    font-size: 0.875rem;
    font-feature-settings: "palt";
    
    & p {
      padding: 0.25rem 0.5rem;
      background-color: var(--snow);
      & + p {
        margin-top: -0.25rem;
      }
    }
    
    @media (min-width: 768px) {
      font-size: 1.125rem;
      & p {
        padding: 0.375rem 0.625rem;
        & + p {
          margin-top: -0.375rem;
        }
      }
    }
    @media (min-width: 1200px) {
      font-size: 1.75rem;
      & p {
        padding: 0.5rem 0.625rem;
        & + p {
          margin-top: -0.5rem;
        }
      }
    }
  }
}

.home-profile-image {
  &.home-concept-image {
    max-width: unset;
    min-width: 37.5rem;
    aspect-ratio: 20 / 19;
  
    @media (min-width: 1024px) {
      max-width: 37.5rem;
      align-self: stretch;
      min-width: unset;
    }
  }
}

.home-profile-dec {
  &.home-concept-dec {
    font-size: 5rem;
    top: 1.25rem;
    @media (min-width: 1024px) {
      font-size: 8rem;
      transform: none;
      top: 1.25rem;
      right: auto;
      left: 12rem;
      color: var(--snow);
      mix-blend-mode: exclusion;
      z-index: 3;
    }
    @media (min-width: 1200px) {
      font-size: 15rem;
      top: -1.75rem;
      right: auto;
      left: 31rem;
    }
  }
}


.karuta {
  & .swiper {
    overflow: visible;
    &:not(.swiper-initialized) {
      & .swiper-slide {
        min-width: 17.5rem;
        width: 17.5rem;
      }
    }
  }
  & .swiper-wrapper {
    transition-timing-function: linear;
  }
  & .swiper-slide {
    container-type: inline-size;
  }
  & .item {
    aspect-ratio: 7 / 10;
    position: relative;
    background-image: url(/system_panel/uploads/images/bg-paper.jpg);
    box-shadow: var(--elevation-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 33.57142857cqw;
    transition-property: opacity, transform;
    transition-timing-function: ease;
    transition-duration: 250ms;
    &:hover {
      text-decoration: none;
    }
  }
  & .backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
  }
  & .initial {
    position: absolute;
    top: 7.14285714cqw;
    right: 7.14285714cqw;
    width: 21.42857143cqw;
    line-height: 21.42857143cqw;
    background-color: var(--red);
    color: var(--snow);
    border-radius: 9999px;
    text-align: center;
    font-size: 12.85714286cqw;
    font-weight: 700;
  }
  & .body {
    writing-mode: vertical-rl;
    line-height: 1.5;
    letter-spacing: 0.12em;
    font-weight: 700;
    font-size: 8.57142857cqw;
    z-index: 2;
    position: relative;
  }
}

.karuta-dec {
  position: absolute;
  bottom: 0.625rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 3.125rem;
  line-height: 0.92;
  white-space: nowrap;
  
  @media (min-width: 768px) {
    font-size: 6rem;
  }
  @media (min-width: 1024px) {
    font-size: 8rem;
    bottom: -0.625rem;
  }
  @media (min-width: 1200px) {
    font-size: 15rem;
  }
}


.home-hero {
  position: relative;
  min-height: clamp(37.5rem, 100dvh, 75rem);
  
  & .logo {
    width: 10.9375rem;
    
    @media (min-width: 768px) {
      width: 16.25rem;
    }
  }
  & .contents {
    filter: drop-shadow(0 -4px 4px rgba(0, 0, 0, 0.08)) drop-shadow(0 12px 12px rgba(0, 0, 0, 0.08)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12)) drop-shadow(0 -8px 8px rgba(0, 0, 0, 0.12)) drop-shadow(0 16px 16px rgba(0, 0, 0, 0.25));
  }
}

.home-news {
  border-radius: 1.5rem;
  box-shadow: var(--elevation-1);
  background-color: var(--snow);
  max-width: 37.5rem;
  margin-inline: auto;
  width: 100%;
  padding: 1rem;
  
  @media (min-width: 768px) {
    padding: 1.5rem 2rem;
  }
  @media (min-width: 1024px) {
    max-width: 57.5rem;
    padding: 1rem 1rem 1rem 2.5rem;
    border-radius: 9999px;
  }
}

.home-hero {
  & .backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.2;
    
    & .swiper-rtl {
      transform: rotate(4.07deg) translateX(-50%);
      width: 150%;
      position: absolute;
      left: 50%;
      top: 6%;
    }
    & .swiper-ltr {
      transform: rotate(-3.65deg) translateX(-50%);
      width: 125%;
      position: absolute;
      left: 50%;
      bottom: 18%;
    }
    @media (min-width: 768px) {
      & .swiper-rtl {
      }
      & .swiper-ltr {
        bottom: 24%;
      }
    }
    @media (min-width: 1024px) {
      & .swiper-rtl {
        top: 12%;
      }
      & .swiper-ltr {
        bottom: 18%;
      }
    }
  }
  & .swiper {
    & .swiper-wrapper {
      transition-timing-function: linear;
    }
    & .swiper-slide {
      position: relative;
      &::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background-color: #1424AD;
        opacity: 0.25;
      }
      & img {
        width: 100%;
      }
    }
  }
}



