*,
*::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);
  background-image: var(--paper);
  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;
}

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

.webgene-pagination {
  margin-top: 1rem;
  & 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%);
        border-radius: 0.25rem;
        font-family: var(--font-serif);
        &:hover {
          text-decoration: none;
          color: var(--ink);
        }
      }

      &.selected {
        & a {
          background-color: var(--green);
          color: var(--snow);
          &: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--4x3 {
    padding-top: 75%;
  }

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

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


.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;
  padding: 17.5rem 1.25rem 2.5rem;
  border-bottom: 1px solid hsl(from var(--ink) h s l / 20%);
  @media screen and (min-width: 768px) {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }
  @media screen and (min-width: 1024px) {
    padding-right: 3.75rem;
    padding-left: 3.75rem;
  }
  @media screen and (min-width: 1200px) {
    padding-right: 5rem;
    padding-left: 5rem;
  }
  
  & .page-hero__illust {
    position: absolute;
    &.page-hero__illust--1 {
      width: 1.25rem;
      bottom: 6rem;
      left: 50%;
      transform: translateX(calc(-50% + 2.5rem)) rotate(12.3deg);
      @media screen and (min-width: 768px) {
        bottom: 8.375rem;
        transform: translateX(calc(-50% + 2.5rem)) rotate(12.3deg);
      }
      @media screen and (min-width: 1024px) {
        transform: translateX(calc(-50% - 3.5rem)) rotate(12.3deg);
      }
    }
    &.page-hero__illust--2 {
      width: 3rem;
      top: 11.5rem;
      left: 50%;
      transform: translateX(calc(-50% + 8rem)) rotate(-47deg);
      @media screen and (min-width: 768px) {
        transform: translateX(calc(-50% + 12rem)) rotate(-47deg);
      }
      @media screen and (min-width: 1024px) {
        transform: translateX(calc(-50% + 8rem)) rotate(-47deg);
      }
    }
    &.page-hero__illust--3 {
      width: 2rem;
      right: 0.75rem;
      bottom: 4.5rem;
      @media screen and (min-width: 768px) {
        right: 2rem;
      }
      @media screen and (min-width: 1024px) {
        right: 18.75rem;
      }
    }
    
  }
  
  & .page-hero__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    
    & .page-hero__title {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      max-width: 67.5rem;
      margin-right: auto;
      margin-left: auto;
      width: 100%;
      font-weight: 600;
      line-height: 1.25;
      letter-spacing: 0;
      
      & .page-hero__title-en {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-family: var(--font-display);
        color: var(--green);
        & > p {
          flex: 1 1 0%;
        }
        &::before {
          content: "";
          display: block;
          width: 1rem;
          height: 0.125rem;
          background-image: url(/system_panel/uploads/images/pencil-line--green.png);
          background-repeat: no-repeat;
          background-size: 100% 100%;
          background-position: center;
        }
      }
      & .page-hero__title-ja {
        font-family: var(--font-serif);
        font-size: 1.5rem;
        @media screen and (min-width: 768px) {
          font-size: 2rem;
        }
        @media screen and (min-width: 1024px) {
          font-size: 2.5rem;
        }
      } 
    }
  }
  
  &.page-hero--blue .page-hero__title .page-hero__title-en {
    color: var(--blue);
    &::before {
      background-image: url(/system_panel/uploads/images/pencil-line--blue.png);
    }
  }
}

