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

#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;
        &:hover {
          text-decoration: none;
        }
      }

      &.selected {
        & a {
          &:hover {}
        }
      }
    }
  }
}

.webgene-no-items {
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
  color: var(--snow);
}

.thumbnail {
  position: relative;

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

  & 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;
  padding: 12.5rem 1.25rem 5rem;
  @media (min-width: 768px) {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }
  @media (min-width: 1024px) {
    padding: 15rem 3.75rem 7.5rem;
  }
  @media (min-width: 1200px) {
    padding-right: 5rem;
    padding-left: 5rem;
  }
  
  & .page-hero__image {
    position: absolute;
    inset: 0;
    &::before {
      pointer-events: none;
      content: "";
      width: 120%;
      height: 1px;
      opacity: 40%;
      position: absolute;
      z-index: 1;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) rotate(12deg);
      background-color: var(--snow);
    }
    &::after {
      pointer-events: none;
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.50) 27.4%, rgba(255, 255, 255, 0.00) 44.23%), rgba(0, 0, 0, 0.20); 
    }
    & img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
  }
  
  & .page-hero__title {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 67.5rem;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    font-weight: 500;
    color: var(--snow);
    text-align: center;
    & .page-hero__title-ja {
      line-height: 1.15;
      font-size: 2.5rem;
      @media (min-width: 768px) {
        font-size: 3rem;
      }
      @media (min-width: 1024px) {
        font-size: 3.5rem;
      }
      @media (min-width: 1200px) {
        font-size: 4rem;
      }
    }
    & .page-hero__title-en {
      line-height: 1;
      font-family: var(--font-display);
      font-size: 1.25rem;
      @media (min-width: 1024px) {
        font-size: 1.5rem;
      }
    }
  }
}

.button {
  position: relative;
  display: flex;
  align-items: end;
  gap: 1.25rem;
  padding: 0.875rem 1rem 0.5rem 2rem;
  border: 1px solid var(--ink);
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 400;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink);
  transition: all ease 200ms;
  &::after {
    content: "";
    aspect-ratio: 50 / 7.5;
    width: 3.125rem;
    margin-bottom: 0.375rem;
    background-image: url(/system_panel/uploads/images/arrow-right.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
  &:hover {
    text-decoration: none;
    color: var(--ink);
    opacity: 90%;
    transform: scale(0.95); 
  }
  
  &.button--snow {
    color: var(--snow);
    border-color: var(--snow);
    &::after {
      background-image: url(/system_panel/uploads/images/arrow-right--snow.svg);
    }
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  @media (min-width: 768px) {
    flex-direction: row;
    align-items: end;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  & .section-title__en {
    line-height: 1;
    font-family: var(--font-display);
    font-size: 3rem;
    @media (min-width: 768px) {
      font-size: 5rem;
    }
    @media (min-width: 1024px) {
      font-size: 6.5rem;
    }
    @media (min-width: 1200px) {
      font-size: 8rem;
    }
  }
  & .section-title__ja {
    line-height: 1.25;
    font-size: 1.25rem;
    position: relative;
    padding-top: 1.1875rem;
    padding-left: 1.5rem;
    margin-left: 2rem;
    &::before {
      content: "";
      width: 3rem;
      height: 1px;
      background-color: var(--ink);
      position: absolute;
      top: 2.125rem;
      left: 0;
      transform-origin: bottom left;
      transform: rotate(-45deg);
    }
    @media (min-width: 768px) {
      margin-left: 0;
    }
  }
  
  &.section-title--sm {
    & .section-title__en {
      @media (min-width: 768px) {
        font-size: 4rem;
        margin-bottom: 1rem;
      }
      @media (min-width: 1024px) {
        font-size: 5rem;
        margin-bottom: 1.5rem;
      }
      @media (min-width: 1200px) {
        font-size: 6.25rem;
        margin-bottom: 1.75rem;
      }
    }
    & .section-title__ja {
      font-size: 1.125rem;
    }
  }
}

.bg-diagonal-line {
  &::before {
    pointer-events: none;
    content: "";
    width: 120%;
    height: 1px;
    opacity: 40%;
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: var(--ink);
    transform: translate(-50%, -50%) rotate(var(--line-deg));
  }
  &.bg-diagonal-line--message {
    --line-deg: -20deg;
  }
  &.bg-diagonal-line--interview {
    --line-deg: 15deg;
  }
}

.interview-bubble {
  &::before {
    pointer-events: none;
    content: "";
    aspect-ratio: 1 / 1;
    width: 3.75rem;
    position: absolute;
    bottom: -1rem;
    left: 8rem;
    border-bottom: 1px solid var(--ink);
    background-color: var(--snow);
    transform: rotate(-45deg);
  }
}

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

.footer-contact-image {
  object-fit: cover;
  width: 100%;
  height: 20rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 23% 100%);
  @media (min-width: 768px) {
    height: 25rem;
  }
  @media (min-width: 1024px) {
    height: 35rem;
  }
  @media (min-width: 1200px) {
    height: auto;
    width: 51.735%;
  }
}

.footer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 3rem;
  & p:first-child {
    line-height: 1.25;
    font-family: var(--font-display);
    font-size: 0.75rem;
    opacity: 40%;
  }
  & p:last-child {
    writing-mode: vertical-rl;
    flex-shrink: 0;
    line-height: 1;
    letter-spacing: 0.05em;
    font-size: 1.5rem;
  }
  @media (min-width: 768px) {
    width: 5rem;
    & p:first-child {
      font-size: 1rem;
    }
    & p:last-child {
      font-size: 2rem;
    }
  }
}

.footer-to-top-button {
  background-color: var(--snow);
  border-radius: 9999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 6.25rem;
  position: absolute;
  right: 0.625rem;
  bottom: 0.625rem;
  @media (min-width: 768px) {
    right: 2.5rem;
    bottom: 5rem;
  }
  @media (min-width: 1024px) {
    right: 3.75rem;
  }
  @media (min-width: 1200px) {
    right: 5rem;
  }
}

.footer-bg-typo {
  position: absolute;
  right: 3.75rem;
  bottom: 1.25rem;
  width: 21.25rem;
  @media (min-width: 768px) {
    width: 43.25rem;
    top: 0.625rem;
    right: -10%;
    bottom: auto;
  }
  @media (min-width: 1200px) {
    right: -10%;
  }
}

.strength-bg-dec {
  background-color: var(--snow);
  width: 95.4375%;
  height: 46.75rem;
  position: absolute;
  bottom: 0;
  right: 0;
  &.strength-bg-dec--left {
    right: auto;
    left: 0;
  }
}

.strength-num {
  position: absolute;
  &.strength-num--1 {
    width: 65.6666666667%;
    max-width: 24.625rem;
    top: 0;
    right: 0;
    transform: translate(10.152284264%, -58.0110497238%);
  }
  &.strength-num--2 {
    width: 58.6666666667%;
    max-width: 22rem;
    top: 0;
    left: 0;
    transform: translate(-11.3636363636%, -75.3086419753%);
  }
  &.strength-num--3 {
    width: 60.8333333333%;
    max-width: 22.8125rem;
    top: 0;
    right: 0;
    transform: translate(6.5753424658%, -74.6192893401%);
  }
}

.business-bg-typo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  &.business-bg-typo--1 {
    width: 52%;
  }
  &.business-bg-typo--2 {
    width: 51%;
  }
  &.business-bg-typo--3 {
    width: 57.2%;
  }
}













