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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--snow-alt);
  letter-spacing: 0.12em;
  font-weight: 500;
}

#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;
        color: var(--snow);
        background-color: hsl(from var(--ink) h s l / 25%);
        &:hover {
          text-decoration: none;
          color: var(--snow);
        }
      }

      &.selected {
        & a {
          background-image: var(--grad-brand-primary);
          color: var(--ink);
          &:hover {
            text-decoration: none;
            color: var(--ink);
          }
        }
      }
    }
  }
}

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

.thumbnail {
  position: relative;

  &.thumbnail--16x9 {
    padding-top: 56.25%;
  }
  
  &.thumbnail--3x2 {
    padding-top: 66.6666666%;
  }

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

.case-list .webgene-blog {
  display: grid;
  gap: 2rem;
  @media screen and (min-width: 768px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    & .webgene-pagination {
      grid-column: 1 / span 2;
    }
  }
  @media screen and (min-width: 1024px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    & .webgene-pagination {
      grid-column: 1 / span 3;
    }
  }
}

.news-list .webgene-blog {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-detail {
  & .swiper-slide img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    width: 100%;
  }
  & .swiper-pagination {
    position: relative;
    margin: 0;
    top: auto;
    bottom: auto;
  }
}



.page-hero {
  position: relative;
  display: flex;
  align-items: end;
  padding: 10rem 1.25rem 3rem 1.25rem;
  overflow: hidden;
  @media screen and (min-width: 768px) {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }
  @media screen and (min-width: 1024px) {
    padding-top: 15rem;
    padding-right: 3.75rem;
    padding-left: 3.75rem;
  }
  @media screen and (min-width: 1200px) {
    padding-top: 17.5rem;
    padding-right: 5rem;
    padding-left: 5rem;
  }
  &.page-hero--services {
    padding-top: 15rem;
    @media screen and (min-width: 1024px) {
      padding-top: 30rem;
    }
    
    & .page-hero__dec--tl {
      top: 3rem;
      bottom: auto;
      left: -3rem;
      width: 30.375%;
      max-width: 30.375rem;
      min-width: 12.5rem;
      @media screen and (min-width: 1024px) {
        top: 0;
        left: 0;
        transform: translate(-15.638%, -12.06%);
      }
    }
    & .page-hero__dec--br {
      right: -3.5rem;
      bottom: 6.75rem;
      left: auto; 
      width: 36.75%;
      max-width: 36.75rem;
      min-width: 13.75rem;
      opacity: 25%;
      @media screen and (min-width: 1024px) {
        right: 0;
        bottom: 0;
        transform: translate(-3.4%, 11.8%);
      }
    }
  }
  
  & .page-hero__dec {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translate(-7.752%, 8.375%);
    width: 32.25%;
    max-width: 32.25rem;
    min-width: 17.5rem;
    opacity: 35%;
    & img {
      width: 100%;
    }
  }
  
  & .page-hero__title {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: start;
    line-height: 1.5;
    font-weight: 700;
    color: var(--snow);
    & .page-hero__title-main {
      padding: 0.75rem;
      background-image: var(--grad-brand-primary);
      letter-spacing: 0.32em;
      font-size: 0.8125rem;
    }
    & .page-hero__title-sub {
      padding: 0.75rem;
      background-color: var(--ink);
      letter-spacing: 0.12em;
      font-size: 0.625rem;
    }
    @media screen and (min-width: 768px) {
      & .page-hero__title-main {
        padding: 1rem;
        font-size: 1.5rem;
      }
      & .page-hero__title-sub {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
        font-size: 0.875rem;
      }
    }
    @media screen and (min-width: 1024px) {
      & .page-hero__title-main {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
        font-size: 2.25rem;
      }
      & .page-hero__title-sub {
        padding-right: 1rem;
        padding-left: 1rem;
        font-size: 1.25rem;
      }
    }
    @media screen and (min-width: 1200px) {
      & .page-hero__title-main {
        font-size: 3rem;
      }
      & .page-hero__title-sub {
        font-size: 1.5rem;
      }
    }
  }
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-weight: 700;
  @media screen and (min-width: 768px) {
    gap: 2.25rem;
  }
  @media screen and (min-width: 1024px) {
    gap: 3rem;
  }
  
  &.section-title--narrow {
    gap: 1.5rem;
  }
  
  &.section-title--center {
    & .section-title__en {
      align-self: center;
    }

    & .section-title__ja {
      text-align: center;
    }
  }

  & .section-title__en {
    display: flex;
    align-items: center;
    gap: 1.5rem;

    & p {
      line-height: 1;
      letter-spacing: 0.08em;
      font-size: 1.25rem;
      background-image: var(--grad-brand-primary);
      background-size: 100% 100%;
      background-clip: text;
      color: transparent;
    }

    &::before {
      content: "";
      display: block;
      flex-shrink: 0;
      height: 2.3125rem;
      width: 2rem;
      background-image: url(/system_panel/uploads/images/sakamoto-hexagon.svg);
      background-size: 100% 100%;
      background-repeat: no-repeat;
    }

    &.section-title__en--prof {
      gap: 0.75rem;

      & p {
        font-size: 0.875rem;
      }

      &::before {
        height: 1.3125rem;
        width: 1.125rem;
      }
      @media screen and (min-width: 768px) {
        gap: 1.25rem;
        & p {
          font-size: 1.125rem;
        }
        &::before {
          height: 1.75rem;
          width: 1.5rem;
        }
      }
      @media screen and (min-width: 1024px) {
        gap: 1.5rem;
        & p {
          font-size: 1.25rem;
        }
        &::before {
          height: 2.3125rem;
          width: 2rem;
        }
      }
    }
  }

  & .section-title__ja {
    position: relative;
    line-height: 1.25;
    letter-spacing: 0.24em;
    font-size: 1.125rem;
    font-feature-settings: "palt";

    &.section-title__ja--sm {
      font-size: 1rem;
    }

    &.section-title__ja--prof {
      font-size: 1.25rem;
    }

    @media screen and (min-width: 768px) {
      font-size: 1.75rem;

      &.section-title__ja--sm {
        font-size: 1.25rem;
      }

      &.section-title__ja--lg {
        font-size: 2.375rem;
      }

      &.section-title__ja--prof {
        font-size: 1.75rem;

        &.section-title__ja--prof-lg {
          font-size: 2.5rem;
        }
      }

    }

    @media screen and (min-width: 1024px) {
      font-size: 2rem;

      &.section-title__ja--sm {
        font-size: 1.5rem;
      }

      &.section-title__ja--lg {
        font-size: 3rem;
      }

      &.section-title__ja--prof {
        font-size: 2rem;

        &.section-title__ja--prof-lg {
          font-size: 3rem;
        }
      }
    }
  }
  
  & .section-title__ja-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    & .section-title__ja {
      font-weight: 900;
      letter-spacing: 0.12em;

      &.section-title__ja--sm {
        font-weight: 700;
      }
    }

    & .section-title__ja-content {
      display: flex;
      flex-wrap: wrap;
      gap: 0.25rem;
      align-items: baseline;
    }
  }
}