.pencil-line {
  background-image: url(/system_panel/uploads/images/pencil-line.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  height: 0.125rem;
  &.pencil-line--green {
    background-image: url(/system_panel/uploads/images/pencil-line--green.png);
  }
  &.pencil-line--dark-green {
    background-image: url(/system_panel/uploads/images/pencil-line--dark-green.png);
  }
  &.pencil-line--blue {
    background-image: url(/system_panel/uploads/images/pencil-line--blue.png);
  }
  &.pencil-line--snow {
    background-image: url(/system_panel/uploads/images/pencil-line--snow.png);
  }
  &.pencil-line--lg {
    height: 0.25rem;
  }
}

.pencil-vertical-line {
  background-image: url(/system_panel/uploads/images/pencil-vertical-line.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  width: 0.125rem;
  &.pencil-vertical-line--blue {
    background-image: url(/system_panel/uploads/images/pencil-vertical-line--blue.png);
  }
  &.pencil-vertical-line--snow {
    background-image: url(/system_panel/uploads/images/pencil-vertical-line--snow.png);
  }
}

.footer-contact-link-line {
  position: absolute;
  &.footer-contact-link-line--top {
    top: -0.25rem;
    left: 0;
    width: 100%;
  }
  &.footer-contact-link-line--bottom {
    bottom: -0.25rem;
    left: 0;
    width: 100%;
    transform: rotate(180deg);
  }
  &.footer-contact-link-line--left {
    top: 0;
    left: -0.25rem;
    height: 100%;
    transform: rotate(180deg);
  }
  &.footer-contact-link-line--right {
    top: 0;
    right: -0.25rem;
    height: 100%;
  }
  &.pencil-line {
    height: 0.25rem;
  }
  &.pencil-vertical-line {
    width: 0.25rem;
  }
}

& .section-title {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;

  & .section-title__en {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    color: var(--green);
    & > p {
      flex: 1 1 0%;
    }
    &::before {
      content: "";
      display: block;
      width: 1rem;
      height: 0.125rem;
      background-image: url(/system_panel/uploads/images/pencil-line--green.png);
      background-repeat: no-repeat;
      background-size: 100% 100%;
      background-position: center;
    }
  }
  & .section-title__ja {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    @media screen and (min-width: 768px) {
      font-size: 2.5rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 3rem;
    }
  } 
  
  &.section-title--sm .section-title__ja {
    font-size: 1.5rem;
    @media screen and (min-width: 768px) {
      font-size: 2rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 2.5rem;
    }
  }
  &.section-title--xs .section-title__ja {
    font-size: 1.25rem;
    @media screen and (min-width: 768px) {
      font-size: 1.875rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 2.25rem;
    }
  }
  &.section-title--center {
    text-align: center;
    & .section-title__en {
      flex-direction: column-reverse;
    }
  }
  &.section-title--blue .section-title__en {
    color: var(--blue);
    &::before {
      background-image: url(/system_panel/uploads/images/pencil-line--blue.png);
    }
  }
  &.section-title--snow {
    & .section-title__en {
      color: var(--snow);
      &::before {
        background-image: url(/system_panel/uploads/images/pencil-line--snow.png);
      } 
    }
    & .section-title__ja {
      color: var(--snow);
    }
  }
  &.section-title--vertical .section-title__ja {
    writing-mode: vertical-rl;
    line-height: 1;
    letter-spacing: 0.25em;
  }
}

.company-illust {
  position: absolute;
  width: clamp(3rem, 10%, 10rem);
  &.company-illust--1 {
    top: 4.5rem;
    right: 0.75rem;
    @media screen and (min-width: 768px) {
      right: 2rem;
    }
    @media screen and (min-width: 1024px) {
      right: 12.75%;
    }
  }
  &.company-illust--2 {
    bottom: 3rem;
    left: 0.75rem;
    transform: rotate(-47deg);
    @media screen and (min-width: 768px) {
      top: 50%;
      bottom: auto;
      left: 2rem;
      transform: translateY(calc(-50% + 8rem)) rotate(-47deg);
    }
    @media screen and (min-width: 1024px) {
      left: 6.25%;
    }
  }
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding:0 0.25rem 0.625rem;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 600;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--dark-green);
  transition: opacity ease 200ms;
  &::before {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.125rem;
    background-image: url(/system_panel/uploads/images/pencil-line--dark-green.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
  }
  &::after {
    content: "";
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    background-image: url(/system_panel/uploads/images/arrow-right--dark-green.svg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
  }
  &:hover {
    opacity: 90%;
    text-decoration: none;
    color: var(--dark-green);
  }
  
  &.button--dark-blue {
    color: var(--dark-blue);
    &::before {
      background-image: url(/system_panel/uploads/images/pencil-line--dark-blue.png);
    }
    &::after {
      background-image: url(/system_panel/uploads/images/arrow-right--dark-blue.svg);
    }
    &:hover {
      color: var(--dark-blue);
    }
  }
  
  &.button--round {
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    background-color: var(--green);
    color: var(--snow);
    line-height: 1;
    &::before, &::after {
      content: none;
    }
    &:hover {
      color: var(--snow);
    }
    &.button--round-blue {
      background-color: var(--blue);
    }
    &.button--round-icon-left {
      padding-left: 1rem;
    }
  }
}

.contact-illust {
  position: absolute;
  width: clamp(3rem, 10%, 10rem);
  &.contact-illust--1 {
    top: 5.5rem;
    left: 0.75rem;
    transform: rotate(-47deg);
    @media screen and (min-width: 768px) {
      left: 2rem;
    }
    @media screen and (min-width: 1024px) {
      left: 5.5%;
    }
  }
  &.contact-illust--2 {
    bottom: 6.25rem;
    right: 0.75rem;
    @media screen and (min-width: 768px) {
      right: 2rem;
    }
    @media screen and (min-width: 1024px) {
      right: 7%;
    }
  }
}

.contact-bg-image {
  position: absolute;
  inset: 0;
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    mask-image: linear-gradient(90deg, rgba(234, 234, 226, 0.00) 0%, rgba(234, 234, 226, 0.10) 5%, #EAEAE2 50%, rgba(234, 234, 226, 0.10) 95%, rgba(234, 234, 226, 0.00) 100%);
    mask-size: 100% 100%;
    -webkit-mask-image: linear-gradient(90deg, rgba(234, 234, 226, 0.00) 0%, rgba(234, 234, 226, 0.10) 5%, #EAEAE2 50%, rgba(234, 234, 226, 0.10) 95%, rgba(234, 234, 226, 0.00) 100%);
    -webkit-mask-size: 100% 100%;
  }
  &::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.05) 5%, rgba(0, 0, 0, 0.20) 25%, rgba(0, 0, 0, 0.20) 75%, rgba(0, 0, 0, 0.05) 95%, rgba(0, 0, 0, 0.00) 100%);
  }
}

.recruit-intro-lines {
  position: absolute;
  inset: 0.75rem;
  @media screen and (min-width: 768px) {
    inset: 1.25rem;
  }
  @media screen and (min-width: 1024px) {
    inset: 2rem;
  }
}
.recruit-intro-line {
  position: absolute;
  &.recruit-intro-line--top, &.recruit-intro-line--bottom {
    left: 50%;
    width: calc(100% - 2rem);
  }
  &.recruit-intro-line--left, &.recruit-intro-line--right {
    top: 50%;;
    height: calc(100% - 2rem);
  }
  &.recruit-intro-line--top {
    top: 0;
    transform: translateX(-50%) rotate(180deg);
  }
  &.recruit-intro-line--bottom {
    bottom: 0;
    transform: translateX(-50%);
  }
  &.recruit-intro-line--left {
    left: 0;
    transform: translateY(-50%);
  }
  &.recruit-intro-line--right {
    right: 0;
    transform: translateY(-50%) rotate(180deg);
  }
}

.recruit-intro-illust {
  position: absolute;
  width: clamp(3rem, 20%, 10rem);
  &.recruit-intro-illust--1 {
    top: 0;
    right: 0;
    transform: translate(37.5%, -49.38271605%);
  }
  &.recruit-intro-illust--2 {
    bottom: 0;
    left: 0;
    transform: translate(-70%, 29.41176471%) rotate(-47deg);
  }
}

.recruit-flow-illust {
  width: clamp(4rem, 30%, 15rem);
  position: absolute;
  top: 5rem;
  right: 2rem;
  @media screen and (min-width: 768px) {
    top: auto;
    right: 0;
    bottom: 0;
    transform: translate(41.6666666667%, 6.7567567568%);
  }
}

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

.swiper.recruit-slide {
  width: 100%;
  overflow: visible;
  @media screen and (min-width: 1024px) {
    position: absolute;
    bottom: 0;
    left: 0;
  }
  & .swiper-wrapper {
    transition-timing-function: linear;
    & .swiper-slide {
      & img {
        aspect-ratio: 4 / 3;
        objecto-fit: cover;
        width: 100%;
      }
    }
  }
}

.recruit-links-illust {
  position: absolute;
  &.recruit-links-illust--1 {
    width: 4rem;
    top: 8.125rem;
    right: 10.625%;
  }
  &.recruit-links-illust--2 {
    width: 2.5rem;
    top: 12.25rem;
    right: 36.5%;
    transform: rotate(-16deg);
  }
  &.recruit-links-illust--3 {
    width: 2rem;
    top: 23.25rem;
    right: 21.25%;
  }
  @media screen and (min-width: 768px) {
    &.recruit-links-illust--1 {
      width: 7.5rem;
    }
    &.recruit-links-illust--2 {
      width: 3rem;
    }
    &.recruit-links-illust--3 {
      width: 3.75rem;
    }
  }
}

.business-illust {
  position: absolute;
  &.business-illust--foundation {
    width: clamp(2rem, 22.5%, 9rem);
    top: 2rem;
    right: 3.5rem;
  }
  @media screen and (min-width: 768px) {
    top: 5rem;
  }
  &.business-illust--expansion {
    width: clamp(2rem, 17.77777778%, 8rem);
    top: 2.5rem;
    right: 3.5rem;
  }
  &.business-illust--logistics {
    width: clamp(2rem, 17.77777778%, 8rem);
    top: 2.5rem;
    right: 3.5rem;
  }
  &.business-illust--1 {
    width: 10rem;
    top: -15rem;
    left: -8rem;
    transform: rotate(-40deg);
  }
  &.business-illust--2 {
    width: 15rem;
    top: -15.625rem;
    right: -5.625rem;
  }
}

.business-products-illust {
  position: absolute;
  &.business-products-illust--1 {
    width: 4rem;
    top: 4rem;
    left: 0.75rem;
    transform: rotate(-47deg);
    @media screen and (min-width: 768px) {
      width: 7.5rem;
      left: 4.375rem;
    }
  }
  &.business-products-illust--2 {
    width: 3rem;
    top: 8rem;
    right: 1.25rem;
    transform: rotate(15deg);
    @media screen and (min-width: 768px) {
      width: 6rem;
    }
  }
  &.business-products-illust--3 {
    width: 15rem;
    right: -3.75rem;
    bottom: -3.75rem;
  }
}

.business-products-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  @media screen and (min-width: 768px) {
    width: calc((100% - 2rem) / 2);
  }
  @media screen and (min-width: 1024px) {
    width: calc((100% - 4rem) / 3);
  }
}

