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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--white);
  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;
  }
}

.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 / 15%);
        &:hover {
          text-decoration: none;
        }
      }

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

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

.thumbnail {
  position: relative;
  padding-top: 66.6666%;

  &.thumbnail--16x9 {
    padding-top: 56.25%;
  }

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

.hero-title {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 1.25rem;

  & .hero-title__en {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;

    &::before {
      content: "";
      display: block;
      width: 17px;
      height: 20px;
      background-image: url(/system_panel/uploads/images/white-hexagon.svg);
    }
  }

  & .hero-title__ja {
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.25;
    font-size: 2rem;
  }
}

@media screen and (min-width: 768px) {
  .hero-title {
    & .hero-title__ja {
      font-size: 2.5rem;
    }
  }
}

@media screen and (min-width: 1024px) {
  .hero-title {
    & .hero-title__ja {
      font-size: 3rem;
    }
  }
}


.section-title {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 0.25rem;

  & .section-title__en {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    color: var(--emerald);

    &::before {
      content: "";
      display: block;
      width: 17px;
      height: 20px;
      background-image: url(/system_panel/uploads/images/emerald-hexagon.svg);
    }
  }

  & .section-title__ja {
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.25;
    font-size: 1.5rem;
  }
  &.section-title--yellow {
    & .section-title__en {
      color: var(--yellow);

      &::before {
        background-image: url(/system_panel/uploads/images/yellow-hexagon.svg);
      }
    }
  }
  &.section-title--center {
    text-align: center;
    align-items: center;
    flex-direction: column;
    & .section-title__en {
      flex-direction: column;
    }
  }
  &.section-title--small {
    & .section-title__en {
      font-size: 0.875rem;
    }
    & .section-title__ja {
      font-size: 1rem;
      @media screen and (min-width: 768px) {
        font-size: 1.125rem;
      }
    }
  }
}

@media screen and (min-width: 768px) {
  .section-title {
    & .section-title__ja {
      font-size: 1.75rem;
    }
  }
}

@media screen and (min-width: 1024px) {
  .section-title {
    & .section-title__ja {
      font-size: 2rem;
    }
  }
}


.button {
  padding: 1.5rem 1.5rem 1.25rem;
  display: inline-flex;
  gap: 0.5rem;
  align-items: flex-end;
  line-height: 1.25;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  background-image: var(--grad-emerald-blue);
  min-width: 17.5rem;
  white-space: nowrap;
  justify-content: center;
  transition: all 250ms ease;
  color: var(--snow);
  cursor: pointer;
  
  &:hover {
    opacity: 0.85;
    text-decoration: none;
    color: var(--snow);
  }
  
  &::after {
    content: "";
    background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2224%22%20viewBox%3D%220%200%2020%2024%22%20fill%3D%22none%22%3E%0A%3Cpath%20d%3D%22M10%200.625L20%206.375V17.875L10%2023.625L0%2017.875V6.375L10%200.625Z%22%20fill%3D%22white%22%20fill-opacity%3D%220.2%22%2F%3E%0A%3Cpath%20d%3D%22M10.7692%2014.6589L10.2308%2014.0936L11.5962%2012.7097H6.92308V11.9301H11.5962L10.2308%2010.5462L10.7692%209.98093L13.0769%2012.3199L10.7692%2014.6589Z%22%20fill%3D%22white%22%2F%3E%0A%3C%2Fsvg%3E');
    width: 20px;
    height: 23px;
    background-size: contain;
    background-repeat: no-repeat;
  }
  & .button__text {
    flex: 1 0 0%;
  }
  &.button--center {
    align-items: center;
  }
}

.shadow-black {
  filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.20)) drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.16));
}

.category-list {
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  & .webgene-item {
    &::before {
      content: "・";
    }
  }
}

.case-list {
  & .webgene-blog {
    display: grid;
    gap: 2rem;
    
    @media screen and (min-width: 768px) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  & .webgene-pagination, & .webgene-no-items {
    @media screen and (min-width: 768px) {
      grid-column: span 2 / span 2;
    }
  }
}
.news-list {
  & .webgene-pagination {
    margin-top: 2rem;
  }
  & .webgene-item:last-of-type {
    border-bottom: 1px solid hsla(from var(--ink) h s l / 15%);
  }
}

.item-images {
  & .item-image {
    & img {
      width: 100%;
      object-fit: cover;
      aspect-ratio: 3 / 2;
    }
  }
}

.service-flow {
  counter-reset: flow;
  display: flex;
  flex-direction: column;
  
  @media screen and (min-width: 1200px) {
    flex-direction: row;
    flex-wrap: wrap;
    margin-left: 3.125rem;
    row-gap: 1.5rem;
  }
  
  & .service-flow__item {
    color: var(--snow);
    position: relative;
    counter-increment: flow;
    padding: 5rem 1.5rem;
    background-image: url("/system_panel/uploads/images/flow-polygon--mobile.png");
    background-size: 100% 100%;
    min-height: 20rem;
    
    &:first-child {
      background-image: url("/system_panel/uploads/images/flow-polygon-start--mobile.png");
      padding-top: 2.5rem;
    }
    &:last-child {
      background-image: url("/system_panel/uploads/images/flow-polygon-end--mobile.png");
      padding-bottom: 2.5rem;
    }
    
    & + .service-flow__item {
      margin-top: -3.125rem;
    }
    
    @media screen and (min-width: 768px) {
      padding: 7.5rem 5rem;
    }
    @media screen and (min-width: 1200px) {
      width: calc((100% + 9.375rem) / 4);
      margin-left: -3.125rem;
      min-height: 23.75rem;
      & + .service-flow__item {
        margin-top: 0;
      }
    
      background-image: url("/system_panel/uploads/images/flow-polygon.png");
      padding: 3.75rem 3rem 0 5.25rem;
      &:first-child {
        background-image: url("/system_panel/uploads/images/flow-polygon-start.png");
        padding: 3.75rem 3.75rem 0 2.5rem;
      }
      &:last-child {
        background-image: url("/system_panel/uploads/images/flow-polygon-end.png");
        padding: 3.75rem 1.25rem 0 5.25rem;
      }
    }
  }
  & .service-flow__num {
    &::before {
      content: "STEP " counter(flow);
      font-size: 0.75rem;
      font-weight: 500;
    }
  }
}

.faq-list {
  & .collapsible {
    border-bottom: 1px solid hsl(from var(--ink) h s l / 20%);
  }
}

.recruit-polygon {
  position: absolute;
  background-image: url("/system_panel/uploads/images/emerald-polygon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  
  &.recruit-polygon--entry {
    width: 108px;
    height: 125px;
    top: -2.5rem;
    left: 33%;
    transform: translateX(-50%);
  }
  &.recruit-polygon--schedule {
    width: 396px;
    height: 460px;
    bottom: 1.25rem;
    left: 7.5rem;
  }
  &.recruit-polygon--workplace-top {
    width: 651px;
    height: 752px;
    top: -3.125rem;
    right: -1.25rem;
  }
  &.recruit-polygon--workplace-bottom {
    width: 457px;
    height: 529px;
    bottom: 0;
    left: 3.75rem;
  }
  &.recruit-polygon--strengths {
    width: 280px;
    height: 324px;
    top: -2.5rem;
    right: 2.5rem;
  }
}
.services-items {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  justify-content: center;
  
  @media screen and (min-width: 768px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  @media screen and (min-width: 1024px) {
    display: flex;
    flex-wrap: wrap;
  }
}


.services-item {
  @media screen and (min-width: 1024px) {
    width: calc((100% - 3rem) / 3);
  }
}



