*,
*::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: 700;
}

#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;
        background-color: var(--ink);
        color: var(--snow);
        &:hover {
          text-decoration: none;
          color: var(--snow);
        }
      }

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

  & img,
  & video,
  &: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;
  padding: 5rem 1.25rem 2.5rem;
  border-bottom: 2px solid var(--ink);
  @media (min-width: 768px) {
    padding-inline: 2.5rem;
  }
  @media (min-width: 1024px) {
    padding-left: 3.75rem;
  }
  @media (min-width: 1200px) {
    padding-left: 5rem;
  }
  &::before {
    content: "";
    position: absolute;
    inset: 0 -3rem 0 auto;
    width: 27.5rem;
    background-color: var(--navy);
    transform: skew(32deg);
    display: none;
    @media (min-width: 768px) {
      display: block;
    }
    @media (min-width: 1024px) {
      right: -2rem;
      width: 32rem;
    }
    @media (min-width: 1200px) {
      right: -3.5rem;
      width: 36.5rem;
    }
  }
  
  & .page-hero__title {
    display: grid;
    gap: 1.5rem;
    line-height: 1.25;
    --title-size: 2.5rem;
    @media (min-width: 768px) {
      --title-size: 3.5rem;
    }
    @media (min-width: 1024px) {
      --title-size: 4rem;
    }
    @media (min-width: 1200px) {
      --title-size: 5rem;
    }
    & .page-hero__title-en {
      letter-spacing: 0.02em;
      font-family: var(--font-display);
      font-weight: 400;
      font-size: calc(var(--title-size) / 2);
      color: var(--blue);
      margin-left: 0.25rem;
    }
    & .page-hero__title-ja {
      letter-spacing: 0;
      font-weight: 900;
      font-size: var(--title-size);
    }
  }
  
  & .breadcrumbs {
    display: flex;
    justify-content: end;
    gap: 1.25rem;
    line-height: 1.25;
    font-size: 0.875rem;
    @media (min-width: 768px) {
      color: var(--snow);
      & a {
        color: var(--snow);
      }
    }
    @media (min-width: 1024px) {
      gap: 1.5rem;
      font-size: 1.125rem;
    }
    @media (min-width: 1200px) {
      gap: 2rem;
      font-size: 1.25rem;
    }
  }
}

.section-title {
  position: relative;
  display: grid;
  gap: 1.5rem;
  line-height: 1.25;
  --title-size: 2.5rem;
  @media (min-width: 768px) {
    --title-size: 3.5rem;
  }
  @media (min-width: 1024px) {
    --title-size: 4rem;
  }
  @media (min-width: 1200px) {
    --title-size: 5rem;
  }
  & .section-title__en {
    letter-spacing: 0.02em;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(0.875rem, calc(var(--title-size) / 2), 2.5rem);
    color: var(--blue);
    margin-left: 0.25rem;
  }
  & .section-title__ja {
    letter-spacing: 0;
    font-weight: 900;
    font-size: var(--title-size);
  }
  
  &.section-title--center {
    text-align: center;
    & .section-title__en {
      margin-left: 0;
    }
  }
  &.section-title--snow {
    color: var(--snow);
    & .section-title__en {
      color: var(--snow);
    }
  }
  &.section-title--64 {
    --title-size: 2rem;
    @media (min-width: 768px) {
      --title-size: 2.5rem;
    }
    @media (min-width: 1024px) {
      --title-size: 3rem;
    }
    @media (min-width: 1200px) {
      --title-size: 4rem;
    }
  }
  &.section-title--56 {
    --title-size: 1.75rem;
    @media (min-width: 768px) {
      --title-size: 2.25rem;
    }
    @media (min-width: 1024px) {
      --title-size: 2.75rem;
    }
    @media (min-width: 1200px) {
      --title-size: 3.5rem;
    }
  }
  &.section-title--48 {
    --title-size: 1.5rem;
    @media (min-width: 768px) {
      --title-size: 2rem;
    }
    @media (min-width: 1024px) {
      --title-size: 2.25rem;
    }
    @media (min-width: 1200px) {
      --title-size: 3rem;
    }
  }
  &.section-title--36 {
    --title-size: 1.5rem;
    @media (min-width: 768px) {
      --title-size: 1.75rem;
    }
    @media (min-width: 1024px) {
      --title-size: 2rem;
    }
    @media (min-width: 1200px) {
      --title-size: 2.25rem;
    }
  }
}

.button {
  position: relative;
  --button-color: var(--blue);
  border: 2px solid var(--button-color);
  padding: 1.125rem 0.75rem 1.125rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--button-color);
  transition: all ease 200ms;
  &::after {
    content: "";
    aspect-ratio: 1 / 1;
    width: 2rem;
    background-image: url("/system_panel/uploads/images/chevron-right-blue.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  &:hover {
    text-decoration: none;
    color: var(--button-color);
    opacity: 85%;
    transform: scale(0.95);
  }
  
  &.button--navy {
    --button-color: var(--navy);
    &::after {
      background-image: url("/system_panel/uploads/images/chevron-right.svg");
    }
  }
  &.button--snow {
    --button-color: var(--snow);
    &::after {
      background-image: url("/system_panel/uploads/images/chevron-right-snow.svg");
    }
  }
}

.recruit-bebefit-num {
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 5rem;
  position: absolute;
  top: -0.4375em;
  left: -0.25em;
  z-index: 1;
  @media (min-width: 768px) {
    font-size: 8rem;
  }
  @media (min-width: 1024px) {
    font-size: 6rem;
  }
  @media (min-width: 1200px) {
    font-size: 8rem;
  }
}

.others-bg-image {
  position: absolute;
  inset: 0;
  &::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--navy);
    opacity: 40%;
  }
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}


.blog-category {
  & .webgene-blog {
    display: grid;
    gap: 0.75rem;
  }
}

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

