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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--snow);
  letter-spacing: 0.04em;
}

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

p, h1, h2, h3, h4, h5, h6 {
  margin: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  line-height: inherit;
  font-feature-settings: "palt";
}

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;
  background: none;
  padding: 0;
}

.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;
        background-color: var(--black);
        border: 1px solid var(--blue);
        &:hover {
          text-decoration: none;
        }
      }

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

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

.thumbnail {
  position: relative;

  &.thumbnail--16x9 {
    padding-top: 56.25%;
  }
  &.thumbnail--square {
    padding-top: 100%;
  }

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

  &:empty::before {
    content: "";
    background-color: var(--snow);
    background-image: url("/system_panel/uploads/images/ogp.png");
    background-repeat: no-repeat;
    background-size: contain;
    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%;
}

.filtered-image {
  z-index: 0;
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/system_panel/uploads/images/filter-noise.png");
    pointer-events: none;
    z-index: 1;
  }
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  
  & .section-title__en {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--section-title-color);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.08em;
    gap: 1.5rem;
    
    @media screen and (min-width: 768px) {
      font-size: 1.5rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 1.75rem;
    }
    @media screen and (min-width: 1200px) {
      font-size: 2rem;
    }
    
    &::before {
      content: "";
      width: 3.75rem;
      height: 1px;
      background-color: var(--section-title-color);
    }
  }
  
  & .section-title__ja {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.25;
    
    @media screen and (min-width: 768px) {
      font-size: 1.5rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 1.625rem;
    }
    @media screen and (min-width: 1200px) {
      font-size: 1.75rem;
    }
  }
  
  &.section-title--orange {
    --section-title-color: var(--orange-vivid);
  }
  &.section-title--blue {
    --section-title-color: var(--blue);
  }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  
  & .hero-title__en {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--blue);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.08em;
    gap: 0.75rem;
    
    @media screen and (min-width: 768px) {
      font-size: 1.5rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 1.75rem;
    }
    @media screen and (min-width: 1200px) {
      font-size: 2rem;
    }
    
    &::before {
      content: "";
      width: 1px;
      height: 3.75rem;
      background-color: var(--blue);
    }
  }
  
  & .hero-title__ja {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.25;
    
    @media screen and (min-width: 768px) {
      font-size: 2.5rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 2.75rem;
    }
    @media screen and (min-width: 1200px) {
      font-size: 3rem;
    }
  }
  
  &.section-title--orange {
    --section-title-color: var(--orange-vivid);
  }
  &.section-title--blue {
    --section-title-color: var(--blue);
  }
}


.button {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid;
  color: var(--snow);
  background-color: var(--black);
  box-shadow: none;
  padding: 0.75rem 1.5rem;
  transition: opacity 250ms ease;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  @media screen and (min-width: 768px) {
    font-size: 1.125rem;
  }
  
  &:hover {
    opacity: 0.85;
    text-decoration: none;
    color: var(--snow);
  }
  
  &.button--blue {
    border-color: var(--blue);
  }
  &.button--snow {
    border-color: var(--blue-vivid);
    color: var(--blue-vivid);
    background-color: var(--snow);
    
    &:hover {
      color: var(--blue-vivid);
    }
  }
}

.footer {
  position: relative;
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 23, 23, 0.00) 0%, #171717 100%);
  }
}

.page-hero {
  position: relative;
}
.page-hero__decoration {
  position: absolute;
  overflow: hidden;
  inset: 0;
  width: 100%;
  height: 100%;
  & > div {
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    position: absolute;
  }
  
  & .left {
    width: 38.18%;
    min-width: 370px;
    border: 4px solid var(--blue-vivid);
    left: 0;
    top: 0;
    transform: translate(-30.44%, -21.44%);
  }
  & .top-right {
    min-width: 440px;
    width: 48.5%;
    border: 4px solid var(--blue-vivid);
    right: 0;
    top: 0;
    transform: translate(15.46%, -29.76%);
  }
  & .bottom-right {
    min-width: 540px;
    width: 58.875%;
    border: 4px solid var(--orange-vivid);
    right: 0;
   	bottom: 0;
    transform: translate(9.129%, 83.01%);
  }
}

.news-list {
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}
.work-list, .home-work-list {
  & .thumbnail {
    &::after {
      content: "";
      inset: 0;
      position: absolute;
      background-color: hsl(from var(--ink) h s l / 40%);
    }
  }
}
.work-list {
  & .webgene-blog {
    display: grid;
    & .webgene-pagination {
      margin-top: 2rem;
    }
    @media screen and (min-width: 768px) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      
      & .webgene-pagination, & .webgene-no-items {
        grid-column: span 2 / span 2;
      }
    }
  }
}

.category-list {
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
}

.swiper-pagination {
  margin: 0;
  position: static;
  & .swiper-pagination-bullet {
    background: var(--snow);
  }
  & .swiper-pagination-bullet-active {
    background: var(--blue);
  }
}

.recruit-section {
  &::after {
    content: "";
    position: absolute;
    width: 58.875%;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    border: 4px solid var(--orange);
    bottom: -16.25vw;
    left: -28.75vw;
  }
  &::before {
    content: "";
    position: absolute;
    width: 84.375%;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    border: 4px solid var(--blue);
    top: 9.125vw;
    right: -28.75vw;
  }
  &.recruit-section--2 {
    &::before {
      width: 61%;
      top: -34vw;
      right: -17.06vw;
    }
  }
}

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

.home-hero {
  min-height: calc(var(--vh, 1vh) * 100);
  background-color: var(--ink);
  position: relative;
  color: var(--snow);
  overflow: hidden;
  
  & .home-hero-logo--desktop {
    height: 100%;
    width: auto;
  }
  
  & .swiper {
    & .swiper-wrapper, & .swiper-slide {
      height: 100%;
    }
    & .swiper-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    & .swiper-slide {
      &::after {
        content: "";
        inset: 0;
        position: absolute;
        background-color: hsl(from var(--ink) h s l / 40%);
      }
    }
    &:not(.swiper-initialized) {
      & .swiper-wrapper {
        display: flex;
        overflow: auto;
      }
      & .swiper-slide {
        min-width: 100%;
        width: 100%;
      }
    }
  }
}

.home-recruit-section {
  &::after {
    content: "";
    position: absolute;
    width: 84.375%;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    border: 4px solid var(--blue);
    bottom: -19.25vw;
    right: -28.75vw;
  }
  &::before {
    content: "";
    position: absolute;
    width: 58.875%;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    border: 4px solid var(--orange);
    top: -24vw;
    right: -12.875vw;
  }
}

.strengths-rect-1,
.strengths-rect-2,
.strengths-rect-3 {
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  opacity: 0.3;
}
.strengths-rect-1 {
  position: absolute;
  width: 60.75%;
  border: 4px solid var(--blue);
  top: -5vw;
  left: -2.5vw;
}
.strengths-rect-2 {
  position: absolute;
  width: 86.875%;
  border: 4px solid var(--orange);
  top: 28.125vw;
  right: -1.875vw;
}
.strengths-rect-3 {
  position: absolute;
  width: 60.75%;
  border: 4px solid var(--blue);
  bottom: -4.25vw;
  right: -18.25vw;
}

