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

html {
  /* 最小値13pxを保証し、1200px未満では最大22pxまでフォントサイズが流動する */
  font-size: clamp(13px, var(--font-size-base), 22px);

  @media screen and (min-width: 1200px) {
    font-size: clamp(0.1rem, var(--font-size-base), 24px);
  }
}

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background-color: var(--snow);
  background-image: var(--stone);
  letter-spacing: 0.08em;
  font-weight: 500;
}

#root {
  margin: 0 auto;
}

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

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;
  &.list--decimal {
    list-style-type: decimal;
  }

  & > 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: hsla(from var(--ink) h s l / 10%);
        &:hover {
          text-decoration: none;
        }
      }

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

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

.thumbnail {
  position: relative;

  &.thumbnail--16x9 {
    padding-top: 56.25%;
  }
  &.thumbnail--4x3 {
    padding-top: 75%;
  }
  &.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-image: url("/system_panel/uploads/images/thumbnail.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%;
}

.__mat.__mat--processed {
  word-break: keep-all;
  word-wrap: break-word;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 9rem 1.25rem 2.5rem;
  border-bottom: 1px solid hsl(from var(--ink) h s l / 30%);
  @media (min-width: 768px) {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  @media (min-width: 1024px) {
    padding-left: 3.75rem;
    padding-right: 3.75rem;
  }
  @media (min-width: 1200px) {
    padding-left: 5rem;
    padding-right: 5rem;
  }
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 9rem;
    aspect-ratio: 1 / 1;
    background: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--indigo) 50%, transparent calc(50% + 1px));
    @media (min-width: 1024px) {
      width: 11rem;
    }
    @media (min-width: 1200px) {
      width: 17rem;
    }
  }
  
  & .page-hero__bg-dec {
    position: absolute;
    width: 13.75rem;
    top: 10rem;
    right: -4rem;
    @media (min-width: 768px) {
      width: 25rem;
      top: 3rem;
      right: -2rem;      
    }
    @media (min-width: 1024px) {
      right: 3rem;      
    }
    @media (min-width: 1200px) {
      right: 12rem;      
    }
  }
  
  & .page-hero__title {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-weight: 600;
    & .page-hero__title-en {
      line-height: 1.25;
      letter-spacing: 0.16em;
      color: var(--indigo);
      font-size: 1.25rem;
      display: flex;
      align-items: center;
      padding-left: 0.25rem;
      gap: 0.5rem;
      &::before {
        content: "";
        aspect-ratio: 1 / 1;
        width: 0.625rem;
        border-radius: 9999px;
        background-color: var(--indigo);
      }
      @media (min-width: 768px) {
        font-size: 1.5rem;
      }
    }
    & .page-hero__title-ja {
      line-height: 1.4;
      letter-spacing: 0.12em;
      font-size: 2rem;
      @media (min-width: 768px) {
        font-size: 3rem;
      }
      @media (min-width: 1024px) {
        font-size: 3.5rem;
      }
      @media (min-width: 1200px) {
        font-size: 4rem;
      }
    }
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-weight: 600;
  & .section-title__en {
    position: relative;
    line-height: 1.25;
    letter-spacing: 0.16em;
    color: var(--indigo);
    font-size: 1rem;
    display: flex;
    align-items: center;
    padding-left: 0.25rem;
    gap: 0.5rem;
    &::before {
      content: "";
      aspect-ratio: 1 / 1;
      width: 0.625rem;
      border-radius: 9999px;
      background-color: var(--indigo);
    }
  }
  & .section-title__ja {
    position: relative;
    line-height: 1.4;
    letter-spacing: 0.12em;
    font-size: 1.75rem;
    @media (min-width: 768px) {
      font-size: 2rem;
    }
    @media (min-width: 1024px) {
      font-size: 2.25rem;
    }
    @media (min-width: 1200px) {
      font-size: 2.5rem;
    }
  }
  
  &.section-title--sm {
    gap: 0.25rem;
    & .section-title__en {
      font-size: 0.75rem;
      &::before {
        width: 0.25rem;
      }
    }
    & .section-title__ja {
      font-size: 1.5rem;
      @media (min-width: 768px) {
        font-size: 1.75rem;
      }
      @media (min-width: 1200px) {
        font-size: 2rem;
      }
    }
  }
  
  &.section-title--snow {
    color: var(--snow);
    & .section-title__en {
      color: var(--snow);
      &::before {
        background-color: var(--snow);
      }
    }
  }
}

