*,
*::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(--linen);
  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;
        background-color: hsla(from var(--ink) h s l / 10%);
        &:hover {
          text-decoration: none;
        }
      }

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

  & 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/thumbnail.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;
}

.flat-top-hexagon {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  aspect-ratio: 1 / 0.866;
}

.point-top-hexagon {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);;
  aspect-ratio: 0.866 / 1;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 10rem 1.25rem 3rem;
  border-bottom: 1px solid hsl(0 0 0 / 10%);
  &.page-hero--ink {
    background-image: var(--linen-ink--alt);
    border-color: hsl(0 0 100 / 10%);
  }
  @media (min-width: 414px) {
    padding: 12.5rem 2.5rem 3rem;
  }
  @media (min-width: 1024px) {
    padding: 15rem 3.75rem 4rem;
  }
  @media (min-width: 1200px) {
    padding-left: 5rem;
    padding-right: 5rem;
  }
  
  & .page-hero__veil {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(calc(-50% + 2.5rem));
    width: 100%;
    @media (min-width: 768px) {
    }
  }
  
  & .page-hero__hexagons {
    position: absolute;
    top: 2.5rem;
    right: -1.5rem;
    width: 11.25rem;
    display: flex;
    flex-direction: column;
    @media (min-width: 414px) {
      width: 15rem;
    }
    @media (min-width: 768px) {
      width: 20rem;
      top: -2rem;
      right: 3rem;
    }
    @media (min-width: 1024px) {
      width: 27rem;
      top: -6rem;
      right: 5rem;
    }
    @media (min-width: 1200px) {
      right: 11.25rem;
    }
    & .page-hero__hexagon-1 {
      background-color: var(--snow);
      width: 82.2222222222%;
    }
    & .page-hero__hexagon-2 {
      background-color: var(--snow);
      width: 55.5555555556%;
      margin-top: -11.1111111111%;
      margin-left: 44.4444444444%;
    }
  }
  
  & .page-hero__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 80rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    
    & .page-hero__title {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      & .page-hero__title-en {
        line-height: 1.25;
        letter-spacing: 0.02em;
        font-weight: 600;
        font-size: 1rem;
      }
      & .page-hero__title-ja {
        line-height: 1.6;
        letter-spacing: 0.04em;
        font-weight: 500;
        font-size: 2rem;
        @media (min-width: 414px) {
          font-size: 2.25rem;
        }
        @media (min-width: 1024px) {
          font-size: 2.5rem;
        }
      }
    }
  }
}

.breadcrumbs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  font-size: 0.875rem;
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  line-height: 1;
  letter-spacing: 0.04em;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  transition: opacity ease 200ms;
  & p {
    flex: 1 1 0%;
  }
  &:hover {
    text-decoration: none;
    color: var(--ink);
    opacity: 80%;
  }
  &::before {
    content: "";
    display: block;
    height: 1px;
    background-color: var(--ink);
    position: absolute;
    right: 2.75rem;
    bottom: 0.125rem;
    left: -0.125rem;
  }
  &::after {
    content: "";
    display: block;
    width: 1.875rem;
    height: 1.625rem;
    background-image: url(/system_panel/uploads/images/hexagon-icon.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    filter: var(--elevation-2-filter);
  }
  &.button--snow {
    color: var(--snow);
    &:hover {
      color: var(--snow);
    }
    &::before {
      background-color: var(--snow);
    }
    &::after {
      background-image: url(/system_panel/uploads/images/hexagon-icon--snow.svg);
      filter: var(--elevation-2-filter--snow);
    }
  }
}

.outline-bg-dec {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -1.6044925792%);
  width: clamp(20rem, 67.5%, 67.5rem);
}

.footer-contact-bg-image {
  position: absolute;
  inset: 0;
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  &::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background-color: hsl(0 0 0 / 50%);
  }
}

.agriculture-intro-illust {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -16%);
  width: clamp(15rem, 37.5%, 30rem);
  opacity: 10%;
}

.crops-bg-hexagon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-38%, -12.2183708839%);
  width: clamp(20rem, 92.5925925926%, 62.5rem);
}

.services-nav-bg-hexagon {
  width: clamp(25rem, 55.5555555556%, 50rem);
  transform: translate(-30%, -13.0010834236%);
}

.features-hexagon {
  position: absolute;
  top: 0;
  width: clamp(20rem, 62.5%, 50rem);
  &.features-hexagon-1 {
    left: 0;
    transform: translate(-15%, -21.6684723727%);
  }
  &.features-hexagon-2 {
    right: 0;
    transform: translate(20%, -21.6684723727%);
  }
}

.profile-bg-hexagon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -6.3054187192%);
  width: clamp(25rem, 73.3333333333%, 55rem);
}

.wish-hexagons {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 3rem;
  opacity: 10%;
  @media (min-width: 1024px) {
    opacity: 100%;
  }
  & .wish-hexagon-1 {
    width: 83.3333333333%;
    margin-left: auto;
    & img {
      width: 100%;
    }
  }
  & .wish-hexagon-2 {
    width: 50%;
    margin-top: -7%;
    & img {
      width: 100%;
    }
  }
}

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

.category-list {
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    @media screen and (min-width: 768px) {
      gap: 1.25rem;
    }
  }
}

.footer-bg-hexagon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50rem;
}





