*,
*::before,
*::after {
  min-width: 0px;
  min-height: 0px;
}

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background-color: var(--snow);
  background-image: var(--stone);
  letter-spacing: 0.05em;
}

#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: 0.875rem;
    padding: 0;
    margin: 0;

    & li {
      & a {
        display: inline-block;
        width: 3rem;
        line-height: 3rem;
        text-align: center;
        letter-spacing: 0;
        font-weight: 700;
        background-color: hsl(from var(--ink) h s l / 2%);
        &:hover {
          text-decoration: none;
        }
      }

      &.selected {
        & a {
          color: var(--snow);
          background-color: var(--ink);
          &:hover {
            text-decoration: none;
            color: var(--snow);
          }
        }
      }
    }
  }
}

.webgene-no-items {
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
}

.thumbnail {
  position: relative;

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

  & 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%;
}

.page-hero-wrapper {
  height: 30rem;
  @media screen and (min-width: 768px) {
    padding: 1.25rem;
    height: 32rem;
  }
  @media screen and (min-width: 1024px) {
    padding: 1.75rem;
    height: 35rem;
  }
  @media screen and (min-width: 1200px) {
    padding: 2rem;
    height: 37.5rem;
  }
  
  & .page-hero {
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 1.5rem;
    padding: 3.75rem 1.25rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    line-height: 1.25;
    font-weight: 500;
    color: var(--snow);
    @media screen and (min-width: 768px) {
      border-radius: 1.25rem;
      padding-right: 2.5rem;
      padding-left: 2.5rem;
    }
    @media screen and (min-width: 1024px) {
      border-radius: 2rem;
      padding-right: 3.75rem;
      padding-left: 3.75rem;
    }
    @media screen and (min-width: 1200px) {
      padding-right: 5rem;
      padding-left: 5rem;
    }
    
    & .page-hero__image {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100%;
      & img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        position: relative;
      }
      &::after {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: hsl(0 0 0 / 25%);
        pointer-events: none;
      }
    }
    
    & .page-hero__title {
      position: relative;
      display: flex;
      flex-direction: column;
      row-gap: 0.25rem;
      column-gap: 1rem;
      @media screen and (min-width: 768px) {
        flex-direction: row;
        align-items: baseline;
      }
      & .page-hero__title-ja {
        font-size: 1.5rem;
        @media screen and (min-width: 768px) {
          font-size: 2rem;
        }
        @media screen and (min-width: 1024px) {
          font-size: 2.5rem;
        }
        @media screen and (min-width: 1200px) {
          font-size: 3rem;
        }
      }
      & .page-hero__title-en {
        font-size: 1rem;
        @media screen and (min-width: 768px) {
          font-size: 1.125rem;
        }
        @media screen and (min-width: 1024px) {
          font-size: 1.25rem;
        }
        @media screen and (min-width: 1200px) {
          font-size: 1.5rem;
        }
      }
    }
    
    & .page-hero__breadcrumbs {
      position: relative;
      display: flex;
      flex-wrap: wrap;
      justify-content: end;
      row-gap: 0.5rem;
      column-gap: 1rem;
      font-size: 0.875rem;
      @media screen and (min-width: 768px) {
        font-size: 1rem;
      }
      & .page-hero__breadcrumbs-link {
        color: var(--snow);
        transition: opacity ease 200ms;
        &:hover {
          color: var(--snow);
          opacity: 85%;
          text-decoration: none;
        }
      }
    }
  }
}

.button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  background-color: var(--ink);
  color: var(--snow);
  line-height: 1.25;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-size: 1.125rem;
  transition: all ease 200ms;
  &::after {
    content: "";
    display: block;
    background-image: url('data:image/svg+xml;charset=utf8,<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.793 5.29289C13.1835 4.90237 13.8165 4.90237 14.207 5.29289L20.207 11.2929C20.5976 11.6834 20.5976 12.3164 20.207 12.707L14.207 18.707C13.8165 19.0975 13.1835 19.0975 12.793 18.707C12.4024 18.3164 12.4024 17.6834 12.793 17.2929L17.0859 12.9999H5.5C4.94772 12.9999 4.5 12.5522 4.5 11.9999C4.5 11.4476 4.94772 10.9999 5.5 10.9999H17.0859L12.793 6.70696C12.4024 6.31643 12.4024 5.68342 12.793 5.29289Z" fill="white"/></svg>');
    width: 25px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
  }
  &:hover {
    color: var(--snow);
    opacity: 90%;
    text-decoration: none;
    transform: scale(0.95);
  }
  
  &.button--no-arrow::after {
    content: none;
  }
}

.footer-contact-wrapper {
  @media screen and (min-width: 768px) {
    padding: 1.25rem;
  }
  @media screen and (min-width: 1024px) {
    padding: 1.75rem;
  }
  @media screen and (min-width: 1200px) {
    padding: 2rem;
  }
  
  & .footer-contact {
    display: flex;
    flex-direction: column;
    padding: 5rem 1.25rem;
    position: relative;
    overflow: hidden;
    color: var(--snow);
    @media screen and (min-width: 768px) {
      border-radius: 1.25rem;
      padding: 7.5rem 2.5rem;
    }
    @media screen and (min-width: 1024px) {
      border-radius: 2rem;
	  padding: 10rem 3.75rem;
    }
    @media screen and (min-width: 1200px) {
      padding-right: 5rem;
      padding-left: 5rem;
    }
  }
}

