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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--white);
}

#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;
        box-shadow: 3px 3px 0px 0px var(--ink);
        border: 2px solid var(--ink);
        border-radius: 9999px;
        background-color: var(--snow);
        &:hover {
          text-decoration: none;
        }
      }

      &.selected {
        & a {
          background-color: var(--pale-yellow);
          &: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 {
  & > 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;
  justify-content: center;
  position: relative;
  height: 20rem;

  @media screen and (min-width: 768px) {
    height: 30rem;
  }

  @media screen and (min-width: 1024px) {
    height: 37.5rem;
  }

  @media screen and (min-width: 1200px) {
    height: 37.5rem;
  }
}

.page-hero__title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 5rem;
}

.page-hero__title {
  height: 2.5rem;

  @media screen and (min-width: 768px) {
    height: 4rem;
  }

  @media screen and (min-width: 1024px) {
    height: 6rem;
  }

  @media screen and (min-width: 1200px) {
    height: 7.5rem;
  }
}

.section-line {
  position: relative;
  height: 1.5rem;
  min-width: 1920px;
}

.white-cloud {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 2rem;

  @media screen and (min-width: 414px) {
    height: 2.5rem;
  }

  @media screen and (min-width: 768px) {
    top: 20px;
    height: 3.5rem;
  }

  @media screen and (min-width: 1024px) {
    top: 8px;
    height: 5.5rem;
  }

  @media screen and (min-width: 1200px) {
    top: 0;
    height: 8.625rem;
  }
  
  &.white-cloud--sticky {
    top: 0 !important;
  }
}

.balloons {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 102%;

  & img {
    width: 100%;
  }

  @media screen and (min-width: 768px) {
    width: 80%
  }  
}

.section-title {
  height: 2.25rem;

  @media screen and (min-width: 768px) {
    height: 3rem;
  }

  @media screen and (min-width: 1024px) {
    height: 4.5rem;
  }

  @media screen and (min-width: 1200px) {
    height: 5rem;
  }
}

.section-title--pricing {
  height: 5rem;

  @media screen and (min-width: 768px) {
    height: 8rem;
  }

  @media screen and (min-width: 1024px) {
    height: 10rem;
  }

  @media screen and (min-width: 1200px) {
    height: 11.25rem;
  }
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  gap: 0.5rem;
  border: 2px solid var(--ink);
  border-radius: 9999px;
  background-color: var(--snow);
  color: var(--ink);
  box-shadow: 3px 3px 0px 0px var(--ink);
  transition: opacity ease 200ms;
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;

  &:hover {
    opacity: 80%;
    text-decoration: none;
  }
  
  
}

.news-list {
  & .webgene-blog {
    display: grid;
    gap: 0.75rem;
    
    @media screen and (min-width: 768px) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    @media screen and (min-width: 1200px) {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
  & .webgene-pagination, & .webgene-no-items {
    @media screen and (min-width: 768px) {
      grid-column: span 2 / span 2;
    }
    @media screen and (min-width: 1200px) {
      grid-column: span 4 / span 4;
    }
  }
}
.category-list {
  & .webgene-blog {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
}
.item-images {
  & .swiper-slide {
    & img {
      width: 100%;
      aspect-ratio: 3 / 2;
      object-fit: cover;
    }
  }
}

.price-plan-dec {
  position: absolute;
  height: 5rem;
  top: -40px;
  
  @media screen and (min-width: 768px) {
    height: 7.5rem;
    top: -60px;
  }
  
  @media screen and (min-width: 1024px) {
    top: -40px;
  }
  
  &.price-plan-dec--1 {
    right: 0;
  }
  
  &.price-plan-dec--2 {
    right: -24px;
  }
}

.price-box {
  display: flex;
  align-items: baseline;
  position: relative;
  transform: skewX(-10deg);
  
  &::before {
    content: "";
    width: 100%;
    height: 1rem;
    background-color: var(--pale-yellow);
    position: absolute;
    bottom: -4px;
    left: 0;
  }
  
  & .price-box__price {
    position: relative;
    color: var(--red);
    letter-spacing: 0;
    line-height: 1;
    font-weight: 900;
    font-size: 2rem;
    
    @media screen and (min-width: 768px) {
      font-size: 2.5rem;
    }
  }
  
  & .price-box__tax-included {
    position: relative;
    letter-spacing: 0;
    line-height: 1;
    font-weight: 600;
    font-size: 0.875rem;
    
    @media screen and (min-width: 768px) {
      font-size: 1rem;
    }
  }
}

.footer-area__illust {
  position: absolute;
  width: 11.25rem;
  bottom: -7rem;
  left: 0;
  
  @media screen and (min-width: 1024px) {
    width: 17rem;
    bottom: -9rem;
    left: -2rem;
  }
}

.footer-logo {
  position: absolute;
  top: -5rem;
  left: 50%;
  transform: translateX(-50%);
}

.elevation {
  box-shadow: 0px 4px 8px 6px rgba(0, 0, 0, 0.08), 0px 8px 16px 12px rgba(0, 0, 0, 0.04);
}

.feature-box {
  position: relative;
  
  &::before {
    content: "";
    width: 100%;
    height: 1rem;
    background-color: var(--pale-yellow);
    position: absolute;
    bottom: -4px;
    left: 0;
  }
}

.services-items {
  counter-reset: item;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  
  @media screen and (min-width: 768px) {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  @media screen and (min-width: 1024px) {
    gap: 2rem;
    &.services-items--lg .services-items__item {
      width: 25rem !important;
    }
  }
  
  & .services-items__item {
    counter-increment: item;
    @media screen and (min-width: 768px) {
      width: 20rem;
    }
    
    & .services-items__image {
      &::after {
        content: counter(item);
        color: var(--green);
        font-family: var(--font-display);
        width: 4rem;
        line-height: 4rem;
        border-radius: 9999px;
        background-color: var(--snow-alt);
        display: inline-block;
        font-size: 2.25rem;
        position: absolute;
        bottom: -2rem;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
      }
    }
  }
}

.service-flow {
  counter-reset: item;
  
  & .service-flow__item {
    counter-increment: item;
    
    & .service-flow__step {
      &::after {
        content: "STEP " counter(item, decimal-leading-zero);
        background-color: var(--green);
        padding: 1.125rem 1.5rem;
        border-radius: 1rem;
        color: var(--snow);
        line-height: 1;
        font-size: 1.25rem;
        font-weight: 700;
        display: inline-block;
      }
    }
  }
}


.home-hero {
  min-height: 800px;
  height: calc(var(--vh, 1vh) * 100);
  
  & .home-hero__title-box {
    padding-top: 7.5rem;
    padding-bottom: 15rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    
    @media screen and (min-width: 1024px) {
      padding-top: 5rem;
    }
  }
}

.home-concept {
  padding-top: 20rem;
  padding-bottom: 22.5rem;
  overflow: hidden;
  
  @media screen and (min-width: 1024px) {
    padding-top: 10rem;
    padding-bottom: 15rem;
  }
}

.home-concept-illust {
  position: absolute;
  
  &.home-concept-illust--tl {
    width: 108px;
    left: -4px;
    top: 148px;
  }
  &.home-concept-illust--tr {
    width: 108px;
    top: 105px;
    right: 28px;
  }
  &.home-concept-illust--bl {
    width: 138px;
    bottom: 60px;
    left: 11px;
  }
  &.home-concept-illust--br {
    width: 81px;
    right: 35px;
    bottom: 138px;
  }
  
  @media screen and (min-width: 1024px) {
    width: unset;
    
    &.home-concept-illust--tl {
      top: 105px;
      left: 167px;
    }
    &.home-concept-illust--tr {
      top: 29px;
      right: 129px;
    }
    &.home-concept-illust--bl {
      bottom: 90px;
      left: 197px;
    }
    &.home-concept-illust--br {
      bottom: 110px;
      right: 184px;
    }
  }
}

.home-services-items.services-items {
  gap: 2rem;
  @media screen and (min-width: 768px) {
    & .services-items__item {
      width: 25rem !important;
    }
    
    &.services-items--lg .services-items__item {
      width: 30rem !important;
    }
  }
}
.home-services-illust {
  position: absolute;
  display: none;
  
  @media screen and (min-width: 1200px) {
    display: block;
    &.home-services-illust--1 {
      bottom: 15rem;
      left: 5rem;
    }
    &.home-services-illust--2 {
      top: 18rem;
      right: 0.5rem;
    }
    &.home-services-illust--3 {
      top: 20rem;
      left: 2.5rem;
    }
  }
}

.text-with-line {
  display: block;
  & > * {
    display: inline;
  }
  & .text-with-line__lined {
    background: linear-gradient(to bottom, transparent 40%, var(--pale-yellow) 40%);
  }
}

.voice-bubble {
  &::before {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    border-bottom: 2px solid var(--ink);
    transform: rotate(-45deg);
    bottom: -30px;
    left: 160px;
    background-color: var(--snow);
  }
}

.home-hero {
  position: relative;
  overflow: hidden;
}
.home-hero__illust {
  position: absolute;
  left: 0;
  bottom: 280px;
  width: 105%;
  @media screen and (min-width: 414px) {
    width: 100%;
    max-width: 600px;
    bottom: 0;
  }
  @media screen and (min-width: 768px) {
    bottom: 0;
    left: 40px;
    width: 55%;
  }
  @media screen and (min-width: 1200px) {
    left: 6.25%;
    width: 30%;
    max-width: 770px;
  }
}
