*,
*::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-sans);
  color: var(--ink);
  background-color: var(--snow);
  background-image: var(--paper-cream);
  letter-spacing: 0.04em;
}

#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;
        color: var(--snow);
        background-color: var(--ink);
        box-shadow: var(--elevation-2);
        &:hover {
          text-decoration: none;
        }
      }

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

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

.thumbnail {
  position: relative;

  &.thumbnail--16x9 {
    padding-top: 56.25%;
  }
  &.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;
  overflow: hidden;
  height: 35rem;
  @media (min-width: 1200px) {
    padding-right: 5rem;
    padding-left: 5rem;
  }
  
  & .page-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    mask-image: url("/system_panel/uploads/images/wave.png");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    &.page-hero__wave--paper-red {
      height: 17.5rem;
      mask-image: url("/system_panel/uploads/images/wave-reverse.png");
      background-image: url("/system_panel/uploads/images/paper-red.jpg");
    }
    &.page-hero__wave--paper-cream {
      height: 5.5rem;
      background-image: url("/system_panel/uploads/images/paper-cream.jpg");
    }
    &.page-hero__wave--paper-green {
      height: 5.5rem;
      background-image: url("/system_panel/uploads/images/paper-green.jpg");
    }
    @media (min-width: 1200px) {
      &.page-hero__wave--paper-cream {
        height: 10rem;
      }
      &.page-hero__wave--paper-green {
        height: 10rem;
      }
      
    }
  }
  
  & .page-hero__image {
    position: absolute;
    inset: 0;
    &::after {
      pointer-events: none;
      content: "";
      position: absolute;
      inset: 0;
      background-image: linear-gradient(180deg, rgba(64, 49, 40, 0.35) 0%, rgba(64, 49, 40, 0.35) 15.23%, rgba(64, 49, 40, 0.00) 25.96%, rgba(64, 49, 40, 0.00) 100%);
    }
    & img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
  }
  
  & .page-hero__title {
    position: relative;
    line-height: 1.25;
    letter-spacing: 0.24em;
    font-weight: 500;
    font-family: var(--font-serif);
    font-size: 2rem;
    text-align: center;
    color: var(--snow);
    text-shadow: var(--text-shadow);
    @media (min-width: 768px) {
      font-size: 3rem;
    }
    @media (min-width: 1024px) {
      font-size: 3.5rem;
    }
    @media (min-width: 1200px) {
      font-size: 4rem;
    }
  }
}

.title-slash {
  &::before {
    content: "";
    position: absolute;
    display: block;
    width: 7.5rem;
    height: 1px;
    background-color: var(--dark-green);
    top: 0.25rem;
    left: 0;
    transform: translate(-50%) rotate(-45deg);
  }
  &.title-slash--dark-red::before {
    background-color: var(--dark-red);
  }
  &.title-slash--dark-indigo::before {
    background-color: var(--indigo);
  }
}



.section-wave {
  position: relative;
  &::before {
    pointer-events: none;
    content: "";
    display: block;
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 4rem;
    background: url("/system_panel/uploads/images/wave--paper-cream.png") no-repeat 0% 0% / 100% 100%;
    @media (min-width: 768px) {
      height: 6rem;
    }
    @media (min-width: 1200px) {
      height: 8.5625rem;
    }
  }
  &.section-wave--top::before {
    top: -1px;
    transform: scale(-1, -1);
  }
}

.separator {
  width: 100%;
  max-width: 20rem;
  display: flex;
  align-items: center;
  padding: 0.021875rem 0.375rem;
  position: relative;
  height: 0.0625rem;
  --separator-color: var(--ink);
  background-color: var(--separator-color);
  
  &::before, &::after {
    content: "";
    position: absolute;
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: var(--separator-color);
  }
  &::before {
    left: 0;
  }
  &::after {
    right: 0;
  }
}

.footer-map {
  position: relative;
  
  & iframe {
    position: absolute;
    width: 100%;
    height: 100%;
  }
}

