*,
*::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);
  letter-spacing: 0.08em;
  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: var(--ink);
        color: var(--snow);
        &:hover {
          text-decoration: none;
        }
      }

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

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

  & img,
  & video,
  &: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;
}

.section-title {
  position: relative;
  display: grid;
  gap: 0.25rem;
  line-height: 1.25;
  font-weight: 700;
  & .section-title__en {
    letter-spacing: 0.16em;
    font-size: 1rem;
  }
  & .section-title__ja {
    font-size: 2rem;
    align-self: start;
    background-image: var(--blue-gradient);
    color: transparent;
    background-clip: text;
  }
  @media (min-width: 768px) {
    & .section-title__en {
      font-size: 1.125rem;
    }
    & .section-title__ja {
      font-size: 2.25rem;
    } 
  }
  @media (min-width: 1024px) {
    & .section-title__en {
      font-size: 1.25rem;
    }
    & .section-title__ja {
      font-size: 2.5rem;
    } 
  }
  @media (min-width: 1200px) {
    & .section-title__en {
      font-size: 1.5rem;
    }
    & .section-title__ja {
      font-size: 3rem;
    } 
  }
  
  &.section-title--center {
    text-align: center;
    & .section-title__ja {
      text-align: center;
    }
  }
  &.section-title--snow {
    color: var(--snow);
    & .section-title__ja {
      text-align: center;
      color: var(--snow);
    }
  }
}

.page-hero {
  position: relative;
  height: 20rem;
  padding: 5rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  @media (min-width: 768px) {
    height: 25rem;
    padding-inline: 2.5rem;
  }
  @media (min-width: 1024px) {
    padding-inline: 3.75rem;
  }
  @media (min-width: 1200px) {
    height: 30rem;
    padding-inline: 5rem;
  }
  
  & .page-hero__title {
    position: relative;
    display: grid;
    gap: 1rem;
    color: var(--snow);
    line-height: 1.25;
    text-align: center;
    font-weight: 700;
    & .page-hero__title-en {
      letter-spacing: 0.16em;
      font-size: 1rem;
    }
    & .page-hero__title-ja {
      letter-spacing: 0.16em;
      font-size: 1.5rem;
    }
    @media (min-width: 768px) {
      & .page-hero__title-en {
        font-size: 1rem;
      }
      & .page-hero__title-ja {
        font-size: 1.5rem;
      }
    }
    @media (min-width: 768px) {
      & .page-hero__title-en {
        font-size: 1.25rem;
      }
      & .page-hero__title-ja {
        font-size: 2rem;
      }
    }
    @media (min-width: 1024px) {
      & .page-hero__title-en {
        font-size: 1.5rem;
      }
      & .page-hero__title-ja {
        font-size: 2.5rem;
      }
    }
    @media (min-width: 1200px) {
      & .page-hero__title-en {
        font-size: 2rem;
      }
      & .page-hero__title-ja {
        font-size: 3rem;
      }
    }
  }
}

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

.history-slider {
  overflow: visible;
  --swiper-pagination-color: var(--blue2);
  --swiper-pagination-bullet-border-radius: 0px;
  --swiper-navigation-size: 4rem;
  @media (min-width: 768px) {
    --swiper-navigation-size: 5rem;
  }
  & .swiper-pagination,
  & .swiper-button-prev,
  & .swiper-button-next {
    position: relative;
    margin: 0;
    inset: auto;
  }
  & .swiper-pagination {
    margin-top: -1rem;
  }
  & .swiper-button-prev,
  & .swiper-button-next {
    & svg {
      display: none;
    }
  }
  & .swiper-button-next {
    transform: scaleX(-1);
  }
}

.history-card {
  aspect-ratio: 1 / 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  background-image: var(--blue-gradient);
  color: var(--snow);
  
  & .history-card__western-calendar {
    line-height: 1;
    opacity: 80%;
    font-size: 5rem;
    text-align: end;
  }
  
  & .history-card__content {
    display: grid;
    gap: 0.5rem;
    & .history-card__jp-calendar {
      line-height: 1.25;
      font-size: 1.25rem;
    }
    & .history-card__text {
      line-height: 1.8;
      opacity: 80%;
      font-size: 0.875rem;
    }
  }
}

