*,
*::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(--off-white);
  letter-spacing: 0.04em;
  font-weight: 500;
}

#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;
  
  @media (min-width: 1200px) {
    scroll-margin-top: 10rem;
  }
}

.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(--snow);
        color: var(--blue);
        border-radius: 0.5rem;
        box-shadow: var(--elevation-1);
        &:hover {
          text-decoration: none;
        }
      }

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

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

.thumbnail {
  position: relative;
  padding-top: 56.25%;
  
  &::after {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 100%;
    height: 100%;
    content: "";
    background-image: url("/system_panel/uploads/images/mask-parallelogram.png");
    background-size: 100% 100%;
    z-index: -1;
  }

  & img, &:empty::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: url("/system_panel/uploads/images/mask-parallelogram.png");
    -webkit-mask-size: 100% 100%;
    mask-image: url("/system_panel/uploads/images/mask-parallelogram.png");
    mask-size: 100% 100%;
  }

  &: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: 10rem 1.25rem 2.5rem;
  border-bottom: 1px solid hsl(from var(--ink) h s l / 20%);
  @media (min-width: 768px) {
    padding: 10rem 2.5rem 2.5rem;
  }
  @media (min-width: 1024px) {
    padding: 10rem 3.75rem 3rem;
  }
  @media (min-width: 1200px) {
    padding: 15rem 5rem 5rem;
  }
  
  & .page-hero__title {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    line-height: 1.25;
    font-weight: 700;
    &::before {
      content: "";
      position: absolute;
      top: -5rem;
      left: -5rem;
      width: 14.5rem;
      aspect-ratio: 232 /177;
      background-image: url(/system_panel/uploads/images/w-slash.svg);
      background-size: 100% 100%;
      background-repeat: no-repeat;
    }
    
    & .page-hero__title-en {
      position: relative;
      font-size: 1.125rem;
      @media (min-width: 768px) {
        font-size: 1.5rem
      }
      @media (min-width: 1024px) {
        font-size: 1.75rem
      }
    }
    & .page-hero__title-ja {
      position: relative;
      font-size: 2.25rem;
      transform: skew(-10deg);
      @media (min-width: 768px) {
        font-size: 2.5rem
      }
      @media (min-width: 1024px) {
        font-size: 3rem
      }
      &.page-hero__title-ja--long {
        font-size: 1.75rem;
        @media (min-width: 768px) {
          font-size: 2.5rem
        }
        @media (min-width: 1024px) {
          font-size: 3rem
        }
      }
    }
  }
  
  & .page-hero__image {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: auto;
    
    &:before {
      content: "";
      position: absolute;
      top: 53%;
      left: 0;
      transform: translate(-8%, -50%);
      pointer-events: none;
      width: 75%;
      aspect-ratio: 68555 / 36113;
      background-image: url("/system_panel/uploads/images/service-hero-ring.svg");
      background-repeat: no-repeat;
      background-size: contain;
    }
    
    & img {
      isolation: isolate;
      height: 100%;
      width: auto;
      z-index: 1;
    }
    
    @media (min-width: 1024px) {
      display: block;
    }
  }
}

