*,
*::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(--snow);
  letter-spacing: 0.04em;
  font-weight: 500;
}

#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;
}

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

      &.selected {
        & a {
          color: var(--snow);
          background-color: var(--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--3x2 {
    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%;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  height: 22.5rem;
  padding: 10rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: 1px solid var(--blue-gray);
  @media (min-width: 768px) {
    height: 25rem;
  }
  @media (min-width: 1024px) {
    height: 26.25rem; 
  }
  &::before, &::after {
    content: "";
    display: block;
    position: absolute;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    aspect-ratio: 1 / 1;
    opacity: 25%;
  }
  &::before {
    width: clamp(20rem, 45.25%, 45.25rem);
    top: 0;
    left: 0;
    transform: translate(-44.1988950276%, -44.1988950276%);
    background-image: url(/system_panel/uploads/images/diamonds--blue.svg);
  }
  &::after {
    width: clamp(15rem, 40.25%, 40.25rem);
    right: 0;
    bottom: 0;
    transform: translate(12.4223602484%, 37.2670807453%);
    background-image: url(/system_panel/uploads/images/diamonds--red.svg);
  }
  
  & .pege-hero__content {
    max-width: 80rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    
    & .page-hero__title {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      & .page-hero__title-en {
        position: relative;
        & > p {
          position: relative;
          text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25), 1px 1px 2px rgba(0, 0, 0, 0.45);
          line-height: 1;
          letter-spacing: 0;
          font-family: var(--font-display);
          font-weight: 400;
          font-size: 1.5rem;
          color: var(--snow);
        }
        &::before {
          content: "";
          display: block;
          position: absolute;
          bottom: 0;
          left: -0.625rem;
          height: 2rem;
          width: 12.375rem;
          background-image: url(/system_panel/uploads/images/grad-marker--blue.svg);
          background-repeat: no-repeat;
          background-size: 100% 100%;
        }
        @media (min-width: 768px) {
          & > p {
            font-size: 1.75rem;
          }
          &::before {
            height: 2.5rem;
            width: 15.5rem;
          }
        }
        @media (min-width: 1024px) {
          & > p {
            font-size: 2rem;
          }
          &::before {
            height: 3rem;
            width: 18.625rem;
          }
        }
      }
      & .page-hero__title-ja {
        line-height: 1.25;
        font-weight: 900;
        font-size: 2rem;
        @media (min-width: 768px) {
          font-size: 2.5rem;
        }
        @media (min-width: 1024px) {
          font-size: 3rem;
        }
      }
    }
    & .page-hero__breadcrumbs {
      display: flex;
      flex-wrap: wrap;
      gap: 1.25rem;
      line-height: 1;
      letter-spacing: 0.08em;
      font-size: 0.875rem;
      & > p:last-child {
        color: var(--blue);
      }
    }
  }
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  & .section-title__en {
    position: relative;
    & > p {
      position: relative;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25), 1px 1px 2px rgba(0, 0, 0, 0.45);
      line-height: 1;
      letter-spacing: 0;
      font-family: var(--font-display);
      font-weight: 400;
      font-size: 1.5rem;
      color: var(--snow);
    }
    &::before {
      content: "";
      display: block;
      position: absolute;
      bottom: 0;
      left: -0.625rem;
      height: 2rem;
      width: 12.375rem;
      background-image: url(/system_panel/uploads/images/grad-marker--blue.svg);
      background-repeat: no-repeat;
      background-size: 100% 100%;
    }
    @media (min-width: 768px) {
      & > p {
        font-size: 1.75rem;
      }
      &::before {
        height: 2.5rem;
        width: 15.5rem;
      }
    }
    @media (min-width: 1024px) {
      & > p {
        font-size: 2rem;
      }
      &::before {
        height: 3rem;
        width: 18.625rem;
      }
    }
  }
  & .section-title__ja {
    line-height: 1.25;
    font-weight: 900;
    font-size: 1.5rem;
    @media (min-width: 768px) {
      font-size: 2rem;
    }
  }
  
  &.section-title--red .section-title__en::before {
    background-image: url(/system_panel/uploads/images/grad-marker--red.svg);
  }
}

.bg-dec-diamonds {
  &::before, &::after {
    content: "";
    display: block;
    position: absolute;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    aspect-ratio: 1 / 1;
    opacity: 45%;
  }
  &::before {
    width: clamp(10rem, 20%, 20rem);
    top: 0;
    left: 0;
    transform: translate(-18.75%, 18.75%);
    background-image: url(/system_panel/uploads/images/diamonds--red.svg);
  }
  &::after {
    width: clamp(15rem, 30%, 30rem);
    right: 0;
    bottom: 0;
    transform: translate(20%, 22.0833333333%);
    background-image: url(/system_panel/uploads/images/diamonds--blue.svg);
  }
}

.philosophy-title-dec {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-52%, -38%);
  width: clamp(25rem, 52.0833333333%, 46.875rem);
  display: none;
  & img {
    width: 100%;
  }
  @media (min-width: 768px) {
    display: block;
  }
}

