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

body {
  font-family: var(--font-serif);
  color: var(--snow);
  background-color: var(--ink);
}

#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(--snow);
}

[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;
    margin-top: 1.5rem;

    & li {
      & a {
        display: inline-block;
        width: 3rem;
        line-height: 3rem;
        text-align: center;
        background-color: var(--snow-alt);
        color: var(--ink);
        &:hover {
          text-decoration: none;
          color: var(--ink);
        }
      }

      &.selected {
        & a {
          background-color: var(--sand);
          &:hover {
          }
        }
      }
    }
  }
}

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

.thumbnail {
  position: relative;
  padding-top: 66.6666%;

  &.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 {
  line-height: 1.8;
  & > p {
    margin: 1em 0;
  }

  & > h1,
  & > h2,
  & > h3,
  & > h4,
  & > h5,
  & > h6 {
    margin: 2em 0 1em;
    line-height: 1.25;
  }

  & > *: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-logo {
  width: 120px;
  align-self: center;
  
  @media screen and (min-width: 768px) {
    width: 160px;
  }
  @media screen and (min-width: 1024px) {
    width: 200px;
  }
}

.page-hero-title {
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-align: center;
  font-weight: 500;
  font-size: 2rem;
  
  @media screen and (min-width: 768px) {
    font-size: 3rem;
  }
  @media screen and (min-width: 1024px) {
    font-size: 4rem;
  }
}

.page-hero-title-box {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 0.625rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  font-weight: 500;
  
  & .page-hero-title-box__sub {
    font-size: 2rem;
    @media screen and (min-width: 768px) {
      font-size: 3rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 4rem;
    }
  }
  
  & .page-hero-title-box__main {
    font-size: 1.5rem;
    @media screen and (min-width: 768px) {
      font-size: 2rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 3rem;
    }
  }
}

.page-hero-image {
  position: absolute;
  overflow: hidden;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  
  & img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
  
  &::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, rgba(8, 2, 22, 0.00) 0%, rgba(8, 2, 22, 0.00) 78.85%, #080216 100%);
    pointer-events: none;
  }
}

.section-title {
  display: flex;
  flex-direction: column;
  text-align: center;
  
  & .section-title__en {
    color: var(--sand);
    line-height: 1;
    letter-spacing: 0.04em;
    font-size: 1.5rem;
    font-family: var(--font-display);
    
    @media screen and (min-width: 768px) {
      font-size: 2.25rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 3rem;
    }
  }
  
  & .section-title__ja {
    line-height: 1;
    letter-spacing: 0.04em;
    font-size: 2rem;
    
    @media screen and (min-width: 768px) {
      font-size: 3rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 4rem;
    }
  }
}

.vertical-section-title {
  display: flex;
  flex-direction: row;
  width: 80px;
  z-index: 1;
  @media screen and (min-width: 1200px) {
    width: 160px;
  }  
  .vertical-section-title__image {
    width: 100%;
  }
  .vertical-section-title__text {
    writing-mode: vertical-rl;
    letter-spacing: 0.04em;
    line-height: 1;
    font-size: 1.5rem;
    color: var(--sand);
    margin-left: -1em;
    padding-top: 6.25rem;
    z-index: 1;
    @media screen and (min-width: 1200px) {
      font-size: 3rem;
      padding-top: 15rem;
    }
  }
}


.button {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: var(--snow-alt);
  letter-spacing: 0;
  line-height: 1.25;
  font-weight: 400;
  font-size: 1.125rem;
  transition: opacity ease 200ms;
  
  &:hover {
    text-decoration: none;
    opacity: 80%;
    color: var(snow-alt);
  }
  
  &::before {
    content: "";
    display: block;
    background-color: var(--snow-alt);
    width: 100px;
    height: 1px;
  } 
}

.news-list {
  & .webgene-blog {
    display: grid;
    gap: 2rem;
    
    @media screen and (min-width: 1200px) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  & .webgene-pagination {
    @media screen and (min-width: 1200px) {
      grid-column: span 3 / span 3;
    }
  }
}
.category-list {
  & .webgene-blog {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }
}
.product-list {
  & .webgene-blog {
    column-width: 25rem;
    column-gap: 1.5rem;
  
    & > * {
      break-inside: avoid;
    }
    & > * + * {
      margin-top: 1.25rem;
    }
  }
  & .thumbnail {
    &:not(:empty) {
      padding: 0;
      & > img {
        position: relative;
        width: 100%;
        height: auto;
      }
    }
  }
}

.gallety-columns {
  column-width: 25rem;
  column-gap: 1.125rem;
  & a {
    display: block;
  }
  
  & a img {
    width: 100%;
  }
  
  & > * {
    break-inside: avoid;
  }
  & > * + * {
    margin-top: 1.125rem;
  }
}

.item-images {
  &.swiper {
    overflow: visible;
    height: 320px;
    @media screen and (min-width: 768px) {
      height: 400px;
    }
    & .swiper-wrapper {
      height: 100%;
    }
    & .swiper-slide {
      width: auto;
      height: 100%;
      & img {
        width: auto;
        height: 100%;
      }
    }
  }
}

.products-info-image {
  position: absolute;
  overflow: hidden;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  
  & img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
  
  &::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: hsl(from var(--ink) h s l / 60%);
    background-image: linear-gradient(180deg, rgba(8, 2, 22, 0.00) 0%, rgba(8, 2, 22, 0.00) 78.85%, #080216 100%), linear-gradient(180deg, #080216 0%, rgba(8, 2, 22, 0.00) 29.83%, rgba(8, 2, 22, 0.00) 100%);
    pointer-events: none;
  }
}

.top-button {
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, #1D182A 0%, #080216 100%);
}



