*,
*::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);
  font-weight: 300;
  letter-spacing: 0.08em;
}

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

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

.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;
  padding: 10rem 1.25rem 3.75rem;
  @media (min-width: 768px) {
    padding-bottom: 5rem;
    padding-inline: 2.5rem;
  }
  @media (min-width: 1024px) {
    padding-inline: 3.75rem;
  }
  @media (min-width: 1200px) {
    padding: 15rem 5rem 6.25rem;
  }
  
  & .page-hero__bg-image {
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 80%;
    mask-image: linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.80) 24.52%, rgba(255, 255, 255, 0.40) 50.96%, rgba(255, 255, 255, 0.00) 100%);
    -webkit-mask-image: linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.80) 24.52%, rgba(255, 255, 255, 0.40) 50.96%, rgba(255, 255, 255, 0.00) 100%);
  }
  
  & .page-hero__title {
    position: relative;
    display: grid;
    gap: 1.5rem;
    line-height: 1.25;
    text-align: center;
    & .page-hero__title-en {
      letter-spacing: 0.16em;
      color: var(--olive);
    }
    & .page-hero__title-ja {
      letter-spacing: 0.12em;
      font-family: var(--font-display);
      font-weight: 400;
      font-size: 2rem;
    }
    @media (min-width: 768px) {
     & .page-hero__title-en {
        font-size: 1.25rem;
      }
      & .page-hero__title-ja {
        font-size: 2.5rem;
      }
    }
    @media (min-width: 1024px) {
     & .page-hero__title-en {
        font-size: 1.5rem;
      }
      & .page-hero__title-ja {
        font-size: 3rem;
      }
    }
    @media (min-width: 1200px) {
     & .page-hero__title-en {
        font-size: 2rem;
      }
      & .page-hero__title-ja {
        font-size: 4rem;
      }
    }
  }
}

.section-title {
  position: relative;
  display: grid;
  gap: 1.5rem;
  line-height: 1.25;
  & .section-title__en {
    position: relative;
    letter-spacing: 0.16em;
    color: var(--olive);
  }
  & .section-title__ja {
    position: relative;
    letter-spacing: 0.12em;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
  }
  @media (min-width: 768px) {
    & .section-title__en {
      font-size: 1.125rem;
    }
    & .section-title__ja {
      font-size: 2rem;
    }
  }
  @media (min-width: 1024px) {
    & .section-title__en {
      font-size: 1.25rem;
    }
    & .section-title__ja {
      font-size: 2.5rem;
    }
  }
  @media (min-width: 1200px) {
    & .section-title__en {
      font-size: 1.5rem;
    }
    & .section-title__ja {
      font-size: 3rem;
    }
  }
  
  &.section-title--snow {
    color: var(--snow);
    & .section-title__en {
      color: var(--snow);
    }
  }
}

