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

#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: 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;
        border: 1px solid var(--blue);
        color: var(--blue);
        &:hover {
          text-decoration: none;
        }
      }

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

  & 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;
  border-bottom: 4px solid var(--blue);
  padding: 12.5rem 1.25rem 2.5rem;
  anchor-name: --page-hero-anchor;
  @media (min-width: 768px) {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  @media (min-width: 1024px) {
    padding-left: 3.75rem;
    padding-right: 3.75rem;
  }
  @media (min-width: 1200px) {
    padding-left: 5rem;
    padding-right: 5rem;
  }
  
  & .page-hero__bg-lines {
    position: absolute;
    border-width: 0px;
    border-style: solid;
    border-color: var(--blue);
    opacity: 20%;
    filter: blur(1px);
    &.page-hero__bg-lines--horizontal {
      top: 7.5rem;
      left: 0;
      height: 6.25rem;
      width: 100%;
      border-top-width: 1px;
      border-bottom-width: 1px;
    }
    &.page-hero__bg-lines--vertical {
      top: 0;
      right: 7.5rem;
      height: 100%;
      width: 5rem;
      border-left-width: 1px;
      border-right-width: 1px;
    }
    &.page-hero__bg-lines--diagonal {
      top: 7rem;
      left: 0;
      height: 6.25rem;
      width: 125%;
      border-top-width: 1px;
      border-bottom-width: 1px;
      transform-origin: top left;
      transform: rotate(30deg);
    }
  }
  
  & .page-hero__title {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    & .page-hero__title-en {
      line-height: 1;
      font-family: var(--font-display);
      font-weight: 400;
      font-size: 1.5rem;
      color: var(--blue);
    }
    & .page-hero__title-ja {
      line-height: 1.15;
      letter-spacing: 0;
      font-weight: 900;
      font-size: 3rem;
      background-clip: text;
      color: transparent;
      background-image: var(--grad-blue-to-ink);
      &.page-hero__title-ja--careers {
        font-size: 2rem;
      }
    }
    @media (min-width: 768px) {
      & .page-hero__title-en {
        font-size: 1.75rem;
      }
      & .page-hero__title-ja {
        font-size: 4rem;
        &.page-hero__title-ja--careers {
          font-size: 4rem;
        }
      }
    }
    @media (min-width: 1024px) {
      & .page-hero__title-en {
        font-size: 2.25rem;
      }
      & .page-hero__title-ja {
        font-size: 5.5rem;
        &.page-hero__title-ja--careers {
          font-size: 5.5rem;
        }
      }
    }
    @media (min-width: 1200px) {
      & .page-hero__title-en {
        font-size: 2.5rem;
      }
      & .page-hero__title-ja {
        font-size: 6.25rem;
        &.page-hero__title-ja--careers {
          font-size: 6.25rem;
        }
      }
    }
  }
}

