:root {
  --elevation-1: 0 2px 6px 1px rgba(0, 0, 0, 0.15), 0 4px 12px 2px rgba(0, 0, 0, 0.15), 0 8px 24px 4px rgba(0, 0, 0, 0.15), 0 16px 48px 8px rgba(0, 0, 0, 0.15);
  --elevation-2: 0 2px 6px 1px rgba(0, 0, 0, 0.08), 0 4px 12px 2px rgba(0, 0, 0, 0.08), 0 8px 24px 4px rgba(0, 0, 0, 0.08);
}

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

html {
  /* 最小値13pxを保証し、1200px未満では最大22pxまでフォントサイズが流動する */
  font-size: clamp(13px, var(--font-size-base), 22px);

  @media screen and (min-width: 1200px) {
    font-size: clamp(0.1rem, var(--font-size-base), 24px);
  }
}

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background-color: var(--snow);
  background-image: var(--stone);
  letter-spacing: 0.04em;
  font-weight: 500;
}

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

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

.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.6666%;
  }
  &.thumbnail--square {
    padding-top: 100%;
  }
  @media (min-width: 1200px) {
    &.xl--thumbnail--square {
      padding-top: 100%;
    }
  }

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

.__mat.__mat--processed {
  word-break: keep-all;
  word-wrap: break-word;
}

.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 7.5rem;
  padding-left: 1.25rem;
  gap: 2rem;
  @media (min-width: 768px) {
    padding-left: 3rem;
  }
  @media (min-width: 1024px) {
    flex-direction: row;
    align-items: center;
    padding-left: 5rem;
  }
  @media (min-width: 1200px) {
    gap: 3rem;
    padding-top: 11.25rem;
    padding-left: 7.5rem;
  }
  
  & .page-hero__image {
    position: relative;
    object-fit: cover;
    width: 100%;
    height: 12.5rem;
    box-shadow: var(--elevation-2);
    @media (min-width: 768px) {
      height: 15rem;
    }
    @media (min-width: 1024px) {
      height: 25rem;
      width: auto;
      flex: 1 1 0%;
    }
    @media (min-width: 1200px) {
      height: 30rem;
    }
  }
  
  & .page-hero__title {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 1.5rem;
    padding-right: 1.25rem;
    gap: 1.5rem;
    @media (min-width: 768px) {
      padding-right: 2.5rem;
    }
    @media (min-width: 1024px) {
      padding-right: 0;
      flex: 1 1 0%;
      max-width: 30rem;
    }
    &::before, &::after {
      content: "";
      display: block;
      background-size: 100% 100%;
      background-repeat: no-repeat;
    }
    &::before {
      background-image: url(/system_panel/uploads/images/namako-kabe.svg);
      width: 7.5rem;
      height: 3rem;
      @media (min-width: 768px) {
        width: 10rem;
        height: 4rem;
      }
      @media (min-width: 1024px) {
        width: 11.25rem;
        height: 4.5rem;
      }
    }
    &::after {
      position: absolute;
      top: -7.5rem;
      left: 7.5rem;
      background-image: url(/system_panel/uploads/images/fans.svg);
      width: 27.625rem;
      height: 12.5rem;
      opacity: 15%;
    }
    
    & .page-hero__title-main {
      line-height: 1.25;
      letter-spacing: 0;
      font-weight: 700;
      font-size: 2rem;
      @media (min-width: 768px) {
        font-size: 2.5rem;
      }
      @media (min-width: 1024px) {
        font-size: 3rem;
      }
    }
    
    & .page-hero__title-text {
      line-height: 2;
      font-size: 0.875rem;
      @media (min-width: 768px) {
        font-size: 1rem;
      }
      @media (min-width: 1024px) {
        font-size: 1.125rem;
      }
    }
  }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  letter-spacing: 0;
  line-height: 1.25;
  font-weight: 700;
  font-size: 0.875rem;
  @media (min-width: 768px) {
    padding-right: 3rem;
    padding-left: 3rem;
    font-size: 1rem;
  }
  @media (min-width: 1024px) {
    padding-right: 5rem;
    padding-left: 5rem;
  }
  @media (min-width: 1200px) {
    padding-right: 7.5rem;
    padding-left: 7.5rem;
  }
}

