:root {
  --elevation-2: 0 2px 6px 1px rgba(0, 0, 0, 0.08), 0 4px 12px 2px rgba(0, 0, 0, 0.08), 0 8px 24px 4px rgba(0, 0, 0, 0.08);

}

*,
*::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);
  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: var(--light-yellow);
        &:hover {
          text-decoration: none;
        }
      }

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

  & 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;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 10rem 1.25rem 3rem;
  min-height: 25rem; 
  @media screen and (min-width: 768px) {
    padding: 10rem 2.5rem 4rem;
    min-height: 30rem;
  }
  @media screen and (min-width: 1024px) {
    padding: 10rem 3.75rem 5rem;
    min-height: 35rem;
  }
  @media screen and (min-width: 1024px) {
    padding: 10rem 5rem 5rem;
  }
  
  & .page-hero__image {
    position: absolute;
    inset: 0;
    &::after {
      content: "";
      display: block;
      position: absolute;
      inset: 0;
      background-color: hsl(0 0 0 / 25%);
      pointer-events: none;
    }
    & img {
      object-fit: cover;
      height: 100%;
      width: 100%
    }
  }
  
  & .page-hero__dec {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translate(13.8888888889%, 22.8215767635%);
    width: clamp(30rem, 45%, 45rem);    
    & img {
      width: 100%
    }
  }
  
  & .page-hero__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 90rem;
    margin-right: auto;
    margin-left: auto;
    
    & .page-hero__title {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      font-weight: 900;
      color: var(--snow);
      & .page-hero__title-en {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        line-height: 1.25;
        font-size: 1.125rem;
        &::before {
          content: "";
          display: block;
          height: 2rem;
          width: 0.75rem;
          border-radius: 9999px;
          background-color: var(--orange);
        }
      }
      & .page-hero__title-ja {
        line-height: 1;
        font-size: 2.25rem;
        @media screen and (min-width: 768px) {
          font-size: 4rem;
        }
        @media screen and (min-width: 1024px) {
          font-size: 4.5rem;
        }
        @media screen and (min-width: 1200px) {
          font-size: 5rem;
        }
      }
    }
    
    & .page-hero__breadcrumbs {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 1rem;
      font-weight: 700;
      line-height: 1.25;
      font-size: 0.875rem;
      color: var(--snow);
      & > a {
        color: var(--snow);
      }
    }
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-weight: 900;  
  & .section-title__en {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.25;
    font-size: 1.125rem;
    & > p {
      flex: 1 1 0%;
    }
    &::before {
      content: "";
      display: block;
      height: 2rem;
      width: 0.75rem;
      border-radius: 9999px;
      background-color: var(--orange);
    }
  }
  & .section-title__ja {
    line-height: 1;
  }
  
  &.section-title--snow .section-title__en {
    color: var(--snow);
    &::before {
      background-color: var(--light-yellow);
    }
  }
  &.section-title--center {
    text-align: center;
    gap: 1rem;
    & .section-title__en {
      flex-direction: column-reverse;
      &::before {
        width: 2rem;
        height: 0.75rem;
      }
    }
  } 
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background-color: var(--orange);
  color: var(--snow);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
  font-size: 1.125rem;
  transition: all ease 200ms;
  & > p {
    transform: skewX(-11deg);
  }
  &::after {
    content: "";
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    background-image: url(/system_panel/uploads/images/arrow-right--snow.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  &:hover {
    text-decoration: none;
    color: var(--snow);
    opacity: 85%;
    transform: scale(0.95);
  }
  
  &.formBtn {
    color: transparent;
    &::before {
      content: "送信する";
      position: absolute;
      top: 50%;
      left: 1.25rem;
      transform: translateY(-45%) skewX(-11deg);
      color: var(--snow);
    }
  }
}

.recruit-intro-dec-text {
  position: absolute;
  bottom: -0.375em;
  left: -0.75rem;
  transform: skew(-12deg);
  line-height: 1;
  font-weight: 900;
  font-size: 2.5rem;
  @media screen and (min-width: 414px) {
    & > br {
      display: none;
    }
  }
  @media screen and (min-width: 768px) {
    left: -1rem;
    font-size: 3.75rem;
  }
  @media screen and (min-width: 1024px) {
    white-space: nowrap;
    font-size: 5rem;
    &.recruit-intro-dec-text--1 {
      left: auto;
      right: 2rem;
    }
    &.recruit-intro-dec-text--2 {
      left: 2rem;
    }
  }
  @media screen and (min-width: 1200px) {
    font-size: 7rem;
    &.recruit-intro-dec-text--1 {
      right: 24rem;
    }
    &.recruit-intro-dec-text--2 {
      left: 5rem;
    }
  }
}

.recruit-intro-dec {
  position: absolute;
  width: clamp(20rem, 41.75%, 41.75rem);
  &.recruit-intro-dec--1 {
    top: 0;
    left: 0;
    transform: translate(-11.9760479042%, -17.8970917226%);
  }
  &.recruit-intro-dec--2 {
    bottom: 0;
    right: 0;
    transform: translateX(49.4011976048%);
  }
}

.recruit-description-dec {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translate(-13.4408602151%, 18.9035916824%);
  width: clamp(30rem, 46.5%, 46.5rem);
}

.news-category {
  @media screen and (min-width: 1024px) {
    position: sticky;
    top: 3rem;
  }
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
}

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

.section-general-dec {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translate(-10.752688172%, 11.3421550095%);
  width: clamp(20rem, 46.5%, 46.5rem);
}

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

.case-detail .swiper-pagination {
  position: relative;
  margin: 0.5rem 0 0;
}

.elevation-2 {
  box-shadow: var(--elevation-2);
}

.services-price {
  display: flex;
  flex-direction: column;
  transform: skew(-11deg);
  line-height: 1.25;
  font-weight: 900;
  color: var(--orange);
  font-size: 2rem;
  align-self: center;
  @media screen and (min-width: 768px) {
    font-size: 2.5rem;
  }
  & > p {
    position: relative;
  }
  &::before {
    content: "";
    display: block;
    height: 0.5em;
    background-color: var(--snow);
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
  }
}