.button {
  position: relative;
  padding: 1rem 1.5rem 1rem;
  background-image: var(--blue-gradient);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--snow);
  line-height: 1;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 1.25rem;
  transition: all ease 200ms;
  &::after {
    content: "";
    aspect-ratio: 44 / 24;
    width: 2.75rem;
    background-image: url("/system_panel/uploads/images/button-arrow.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  &:hover {
    text-decoration: none;
    color: var(--snow);
    opacity: 80%;
    transform: scale(0.95);
  }
  
  &.button--snow {
    background-color: var(--snow);
    background-image: none;
    color: var(--blue2);
    &::after {
      background-image: url("/system_panel/uploads/images/button-arrow-snow.svg");
    }
  }
}

.service-slideshow {
  &.swiper {
    width: 100%;
    overflow: visible;
  }
  & .swiper-wrapper {
    transition-timing-function: linear;
  }
  & .swiper-slide img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }
}

.solution-slideshow {
  &.swiper {
    width: 100%;
    overflow: visible;
  }
}

.service-grid {
  padding-top: 5rem;
  counter-reset: service-list;
  
  & .service-grid__item {
    counter-increment: service-list;
    position: relative;
    
    &::before {
      content: counter(service-list);
      width: 6.75rem;
      height: 6.75rem;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: var(--blue2);
      font-size: 2.25rem;
      font-weight: 700;
      background-image: url("data:image/svg+xml,%3Csvg%20width%3D%22108%22%20height%3D%22108%22%20viewBox%3D%220%200%20108%20108%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M106.5%2054C106.5%2025.0051%2082.9949%201.5%2054%201.5C25.0051%201.5%201.5%2025.0051%201.5%2054C1.5%2082.9949%2025.0051%20106.5%2054%20106.5V108C24.1766%20108%200%2083.8234%200%2054C0%2024.1766%2024.1766%200%2054%200C83.8234%200%20108%2024.1766%20108%2054C108%2083.8234%2083.8234%20108%2054%20108V106.5C82.9949%20106.5%20106.5%2082.9949%20106.5%2054Z%22%20fill%3D%22url(%23paint0_linear_159_896)%22%2F%3E%0A%3Cpath%20d%3D%22M92.5%2054C92.5%2032.737%2075.263%2015.5%2054%2015.5C32.737%2015.5%2015.5%2032.737%2015.5%2054C15.5%2075.263%2032.737%2092.5%2054%2092.5V94C31.9086%2094%2014%2076.0914%2014%2054C14%2031.9086%2031.9086%2014%2054%2014C76.0914%2014%2094%2031.9086%2094%2054C94%2076.0914%2076.0914%2094%2054%2094V92.5C75.263%2092.5%2092.5%2075.263%2092.5%2054Z%22%20fill%3D%22url(%23paint1_linear_159_896)%22%2F%3E%0A%3Cdefs%3E%0A%3ClinearGradient%20id%3D%22paint0_linear_159_896%22%20x1%3D%220%22%20y1%3D%2254%22%20x2%3D%22108%22%20y2%3D%2254%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%0A%3Cstop%20stop-color%3D%22%235EA6DA%22%2F%3E%0A%3Cstop%20offset%3D%221%22%20stop-color%3D%22%233E54AB%22%2F%3E%0A%3C%2FlinearGradient%3E%0A%3ClinearGradient%20id%3D%22paint1_linear_159_896%22%20x1%3D%220%22%20y1%3D%2254%22%20x2%3D%22108%22%20y2%3D%2254%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%0A%3Cstop%20stop-color%3D%22%235EA6DA%22%2F%3E%0A%3Cstop%20offset%3D%221%22%20stop-color%3D%22%233E54AB%22%2F%3E%0A%3C%2FlinearGradient%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A");
      background-size: contain;
      background-repeat: no-repeat;
      position: absolute;
      top: -5rem;
      left: -2.5rem;
    }
  }
}