.generic-bg-decs {
  position: absolute;
  left: 0;
  width: 100%;
  height: 59.375rem;
  &.generic-bg-decs--outline,
  &.generic-bg-decs--recruit-description-1 {
    top: -2rem;
  }
  &.generic-bg-decs--recruit-description-2 {
    top: 70.125rem;
  }
  &.generic-bg-decs--philosophy-1 {
    top: 3.875rem;
  }
  &.generic-bg-decs--philosophy-2 {
    top: 74.5rem;
  }
  
  & .generic-bg-dec {
    position: absolute;
    &.generic-bg-dec--tr {
      width: clamp(5.5rem, 15%, 15rem);
      top: 0;
      right: -4rem;
      @media (min-width: 1200px) {
        right: 0;
      }
    }
    &.generic-bg-dec--br {
      width: clamp(1.75rem, 7%, 7rem);
      bottom: 14rem;
      right: -1rem;
      @media (min-width: 1200px) {
        right: 1.375rem;
      }
    }
    &.generic-bg-dec--bl {
      width: clamp(2rem, 7.5%, 7.5rem);
      bottom: 0;
      left: -1rem;
      @media (min-width: 1200px) {
        left: 0;
      }
    }
    &.generic-bg-dec--tl {
      width: clamp(4rem, 13.25%, 13.25rem);
      top: 14.625rem;
      left: -3rem;
      @media (min-width: 1200px) {
        left: 2rem;
      }
    }
  }
}

.philosophy-bg-logo {
  position: absolute;
  width: 20rem;
  top: -6rem;
  left: -2rem;
  & img {
    width: 100%;
  }
  @media (min-width: 768px) {
    width: 25rem;
    top: -8rem;
    left: -3rem;
  }
  @media (min-width: 1024px) {
    width: 32rem;
    top: -10rem;
    left: -7rem;
  }
  @media (min-width: 1200px) {
    width: 37.5rem;
    top: -11.25rem;
    left: -10rem;
  }
}

.mvv-title {
  position: relative;
  padding-left: 0.5rem;
  @media (min-width: 768px) {
    padding-left: 0.75rem;
  }
  @media (min-width: 1024px) {
    padding-left: 1.25rem;
  }
  & .mvv-title__en {
    position: absolute;
    top: -1.75rem;
    left: -0.5rem;
    height: 3rem;
    @media (min-width: 768px) {
      top: -2rem;
      left: -0.75rem;
      height: 4rem;
      
    }
    @media (min-width: 1024px) {
      top: -3rem;
      left: -1.25rem;
      height: 5rem;
    }
    @media (min-width: 1200px) {
      top: -3.75rem;
      left: -1.5rem;
      height: 6rem;
    }
  }
  & .mvv-title__ja {
    height: 1.5rem;
    @media (min-width: 768px) {
      height: 2.5rem;
    }
    @media (min-width: 1024px) {
      height: 3rem;
    }
    @media (min-width: 1200px) {
      height: 3.5rem;
    }
  }
}

.diagonal-lines {
  position: relative;
  &::before,
  &::after {
    pointer-events: none;
    content: "";
    position: absolute;
    aspect-ratio: 1 / 1;
  }
  &.diagonal-lines--statement {
    &::before,
    &::after {
      opacity: 25%;
      background: linear-gradient(to bottom left, transparent calc(50% - 1px), var(--snow) 50%, transparent calc(50% + 1px));
      width: 5rem;
    }
    &::before {
      top: 0;
      right: 0;
      @media (min-width: 768px) {
        width: 15rem;
      }
      @media (min-width: 1200px) {
        width: 37rem;
      }
    }
    &::after {
      bottom: 0;
      left: 0;
      @media (min-width: 768px) {
        width: 20rem;
      }
      @media (min-width: 1200px) {
        width: 27rem;
      }
    }
  }
  
  &.diagonal-lines--application {
    &::before,
    &::after {
      background: linear-gradient(to bottom left, transparent calc(50% - 1px), var(--indigo) 50%, transparent calc(50% + 1px));
      width: 5rem;
    }
    &::before {
      top: 0;
      right: 0;
      @media (min-width: 768px) {
        width: 12.5rem;
      }
      @media (min-width: 1200px) {
        width: 25rem;
      }
    }
    &::after {
      bottom: 0;
      left: 0;
      @media (min-width: 768px) {
        width: 7.5rem;
      }
      @media (min-width: 1200px) {
        width: 15rem;
      }
    }
  }
  
  &.diagonal-lines--works {
    &::before,
    &::after {
      background: linear-gradient(to bottom left, transparent calc(50% - 1px), var(--indigo) 50%, transparent calc(50% + 1px));
      width: 5rem;
      top: 0;
      right: 0;
    }
    &::before {
      @media (min-width: 768px) {
        width: 10rem;
      }
      @media (min-width: 1200px) {
        width: 20rem;
      }
    }
    &::after {
      width: 13rem;
      @media (min-width: 768px) {
        width: 25rem;
      }
      @media (min-width: 1200px) {
        width: 55rem;
      }
    }
  }
  &.diagonal-lines--recruit {
    &::before,
    &::after {
      background: linear-gradient(to bottom left, transparent calc(50% - 1px), var(--snow) 50%, transparent calc(50% + 1px));
      width: 5rem;
      top: 0;
      right: 0;
      filter: blur(8px);
    }
    &::before {
      @media (min-width: 768px) {
        width: 10rem;
      }
      @media (min-width: 1200px) {
        width: 20rem;
      }
    }
    &::after {
      width: 13rem;
      @media (min-width: 768px) {
        width: 25rem;
      }
      @media (min-width: 1200px) {
        width: 55rem;
      }
    }
  }
}

