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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--white);
  background-image: var(--stone);
  letter-spacing: 0.04em;
}

#root {
  max-width: 1920px;
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0.04em;
}

p, h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

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

.list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1.5rem;
  list-style: disc outside none;
}

.list > p {
  margin: 0;
  display: list-item;
}

.webgene-pagination ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.webgene-pagination ul li a {
  display: inline-block;
  line-height: 3rem;
  width: 3rem;
  color: var(--white);
  background-color: var(--gray);
  text-align: center;
}

.webgene-pagination ul li a:hover {
  color: var(--white);
  text-decoration: none;
  opacity: 0.85;
}

.webgene-pagination ul li.selected a {
  background-image: var(--green);
}

.webgene-pagination ul li.selected a:hover {}

.thumbnail {
  position: relative;
  padding-top: 56.25%;
}

.thumbnail img, .thumbnail:empty::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail: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;
}

.article-body > h1,
.article-body > h2,
.article-body > h3,
.article-body > h4,
.article-body > h5,
.article-body > h6 {
  margin: 2em 0 1em;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body > *:last-child {
  margin-bottom: 0;
}

.article-body a, .article-body a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.case-list .webgene-blog {
  display: grid;
  gap: 2.5rem;
}

.button {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink);
  background-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 200ms ease;
  
  &::after {
    content: "";
    display: block;
    height: 6px;
    width: 40px;
    background-image: url("/system_panel/uploads/images/right-arrow.svg");
  }
  
  &:hover {
    opacity: 80%;
    text-decoration: none;
    color: var(--ink);
  }
}

.button.button--green {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  display: flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid var(--ink);
  background-color: var(--green);
  padding:  0.5rem 1rem;
  gap: 0.5rem;
  box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.40);
  transition: opacity 200ms ease;
  
  &::after {
    content: none;
  }
  
  &:hover {
    color: var(--white);
  }
}

.section-heading {
  display:flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-display);
  
  & .section-heading__en {
    padding-left: 0.25rem;
    color: var(--green);
    font-size: 0.875rem;
    line-height: 1
  }
  
  & .section-heading__ja {
    padding-left: 0.25rem;
    font-size: 1.5rem;
    line-height: 1
  }
}

.about-dec--1 {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}
.about-dec--2 {
  position: absolute;
  left: -5rem;
  bottom: -1.25rem;
}

.business-dec {
  display: none;
  position: absolute;
  background-image: var(--gray-stone);
  top: 40px;
  bottom: -40px;
  width: 100%;
  
  &.business-dec--r {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
  }
  
  &.business-dec--l {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
  }
}

.item-image img {
  object-fit: cover;
  aspect-ratio: 16 / 9;
}
.item-images .swiper .swiper-pagination {
  position: relative;
  margin-top: 1.25rem;
}


@media screen and (min-width: 768px) {
  .case-list .webgene-blog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-list .webgene-pagination {
    grid-column: span 2 / span 2;
  }
  
  .section-heading .section-heading__en {
    font-size: 1rem;
  }
  
  .section-heading .section-heading__ja {
    font-size: 2rem;
  }
}

@media screen and (min-width: 1024px) {
  .section-heading .section-heading__en {
    font-size: 1.125rem;
  }
  
  .section-heading .section-heading__ja {
    font-size: 2.25rem;
  }
  
  .business-dec {
    display: block;
  }
}

@media screen and (min-width: 1200px) {
  .case-list .webgene-blog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .case-list .webgene-pagination {
    grid-column: span 3 / span 3;
  }
  
  .business-dec {
    top: 80px;
  }
}









