*,
*::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(--light-gray);
  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;
  }
  
  &.list--decimal {
    list-style-type: decimal;
  }
}

.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;
        border-radius: 1rem;
        background-color: var(--snow);
        &:hover {
          text-decoration: none;
        }
      }

      &.selected {
        & a {
          background-color: var(--violet);
          color: var(--snow);
          &: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.66666667%;
  }
  &.thumbnail--1x1 {
    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;
  padding: 10rem 1.25rem 1.5rem;
  @media (min-width: 768px) {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }
  @media (min-width: 1024px) {
    padding-right: 3.75rem;
    padding-left: 3.75rem;
  }
  @media (min-width: 1200px) {
    padding: 12.5rem 5rem 1.5rem;
  }
  
  & .page-hero__title {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-weight: 700;
    & .page-hero__title-en {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      line-height: 1;
      letter-spacing: 0.04em;
      font-family: var(--font-display);
      font-size: 0.875rem;
      color: var(--violet);
      & p {
        flex: 1 1 0%;
      }
      & img {
        width: 1.25rem;
        @media (min-width: 764px) {
          width: 1.5rem;
        }
      }
      @media (min-width: 768px) {
        font-size: 1rem;
      }
      @media (min-width: 1024px) {
        font-size: 1.125rem;
      }
    }
    & .page-hero__title-ja {
      font-size: 2rem;
      @media (min-width: 768px) {
        font-size: 2.75rem;
      }
      @media (min-width: 1024px) {
        font-size: 3.25rem;
      }
      @media (min-width: 1200px) {
        font-size: 4rem;
      }
    }
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--violet);
  & .section-title__en {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1;
    letter-spacing: 0.04em;
    font-family: var(--font-display);
    font-size: 0.875rem;
    & p {
      flex: 1 1 0%;
    }
    & img {
      width: 1.25rem;
      @media (min-width: 764px) {
        width: 1.5rem;
      }
    }
    @media (min-width: 768px) {
      font-size: 1rem;
    }
    @media (min-width: 1024px) {
      font-size: 1.125rem;
    }
  }
  & .section-title__ja {
    font-size: 1.5rem;
    @media (min-width: 768px) {
      font-size: 1.75rem;
    }
    @media (min-width: 1024px) {
      font-size: 2rem;
    }
  }
  
  &.section-title--ink {
    color: var(--ink);
  }
  &.section-title--snow {
    color: var(--snow);
  }
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1.5rem 0.5rem 1rem;
  border-radius: 9999px;
  background-color: var(--violet);
  line-height: 1.25;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 1rem;
  color: var(--snow);
  transition: all ease 200ms;
  &:hover {
    text-decoration: none;
    color: var(--snow);
    opacity: 90%;
    transform: scale(0.95);
  }
  
  &.button--no-icon {
    padding: 0.5rem 1.5rem;
  }
  &.button--snow {
    background-color: var(--snow);
    color: var(--violet);
    &:hover {
      color: var(--violet);
    }
  }
  &.button--border-violet {
    background-color: transparent;
    border: 2px solid var(--violet);
    color: var(--violet);
    &:hover {
      color: var(--violet);
    }
  }
  &.button--border-dark-green {
    background-color: transparent;
    border: 2px solid var(--dark-green);
    color: var(--dark-green);
    &:hover {
      color: var(--dark-green);
    }
  }
}

.delivery-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 52.75rem;
  mask-image: linear-gradient(0deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.50) 47.6%, #FFF 100%);
  object-fit: cover;
}

.section-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 40rem;
}


.swiper:not(.swiper-initialized) {
  & .swiper-wrapper {
    display: flex;
    overflow: auto;
    & .swiper-slide {
      min-width: 80%;
    }
  }
  &.information-slider .swiper-wrapper .swiper-slide,
   .information-slider .swiper-wrapper .swiper-slide {
    min-width: 25%;
  }
}

.swiper.information-slider .swiper-wrapper,
.swiper.enjoy-slider .swiper-wrapper {
  transition-timing-function: linear;
}

.voice-marker {
  position: relative;
  & p {
    position: relative;
  }
  &::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.9444444444em;
    background-color: var(--light-purple);
  }
}

.bubble-line {
  aspect-ratio: 1 / 1;
  width: 3.75rem;
  border-right: 2px solid var(--ink);
  background-color: var(--snow);
  position: absolute;
  bottom: -1rem;
  left: 8.25rem;
  transform: rotate(45deg);
}

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

.blog-category, .news-category {
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
  }
}