.statement-typo {
  position: absolute;
  top: -7rem;
  right: -2rem;
  width: 100%;
  max-width: 35rem;
  @media (min-width: 1200px) {
    position: relative;
    top: auto;
    right: auto;
  }
}
.statement-image {
  mask-image: radial-gradient(50% 50% at 50% 50%, #FFF 0%, rgba(255, 255, 255, 0.50) 70%, rgba(255, 255, 255, 0.25) 91%, rgba(0, 0, 0, 0.00) 100%);
  aspect-ratio: 1 / 1;
  @media (min-width: 1024px) {
    position: absolute;
    max-width: 30rem;
    width: 100%;
    bottom: 3rem;
    right: -4rem;
  }
  @media (min-width: 1200px) {
    position: relative;
    bottom: auto;
    right: auto;
    margin-left: auto;
  }
}

.button {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.875rem 0.625rem; 2rem;
  border-radius: 4px 16px 4px 12px;
  background-color: var(--indigo);
  color: var(--snow);
  text-align: start;
  box-shadow: -6px 4px 0 0 var(--ink);
  transition: all ease 200ms;
  & > p:first-child {
    line-height: 1;
    letter-spacing: 0.08em;
    font-weight: 400;
    font-size: 0.875rem;
  }
  & > p:last-child {
    line-height: 1.25;
    letter-spacing: 0.08em;
    font-weight: 500;
    font-size: 1.25rem;
  }
  &:hover {
    text-decoration: none;
    color: var(--snow);
    transform: translate(-6px, 4px);
    box-shadow: 0 0 0 0 var(--ink);
  }
  
  &.button--snow {
    background-color: var(--snow);
    color: var(--ink);
    &:hover {
      color: var(--ink);
    }
  }
  
  &.button--send {
    line-height: 1.25;
    letter-spacing: 0.08em;
    font-weight: 500;
    font-size: 1.25rem;
    flex-direction: column-reverse;
    &::after {
      content: "SEND";
      line-height: 1;
      letter-spacing: 0.08em;
      font-weight: 400;
      font-size: 0.875rem;
    }
  }
  
  &.button--header-contact {
    background-color: transparent;
    color: var(--ink);
    box-shadow: none;
    border: 1px solid var(--ink);
    border-radius: 2px 8px 2px 12px;
    & > p {
      font-size: 1.125rem;
    }
    &::before {
      content: "";
      border: 1px solid var(--ink);
      border-radius: 2px 12px 2px 8px;
      position: absolute;
      inset: -5px -5px 3px 3px;
      transition: all ease 200ms;
      pointer-events: none;
    }
    &:hover {
      color: var(--ink);
      transform: none;
      opacity: 90%;
    }
  }
}

.footer-image {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow:  var(--elevation);
  width: 100%;
  height: 37.5rem;
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: hsl(0 0 0 / 40%);
    pointer-events: none;
  }
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}
  
.recruit-intro-dec {
  position: absolute;
  &.recruit-intro-dec--1 {
    width: 8rem;
    top: -2.5rem;
    left: -2.25rem;
    @media (min-width: 768px) {
      width: 13rem;
    }
    @media (min-width: 1024px) {
      width: 15.75rem;
    }
  }
  &.recruit-intro-dec--2 {
    width: 4rem;
    bottom: -0.25rem;
    left: -1.25rem;
    @media (min-width: 768px) {
      width: 6rem;
    }
    @media (min-width: 1024px) {
      width: 8.75rem;
    }
  }
}