.bg-lines-1 {
  position: absolute;
  border-width: 0px;
  border-style: solid;
  border-color: var(--blue);
  opacity: 20%;
  filter: blur(1px);
  &.bg-lines-1--horizontal {
    top: 5rem;
    left: 0;
    height: 6.25rem;
    width: 100%;
    border-top-width: 1px;
    border-bottom-width: 1px;
  }
  &.bg-lines-1--vertical {
    top: 0;
    right: 10rem;
    height: 100%;
    width: 5rem;
    border-left-width: 1px;
    border-right-width: 1px;
  }
  &.bg-lines-1--diagonal {
    top: 18.25rem;
    left: 0;
    height: 6.25rem;
    width: 125%;
    border-top-width: 1px;
    border-bottom-width: 1px;
    transform-origin: top left;
    transform: rotate(30deg);
    &.bg-lines-1--diagonal-center {
      top: 40%;
    }
  }
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  & .section-title__en {
    line-height: 1;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1rem;
    color: var(--blue);
  }
  & .section-title__ja {
    line-height: 1.15;
    letter-spacing: 0;
    font-weight: 900;
    font-size: 2rem;
    background-clip: text;
    color: transparent;
    background-image: var(--grad-blue-to-ink);
  }
  @media (min-width: 768px) {
    & .section-title__en  {
      font-size: 1.25rem;
    }
    & .section-title__ja {
      font-size: 2.5rem;
    }
  }
  @media (min-width: 1024px) {
    & .section-title__en {
      font-size: 1.5rem;
    }
    & .section-title__ja {
      font-size: 3rem;
    }
  }
  @media (min-width: 1200px) {
    & .section-title__en  {
      font-size: 2.5rem;
    }
    & .section-title__ja {
      font-size: 4rem;
    }
  }
  
  &.section-title--lg {
    & .section-title__en  {
      font-size: 1rem;
    }
    & .section-title__ja {
      font-size: 1.7rem;
    }
    @media (min-width: 768px) {
      & .section-title__en  {
        font-size: 1.5rem;
      }
      & .section-title__ja {
        font-size: 3.5rem;
      }
    }
    @media (min-width: 1024px) {
      & .section-title__en {
        font-size: 2rem;
      }
      & .section-title__ja {
        font-size: 4.5rem;
      }
    }
    @media (min-width: 1200px) {
      & .section-title__en  {
        font-size: 2.5rem;
      }
      & .section-title__ja {
        font-size: 6.25rem;
      }
    }
  }
  &.section-title--sm {
    & .section-title__ja {
      font-size: 1.25rem;
      @media (min-width: 768px) {
        font-size: 2.5rem;
      }
      @media (min-width: 1024px) {
        font-size: 3rem;
      }
    }    
  }
  &.section-title--center {
    text-align: center;
  }
  &.section-title--snow {
    & .section-title__en {
      color: var(--snow);
    }
    & .section-title__ja {
      color: var(--snow);
      background-image: none;
    }
  }
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1rem 1.625rem 1rem 1.5rem;
  background-color: var(--blue);
  border: 1px solid var(--ink);
  line-height: 1.25rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--snow);
  transition: all ease 200ms;
  &::before {
    content: "";
    aspect-ratio: 1 / 1;
    width: 0.5rem;
    border-radius: 9999px;
    background-color: var(--snow);
    animation: pulse-shadow 2s infinite ease-out;
  }
  &:hover {
    text-decoration: none;
    color: var(--snow);
    opacity: 90%;
    transform: scale(0.95);
  }
  
  &.button--snow {
    background-color: transparent;
    border-color: var(--snow);
    
  }
}

@keyframes pulse-shadow {
  0% {
    box-shadow: 0 0 0 0 hsl(from var(--snow) h s l / 60%);
  }
  100% {
    box-shadow: 0 0 0 0.5rem hsl(from var(--snow) h s l / 0%);
  }
}

.footer-bg-lines {
  position: absolute;
  border-width: 0px;
  border-style: solid;
  border-color: var(--snow);
  opacity: 20%;
  filter: blur(1px);
  &.footer-bg-lines--horizontal {
    top: 1.25rem;
    left: 0;
    height: 6.25rem;
    width: 100%;
    border-top-width: 1px;
    border-bottom-width: 1px;
  }
  &.footer-bg-lines--vertical {
    top: 0;
    right: 3.75rem;
    height: 100%;
    width: 5rem;
    border-left-width: 1px;
    border-right-width: 1px;
  }
  &.footer-bg-lines--diagonal {
    top: 9rem;
    left: 0;
    height: 6.25rem;
    width: 125%;
    border-top-width: 1px;
    border-bottom-width: 1px;
    transform-origin: top left;
    transform: rotate(15deg);
  }
}

.footer-typo {
  width: 102%;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  & img {
    width: 100%;
  }  
}

.our-culture-num {
  line-height: 1;
  font-family: var(--font-display);
  color: var(--blue);
  font-size: 5rem;
  position: absolute;
  top: -0.4em;
  left: -0.2em;
  @media (min-width: 768px) {
    font-size: 7.5rem;
  }
}

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

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










