*, *::before, *::after {
  min-width: 0px;
  min-height: 0px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--white);
}

#root {
  max-width: 1920px;
  margin: 0 auto;
}

p, h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

img, iframe {
  max-width: 100%;
}

iframe {
  border: none;
  box-shadow: none;
}

a, a:hover {
  color: var(--ink);
}

[id] {
  scroll-margin-top: 3.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.button {
  position: relative;
  appearance: none;
  cursor: pointer;
  box-shadow: none;
  border: 0;
  outline: none;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1.5rem;
  list-style: disc outside none;

  & > p {
    margin: 0;
    display: list-item;
  }
}

.webgene-pagination {
  & ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding: 0;
    margin: 0;

    & li {
      & a {
        display: inline-block;
        width: 3rem;
        line-height: 3rem;
        text-align: center;
        font-family: var(--font-display);
        background-color: var(--white);
      }

      & a:hover {
        text-decoration: none;
        opacity: 0.85;
      }

      &.selected {
        & a {
          background-color: var(--orange);
        }

        & a:hover {}
      }
    }
  }
}

.webgene-no-items {
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
}

.thumbnail {
  position: relative;
  padding-top: 66.6666%;

  & img, &:empty::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  &:empty::before {
    content: "";
    background-image: url("/system_panel/uploads/images/ogp.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
}

.article-body {
  & > p {
    margin: 1em 0;
  }

  & > h1, & > h2, & > h3, & > h4, & > h5, & > h6 {
    margin: 2em 0 1em;
  }

  & > *:first-child {
    margin-top: 0;
  }

  & > *:last-child {
    margin-bottom: 0;
  }

  & a, & a:hover {
    color: var(--blue);
    text-decoration: underline;
  }
}

.backdrop-object {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}



@media screen and (min-width: 1024px) {
  #chatbot-btn {
    transition-property: bottom, left, right, transform;
    transition-duration: 500ms;
    transition-timing-function: ease;
    &.position-bottom-right {
      bottom: 20px !important;
      right: -30px !important;
    }
    &.position-bottom-left {
      bottom: 20px !important;
      right: 100% !important;
      transform: translateX(100%);
    }
    &.position-top-right {
      bottom: 160px !important;
      right: -30px !important;
    }
    &.position-bottom-left {
      bottom: 160px !important;
      right: 100% !important;
      transform: translateX(100%);
    }
  }
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--black);
  border-radius: 0.375rem;
  appearance: none;
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1;
  transition: all 200ms ease;
  
  &:hover {
    text-decoration: none;
  }
  
  &.button--red {
    background-color: var(--red);
    box-shadow: 0 7px 0 0 var(--dark-red), 0 8px 0 0 var(--black);
    color: var(--white);
    
    &:hover {
      color: var(--white);
    }
  }
  
  &.button--blue {
    background-color: var(--blue);
    box-shadow: 0 7px 0 0 var(--dark-blue), 0 8px 0 0 var(--black);
    color: var(--white);
    
    &:hover {
      color: var(--white);
    }
  }
  
  &:active {
    transform: translateY(8px);
    box-shadow: none;
  }
}

.card-shadow {
  box-shadow: 20px 16px 0 0 rgba(0 0 0 / 100%);
  &.card-shadow--orange {
    box-shadow: 20px 16px 0 0 var(--logo-orange);
  }
}

.category-list {
  & .webgene-blog {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;

    & .webgene-item {
      & a {
        display: inline-block;
        padding: 0.75rem 1.5rem;
        line-height: 1;
        font-family: var(--font-display);
        background-color: var(--white);

        &:hover {
          opacity: 0.85;
          text-decoration: none;
        }
      }
    }
  }
}

.blog-list {
  & .webgene-blog {
    display: grid;
    gap: 2rem;
  }
}

.recruit-slider {
  &.swiper {
    overflow: visible;
    
    & .swiper-wrapper {
      transition-timing-function: linear;
    }
  }
  &.swiper:not(.swiper-initialized) {
    & .swiper-wrapper {
      overflow-x: auto;
      display: flex;
    }
    
    & .swiper-slide {
      min-width: 400px;
      width: 400px;
    }
  }
}