.section-vertical-title {
  position: realtive;
  writing-mode: vertical-rl;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  line-height: 1;
  & .section-vertical-title__ja {
    letter-spacing: 0.08em;
    font-weight: 900;
    font-size: 1.5rem;
    @media (min-width: 768px) {
      font-size: 2rem;
    }
    @media (min-width: 1024px) {
      font-size: 2.5rem;
    }
  }
  & .section-vertical-title__en {
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--orange);
    padding-top: 0.875rem;
    @media (min-width: 768px) {
      font-size: 0.875rem;
    }
    @media (min-width: 1024px) {
      font-size: 1rem;
    }
  }
  &.section-vertical-title--ink .section-vertical-title__en {
    color: var(--ink);
  }
  &.section-vertical-title--absolute {
    position: absolute;
    top: -1.25rem;
    left: 0;
    @media (min-width: 768px) {
      left: -1.25rem;
    }
    @media (min-width: 1024px) {
      left: -2.5rem;
    }
  }
}

.swiper:not(.swiper-initialized) {
  & .swiper-wrapper {
    display: flex;
    overflow: auto;
    transition-timing-function: linear;
    & .swiper-slide {
      min-width: 90%;
    }
  }
  &.history-slider .swiper-wrapper .swiper-slide {
    min-width: 25%;
  }
  &.services-slider .swiper-wrapper .swiper-slide {
    min-width: 20%;
  }
}

.fans-dec {
  position: absolute;
  opacity: 15%;
  width: 28.375rem;
  &.fans-dec--greeting {
    top: 13.75rem;
    right: -5.125rem;
  }
  &.fans-dec--outline {
    right: -3.125rem;
    bottom: -3.75rem;
  }
  &.fans-dec--area {
    display: none;
    @media (min-width: 1024px) {
      display: block;
      bottom: 1.25rem;
      left: 1.875rem;
    }
  }
  &.fans-dec--bg-tr {
    top: 2.5rem;
    right: 5rem;
  }
  &.fans-dec--title-br {
    top: -1.25rem;
    right: -4.75rem; 
    @media (min-width: 1024px) {
      top: auto;
      right: -10rem; 
      bottom: -3.125rem;
    }
  }
  &.fans-dec--services {
    top: 50%;
    left: -3.75rem;
    transform: translateY(-50%);
  }
  &.fans-dec--strengths {
    opacity: 50%;
  }
}