.case-list .webgene-blog {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 2rem;
}

.news-list .webgene-blog {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  
  & .webgene-pagination {
    margin-top: 2rem;
  }
}

.case-detail .item-image, .news-list .item-image {
  position: relative;
  padding-top: 56.25%;
  border-radius: 1rem;
  overflow: hidden;
  & img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.case-detail .article-body {
  max-width: 50rem;
  margin-right: auto;
  width: 100%;
}

.page-cases-bg {
  position: absolute;
  
  &.page-cases-bg--dec {
    width: 77rem;
    top: 4rem;
    right: 0;
    bottom: 4rem;
    background-color: hsl(from var(--ink) h s l / 2%);
  }
  
  &.page-cases-bg--image {
    width: 61.25rem;
    opacity: 15%;
    right: 4.5rem;
    bottom: 9.75rem;
    & imag {
      object-fit: cover;
      width: 100%;
    }
  }
}

.section-title {
  display: flex;
  flex-direction: column;
  margin-top: 3rem;
  position: relative;
  
  & .section-title__en  {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.25;
    color: var(--rose);
    position: absolute;
    top: -2rem;
    left: -0.625rem;
    white-space: nowrap;
    transform: rotate(-3deg);
    @media screen and (min-width: 768px) {
      font-size: 1.25rem;
      top: -2.875rem;
      left: -1.25rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 1.5rem;
      top: -3.25rem;
      left: -1.875rem;
    }
  }
  
  & .section-title__ja-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    @media screen and (min-width: 768px) {
      font-size: 1.75rem;
    }
  }
  & .section-title__ja {
    line-height: 1.25;
    font-weight: 500;
    font-size: 1.5rem;
    @media screen and (min-width: 768px) {
      font-size: 1.75rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 2rem;
    }
  }
  
  &.section-title--no-en {
    padding-top: 0;
  }
}


.investors-intro-images {
  position: relative;
  padding-top: 75%;
  margin-top: 16.666%;
  @media screen and (min-width: 1024px) {
    margin-top: 0;
    max-width: 30rem;
    flex: 1 1 0%;
    padding-top: 0;
  }
  
  & .investors-intro-image {
    object-fit: cover;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    
    &.investors-intro-image--1 {
      aspect-ratio: 1 / 1;
      height: auto;
      width: 50%;
      bottom: unset;
      left: unset;
      transform: translate(9%, -33.333%);
      @media screen and (min-width: 768px) {
        border-radius: 2rem;
      }
      @media screen and (min-width: 1024px) {
       transform: translate(50%, -33.333%);
      }
    }
    &.investors-intro-image--2 {
      aspect-ratio: 1 / 1;
      height: auto;
      width: 33.333%;
      top: unset;
      left: unset;
      transform: translate(-32.5%, 87.5%);
    }
  }
}

.service-page-title-image {
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
  width: 100%;
  height: 15rem;
  @media screen and (min-width: 768px) {
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    height: 17.5rem;
  }
  @media screen and (min-width: 1024px) {
    flex: 1 1 0%;
    height: auto;
    min-height: 25rem;
  }
}

.business-intro-images {
  display: grid;
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 2rem;
  @media screen and (min-width: 1024px) {
    display: block;
    position: absolute;
    inset: 0;
  }
  
  & .business-intro-image {
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    z-index: 2;
    @media screen and (min-width: 1024px) {
      position: absolute;
    }
    
    &.business-intro-image--1 {
      grid-column: span 1;
      @media screen and (min-width: 768px) {
        border-radius: 2rem;
      }
      @media screen and (min-width: 1024px) {
        width: 18.75%;
        top: 0;
        right: 0;
        transform: translate(50%, -33.333%);
      }
    }
    &.business-intro-image--2 {
      grid-column: span 2;
      @media screen and (min-width: 1024px) {
        width: 12.5%;
        right: 0;
        bottom: 0;
        transform: translate(-32.5%, 87.5%);
      }
    }
  }
}

.feature-item-title {
  position: relative;
  padding-bottom: 0.375rem;

  &::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.3125rem;
    background-image: url("/system_panel/uploads/images/20250819092506600258.png");
    background-size: 100% 100%;
  }
}

.features-intro-image {
  position: absolute;
  display: none;
  border-radius: 2rem;
  opacity: 0.2;
  
  @media screen and (min-width: 1024px) {
    display: block;
  }
  
  &.features-intro-image--1 {
    width: 15rem;
    bottom: -5.625rem;
    left: -5rem;
  }
  &.features-intro-image--2 {
    width: 20rem;
    bottom: -13.75rem;
    left: 16.25rem;
  }
  &.features-intro-image--3 {
    width: 30rem;
    top: -5rem;
    right: -8.75rem;
  }
}