.dec-strawberries {
  aspect-ratio: 241 / 304;
  width: 7.5rem;
  background-image: url("/system_panel/uploads/images/strawberries.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  position: absolute;
  @media (min-width: 768px) {
    width: 12rem;
  }
  @media (min-width: 1200px) {
    width: 15rem;
  }
  &.dec-strawberries--section-tr {
    top: 0;
    right: 0;
    transform: translate(8.3333333333%, -6.6225165563%);
    &.dec-strawberries--section-tr-top-0 {
      transform: translateX(8.3333333333%);
    }
  }
  &.dec-strawberries--section-tl {
    top: 0;
    left: 0;
    transform: translate(-8.3333333333%, -30%) scaleX(-1);
  }
}

.button {
  position: relative;
  z-index: 0;
  padding: 0.5rem 0.875rem 0.5rem 2rem;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  line-height: 1.25;
  letter-spacing: 0.16em;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.125rem;
  color: var(--ink);
  transition: all ease 200ms;
  &::before {
    z-index: -1;
    content: "";
    display: block;
    height: 100%;
    width: 2.4375rem;
    border-radius: 9999px;
    background-color: var(--olive);
    position: absolute;
    top: 0;
    left: 0;
    transition: all ease 200ms;
  }
  &::after {
    content: "";
    aspect-ratio: 1 / 1;
    width: 1.25rem;
    background-image: url("/system_panel/uploads/images/arrow-right.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat; 
    transition: all ease 200ms;
  }
  &:hover {
    text-decoration: none;
    color: var(--snow);
    &::before {
      width: 100%;
    }
    &::after {
      background-image: url("/system_panel/uploads/images/arrow-right-snow.svg");
    }
  }
  
  &.button--snow {
    &::before {
      background-color: var(--snow);
    }
    &:hover {
      color: var(--ink);
      &::after {
        background-image: url("/system_panel/uploads/images/arrow-right.svg");
      }
    }
  }
  &.button--red {
    color: var(--snow);
    &::before {
      background-color: var(--red);
    }
    &::after {
      background-image: url("/system_panel/uploads/images/arrow-right-snow.svg");
    }
  }
  &.button--ink {
    color: var(--snow);
    &::before {
      background-color: var(--ink);
    }
    &::after {
      background-image: url("/system_panel/uploads/images/arrow-right-snow.svg");
    }
  }
  
  &.button--external {
    & > img {
      &:last-of-type  {
        display: none;
      }
    }
    &::after {
      content: none;
    }
    &:hover {
      & > img {
        &:first-of-type {
          display: none;
        }
        &:last-of-type  {
          display: block;
        }
      }
    }
  }
}

.recruit-intro-title-dec-flower {
  width: 10rem;
  position: absolute;
  top: -7.5rem;
  left: -10rem;
}

.recruit-intro-bg-image {
  position: absolute;
  inset: 0 auto 0 8rem;
  width: 100%;
  @media (min-width: 768px) {
    left: 12rem;
    width: auto;
  }
  @media (min-width: 1024px) {
    left: 20rem;
  }
  @media (min-width: 1200px) {
    left: 25rem;
  }
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    mask-image: linear-gradient(270deg, #FFF 0%, rgba(255, 255, 255, 0.80) 24.52%, rgba(255, 255, 255, 0.40) 50.96%, rgba(255, 255, 255, 0.00) 100%);
    -webkit-mask-image: linear-gradient(270deg, #FFF 0%, rgba(255, 255, 255, 0.80) 24.52%, rgba(255, 255, 255, 0.40) 50.96%, rgba(255, 255, 255, 0.00) 100%);
  }
}

.lined-card {
  position: relative;
  border: 1px solid var(--olive);
  & > * {
    position: relative;
    height: 100%;
  }
  &::before,
  &::after {
    content: "";
    background-color: var(--olive);
    position: absolute;
  }
  &::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }
  &::after {
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  @media (min-width: 1024px) {
    &.lg--sticky {
      position: sticky;
    }
  }
}

.footer-maps {
  position: relative;
  display: grid;
  @media (min-width: 768px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    & > div:only-child {
      grid-column: span 2 / span 2;
    }
    & > div:nth-child(even) {
      border-left: 1px solid var(--olive);
    }
  }
}

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

.news-list {
  & .webgene-blog {
    display: grid;
    gap: 1rem;
  }
  & .webgene-pagination {
    margin-top: 0.5rem;
  } 
}

.contact-lined-card {
  position: relative;
  border: 1px solid var(--olive);
  --card-padding: 0.625rem;
  padding: var(--card-padding);
  @media (min-width: 768px) {
    --card-padding: 1.25rem;
  }
  & .contact-lined-card__bg-image {
    position: absolute;
    inset: 0;
    &::after {
      pointer-events: none;
      content: "";
      position: absolute;
      inset: 0;
      background-color: var(--light-olive);
      opacity: 85%;
    }
    & img {
      object-fit: content;
      width: 100%;
      height: 100%;
    }
  }
  & .contact-lined-card__vertival-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    &::before,
    &::after {
      content: "";
      background-color: var(--olive);
      height: var(--card-padding);
      width: 1px;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
    }
    &::before {
      top: 0;
    }
    &::after {
      bottom: 0;
    }
  }
  &::before,
  &::after {
    content: "";
    background-color: var(--olive);
    height: 1px;
    width: var(--card-padding);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
  }
  &::before {
    left: 0;
  }
  &::after {
    right: 0;
  }
}

.our-pigs-card {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 2.5rem 1.25rem;
  display: grid;
  align-items: end;
  @media (min-width: 768px) {
    padding-inline: 2.5rem;
  }
  @media (min-width: 1024px) {
    &:nth-child(even) {
      margin-top: 5rem;
    }
  }
  @media (min-width: 1200px) {
    &:nth-child(even) {
      margin-top: 10rem;
    }
  }
  
  & .our-pigs-card__bg-image {
    position: absolute;
    inset: 0;
    &::after {
      pointer-events: none;
      content: "";
      position: absolute;
      inset: 0;
      background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.60) 75%, rgba(255, 255, 255, 0.90) 100%);
    }
    & img {
      width: 100%;
      height: 100%;
    }
  }
  
  & .our-pigs-card__title {
    line-height: 1.25;
    letter-spacing: 0.12em;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    position: relative;
    display: grid;
    align-self: start;
    &::after {
      content: "";
      height: 4px;
      width: calc(100% + 2rem);
      background-image: url("/system_panel/uploads/images/under-line.png");
      background-size: 100% 100%;
      background-repeat: no-repeat;
      margin-top: 0.25rem;
    }
    @media (min-width: 768px) {
      font-size: 2rem;
    }
    @media (min-width: 1200px) {
      font-size: 2.5rem;
    }
  }
  .our-pigs-card__leaf-1 {
    position: absolute;
    width: 7.5rem;
    bottom: -3.125rem;
    left: -3.75rem;
  }
  .our-pigs-card__leaf-2 {
    position: absolute;
    width: 10.75rem;
    right: -6.62444rem;
    top: -4.13413rem;
  }
  .our-pigs-card__flower {
    width: 10rem;
    position: absolute;
    left: -7.5rem;
    bottom: -4.375rem;
  }
  
  &.our-pigs-card--red {
    color: var(--snow);
    & .our-pigs-card__bg-image {
      &::after {
        background-image: linear-gradient(180deg, rgba(130, 23, 36, 0.25) 0%, rgba(130, 23, 36, 0.40) 75%, rgba(130, 23, 36, 0.70) 100%);
      }
    }
    & .our-pigs-card__title {
      &::after {
        background-image: url("/system_panel/uploads/images/under-line-snow.png");
      }
    }
  }
}

