*,
*::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(--light-gray);
  letter-spacing: 0.04em;
}

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

.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: 0.5rem;
  border-bottom: 1px solid hsl(from var(--ink) h s l / 40%);
  height: 35rem;
  @media (min-width: 768px) {
    padding: 1rem;
  }
  @media (min-width: 1200px) {
    height: 40rem;
  }
  
  & .page-hero__image {
    position: relative;
    height: 100%;
    width: 100%;
    &::after {
      pointer-events: none;
      content: "";
      position: absolute;
      inset: 0;
      background-image: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.25) 100%);
    }
    & img {
      object-fit: cover;
      height: 100%;
      width: 100%;
    }
  }
  
  & .page-hero__title {
    position: absolute;
    z-index: 1;
    bottom: 0.625rem;
    left: 0.625rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.75rem;
    @media (min-width: 768px) {
      bottom: 1.5rem;
      left: 1.5rem;
      gap: 1.25rem;
    }
    @media (min-width: 1024px) {
      bottom: 2.5rem;
      left: 2.5rem;
      gap: 1.5rem;
    }
    
    & .page-hero__title-en {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 0.75rem;
      background-color: var(--snow);
      &::before {
        content: "";
        height: 1px;
        width: 4rem;
        background-color: var(--green);
        @media (min-width: 768px) {
          width: 6rem;
        }
        @media (min-width: 1024px) {
          width: 8rem;
        }
      }
      & > p {
        background-image: var(--grad-blossom);
        color: transparent;
        background-clip: text;
        line-height: 1;
        letter-spacing: 0.12em;
        font-family: var(--font-display);
        font-size: 1.5rem;
        @media (min-width: 768px) {
          font-size: 1.75rem;
        }
        @media (min-width: 1024px) {
          font-size: 2rem;
        }
      }
    }
    & .page-hero__title-ja {
      background-color: var(--snow);
      padding: 1rem 1.5rem 0.75rem;
      line-height: 1.25;
      letter-spacing: 0.24em;
      font-weight: 500;
      font-size: 1.75rem;
      @media (min-width: 768px) {
        padding: 1.25rem 2rem 1rem;
        font-size: 3rem;
      }
      @media (min-width: 1024px) {
        font-size: 3.75rem;
      }
    }
  }
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 3rem 0.25rem 0.5rem;
  border-bottom: 1px solid var(--ink);
  line-height: 1;
  letter-spacing: 0.04em;
  font-size: 0.875rem;
  color: var(--ink);
  transition: opacity ease 200ms;
  &::before,
  &::after {
    content: "";
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
  }
  &::before {
    width: 0.25rem;
    background-color: var(--green);
  }
  &::after {
    width: 1.25rem;
    border: 1px solid var(--ink);
    position: absolute;
    right: -0.75rem;
    bottom: -0.375rem;
  }
  &:hover {
    text-decoration: none;
    opacity: 90%;
    color: var(--ink);
  }
}

