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

#root {
  max-width: 1920px;
  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-gray);
        &:hover {
          text-decoration: none;
        }
      }

      &.selected {
        & a {
          background-color: var(--light-blue);
          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.66666667%;
  }
  &.thumbnail--1x1 {
    padding-top: 100%;
  }
  @media (min-width: 768px) {
    &.md--thumbnail--1x1 {
      padding-top: 100%;
    }
  }

  & 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;
  border-bottom: 1px solid var(--light-gray);
  padding: 15rem 1.25rem 3.75rem;
  &::before,
  &::after {
    content: "";
    display: block;
    position: absolute;
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }
  &::before {
    aspect-ratio: 871 / 865;
    width: 54.4375rem;
    top: -7.5rem;
    right: -5rem;
    background-image: url("/system_panel/uploads/images/page-hero-hexagons.svg");
  }
  &::after {
    aspect-ratio: 308 / 238;
    width: 19.25rem;
    top: 5rem;
    right: -5rem;
    background-image: url("/system_panel/uploads/images/bee-path-1.svg");
  }
  
  
  & .page-hero__title {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 80rem;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.25;
    & .page-hero__title-en {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      padding: 0 0.5rem 0.25rem;
      align-self: start;
      letter-spacing: 0.16em;
      color: var(--yellow);
      font-size: 0.875rem;
      &::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        position: absolute;
        bottom: 0;
        left: 0;
        background-image: radial-gradient(circle, var(--yellow) 1px, transparent 1px);
        background-position: bottom;
        background-size: 5px 1px;
        background-repeat: repeat-x;
      }
    }
    & .page-hero__title-ja {
      font-weight: 500;
      font-size: 2rem;
    }
  }
  
  @media (min-width: 768px) {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
    &::after {
      right: 5rem;
    }
    & .page-hero__title {
      & .page-hero__title-en {
        font-size: 1rem;
      }
      & .page-hero__title-ja {
        font-size: 2.5rem;
      }
    }
  }
  @media (min-width: 1024px) {
    padding-right: 3.75rem;
    padding-left: 3.75rem;
    & .page-hero__title {
      & .page-hero__title-ja {
        font-size: 3rem;
      }
    }
  }
  @media (min-width: 1200px) {
    padding-right: 5rem;
    padding-bottom: 5rem;
    padding-left: 5rem;
    &::after {
      right: 23.75rem;
    }
  }
}

.about-intro-bee-path {
  position: absolute;
  &.about-intro-bee-path--1 {
    aspect-ratio: 395 / 126;
    width: clamp(10rem, 82.2916666667%, 24.6875rem);
    top: -2.5rem;
    left: 0;
    transform: translate(-50.6329113924%, -63.4920634921%);
    @media (min-width: 1024px) {
      top: 0;
    }
  }
  &.about-intro-bee-path--2 {
    aspect-ratio: 115 / 250;
    width: clamp(4rem, 20.5357142857%, 7.1875rem);
    bottom: 0;
    right: 0;
    transform: translate(104.347826087%, 40%);
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  line-height: 1.25;
  --title-color: var(--yellow);
  & .section-title__en {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0 0.5rem 0.25rem;
    align-self: start;
    letter-spacing: 0.16em;
    color: var(--title-color);
    font-size: 0.875rem;
    @media (min-width 768px) {
      font-size: 1rem;
    }
    &::after {
      content: "";
      display: block;
      width: 100%;
      height: 1px;
      position: absolute;
      bottom: 0;
      left: 0;
      background-image: radial-gradient(circle, var(--title-color) 1px, transparent 1px);
      background-position: bottom;
      background-size: 5px 1px;
      background-repeat: repeat-x;
    }
  }
  & .section-title__ja {
    font-weight: 500;
  }
  &.section-title--center {
    text-align: center;
    & .section-title__en {
      align-self: center;
    }
  }
  &.section-title--with-hexagon {
    & .section-title__en::before {
      content: "";
      display: block;
      aspect-ratio: 1 / 1.1547;
      width: 0.875rem;
      clip-path: polygon(
        50% 0%, 
        100% 25%, 
        100% 75%, 
        50% 100%, 
        0% 75%, 
        0% 25%
      );
      background-color: var(--title-color);
    }
  }
  &.section-title--light-blue {
    --title-color: var(--light-blue);
  }
}

.title-dec-bee-path-4 {
  position: absolute;
  aspect-ratio: 212 / 126;
  width: 13.25rem;
  top: -3.125rem;
  right: 0.625rem;
  display: none;
  @media (min-width: 768px) {
    display: block;
  }
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem 0.5rem 1.5rem;
  background-color: var(--snow);
  box-shadow: var(--elevation-2);
  line-height: 1.25;
  letter-spacing: 0.08em;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--ink);
  transition: all ease 200ms;
  &::after {
    content: "";
    display: block;
    aspect-ratio: 1 / 1;
    width: 1.5rem;
    background-image: url("/system_panel/uploads/images/arrow-right.svg");
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }
  &:hover {
    text-decoration: none;
    color: var(--ink);
    opacity: 90%;
    transform: scale(0.95);
  }
  &.button--icon-left {
    padding-right: 1.25rem;
    padding-left: 1.5rem;
    &::after {
      content: none;
    }
  }
  &.button--other-icon {
    &::after {
      content: none;
    }
  }
}