.blush-dec {
  position: absolute;
  height: 26.8125rem;
  width: 39.25rem;
  background-image: url(/system_panel/uploads/images/blush-1.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  
  &.blush-dec--1 {
    top: 2.5rem;
    right: 0.625rem;
  }
  &.blush-dec--2 {
    bottom: 0.625rem;
    left: -5.625rem;
    height: 28.6875rem;
    width: 39.875rem;
    background-image: url(/system_panel/uploads/images/blush-2.svg);
  }
  &.blush-dec--3 {
    bottom: 0;
    right: 5rem;
  }
}

.button {
  position: relative;
  padding: 1rem 1.5rem 0.75rem;
  border: 1px solid var(--ink);
  line-height: 1;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  transition: opacity ease 200ms;
  @madia (min-width: 414px) {
    font-size: 1.25rem;
  }
  &::before, &::after {
    content: "";
    display: block;
    position: absolute;
  }
  &::after {
    width: 0;
    height: 0;
    border-top: 6px solid var(--ink);
    border-right: 6px solid var(--ink);
    border-bottom: 6px solid transparent;
    border-left: 6px solid transparent;
	top: 4px;
    right: 4px;
    opacity: 35%;
  }
  &::before {
    width: 45px;
    height: 1px;
    background-color: var(--ink);
    transform: rotate(45deg);
    bottom: 6px;
    left: -18px;
  }
  &:hover {
    opacity: 80%;
    text-decoration: none;
    color: var(--ink);
  }
  
  &.button--snow {
    color: var(--snow);
    border-color: var(--snow);
    &:hover {
      color: var(--snow);
    }
    &::after {
      border-top-color: var(--snow);
      border-right-color: var(--snow);
    }
    &::before {
      background-color: var(--snow);
    }
  }
}

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

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

.category-list {
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
}


.item-images {
  & .item-image img {
    aspect-ratio: 2 / 1;
    object-fit: cover;
    width: 100%;
  }
}

.item-movie iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

.swiper-pagination-bullet-active {
  background-color: var(--orange);
}

.title-line {
  position: absolute;
  inset: auto -4rem 0.25rem 0;
  height: 0.9375rem;
  & img {
    height: 100%;
    width: 100%;
  }
}

.services-illust {
  position: relative;
  width: 10rem;
  margin-right: auto;
  margin-left: auto;
  aspect-ratio: 4 / 3;
  @media (min-width: 768px) {
    max-width: 15rem;
    flex: 1 1 0%;
  }
  & > div {
    width: 130%;
    position: absolute;
    right: 1.75rem;
    bottom: 0.375rem;
    & img {
      width: 100%;
    }
  }
}

.brush-line {
  position: absolute;
  inset: -1px 0;
  &::before, &::after {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    left: 0;
    height: 3px;
  }
  &::before {
    top: 0;
    background-image: url(/system_panel/uploads/images/brush-line-top.png);
  }
  &::after {
    bottom: 0;
    background-image: url(/system_panel/uploads/images/brush-line-bottom.png);
  }
  & > div {
    position: absolute;
    inset: 0 -1px;
    &::before, &::after {
      content: "";
      display: block;
      position: absolute;
      top: 0;
      bottom: 0;
      width: 3px;
    }
    &::before {
      left: 0;
      background-image: url(/system_panel/uploads/images/brush-line-left.png);
    }
    &::after {
      right: 0;
      background-image: url(/system_panel/uploads/images/brush-line-right.png);
    }
  }
  
  &.brush-line--yellow {
    &::before {
      background-image: url(/system_panel/uploads/images/brush-line-top--yellow.png);
    }
    &::after {
      background-image: url(/system_panel/uploads/images/brush-line-bottom--yellow.png);
    }
    & > div {
      &::before {
        background-image: url(/system_panel/uploads/images/brush-line-left--yellow.png);
      }
      &::after {
        background-image: url(/system_panel/uploads/images/brush-line-right--yellow.png);
      }
    }
  }
  
  &.brush-line--pale-green {
    &::before {
      background-image: url(/system_panel/uploads/images/brush-line-top--pale-green.png);
    }
    &::after {
      background-image: url(/system_panel/uploads/images/brush-line-bottom--pale-green.png);
    }
    & > div {
      &::before {
        background-image: url(/system_panel/uploads/images/brush-line-left--pale-green.png);
      }
      &::after {
        background-image: url(/system_panel/uploads/images/brush-line-right--pale-green.png);
      }
    }
  }
  
  &.brush-line--pale-purple {
    &::before {
      background-image: url(/system_panel/uploads/images/brush-line-top--pale-purple.png);
    }
    &::after {
      background-image: url(/system_panel/uploads/images/brush-line-bottom--pale-purple.png);
    }
    & > div {
      &::before {
        background-image: url(/system_panel/uploads/images/brush-line-left--pale-purple.png);
      }
      &::after {
        background-image: url(/system_panel/uploads/images/brush-line-right--pale-purple.png);
      }
    }
  }
  
  &.brush-line--pale-pink {
    &::before {
      background-image: url(/system_panel/uploads/images/brush-line-top--pale-pink.png);
    }
    &::after {
      background-image: url(/system_panel/uploads/images/brush-line-bottom--pale-pink.png);
    }
    & > div {
      &::before {
        background-image: url(/system_panel/uploads/images/brush-line-left--pale-pink.png);
      }
      &::after {
        background-image: url(/system_panel/uploads/images/brush-line-right--pale-pink.png);
      }
    }
  }
}

.section-work-list {
  @media (min-width: 1200px) {
    flex: 1 1 0%;
    max-width: 37.5rem;
    & .webgene-blog {
      flex-direction: column;
      gap: 1.5rem;
      height: auto;
      & .webgene-item:first-child {
        display: none;
      }
    }
  }
}

.strengths-illust {
  position: absolute;
  width: 46.6666666667%;
  top: 28%;
  left: -2%;
  @media (min-width: 768px) {
    width: 28.05555556%;
    top: -24%;
    left: -11%;
  }
}

.stregths-bg-image {
  position: absolute;
  opacity: 80%;
  & img {
    width: 100%;
  }
  &.stregths-bg-image--tr {
    width: clamp(9rem, 23.125%, 23.125rem);
    top: 0;
    right: 0;
    transform: translate(5.4054054054%, -5%);
  }
  &.stregths-bg-image--bl {
    width: clamp(10rem, 18.75%, 18.75rem);
    bottom: 0;
    left: 0;
    transform: translate(-6.6666666667%, 12.9032258065%);
  }
}

.strengths-links {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  & a:first-child {
    grid-column: 1 / span 2;
  }
  @media (min-width: 768px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    & a:first-child {
      grid-column: 1 / span 1;
    }
  }
}

.strength-bubble {
  position: absolute;
  width: 131.66666667%;
  top: 0;
  left: 0;
  transform: translate(3.7974683544%, -86.04651163%);
}

.strength-title-bubble {
  position: absolute;
  width: 7rem;
  top: 0;
  left: -1rem;
  transform: translateY(-90%);
  @media (min-width: 768px) {
    width: 11rem;
    left: -2rem;
  }
  @media (min-width: 1200px) {
    width: 14rem;
    left: -3.4375rem;
  }
}

.services-slider {
  position: relative;
  & .swiper-wrapper {
    transition-timing-function: linear;
    & .swiper-slide {
      position: relative;
      transition: margin-top ease 600ms;
      &:nth-child(even) {
        margin-top: 1.5rem;
      }
      & .services-slider__bg-image {
        position: relative;
        aspect-ratio: 2 / 3;
        object-fit: cover;
        width: 100%;
        &::after {
          content: "";
          display: block;
          position: absolute;
          inset: 0;
          background-color: hsl(0 0 0 / 30%);
          pointer-events: none;
        }
        & img {
          object-fit: cover;
          width: 100%;
          height: 100%;
        }
      }
      & .services-slider__title {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        writing-mode: vertical-rl;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        line-height: 1;
        letter-spacing: 0.08em;
        font-weight: 900;
        color: var(--snow);
        & h1, & h2, & h3, & h4, & h5, & h6 {
          font-size: 1rem;
          @media (min-width: 768px) {
            font-size: 1.25rem;
          }
          @media (min-width: 1024px) {
            font-size: 1.5rem;
          }
          @media (min-width: 1200px) {
            font-size: 1.75rem;
          }
        }
        & img {
          width: 0.75rem;
          @media (min-width: 768px) {
            width: 1rem;
          }
        }
      }
    }
  }
}

.services-link-bubble {
  position: absolute;
  top: 0;
  left: 35%;
  transform: translateY(-100%);
  width: 12.5rem;
  @media (min-width: 414px) {
    width: 22.875rem;
    right: 0;
    left: auto;
    transform: translate(85%, -90%);
  }
}