.marked-card {
  position: relative;
  padding: 3rem 0.75rem 2rem 1rem;
  background-color: var(--snow);
  border-bottom-left-radius: 2rem;
  @media (min-width: 768px) {
    padding: 3.75rem 2rem 3rem 3rem;
  }
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    aspect-ratio: 1 / 1;
    border-top: 2rem solid var(--indigo);
    border-right: 2rem solid transparent;
    @media (min-width: 768px) {
      border-top-width: 3rem;
      border-right-width: 3rem;
    }
  }
  &.marked-card--lg-br-mark {
    padding: 3rem 1.25rem;
    @media (min-width: 768px) {
      padding-left: 3rem;
      padding-right: 3rem;
    }
    &::before {
      inset: auto 0 0 auto;
      aspect-ratio: 1 / 1;
      border-top: none;
      border-right: none;
      border-bottom: 2rem solid var(--indigo);
      border-left: 2rem solid transparent;
      @media (min-width: 768px) {
        border-bottom-width: 3rem;
        border-left-width: 3rem;
      }
      @media (min-width: 1200px) {
        border-bottom-width: 5rem;
        border-left-width: 5rem;
      }
    }
  }
}

.overlapping-line-card {
  position: relative;
  border: 2px solid hsl(from var(--indigo) h s l / 60%);
  border-bottom-left-radius: 1rem;
  &::before {
    content: "";
    border: 2px solid hsl(from var(--indigo) h s l / 60%);
    border-bottom-left-radius: 1rem;
    position: absolute;
    inset: -6px 2px 2px -6px;
    pointer-events: none;
  }
}

.application-bg-images {
  position: absolute;
  display: none;
  flex-direction: column;
  @media (min-width: 1024px) {
    display: flex;
  }
  &.application-bg-images--tl {
    width: clamp(15rem, 34.4375%, 34.4375rem);
    top: 2rem;
    left: 0;
  }
  &.application-bg-images--br {
    width: clamp(15rem, 37.5%, 37.5rem);
    bottom: 7rem;
    right: -5rem;
  }
  
  & .application-bg-image {
    object-fit: cover;
    &.application-bg-image--1 {
      aspect-ratio: 5 / 4;
      border-top-left-radius: 1rem;
      width: 66.5434380776%;
      margin-left: auto;
    }
    &.application-bg-image--2 {
      aspect-ratio: 1 / 1;
      border-bottom-right-radius: 1rem;
      width: 66.5434380776%;
      transform: translateY(-21.1111111111%);
    }
    &.application-bg-image--3 {
      aspect-ratio: 1 / 1;
      border-top-right-radius: 1rem;
      width: 60%;
      margin-left: auto;
    }
    &.application-bg-image--4 {
      aspect-ratio: 5 / 4;
      border-top-left-radius: 1rem;
      width: 80%;
      transform: translateY(-20.8333333333%);
    }
  }
}

.sidebar-menu {
  position: relative;
  isolation: isolate;
  
  &::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    left: -0.25rem;
    width: 100%;
    height: 100%;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.25rem;
    background-color: var(--indigo);
    z-index: -1;
  }
  
  &::after {
    content: none;
    position: absolute;
    z-index: -1;
    left: 1.5rem;
    top: calc(100% - 0.5rem);
    aspect-ratio: 24 / 59;
    background-image: url(/system_panel/uploads/images/sidebar-dec.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 45%;
  }
  
  @media (min-width: 1024px) {
    position: sticky;
    top: 5rem;
    
    &::after {
      content: "";
    }
  }
  
  & .sidebar-menu__content {
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.25rem;
    background-color: var(--snow);
    box-shadow: var(--elevation);
    z-index: 1;
  }
}

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

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

.sevice-num {
  position: absolute;
  top: -0.6666666667em;
  right: -0.1666666667em;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
  font-size: 7.5rem;
  color: var(--indigo);
  @media (min-width: 1200px) {
    font-size: 15rem;
  }
}

.works-bg-typo {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  width: 31.25%;
}


.recruit-introduction-dec {
  position: absolute;
  
  &.recruit-introduction-dec--tr {
    width: 55%;
    top: 1.25rem;
    right: 2rem;
    
    @media (min-width: 768px) {
      width: 26.25%;
      top: 2.5rem;
      right: 10rem;
    }
  }
  &.recruit-introduction-dec--bl {
    width: 9%;
    bottom: 2.5rem;
    left: 3.75rem;
    
    @media (min-width: 768px) {
      width: 9%;
      bottom: 2.5rem;
      left: 3.75rem;
    }
  }
}