.box-tr-dec-bee-path-5 {
  width: 13.25rem;
  position: absolute;
  top: -5rem;
  right: -3.75rem;
}
.box-bl-dec-bee-path-3 {
  width: 7.1875rem;
  transform: scaleX(-1);
  position: absolute;
  bottom: -3.75rem;
  left: -7.5rem;
}

.footer-contact-images {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  grid-template-areas:
    ". . . a a a a a"
    ". . . a a a a a"
    ". . . a a a a a"
    "b b b a a a a a"
    "b b b a a a a a"
    "b b b c c c c ."
    "b b b c c c c ."
    ". . . c c c c .";
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    box-shadow: var(--elevation-2);
    &:first-child {
      grid-area: a;
    }
    &:nth-child(2) {
      grid-area: b;
    }
    &:last-child {
      grid-area: c;
    }
  }
}

.footer-contact-title-dec-bee-path-3 {
  position: absolute;
  top: -6.875rem;
  right: -7.5rem;
  width: 24.6875rem;
  @media (min-width: 1024px) {
    top: 0;
    right: -7.5rem;
  }
}

.concept-intro-image-dec {
  position: absolute;
  &.concept-intro-image-dec--right {
    width: 7.7083333333%;
    top: 0;
    right: 0;
    transform: translate(-135.1351351351%, -40.243902439%) scaleX(-1);
  }
  &.concept-intro-image-dec--left {
    width: 14.7222222222%;
    top: 0;
    left: 0;
    transform: translate(85.8490566038%, -87.3134328358%);
  }
}

.concept-feature-dec {
  width: clamp(10rem, 54%, 15rem);
  position: absolute;
  top: 0;
  left: 2rem;
  transform: translate(-37.037037037%, -38.7096774194%);
  & > img {
    width: 100%;
    filter: drop-shadow(var(--elevation-2));
  }
  & .concept-feature-dec__bee-path-1 {
    width: 100.9259259259%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-33.0275229358%, 49.4186046512%);
    & img {
      width: 100%;
    }
  }
  & .concept-feature-dec__bee-path-3 {
    width: 34.2592592593%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-33.7837837838%, 91.8238993711%);
    & img {
      width: 100%;
    }
  }
}

.horizontal-hardboiled-lines {
  pointer-events: none;
  position: absolute;
  inset: 0 2.5%;
  &::before,
  &::after {
    content: "";
    display: block;
    height: 2px;
    width: 100%;
    background-image: url("/system_panel/uploads/images/horizontal-hardboiled-line.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
  }
  &::before {
    top: 0;
  }
  &::after {
    bottom: 0;
  }
}

.vertical-hardboild-lines {
  pointer-events: none;
  position: absolute;
  inset: 2.5% 0;
  &::before,
  &::after {
    content: "";
    display: block;
    height: 100%;
    width: 2px;
    background-image: url("/system_panel/uploads/images/vertical-hardboiled-line.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
  }
  &::before {
    left: 0;
  }
  &::after {
    right: 0;
  }
}

.concept-strength-bee-path-5 {
  position: absolute;
  width: 21.75rem;
  top: -6.75rem;
  left: -0.875rem;
}

.concept-strength-bee-path-1 {
  position: absolute;
  width: 33.375rem;
  top: -8.25rem;
  right: -2.5rem;
}

.concept-strength-bee-path-3 {
  position: absolute;
  width: 8.125rem;
  top: -2rem;
  right: -2rem;
  transform: rotate(111deg);
}

.concept-strength-image {
  width: 100%;
  max-width: 35rem;
  margin-left: auto;
  & img {
    object-fit: cover;
    aspect-ratio: 2 / 1;
    width: 100%;
  }
  @media (min-width: 1024px) {
    position: absolute;
    width: 25rem;
    top: -3rem;
    right: -8rem;
  }
  @media (min-width: 1200px) {
    width: 35rem;
    top: -7.5rem;
    right: -10rem;
  }
}

.news-list-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  & * {
    display: inline;
    font-size: 0.875rem
  }
  & img, & a {
    display: none;
  }
}

.news-list {
  & .webgene-blog {
    display: grid;
    gap: 2rem
  }
}

.news-archive, .news-category {
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
}

.home-insta1 {
  & .swiper-wrapper {
    transition-timing-function: linear;
  }
}














