*,
*::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-sans);
  color: var(--ink);
  background-color: var(--light-gray);
  letter-spacing: 0.24em;
}

#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: 7.5rem;
  @media (min-width: 1200px) {
    scroll-margin-top: 10rem;
  }
}

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

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

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

.thumbnail {
  position: relative;

  &.thumbnail--16x9 {
    padding-top: 56.25%;
  }
  &.thumbnail--3x4 {
    padding-top: 133.3333333333%;
  }
  &.thumbnail--1x1 {
    padding-top: 100%;
  }

  & img,
  & video,
  &: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%;
}

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

.page-hero {
  position: relative;
  height: 30rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 7.5rem 1.25rem 3.75rem 0;
  @media (min-width: 768px) {
    padding-right: 2.5rem;
  }
  @media (min-width: 1024px) {
    padding-right: 3.75rem;
  }
  @media (min-width: 1200px) {
    padding-right: 5rem;
  }
  
  & .page-hero__image {
    position: absolute;
    inset: 0;
    &::after {
      pointer-events: none;
      content: "";
      position: absolute;
      inset: 0;
      background-color: hsl(0deg 0% 0% / 20%);
    }
    & img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
  }
  
  & .page-hero__title {
    position: absolute;
    display: grid;
    gap: 1rem;
    padding: 0 3.75rem 3rem;
    border-bottom: 1px solid hsl(0deg 0% 100% / 60%);
    color: var(--snow);
    
    & .page-hero__title-en {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      line-height: 1;
      letter-spacing: 0.12em;
      font-size: 0.875rem;
      & > img {
        width: 1rem;
      }
    }
    & .page-hero__title-ja {
      line-height: 1.8;
      font-family: var(--font-serif);
      font-weight: 600;
      font-size: 2rem;
    }
    
    @media (min-width: 768px) {
      padding-left: 8rem;
      & .page-hero__title-en {
        font-size: 1rem;
        & > img {
          width: 1.125rem;
        }
      }
      & .page-hero__title-ja {
        font-size: 2.25rem;
      }
    }
    @media (min-width: 1024px) {
      padding-left: 10rem;
    }
    @media (min-width: 1200px) {
      padding-left: 15rem;
      & .page-hero__title-ja {
        font-size: 2.5rem;
      }
    }
  }
}

.vertical-section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  
  & .vertical-section-title__ja {
    padding: 0.25rem 1rem 0.25rem 0;
    border-right: 1px solid var(--ink);
    writing-mode: vertical-rl;
    line-height: 1;
    letter-spacing: 0.15em;
    font-family: var(--font-serif);
    font-size: 0.875rem;
    white-space: nowrap;
  }
  & .vertical-section-title__en {
    line-height: 1;
    letter-spacing: 0.12em;
    font-size: 2rem;
  }
  
  &.vertical-section-title--snow {
    color: var(--snow);
    & .vertical-section-title__ja {
      border-color: var(--snow);
    }
  }
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem 0.5rem 1.125rem;
  --button-color: var(--ink);
  border: 1px solid var(--button-color);
  color: var(--button-color);
  line-height: 1;
  letter-spacing: 0.24em;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  transition: all ease 200ms;
  &::before {
    content: "";
    display: block;
    height: stretch;
    width: 1px;
    background-color: var(--button-color);
    order: 1;
  }
  & > img {
    width: 1.25rem;
    order: 2;
  }
  &:hover {
    text-decoration: none;
    opacity: 80%;
    transform: scale(0.95);
    color: var(--button-color);
  }
  
  &.button.button--snow {
    --button-color: var(--snow);
  }
  &.button.button--no-img {
    padding-left: 1rem;
    &::before {
      content: none;
    }
  }
}

.recruit-intro-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  & img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 7 / 4;
  }
  @media (min-width: 1200px) {
    gap: 5rem;
    flex: 1 1 0%;
    max-width: 35rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  & .section-title__en {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1;
    letter-spacing: 0.12em;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--logo-blue);
    flex: 1 1 0%;
    & > img {
      width: 1rem;
    }
  }
  & .section-title__ja {
    line-height: 1.8;
    letter-spacing: 0.24em;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.75rem;
    @media (min-width: 768px) {
      font-size: 2rem;
    }
  }
  
  &.section-title--snow {
    & .section-title__ja {
      color: var(--snow);
    }
  }
  &.section-title--recruit {
    & .section-title__ja {
      line-height: 1.5;
      font-family: var(--font-sans);
      font-weight: 700;
    }
  }
  &.section-title--28 {
    & .section-title__ja {
      font-size: 1.5rem;
      @media (min-width: 768px) {
        font-size: 1.75rem;
      }
    }
  }
  &.section-title--24 {
    & .section-title__en {
      font-size: 0.75rem;
    }
    & .section-title__ja {
      font-size: 1.25rem;
      @media (min-width: 768px) {
        font-size: 1.5rem;
      }
    }
  }
  &.section-title--20 {
    & .section-title__en {
      font-size: 0.75rem;
    }
    & .section-title__ja {
      font-size: 1.125rem;
      @media (min-width: 768px) {
        font-size: 1.25rem;
      }
    }
  }
}

.services-bg-image {
  position: absolute;
  inset: 0;
  &::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, #F1F1F1 0%, rgba(241, 241, 241, 0.75) 10.1%, rgba(241, 241, 241, 0.25) 25%, rgba(241, 241, 241, 0.00) 39.42%, rgba(241, 241, 241, 0.00) 100%);
  }
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

.service-card-content-1 {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.40) 10%, #000 100%);
}
.service-card-content-2 {
  background-image: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.50) 10%, #000 100%);
}

.swiper:not(.swiper-initialized) {
  & .swiper-wrapper {
    display: flex;
    overflow: auto
  }
  & .swiper-slide {
    min-width: 35%;
  }  
}

.swiper.gallery-slider {
  & .swiper-wrapper {
    transition-timing-function: linear;
  }
  & .swiper-slide img {
    object-fit: cover;
    aspect-ratio: 16 / 9;
    width: 100%;
  }
}

.service-images {
  display: grid;
  gap: 2.5rem;
  @media (min-width: 768px) {
    gap: 3.75rem;
  }
  .service-images__container {
    display: flex;
    align-items: start;
    padding-left: 6.6666666667%;
    gap: 10%;
  }
  & .service-image {
    object-fit: cover;
    aspect-ratio: 3 / 2;
    &.service-image--1 {
      width: 90%;
    }
    &.service-image--2 {
      width: 43%;
      margin-top: 12%;
    }
    &.service-image--3 {
      flex: 1 1 0%;
    }
  }
  
  &.service-images--right {
    .service-images__container {
      flex-direction: row-reverse;
      padding-right: 6.6666666667%;
      padding-left: 0%;
    }
    & .service-image {
      &.service-image--1 {
        margin-left: auto;
      }
    }
  }
}

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

.work-category {
  & .webgene-blog {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    @media (min-width: 1024px) {
      flex-direction: column;
      justify-content: center;
    }
  }
}

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

.insta1 {
  overflow: visible;
  & .webgene-blog {
    transition-timing-function: linear;
  }
  @media (min-width: 1024px) {
    overflow: hidden;
  }
}







