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

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(--snow-alt);
        border-radius: 0.75rem;
        &:hover {
          text-decoration: none;
        }
      }

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

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

.backdrop-object {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.page-hero {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 10rem 1.25rem 1.25rem 1.25rem;
  background-image: linear-gradient(180deg, #F8F8F8 0%, rgba(173, 200, 224, 0.30) 35%, rgba(255, 205, 178, 0.20) 75%, rgba(248, 248, 248, 0.00) 100%);
  background-color: var(--snow-alt);
  overflow: hidden;
  
  @media screen and (min-width: 768px) {
    gap: 4rem;
    padding: 12.5rem 2.5rem 1.25rem 2.5rem;
  }
  @media screen and (min-width: 1024px) {
    gap: 5rem;
    padding: 15rem 3.75rem 1.25rem 3.75rem;
  }
  @media screen and (min-width: 1200px) {
    padding: 15rem 5rem 1.25rem 5rem;
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  
  & .section-title__image {
    position: relative;
    width: 5rem;
    
    @media screen and (min-width: 768px) {
      width: 7.5rem;
    }
    @media screen and (min-width: 1024px) {
      width: 8.4375rem;
    }
  }
  
  & .section-title__ja {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    line-height: 1.25;
    color: var(--blue);
    
    @media screen and (min-width: 768px) {
      font-size: 1.75rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 2rem;
    }
  }
  
  & .section-title__en {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    font-size: 3.75rem;
    font-weight: 600;
    font-family: var(--font-display-2);
    letter-spacing: 0;
    line-height: 1;
    color: var(--blue);
    opacity: 10%;
    white-space: nowrap;
    
    @media screen and (min-width: 768px) {
      bottom: -10px;
      font-size: 7rem;
    }
    @media screen and (min-width: 1024px) {
      bottom: -30px;
      font-size: 10rem;
    }
  }
}

.section-title.section-title--snow {
  & .section-title__ja {
    color: var(--snow);
  }
  & .section-title__en {
    color: var(--snow);
    opacity: 10%;
  }
}

.page-hero-title {
  position: relative;
  display: flex;
  align-items: end;
  gap: 0.75rem;
  
  @media screen and (min-width: 768px) {
    gap: 1rem;
  }
  @media screen and (min-width: 1024px) {
    gap: 1.25rem;
  }
  
  & .page-hero-title__image {
    position: relative;
    width: 3.75rem;
    
    @media screen and (min-width: 768px) {
      width: 4.5rem;
    }
    @media screen and (min-width: 1024px) {
      width: 5.9375rem;
    }
  }
  
  & .page-hero-title__ja {
    position: relative;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    line-height: 1.25;
    color: var(--blue);
    flex: 1 0 0%;
    
    @media screen and (min-width: 768px) {
      font-size: 2.25rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 2.5rem;
    }
  }
  
  & .page-hero-title__en {
    position: absolute;
    top: -12px;
    left: 48px;
    font-size: 4rem;
    font-weight: 600;
    font-family: var(--font-display-2);
    letter-spacing: 0;
    line-height: 1;
    color: var(--blue);
    opacity: 10%;
    white-space: nowrap;
    
    @media screen and (min-width: 768px) {
      top: -48px;
      left: 52px;
      font-size: 8rem;
    }
    @media screen and (min-width: 1024px) {
      top: -46px;
      left: 60px;
      font-size: 10rem;
    }
  }
}

.inner-shadow-blue {
  box-shadow: 0px 0px 10px 0px #CAE8FA inset;
}

.inner-shadow-blue--wide {
  box-shadow: 0px 0px 40px 20px #CAE8FA inset;
}

.section-dec {
  position: absolute;
  
  & img {
    width: 100%;
  }
}

.section-dec--tl {
  width: 878px;
  top: 10px;
  left: -280px;
}

.section-dec--br {
  width: 887px;
  right: -480px;
  bottom: -340px;
}

.feature-num {
  position: absolute;
  top: -48px;
  left: -16px;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: 0;
  transform: rotate(-6deg);
  
  @media screen and (min-width: 768px) {
    font-size: 3rem;
    top: -52px;
    left: -32px;
  }
  @media screen and (min-width: 1024px) {
    font-size: 3.75rem;
    top: -72px;
    left: -52px;
  }
  @media screen and (min-width: 1200px) {
    top: 0;
    left: -80px;
  }
}

.button {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1.5rem 3rem;
  justify-content: center;
  align-items: center;
  border-radius: 9999px;
  background-image: linear-gradient(90deg, #C9EAFE 0%, #FFF 50%, #C9EAFE 100%);
  box-shadow: 0px 0px 10px 0px #006DAE inset;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  transition: opacity ease 200ms;
  
  &:hover {
    color: var(--ink);
    opacity: 80%;
    text-decoration: none;
  }
}

.form-selector__button {
  color: var(--blue);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--blue);
  cursor: pointer;
  
  &.selected {
    color: var(--snow);
    background-color: var(--blue);
    border: unset;
  }
}

.sheet-download-button {
  color: var(--snow);
  background-color: var(--blue);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity ease 200ms;
  
  &:hover {
    color: var(--snow);
    opacity: 80%;
    text-decoration: none;
  }
}

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

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

.product-kv {
  width: 110%;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  & > img {
    width: 100%;
    display: block;
  }
}

.product-container {
  background: linear-gradient(0deg, #F8F8F8 0%, rgba(173, 200, 224, 0.30) 35%, rgba(255, 205, 178, 0.40) 75%, rgba(248, 248, 248, 0.00) 100%);
}


.product-list {
  & .dialog__trigger {
    & img {
      object-fit: cover;
    }
  }
  & .article-body {
    & h3 {
      font-size: 1.125rem;
      font-weight: 700;
      line-height: 1.25;
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1rem;
      margin-top: 1.5rem;
      
      &::before {
        content: "";
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 9999px;
        background-color: var(--red);
      }
    }
    & h4 {
      font-size: 1rem;
      font-weight: 700;
      line-height: 1.25;
    }
    
    & p {
      margin: 1em 0;
    }
    
    & table {
      border-collapse: separate !important;
      border-spacing: 4px !important;
      font-size: 0.875rem !important;
      & th, td {
        border: 0 !important;
        padding: 4px 12px !important;
      }
      & th {
        border-radius: 6px !important;
        background-color: var(--blue) !important;
        color: var(--snow) !important;
      }
      & td {
        border-radius: 6px !important;
        background-color: hsl(from var(--ink) h s l / 5%) !important;
      }
    }
    
    @media screen and (min-width: 768px) {
      & h3 {
        font-size: 1.25rem;
      }
      & h4 {
        font-size: 1.125rem;
      }
    }
  }
}

.dialog__content {
  overflow: hidden;
}

.item-images {
  & .item-image {
    & img {
      width: 100%;
    }
  }
  &.swiper {
    overflow: visible;
    
    & img {
      aspect-ratio: 1 / 1;
      object-fit: contain;
    }
  }
  & .swiper-wrapper {
  }
}

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

.content-table {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  
  & .content-table__body {
    display: table-row-group;
  }
  & .content-table__row {
    display: table-row;
    
  }
  & .content-table__heading, .content-table__cell {
    display: table-cell;
    padding: 0.5rem 0;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.5;
  }
  & .content-table__cell {
    text-align: center;
    background-color: var(--snow-alt);
  }
  & .content-table__heading {
    text-align: start;
    background-color: var(--ink);
    color: var(--snow);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
.content-table__wrapper {
  width: 100%;
  
  & .content-table {
    min-width: 600px;
  }
}

.swiper:not(.swiper-initialized) .swiper-wrapper {
  overflow-x: auto;
  display: flex;
  
  & .swiper-slide {
    min-width: 100%;
  }
}