.plant-silhouette {
  position: absolute;
  &.plant-silhouette--cosmos {
    width: clamp(12rem, 27%, 27rem);
    aspect-ratio: 108 / 125;
    top: 0;
    right: 0;
    transform: translate(-9.2592592593%, 13.3333333333%);
  }
  &.plant-silhouette--leaves {
    width: clamp(6rem, 12.75%, 12.75rem);
    aspect-ratio: 203 / 548;
    bottom: 0;
    left: 0;
    transform: translateX(34.3137254902%);
    &.plant-silhouette--leaves-tr {
      inset: 0 0 auto auto;
      transform: translate(-14.7058823529%, 5.4744525547%);      
    }
  }
  &.plant-silhouette--tulip {
    width: clamp(12rem, 29.375%, 29.375rem);
    aspect-ratio: 67 / 55;
    bottom: 0;
    left: 0;
    transform: translateX(-10.6382978723%);
  }
  &.plant-silhouette--tulip-footer {
    width: 12.125rem;
    aspect-ratio: 97 / 80;
    bottom: 0;
    right: 1.25rem;
    @media (min-width: 1024px) {
      right: 2.5rem;
    }
  }
  &.plant-silhouette--yamaboushi {
    width: clamp(15rem, 31.75%, 31.75rem);
    aspect-ratio: 509 / 420;
    top: 0;
    right: 0;
    transform: translate(-5.8939096267%, -23.8095238095%);
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 2.5rem;

  & .section-title__en {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    &::before {
      content: "";
      height: 1px;
      width: 4rem;
      background-color: var(--green);
      @media (min-width: 768px) {
        width: 6rem;
      }
      @media (min-width: 1024px) {
        width: 8rem;
      }
    }
    & > p {
      background-image: var(--grad-blossom);
      color: transparent;
      background-clip: text;
      line-height: 1;
      letter-spacing: 0.12em;
      font-family: var(--font-display);
      font-size: 1.5rem;
      @media (min-width: 768px) {
        font-size: 1.75rem;
      }
      @media (min-width: 1024px) {
        font-size: 2rem;
      }
    }
  }
  & .section-title__ja {
    line-height: 1.25;
    font-size: 2rem;
    @media (min-width: 768px) {
      font-size: 2.125rem;
    }
    @media (min-width: 1024px) {
      font-size: 2.25rem;
    }
  }
  
  &.section-title--center {
    align-items: center;
  }
  &.section-title--lg .section-title__ja {
    font-size: 2rem;
    @media (min-width: 768px) {
      font-size: 2.5rem;
    }
    @media (min-width: 1024px) {
      font-size: 3rem;
    }
  }
}

.rectuit-intro-image {
  position: absolute;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: none;
  @media (min-width: 768px) {
    display: block;
  }
  &.rectuit-intro-image--tl {
    width: clamp(12rem, 25%, 25rem);
    top: -2rem;
    left: -1.5rem;
    @media (min-width: 1024px) {
      left: -2.5rem;
    }
    @media (min-width: 1200px) {
      top: 4.375rem;
      left: -1.875rem;
    }
  }
  &.rectuit-intro-image--br {
    width: clamp(15rem, 30%, 30rem);
    bottom: 0;
    right: -2rem;
    @media (min-width: 1200px) {
      bottom: 3.75rem;
      right: -0.625rem;
    }
  }
}

.recruit-merits-title {
  line-height: 1.25;
  font-size: 0.875rem;
  white-space: nowrap;
  padding: 0.625rem;
  background-color: var(--light-gray);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  @media (min-width: 768px) {
    font-size: 1.75rem;
  }
}

.footer-gurimu-logo {
  width: 10rem;
  position: absolute;
  top: -8rem;
  right: -0.625rem;
  @media (min-width: 768px) {
    width: 12.5rem;
    top: -6.25rem;
    right: 0.625rem;
  }
}

.swiper:not(.swiper-initialized) {
  & .swiper-wrapper {
    display: flex;
    overflow: auto;
    & .swiper-slide {
      min-width: 95%;
    }
  }
  &.strengths-slider {
    & .strengths-slider__controls {
      top: 100%;
      padding-top: 0;
    }
  }
}

.strengths-slider {
  position: relative;
  max-width: 57.5rem;
  width: 100%;
  margin-right: auto;
  margin-left: 0;
  --swiper-pagination-color: var(--green);
  & .swiper-wrapper {
    align-items: flex-start; 
  }
  & .strengths-slider__image {
    position: relative;
    aspect-ratio: 5 / 2;
    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    &::after {
      pointer-events: none;
      content: "";
      position: absolute;
      inset: 0;
      background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.50) 100%);
    }
  }
  
  & .strengths-slider__controls {
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 40%;
    width: 100%;
    transform: translateY(1rem);
  }
  & .swiper-pagination {
    position: static;
    margin: 0;
    flex: 1 1 0;
    inset: auto;
    max-width: 30rem;
    height: 4px;
  }
  & .swiper-button-prev,
  & .swiper-button-next {
    position: static;
    margin: 0;
    inset: auto;
    width: 1.5rem;
    height: 1.5rem;
  }
  & .swiper-button-next {
    transform: scaleX(-1);
  }
}

.vertical-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  line-height: 1.15;
  font-size: 2rem;
  & p:last-child {
    padding-left: 0.75rem;
  }
  @media (min-width: 768px) {
    writing-mode: vertical-rl;
    gap: 0.75rem;
    line-height: 1;
    lette-spacing: 0.15em;
    font-size: 2.25rem;
    max-width: 7.5rem;
    flex: 1 1 0;
    & p:last-child {
      padding-top: 0.6em;
      padding-left: 0;
    }
  }
  @media (min-width: 1200px) {
    gap: 1rem;
    font-size: 2.5rem;
  }
  
  &.vertical-title--flat {
    & p:last-child {
      padding: 0;
    }
  }
}

.insta1-list,
.insta2-list {
  & .webgene-blog {
    transition-timing-function: linear;
  }
}