.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 2rem;
  border-radius: 9999px;
  background-image: var(--grad-brand-primary);
  color: var(--snow);
  transition: all ease 200ms;
  &:hover {
    color: var(--snow);
    text-decoration: none;
    opacity: 85%;
    transform: scale(0.95);
  }
}

.footer-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  &::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, rgba(142, 236, 197, 0.00) 0%, #09545B 100%);
    pointer-events: none;
  }
  & img {
    position: relative;
    -webkit-mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%);
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%);
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

.profile-title-dec-text {
  position: absolute;
  top: -0.375em;
  left: -1.375em;
  background-image: var(--grad-brand-primary);
  background-size: 100% 100%;
  background-clip: text;
  color: transparent;
  opacity: 25%;
  line-height: 1;
  letter-spacing: 0.24em;
  font-size: 2.5rem;
  white-space: nowrap;
  @media screen and (min-width: 768px) {
    font-size: 3rem;
  }
  @media screen and (min-width: 1024px) {
    font-size: 3.5rem;
  }
  @media screen and (min-width: 1200px) {
    font-size: 4rem;
  }
}

.profile-greet-dec-text {
  position: absolute;
  top: -0.75em;
  left: 0.25em;
  background-image: var(--grad-brand-primary);
  background-size: 100% 100%;
  background-clip: text;
  color: transparent;
  opacity: 25%;
  line-height: 1;
  letter-spacing: 0.24em;
  font-size: 2.5rem;
  white-space: nowrap;
  @media screen and (min-width: 768px) {
    font-size: 4rem;
  }
  @media screen and (min-width: 1024px) {
    font-size: 7.5rem;
  }
  @media screen and (min-width: 1200px) {
    font-size: 10rem;
  }
}