.pholosophy-diamonds {
  aspect-ratio: 1 / 1;
  opacity: 45%;
  width: clamp(5rem, 15%, 15rem);
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(50%, -16.6666666667%);
  background-image: url(/system_panel/uploads/images/diamonds--blue.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  border-left: 2px solid var(--blue);
  background-color: var(--blue-gray);
  text-align: center;
  line-height: 1.25;
  letter-spacing: 0.08em;
  font-weight: 400;
  font-size: 1rem;
  color: var(--blue);
  transition: color ease 200ms;
  & > p {
    position: relative;
  }
  &::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    background-color: var(--blue);
    transition: width ease 200ms;
  }
  &:hover {
    text-decoration: none;
    color: var(--snow);
    &::before {
      width: 100%;
    }
  }
  &.button--red {
    border-left: 2px solid var(--red);
    background-color: var(--pink-gray);
    color: var(--red);
    &::before {
      background-color: var(--red);
    }
    &:hover {
      color: var(--snow);
    }
  }
  &.button--icon-left {
    padding-left: 1rem;
    & > img {
      position: relative;
    }
  }
  &.formBtn {
    color: transparent;
    &::after {
      content: "送信する";
      display: block;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      line-height: 1.25;
      letter-spacing: 0.08em;
      font-weight: 400;
      font-size: 1rem;
      color: var(--blue);
      transition: color ease 200ms;
      min-width: 4.5rem;
    }
    &:hover::after {
      color: var(--snow);
    }
  }
}

.footer-contact-bg {
  position: absolute;
  inset: 0;
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  &::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background-image: url(/system_panel/uploads/images/dot.png);
    background-color: hsl(0 0 0 / 40%);
    pointer-events: none;
  }
}

.filtered-bg-image {
  position: absolute;
  inset: 0;
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  &::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background-color: hsl(0 0 0 / 40%);
    pointer-events: none;
  }
  &.filtered-bg-image::after {
    background-image: url(/system_panel/uploads/images/dot.png);
  }
}

.recruit-intro-diamonds {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 45%;
  width: 42.8125rem;
}

.recruit-principles-diamond {
  position: absolute;
  background-image: url(/system_panel/uploads/images/diamond--red.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 25%;
  aspect-ratio: 1 / 1;
  &.recruit-principles-diamond--1 {
    width: clamp(15rem, 35%, 35rem);
    top: 0;
    left: 0;
    transform: translate(-28.5714285714%, -8.9285714286%);
  }
  &.recruit-principles-diamond--2 {
    background-image: url(/system_panel/uploads/images/diamond--blue.svg);
    width: clamp(20rem, 40%, 40rem);
    top: 50%;
    right: 0;
    transform: translate(34.375%, -41.40625%);
  }
  &.recruit-principles-diamond--3 {
    width: clamp(25rem, 50%, 50rem);
    bottom: 0;
    left: 0;
    transform: translate(-35%, 36.25%);
  }
  &.recruit-principles-diamond--4 {
    background-image: url(/system_panel/uploads/images/diamond--blue.svg);
    width: clamp(18rem, 37.5%, 37.5rem);
    bottom: 0;
    right: 0;
    transform: translate(20%, 5%);
  }
}

.business-title-dec {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-30%, -43%);
  width: clamp(25rem, 133.9285714286%, 46.875rem);
  & img {
    width: 100%;
  }
}

.features-sub-title {
  position: absolute;
  top: 3.75rem;
  left: -10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: 40rem;
  height: 40rem;
  @media (min-width: 1200px) {
    left: -13.75rem;
  }
  &::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background-image: url(/system_panel/uploads/images/diamonds--blue.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 25%;
  }
  &.features-sub-title--red {
    right: -10rem;
    left: auto;
    @media (min-width: 1200px) {
      right: -13.75rem;
    }
    &::before {
      background-image: url(/system_panel/uploads/images/diamonds--red.svg);
    }
  }
}


.news-list {
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    
    @media (min-width: 768px) {
      gap: 2rem;
    }
  }
}

.category-list {
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    
    @media (min-width: 768px) {
      gap: 1.25rem;
    }
  }
}

.category-bg-dec {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  width: 17.5rem;
  transform: translateX(-35%);
}