@media screen and (min-width: 768px) {
  .blog-list {
    & .webgene-blog {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    & .webgene-pagination {
      grid-column: span 2 / span 2;
    }
  }
}

@media screen and (min-width: 1200px) {
  .blog-list {
    & .webgene-blog {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    & .webgene-pagination {
      grid-column: span 3 / span 3;
    }
  }
}

.staff-images {
  position: relative;
  padding-top: 133.3333%;
  
  & img {
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transition-property: transform, opacity;
  }
  
  & .staff-images__image-1 {
    z-index: 2;
    transition-duration: 600ms;
  }
  & .staff-images__image-2 {
    z-index: 1;
    transform: rotate(6.34deg) scale(1.05);
    transition-duration: 300ms;
  }
  
  &.active {
    & .staff-images__image-1 {
      transform: translate(65%, 120%) rotate(75deg);
      opacity: 0;
    }
    & .staff-images__image-2 {
      transform: none;
    }
  }
}

.blog-label {
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  background-color: var(--ink);
  padding: 0.375rem 0.5rem;
  transform: rotate(8.55deg);
  position: absolute;
  top: -31px;
  right: 8px;
}

.business-contents__image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
}
.business-contents__images {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  & > img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: opacity 500ms ease, visibility 500ms ease;
  }
}

.concept-text--1, .concept-text--3 {
  color: transparent;
  text-stroke: 1px var(--red);
  -webkit-text-stroke: 1px var(--red);
}
.concept-text--2 {
  color: transparent;
  text-stroke: 1px var(--white);
  -webkit-text-stroke: 1px var(--white);
}

.biz-image {
  -webkit-mask-image: url("/system_panel/uploads/images/rect-mask.png");
  -webkit-mask-size: 100% 100%;
  mask-image: url("/system_panel/uploads/images/rect-mask.png");
  mask-size: 100% 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.home-hero {
  height: 800px;
  
  & .swiper {
    &:not(.swiper-initialized) {
      & .swiper-wrapper {
        display: flex;
        overflow-x: auto;
      }
      & .swiper-slide {
        min-width: 100%;
      }
    }
    
    & .swiper-wrapper, & .swiper-slide {
      width: 100%;
      height: 100%;
    }
    & .swiper-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}

.kiku-stamp {
  position: absolute;
  bottom: -32px;
  right: -30px;
  opacity: 0.8;
  height: 100px;
  transform: rotate(21deg);
  transform-origin: center;
}

.about-dec-text {
  color: transparent;
  text-stroke: 1px var(--red);
  -webkit-text-stroke: 1px var(--red);
  font-family: var(--font-serif);
  line-height: 1;
}
.biz-dec-text {
  color: transparent;
  text-stroke: 1px var(--white);
  -webkit-text-stroke: 1px var(--white);
  font-family: var(--font-serif);
  line-height: 1;
}

.staff-canvas {
  position: relative;
  padding-top: 50%;
  
  & .staff-canvas__image {
    position: absolute;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-image: var(--staff-canvas-mask);
    mask-image: var(--staff-canvas-mask);
    object-fit: cover;
  }
  & .staff-canvas__image--tl {
    top: 3.333333%;
    left: 1.666667%;
    width: 45.166667%;
    height: 35.466667%;
    --staff-canvas-mask: url("/system_panel/uploads/images/staff-canvas-mask--tl");
  }
  & .staff-canvas__image--bl {
    bottom: 3.333333%;
    left: 1.666667%;
    width: 57.346667%;
    height: 54.755%;
    --staff-canvas-mask: url("/system_panel/uploads/images/staff-canvas-mask--bl");
  }
  & .staff-canvas__image--tr {
    top: 3.333333%;
    right: 1.666667%;
    width: 57.355833%;
    height: 54.755%;
    --staff-canvas-mask: url("/system_panel/uploads/images/staff-canvas-mask--tr");
  }
  & .staff-canvas__image--br {
    bottom: 3.333333%;
    right: 1.666667%;
    width: 45.155833%;
    height: 35.466667%;
    --staff-canvas-mask: url("/system_panel/uploads/images/staff-canvas-mask--br");
  }
}

@media screen and (min-width: 1024px) {
  .blog-label {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    right: -60px;
    top: -12px;
  }
  .business-menu {
    padding: 2.5rem;
  }
}

@media screen and (min-width: 1200px) {
  .business-menu {
    padding: 2.5rem 0 2.5rem 3.75%;
  }
}

