*,
*::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);
  letter-spacing: 0.04em;
}

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

      &.selected {
        & a {
          background-color: var(--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.6666%;
  }
  &.thumbnail--square {
    padding-top: 100%;
  }

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

.__mat.__mat--processed {
  word-break: keep-all;
  word-wrap: break-word;
}


.section-title {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  
  & .section-title__en {
    position: relative;
    line-height: 1;
    font-weight: 500;
    font-size: 0.875rem;
    padding-bottom: 0.375rem;
    
    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0.125rem;
      height: 0.125rem;
      width: 1.5rem;
      background-color: var(--blue);
    }
  }
  & .section-title__ja {
    line-height: 1.25;
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  @media (min-width: 1024px) {
    gap: 2rem;
    
    & .section-title__en {
      font-size: 1.125rem;
    }
    & .section-title__ja {
      font-size: 2.25rem;
    }
  }
  
  &.section-title--center {
    text-align: center;
    
    & .section-title__en::after {
      left: 50%;
      transform: translateX(-50%);
    }
  }
  
  &.section-title--snow {
    color: var(--snow);
    
    & .section-title__en::after {
      background-color: var(--snow);
    }
  }
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem 0.625rem 1.5rem;
  border-radius: 9999px;
  background-image: linear-gradient(90deg, #0094F0 0%, #005F99 100%);
  color: var(--snow);
  line-height: 1.25;
  letter-spacing: 0.04em;
  font-weight: 500;
  font-size: 1rem;
  transition: all ease 200ms;
  &:hover {
    text-decoration: none;
    color: var(--snow);
    opacity: 90%;
    transform: scale(0.95);
  }
  
  &.button--icon-left {
    padding: 0.625rem 1.5rem 0.625rem 1rem;
  }
  &.button--transparent {
    background-image: none;
    color: var(--blue);
    border: 1px solid var(--blue);
  }
  &.button--send::after {
    content: "";
    display: block;
    background-image: url(/system_panel/uploads/images/circle-chevron-right.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 1.25rem;
    height: 1.25rem;
  }
}

.page-hero {
  position: relative;
  overflow: hidden;
  
  &::before {
    content: "";
    position: absolute;
    top: 2.5rem;
    left: -1.25rem;
    width: 25rem;
    height: 2.3125rem;
    background-image: url("/system_panel/uploads/images/hero-dec-1.png");
    background-size: contain;
    background-repeat: no-repeat;
  }
  &::after {
    content: "";
    position: absolute;
    top: -0.625rem;
    right: 1.875rem;
    width: 1.84375rem;
    height: 14.0625rem;
    background-image: url("/system_panel/uploads/images/hero-dec-2.png");
    background-size: contain;
    background-repeat: no-repeat;
  }
}

.page-title {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  
  & .page-title__en {
    position: relative;
    line-height: 1;
    font-weight: 500;
    font-size: 0.875rem;
    padding-bottom: 0.375rem;
    
    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0.125rem;
      height: 0.125rem;
      width: 1.5rem;
      background-color: var(--blue);
    }
  }
  & .page-title__ja {
    line-height: 1.25;
    font-size: 1.75rem;
    font-weight: 700;
  }
  
  @media (min-width: 1024px) {
    gap: 2rem;
    
    & .page-title__en {
      font-size: 1.125rem;
    }
    & .page-title__ja {
      font-size: 2.5rem;
    }
  }
}

.page-breadcrumbs {
  padding-bottom: 0.25rem;
  
  & > p {
    display: inline;
    font-size: 0.875rem;
    
    & + p {
      &::before {
        content: "";
        display: inline-block;
        width: 0.875rem;
        height: 0.125rem;
        background-color: var(--blue);
        margin-inline: 1rem;
        margin-block-end: 0.25rem;
      }
    }
  }
}

.page-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  
  &::before {
    content: "";
    position: absolute;
    top: 3rem;
    left: -4rem;
    aspect-ratio: 453 / 37;
    width: 12.6rem;
    background-image: url("/system_panel/uploads/images/section-dec-h.png");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
  }
  &::after {
    content: "";
    position: absolute;
    top: -5rem;
    right: -0.5rem;
    width: 1.25rem;
    aspect-ratio: 38 / 478;
    background-image: url("/system_panel/uploads/images/section-dec-v.png");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
  }
  
  @media (min-width: 414px) {
    &::before {
      top: 3rem;
      left: -4rem;
      width: 20.5rem;
    }
    &::after {
      top: -5rem;
      right: 0.5rem;
      width: 1.5rem;
    }
  }
  
  @media (min-width: 768px) {
    &::before {
      top: 3rem;
      left: -4rem;
      width: 28.3125rem;
    }
    &::after {
      top: -5rem;
      right: 2.5rem;
      width: 2.375rem;
    }
  }
  
  &.page-section--rotate {
    &::before {
      top: 3rem;
      right: -4rem;
      left: auto;
      transform: scaleX(-1);
    }
    &::after {
      top: -5rem;
      right: auto;
      left: -0.5rem;
      transform: scaleY(-1);
    }

    @media (min-width: 768px) {
      &::before {
        top: 3rem;
        right: -0.625rem;
        left: auto;
        width: 28.3125rem;
      }
      &::after {
        top: -4rem;
        right: auto;
        left: 2.5rem;
        width: 2.375rem;
      }
    }
  }  
}

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

.blog-list {
  & .webgene-blog {
    display: grid;
    gap: 1.5rem;
  }
  
  @media (min-width: 768px) {
    & .webgene-blog {
      gap: 2rem;
      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 {
      gap: 2rem;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    & .webgene-pagination, & .webgene-no-items {
      grid-column: span 3 / span 3;
    }
  }
}

.product-list {
  & .webgene-blog {
    display: grid;
    gap: 1.5rem;
  }
  
  & .thumbnail img {
    object-fit: contain;
  }
  
  @media (min-width: 768px) {
    & .webgene-blog {
      gap: 2rem;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    & .webgene-pagination, & .webgene-no-items {
      grid-column: span 2 / span 2;
    }
  }
}

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

.circuit-box {
  border-right: 1px solid var(--light-blue);
  border-bottom: 1px solid var(--light-blue);
  position: relative;
  &::before, &::after {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 9999px;
    background-color: var(--light-blue);
    position: absolute;
  }
  &::before {
    top: -5px;
    right: -5px;
  }
  &::after {
    bottom: -5px;
    left: -5px;
  }
  
  & .circuit-box__diagonal-line {
    width: 3.75rem;
    height: 3.75rem;
    background-color: var(--snow);
    position: absolute;
    right: -3px;
    bottom: -3px;
    &::after {
      content: "";
      display: block;
      width: 137.6%;
      height: 1px;
      position: absolute;
      top: calc(50% - 2px);
      left: calc(50% - 1px);
      transform: translateX(-50%) rotate(-45deg);
      background-color: var(--light-blue);
    }
  }
}

.swiper.product-slider {
  width: 100%;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  
  & .swiper-pagination {
    position: relative;
    border-radius: 9999px;
    --swiper-pagination-color: var(--snow);
    --swiper-pagination-progressbar-bg-color: hsl(0 0 100 / 40%);
  }
  
  & .swiper-button-prev, & .swiper-button-next {
    position: relative;
    margin: 0;
  }
  & .swiper-button-next {
    transform: scale(-1);
  }
}

.service-dec {
  position: relative;
  &::before {
    content: "";
    display: block;
    aspect-ratio: 38 / 378;
    background-image: url("/system_panel/uploads/images/service-dec.png");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    position: absolute;
    bottom: -9rem;
    width: 2.375rem;
  }
  &.service-dec--1::before {
    left: 1.25rem;
  }
  &.service-dec--2::before {
    transform: scaleX(-1);
    right: 1.25rem;
  }
}


.item-images {
  & img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
  }
}