.bg-strawberry {
  width: 12.5rem;
  position: absolute;
  top: -11.125rem;
  left: -7.5rem;
  @media (min-width: 1200px) {
    width: 18.75rem;
    top: -8rem;
    left: -8.75rem;
  }
  &.bg-strawberry--tr {
    width: 12.5rem;
    position: absolute;
    top: -12.5rem;
    right: -4.5rem;
    left: auto;
    transform: scaleX(-1);
  }
}

.pigs-sub-hero {
  position: relative;
  padding: 10rem 1.25rem 5rem;
  @media (min-width: 768px) {
    padding-inline: 2.5rem;
  }
  @media (min-width: 1024px) {
    padding-inline: 3.75rem;
  }
  @media (min-width: 1200px) {
    padding: 12.5rem 5rem 6.25rem;
  }
  & .pigs-sub-hero__bg-image {
    position: absolute;
    inset: 0;
    &::after {
      content: "";
      pointer-events: none;
      position: absolute;
      inset: 0;
      background-color: var(--snow);
      opacity: 50%;
    }
    & img {
      opacity: 80%;
      width: 100%;
      height: 100%;
      object-fit: cover;
      mask-image :linear-gradient(0deg, #FFF 0%, rgba(255, 255, 255, 0.80) 15.38%, rgba(255, 255, 255, 0.40) 75%, rgba(255, 255, 255, 0.00) 100%);
      -webkit-mask-image :linear-gradient(0deg, #FFF 0%, rgba(255, 255, 255, 0.80) 15.38%, rgba(255, 255, 255, 0.40) 75%, rgba(255, 255, 255, 0.00) 100%);
    }
  }
  
  & .pigs-sub-hero__title {
    line-height: 1.25;
    letter-spacing: 0.12em;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2rem;
    position: relative;
    display: grid;
    align-self: start;
    &::after {
      content: "";
      height: 4px;
      width: calc(100% + 2rem);
      background-image: url("/system_panel/uploads/images/under-line.png");
      background-size: 100% 100%;
      background-repeat: no-repeat;
      margin-top: 0.25rem;
    }
    @media (min-width: 768px) {
      font-size: 2.5rem;
    }
    @media (min-width: 1024px) {
      font-size: 3rem;
    }
    @media (min-width: 1200px) {
      font-size: 4rem;
    }
  }
  
  &.pigs-sub-hero--red {
    color: var(--snow);
    & .pigs-sub-hero__bg-image {
      &::after {
        background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(130, 23, 36, 0.40) 50%, rgba(130, 23, 36, 0.70) 100%);
      }
    }
    & .pigs-sub-hero__title {
      &::after {
        background-image: url("/system_panel/uploads/images/under-line-snow.png");
      }
    }
  }
}

.pigs-intro-leaf {
  position: absolute;
  top: -1rem;
  left: -8rem;
  width: 8rem;
}
.pigs-intro-flower {
  position: absolute;
  bottom: -5rem;
  left: -10rem;
  width: 10rem;
}

.pigs-secret-leaf-1 {
  position: absolute;
  width: 10.75rem;
  top: -2.56rem;
  right: -5rem;
  @media (min-width: 768px) {
    right: 0;
  }
}
.pigs-secret-leaf-2 {
  position: absolute;
  width: 7.5rem;
  top: -2.5rem;
  left: -3.75rem;
}

.compost-lined-card {
  position: relative;
  border: 1px solid var(--snow);
  --card-padding: 0.625rem;
  padding: var(--card-padding);
  @media (min-width: 768px) {
    --card-padding: 1.25rem;
  }
  & .compost-lined-card__bg-image {
    position: absolute;
    inset: 0;
    &::after {
      pointer-events: none;
      content: "";
      position: absolute;
      inset: 0;
      background-color: var(--olive);
      opacity: 80%;
    }
    & img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
  }
  & .compost-lined-card__vertival-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    &::before,
    &::after {
      content: "";
      background-color: var(--snow);
      height: var(--card-padding);
      width: 1px;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
    }
    &::before {
      top: 0;
    }
    &::after {
      bottom: 0;
    }
  }
  &::before,
  &::after {
    content: "";
    background-color: var(--snow);
    height: 1px;
    width: var(--card-padding);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
  }
  &::before {
    left: 0;
  }
  &::after {
    right: 0;
  }
}

.philosophy-intro-bg-image {
  position: absolute;
  inset: 0;
  & img {
    opacity: 80%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image :linear-gradient(0deg, #FFF 0%, rgba(255, 255, 255, 0.80) 15.38%, rgba(255, 255, 255, 0.40) 75%, rgba(255, 255, 255, 0.00) 100%);
    -webkit-mask-image :linear-gradient(0deg, #FFF 0%, rgba(255, 255, 255, 0.80) 15.38%, rgba(255, 255, 255, 0.40) 75%, rgba(255, 255, 255, 0.00) 100%);
  }
}

.philosophy-intro-leaf {
  position: absolute;
  top: -5rem;
  right: -2rem;
  width: 5rem;
  @media (min-width: 1024px) {
    top: 0;
    width: 8rem;
  }
}

.initiatives-bg-illust {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54.5454545455%;
  min-width: 15rem;
  opacity: 10%;
}

.insta1 {
  width: 100%;
  & .swiper-wrapper {
    transition-timing-function: linear;
  }
}