.article-summary {
  & * {
    display: contents;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
  }
  & img, & video, & iframe, & audio {
    display: none;
  }
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

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

.category-list {
  & .webgene-blog {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
}

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

.order-number {
  width: 6.75rem;
  height: 6.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blue2);
  font-size: 2.25rem;
  font-weight: 700;
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%22108%22%20height%3D%22108%22%20viewBox%3D%220%200%20108%20108%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M106.5%2054C106.5%2025.0051%2082.9949%201.5%2054%201.5C25.0051%201.5%201.5%2025.0051%201.5%2054C1.5%2082.9949%2025.0051%20106.5%2054%20106.5V108C24.1766%20108%200%2083.8234%200%2054C0%2024.1766%2024.1766%200%2054%200C83.8234%200%20108%2024.1766%20108%2054C108%2083.8234%2083.8234%20108%2054%20108V106.5C82.9949%20106.5%20106.5%2082.9949%20106.5%2054Z%22%20fill%3D%22url(%23paint0_linear_159_896)%22%2F%3E%0A%3Cpath%20d%3D%22M92.5%2054C92.5%2032.737%2075.263%2015.5%2054%2015.5C32.737%2015.5%2015.5%2032.737%2015.5%2054C15.5%2075.263%2032.737%2092.5%2054%2092.5V94C31.9086%2094%2014%2076.0914%2014%2054C14%2031.9086%2031.9086%2014%2054%2014C76.0914%2014%2094%2031.9086%2094%2054C94%2076.0914%2076.0914%2094%2054%2094V92.5C75.263%2092.5%2092.5%2075.263%2092.5%2054Z%22%20fill%3D%22url(%23paint1_linear_159_896)%22%2F%3E%0A%3Cdefs%3E%0A%3ClinearGradient%20id%3D%22paint0_linear_159_896%22%20x1%3D%220%22%20y1%3D%2254%22%20x2%3D%22108%22%20y2%3D%2254%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%0A%3Cstop%20stop-color%3D%22%235EA6DA%22%2F%3E%0A%3Cstop%20offset%3D%221%22%20stop-color%3D%22%233E54AB%22%2F%3E%0A%3C%2FlinearGradient%3E%0A%3ClinearGradient%20id%3D%22paint1_linear_159_896%22%20x1%3D%220%22%20y1%3D%2254%22%20x2%3D%22108%22%20y2%3D%2254%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%0A%3Cstop%20stop-color%3D%22%235EA6DA%22%2F%3E%0A%3Cstop%20offset%3D%221%22%20stop-color%3D%22%233E54AB%22%2F%3E%0A%3C%2FlinearGradient%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A");
  background-size: contain;
  background-repeat: no-repeat;
}

.home-hero {
  height: clamp(37.5rem, 100dvh, 75rem);
}

.message-board {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  transform: translateY(24%);
  opacity: 0.85;
  
  & .message-board__inner {
    display: flex;
    width: max-content;
    white-space: nowrap;
    animation: message-scroll var(--duration, 30s) linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    & > p {
      display: inline-block;
      padding-right: 1em;
      font-weight: 900;
    }
  }
  
  font-size: 10vw;
}

@keyframes message-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.interactive-movie {
  max-width: 25rem;
  margin-inline: auto;
  width: 100%;
  position: relative;
  z-index: 0;
  
  &::before, &::after {
    content: "";
    width: 80vw;
    max-width: 57.5rem;
    border: 1px solid var(--snow);
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    z-index: -1;
    pointer-events: 0;
  }
  &::before {
    transform: translate(calc(-50% - 1.25rem), calc(-50% - 1.25rem));
  }
  &::after {
    transform: translate(calc(-50% + 1.25rem), calc(-50% + 1.25rem));
  }
}

