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

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background-color: var(--snow);
  background-image: var(--paper-ivoly);
  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 {
  margin-top: 1.75rem;
  & 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(--ink);
        color: var(--snow);
        &:hover {
          text-decoration: none;
          color: var(--snow);
        }
      }

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

.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 {
  display: flex;
  flex-direction: column;
  padding-top: 15rem;
  padding-bottom: 7.5rem;
  position: relative;
  
  & .page-hero__image {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    &::after {
      content: "";
      display: block;
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      background-color: hsl(0 0 0 / 20%);
      pointer-events: none;
    }
    & img {
      position: relative;
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
  }
  
  & .page-hero__title {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
    color: var(--snow);
    line-height: 1.25;
    letter-spacing: 0.12em;
    font-weight: 500;
    text-align: center;

    & .page-hero__title-main {
      font-size: 2rem;
    }
    
    & .page-hero__title-sub {
      font-size: 0.875rem;
    }
    
    @media screen and (min-width: 768px) {
      padding-right: 2.5rem;
      padding-left: 2.5rem;
      & .page-hero__title-main {
        font-size: 3rem;
      }

      & .page-hero__title-sub {
        font-size: 1.25rem;
      }
    }
    @media screen and (min-width: 1024px) {
      padding-right: 5rem;
      padding-left: 5rem;
      & .page-hero__title-main {
        font-size: 4rem;
      }

      & .page-hero__title-sub {
        font-size: 1.5rem;
      }
    }
    @media screen and (min-width: 1200px) {
      padding-right: 7.5rem;
      padding-left: 7.5rem;
    }
  }
}

.button {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  line-height: 1.25;
  font-size: 1.125rem;
  transition: opacity ease 200ms;
  color: var(--ink);
  &::after {
    content: "";
    display: block;
    height: 2rem;
    width: 2rem;
    background-image: url(/system_panel/uploads/images/button-arrow.svg);
    background-size: 100% 100%;
    transition: scale ease 200ms;
  }
  &:hover {
    opacity: 85%;
    text-decoration: none;
    color: var(--ink);
    &::after {
      transform: scale(0.9);
    }
  }
  
  &.button--snow {
    color: var(--snow);
    &:hover {
      color: var(--snow);
    }
  }
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  letter-spacing: 0.12em;
  position: relative;
  & .section-title__en {
    line-height: 1;
    color: var(--mocha);
    font-size: 2rem
  }
  & .section-title__ja {
    line-height: 1.25;
    font-weight: 500;
    font-size: 1.25rem;
  }
  @media screen and (min-width: 768px) {
    & .section-title__en {
      font-size: 3rem
    }
    & .section-title__ja {
      font-size: 1.25rem;
    }
  }
  @media screen and (min-width: 1024px) {
    & .section-title__en {
      font-size: 4rem
    }
    & .section-title__ja {
      font-size: 1.5rem;
    }
  }
  
  &.section-title--sm {
    & .section-title__en {
      font-size: 1.5rem;
      @media screen and (min-width: 768px) {
        font-size: 2.5rem;
      }
      @media screen and (min-width: 1024px) {
        font-size: 3rem;
      }
    }
  }
  
  &.section-title--vertical {
    padding-top: 1.5rem;
    &::before {
      content: "";
      display: block;
      width: 7.5rem;
      height: 1px;
      background-color: var(--mocha);
      position: absolute;
      transform: rotate(-45deg);
      top: 0.5rem;
      left: -4rem;
    }
    @media screen and (min-width: 1200px) {
      writing-mode: vertical-rl;
    }
  }
}

.section-hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  &::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.10) 100%), linear-gradient(90deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%);
    pointer-events: none;
  }
  & img {
    position: relative;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

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

.home-concept-image {
  position: relative;
  height: 25rem;
  @media screen and (min-width: 768px) {
    height: 30rem;
  }
  @media screen and (min-width: 1024px) {
    width: 41.875%;
    height: auto;
  }
  
  & img {
    object-fit: cover;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

.home-concept-dec {
  background-color: var(--snow);
  position: absolute;
  top: 28.75rem;
  right: 0;
  bottom: 0;
  left: 0;
  @media screen and (min-width: 768px) {
    top: 32.5rem;
  }
  @media screen and (min-width: 1024px) {
    top: 4rem;
    left: 20.9375%;
  }
  @media screen and (min-width: 1200px) {
    top: 6.25rem;
  }
}


.news-list {
  & .webgene-blog {
    display: grid;
    gap: 1.25rem;
    @media screen and (min-width: 1024px) {
      grid-template-columns: repeat(2, 1fr);
      & .webgene-no-items, & .webgene-pagination {
        grid-column: span 2 / span 2;
      }
    }
  }
}

.news-category .webgene-blog {
  display: grid;
  gap: 0.5rem;
} 

.footer-contact-image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  &::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: hsl(from var(--snow) h s l / 75%);
    pointer-events: none;
  }
  & img {
    position: relative;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

.footer-contact-typo {
  display: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 4.5rem;
  @media screen and (min-width: 768px) {
    display: block;
  }
  @media screen and (min-width: 1024px) {
    height: 6rem;
  }
  @media screen and (min-width: 1200px) {
    height: 8.75rem;
  }
}