.button {
  display: inline-block;
  position: relative;
  padding: 0.875rem 1.5rem 0.625rem;
  box-shadow: var(--elevation-1);
  border-radius: 8px;
  overflow: hidden;
  background-image: var(--grad-sky);
  line-height: 1;
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--snow);
  transition: all ease 200ms;
  &:hover {
    text-decoration: none;
    opacity: 90%;
    transform: scale(0.95);
    color: var(--snow);
  }
  
  &.button--contact {
    padding: 1.125rem 1.5rem 0.875rem 3.25rem;
    &::before {
      content: "";
      position: absolute;
      top: -0.375rem;
      left: -0.875rem;
      aspect-ratio: 1 / 1;
      width: 3.75rem;
      background-image: url(/system_panel/uploads/images/contact-icon.svg);
      background-size: 100% 100%;
      background-repeat: no-repeat;
    }
  }
  
  &.button--snow {
    background-color: var(--snow);
    background-image: none;
    color: var(--ink);
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  line-height: 1.25;
  font-weight: 700;
  &::before {
    content: "";
    position: absolute;
    top: -5rem;
    left: -5rem;
    width: 14.5rem;
    aspect-ratio: 232 /177;
    background-image: url(/system_panel/uploads/images/w-slash.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  & .section-title__en {
    position: relative;
    font-size: 1rem;
    @media (min-width: 768px) {
      font-size: 1.25rem
    }
    @media (min-width: 1024px) {
      font-size: 1.5rem
    }
  }
  & .section-title__ja {
    position: relative;
    font-size: 2rem;
    transform: skew(-10deg);
    @media (min-width: 768px) {
      font-size: 2.25rem
    }
    @media (min-width: 1024px) {
      font-size: 2.5rem
    }
  }
  
  &.section-title--snow {
    color: var(--snow);
  }
  
  &.section-title--plain {
    &::before {
      content: none;
    }
  }
  &.section-title--ring {
    &::before {
      aspect-ratio: 290 / 153;
      background-image: url(/system_panel/uploads/images/w-ring.svg);
      background-size: 100% 100%;
      background-repeat: no-repeat;
      width: 18.125rem;
      top: -2.25rem;
      left: -3.75rem;
    }
  }
}



.news-list {
  & .webgene-blog {
    display: grid;
    gap: 2rem;
  }
  
  @media (min-width: 768px) {
    & .webgene-blog {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    & .webgene-pagination, & .webgene-no-items {
      grid-column: span 2 / span 2;
    }
  }
  @media (min-width: 1200px) {
    & .webgene-blog {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    & .webgene-pagination, & .webgene-no-items {
      grid-column: span 3 / span 3;
    }
  }
}
.news-item__summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  & * {
    display: contents;
    font: unset;
    color: unset;
  }
}
.news-item__meta {
  position: absolute;
  top: -1.25rem;
  left: -1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 7.5rem;
  height: 7.5rem;
  text-align: center;
  color: var(--snow);
  background-image: url("/system_panel/uploads/images/octagon-blue.svg");
  background-size: contain;
  justify-content: center;
  
  @media (min-width: 768px) {
    width: 7.5rem;
    height: 7.5rem;
    top: -0.5rem;
    left: 0.25rem;
  }
}

.category-list {
  & .webgene-blog {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
  }
}

.card-section {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
  background-color: var(--snow);
  box-shadow: var(--elevation-1);
  z-index: 0;
  
  &::before, &::after {
    content: "";
    position: absolute;
    background-repeat: no-repeat;
    background-size: 100%;
    aspect-ratio: 1 / 1;
    pointer-events: none;
    z-index: -1;
  }
  
  &::before {
    top: 0;
    right: 0;
    background-image: url("/system_panel/uploads/images/card-section-line-tr.svg");
    width: 12.5rem;
  }
  &::after {
    bottom: 0;
    left: 0;
    background-image: url("/system_panel/uploads/images/card-section-line-bl.svg");
    width: 20.5rem;
  }
  
  @media (min-width: 768px) {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  @media (min-width: 1024px) {
    padding-left: 3rem;
    padding-right: 3rem;
  }
  @media (min-width: 1200px) {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.decoration-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  
  & .decoration-backdrop__blue, & .decoration-backdrop__yellow {
    display: contents;
    &::before, &::after {
      content: "";
      position: absolute;
      width: 4rem;
      aspect-ratio: 1 / 1;
      background-size: contain;
      background-repeat: no-repeat;
    }
  }
  
  & .decoration-backdrop__blue {
    &::before, &::after {
      background-image: url("/system_panel/uploads/images/plus-blue.svg");
    }
    &::before {
      top: 9.375rem;
      left: 6.25rem;
    }
    &::after {
      bottom: 3.75rem;
      right: 13.125rem;
    }
  }
  & .decoration-backdrop__yellow {
    &::before, &::after {
      background-image: url("/system_panel/uploads/images/plus-yellow.svg");
    }
    &::before {
      top: 23.75rem;
      right: 10.8rem;
    }
    &::after {
      bottom: 18.75rem;
      left: 13.75rem;
    }
  }
}


.message-headings {
  display: flex;
  flex-direction: column;
  font-size: 1.25rem;
  gap: 0.5em;
  align-items: flex-start;

  & > h3 {
    position: relative;
    font-size: inherit;
    font-weight: 700;
    line-height: 1;
    padding-bottom: 0.25em;
    padding-top: 0.5em;
    padding-left: 0.625em;
    padding-right: 0;
    z-index: 0;
    
    &::before {
      content: "";
      position: absolute;
      width: 100%;
      height: 100%;
      background-color: var(--blue);
      top: 0.1875em;
      left: 0.1875em;
      z-index: -2;
    }
    
    &::after {
      content: "";
      position: absolute;
      width: 100%;
      height: 100%;
      background-color: var(--snow);
      top: 0;
      left: 0;
      z-index: -1;
    }
  }
  
  @media (min-width: 768px) {
    font-size: 2rem;
    
    & > h3:nth-child(2) {
      margin-left: 1em;
    }
  }
  @media (min-width: 1024px) {
    position: absolute;
    top: 45%;
    left: 0;
    transform: translate(-50%, -50%);
  }
}