.profile-greet-dec-hexagon {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(34%, 41.3%);
  width: 36.75%;
  max-width: 36.75rem;
  min-width: 17.5rem;
  opacity: 25%;
  & img {
    width: 100%;
  }
}

.profile-greet-dec-square {
  position: absolute;
  top: 5rem;
  left: 5rem;
  width: 70.25rem;
  height: 54rem;
  background-color: var(--snow);
}

.manga-bg-image {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  left: 0;
  width: 100%;
  height: 125%;
  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 30%;
  }
  &::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: hsl( 155 71 74 / 30%);
    pointer-events: none;
  }
}

.manga-dec {
  position: absolute;
  top: -1.75rem;
  left: 50%;
  transform: translateX(calc(-50% - 1.25rem));
  width: 118.5185%
}

.services-intro-dec-hexagon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36.75%;
  max-width: 36.75rem;
  min-width: 13.75rem;
  transform: translate(-3.4%, 1.475%);
  opacity: 25%;
  & img {
    width: 100%;
  }
}

.services-intro-dec-square {
  position: absolute;
  top: 5rem;
  right: 0;
  bottom: 5rem;
  width: 70.3175%;
  background-color: var(--snow);
}

.services-profile-dec-hexagon {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translateX(-8.33333%);
  width: 30%;
  max-width: 30rem;
  min-width: 15rem;
  opacity: 25%;
  & img {
    width: 100%;
  }
}

.dec-text {
  position: absolute;
  background-image: var(--grad-brand-primary);
  background-clip: text;
  color: transparent;
  opacity: 25%;
  line-height: 1;
  letter-spacing: 0.24em;
  font-weight: 700;
  font-size: 3rem;
  white-space: nowrap;
  @media screen and (min-width: 768px) {
    font-size: 4rem;
  }
  @media screen and (min-width: 1024px) {
    font-size: 5rem;
  }
  
  &.dec-text--merit {
    top: -0.625em;
    left: -0.5em;
  }
  &.dec-text--points {
    top: -1.25em;
    left: -1.375em;
  }
  &.dec-text--home-intro {
    font-size: 3rem;
    top: -0.625em;
    left: 0;
    @media screen and (min-width: 768px) {
      font-size: 6rem;
      left: -2.5rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 8rem;
      left: -3.75rem;
    }
    @media screen and (min-width: 1200px) {
      left: -16.25rem;
    }
  }
  &.dec-text--home-customers {
    font-size: 1.5rem;
    top: 0;
    transform: translateY(-100%);
    right: 0;
    @media screen and (min-width: 768px) {
      font-size: 3rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 5rem;
    }
  }
}

.dec-square {
  position: absolute;
  background-color: var(--snow);
  
  &.dec-square--merit-1 {
    top: 3rem;
    left: -2.5rem;
    height: 100%;
    width: 100%;
    @media screen and (min-width: 768px) {
      top: 4rem;
    }
    @media screen and (min-width: 1024px) {
      top: 6rem;
      left: 0;
      width: calc(100% - 6rem);
    }
    @media screen and (min-width: 1024px) {
      width: calc(100% - 7.5rem);
    }
  }
  &.dec-square--merit-2 {
    top: 3rem;
    right: -2.5rem;
    height: 100%;
    width: 100%;
    @media screen and (min-width: 768px) {
      top: 4rem;
    }
    @media screen and (min-width: 1024px) {
      top: 6rem;
      right: 0;
      width: calc(100% - 6rem);
    }
    @media screen and (min-width: 1024px) {
      width: calc(100% - 7.5rem);
    }
  }
  &.dec-square--points {
    top: -3rem;
    left: -5rem;
    height: 100%;
    width: 100%;
  }  
  &.dec-square--home-customers {
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);    
    height: 100%;
    width: 150%;
    @media screen and (min-width: 1200px) {
      width: 85.71428571%;
    }
  }
}

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