.strength-intro-illust {
  position: absolute;
  &.strength-intro-illust--1 {
    width: clamp(2rem, 23.8805970149%, 5rem);
    bottom: 0;
    left: 0;
    transform: translate(-50%, 44.4444444444%);
  }
  &.strength-intro-illust--2 {
    width: clamp(1.5rem, 22.9007633588%, 3.75rem);
    top: 0;
    right: 0;
    transform: translate(33.33333333%, -80%) rotate(10deg);
    @media screen and (min-width: 1024px) {
      transform: translate(33.33333333%, 19.20903955%) rotate(10deg);
    }
  }
  &.strength-intro-illust--3 {
    width: clamp(3rem, 19.48051948%, 7.5rem);
    top: -1.5rem;
    right: -1rem;
    @media screen and (min-width :1024px) {
      top: 3rem;
      right: auto;
      left: 1.5rem;
    }
  }
  &.strength-intro-illust--4 {
    width: clamp(2rem, 7.8125%, 6.25rem);
    bottom: -0.625rem;
    left: -4.375rem;
  }
}

.strength-pillar-illust {
  position: absolute;
  &.strength-pillar-illust--1 {
    width: clamp(3rem, 20%, 15rem);
    top: 0;
    right: 0;
    transform: translate(-25%, -9.5238095238%);
  }
  &.strength-pillar-illust--2 {
    width: clamp(3rem, 20%, 15rem);
    top: 0;
    right: 0;
    transform: translate(-25%, -10%);
    @media screen and (min-width: 1024px) {
      top: auto;
      right: auto;
      bottom:0;
      left: 0;
      transform: translate(25%, 14.9812734082%);
    }
  }
  &.strength-pillar-illust--3 {
    width: clamp(3rem, 20%, 15rem);
    top: 0;
    right: 0;
    transform: translate(16.6666666667%, -28.8065843621%);
  }
}