.button {
  padding: 1rem 1.75rem 1rem 2.25rem;
  position: relative;
  color: var(--button-fg);
  background-image: var(--button-bg);
  display: flex;
  gap: 1.25rem;
  align-items: center;
  transition-property: transform, opacity;
  transition-timing-function: ease;
  transition-duration: 300ms;
  
  &::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: calc(100% - 0.5rem);
    height: calc(100% - 0.5rem);
    border: 0.0625rem solid var(--button-fg);
  }
  &::after {
    content: "";
    position: relative;
    display: block;
    background-color: var(--button-fg);
    mask-image: url("data:image/svg+xml,%3Csvg%20width%3D%2248%22%20height%3D%228%22%20viewBox%3D%220%200%2048%208%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M0%203.5H42V4.5H0V3.5Z%22%20fill%3D%22currentColor%22%2F%3E%0A%3Cpath%20d%3D%22M48%204C48%206.20914%2046.2091%208%2044%208C41.7909%208%2040%206.20914%2040%204C40%201.79086%2041.7909%200%2044%200C46.2091%200%2048%201.79086%2048%204Z%22%20fill%3D%22currentColor%22%2F%3E%0A%3C%2Fsvg%3E%0A");
    mask-size: contain;
    mask-repeat: no-repeat;
    width: 3rem;
    height: 0.5rem;
  }
  &:hover {
    opacity: 0.85;
    text-decoration: none;
    transform: scale(0.98);
    color: var(--button-fg);
  }

  
  &.button--green {
    --button-fg: var(--ink);
    --button-bg: var(--paper-green);
  }
  &.button--red {
    --button-fg: var(--snow);
    --button-bg: var(--paper-red);
  }
}

.footer-top-button {
  position: absolute;
  top: -1.25rem;
  right: 1.875rem;
  border-radius: 9999px;
  box-shadow: var(--elevation-2);
  background-color: var(--ink);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  
  @media (min-width: 768px) {
    right: 7.5rem;
  }
}

.dumbbell {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--dumbbell-color);
  height: 1px;
  width: 19.25rem;
  margin: 0.21875rem 0.375rem;
  --dumbbell-color: var(--dark-green);
  &::before,
  &::after {
    content: "";
    aspect-ratio: 1 / 1;
    width: 0.5rem;
    border-radius: 9999px;
    background-color: var(--dumbbell-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  &::before {
    left: -0.375rem;
  }
  &::after {
    right: -0.375rem;
  }
  
  &.dumbbell--dark-red {
    --dumbbell-color: var(--dark-red);
  }
  &.dumbbell--indigo {
    --dumbbell-color: var(--indigo);
  }
  &.dumbbell--snow {
    --dumbbell-color: var(--snow);
  }
}

.title-bg-typo {
  position: absolute;
  transform: rotate(-14.8deg);
  opacity: 15%;
  line-height: 1;
  letter-spacing: 0;
  font-family: var(--font-display-en);
  font-weight: 400;
  font-size: 7.5rem;
  color: var(--indigo);
  &.title-bg-typo--introduction {
    top: 50%;
    left: 2.5rem;
    transform-origin: center left;
    transform: translateY(-50%) rotate(-14.8deg);
    @media(min-width: 768px) {
      left: 9rem;
    }
  }
  &.title-bg-typo--services {
    top: 0.5rem;
    right: -4rem;
  }
  &.title-bg-typo--pricing {
    top: 1.5rem;
    right: -1.75rem;
  }
}

.pricing-table {
  position: relative;
  display: grid;
  background-color: var(--snow);
  border: 1px solid hsl(from var(--ink) h s l / 20%);
  border-bottom-width: 0;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.75rem;
  @media (min-width: 768px) {
    font-size: 0.9375rem;
  }
  & .pricing-table__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid hsl(from var(--ink) h s l / 20%);
    &:nth-child(even) {
      background-color: hsl(from var(--ink) h s l / 5%)
    }
  }
  & .pricing-table__cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem  0.75rem 0.375rem 0.75rem;
    &:first-child {
      background-color: var(--indigo);
      color: var(--snow);
    }
    &:nth-child(n + 2) {
      border-left: 1px solid hsl(from var(--ink) h s l / 20%);
      text-align: end;
    }
  }
}

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

.items-slider, .items-slider--reverse {
  width: 100%;
  overflow: visible;
  & .swiper-wrapper {
    transition-timing-function: linear;
  }
  & .swiper-slide {
    & img {
      object-fit: cover;
      aspect-ratio: 3 / 2;
      width: 100%;
      box-shadow: var(--elevation-2);
    }
  }
}
.services-link-slider {
  width: 100%;
  overflow: visible;
  & .swiper-slide {
    & img {
      object-fit: cover;
      aspect-ratio: 1 / 1;
      width: 100%;
      box-shadow: var(--elevation-2);
      @media (min-width: 768px) {
        aspect-ratio: 3 / 2;
      }
    }
  }
}

.service-link-typo {
  position: absolute;
  top: -3.125rem;
  left: -1.25rem;
  writing-mode: vertical-rl;
  line-height: 1;
  letter-spacing: 0.1em;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 3rem;
  text-shadow: var(--elevation-2--snow);
  mix-blend-mode: difference;
  color: var(--snow);
}


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







