*,
*::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(--off-white);
  letter-spacing: 0.02em;
}

#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: 6.25rem;
}

.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--ume {
    & > p::marker {
      color: var(--ume);
    }
  }
}

.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 / 40%);
        &:hover {
          text-decoration: none;
          color: var(--snow);
        }
      }

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

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

.thumbnail {
  position: relative;

  &.thumbnail--16x9 {
    padding-top: 56.25%;
  }
  &.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: 5rem 1.25rem 2.5rem;
  &::before {
    content: "";
    aspect-ratio: 320 / 311;
    width: 15rem;
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    background-image: url(/system_panel/uploads/images/gradient-ellipse.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  @media (min-width: 768px) {
    padding: 6.25rem 2.5rem 2.5rem;
    &::before {
      width: 17.5rem;
    }
  }
  @media (min-width: 1024px) {
    padding: 7.5rem 3.75rem 2.5rem;
    &::before {
      width: 20rem;
    }
  }
  @media (min-width: 1200px) {
    padding-left: 5rem;
    padding-right: 5rem;
  }
  
  & .page-hero__title {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    & .page-hero__title-en {
      position: relative;
      line-height: 1;
      letter-spacing: 0.24em;
      font-size: 0.875rem;
      padding-bottom: 1rem;
      transform: rotate(-5deg);
      &::before {
        content: "";
        height: 1rem;
        position: absolute;
        right: -0.625rem;
        bottom: 0;
        left: -0.625rem;
        background-image: url(/system_panel/uploads/images/jagged-line-orange.png);
        background-size: 100% 100%;
        background-repeat: no-repeat;
      }
      @media (min-width: 768px) {
        font-size: 1rem;
      }
      @media (min-width: 1024px) {
        font-size: 1.125rem;
      }
    }
    & .page-hero__title-ja {
      line-height: 1.25;
      font-family: var(--font-serif);
      font-size: 2rem;
      color: transparent;
      background-image: var(--grad-mejiriaka);
      -webkit-background-clip: text;
      background-clip: text;
      @media (min-width: 768px) {
        font-size: 3rem;
      }
      @media (min-width: 1024px) {
        font-size: 4rem;
      }
    }
  }
}

& .section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  & .section-title__en {
    position: relative;
    line-height: 1;
    letter-spacing: 0.24em;
    font-size: 0.875rem;
    padding-bottom: 1rem;
    transform: rotate(-5deg);
    &::before {
      content: "";
      height: 1rem;
      position: absolute;
      right: -0.625rem;
      bottom: 0;
      left: -0.625rem;
      background-image: url(/system_panel/uploads/images/jagged-line-ume.png);
      background-size: 100% 100%;
      background-repeat: no-repeat;
    }
    @media (min-width: 768px) {
      font-size: 1rem;
    }
    @media (min-width: 1024px) {
      font-size: 1.125rem;
    }
  }
  & .section-title__ja {
    line-height: 1.25;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: transparent;
    background-image: var(--grad-mejiriaka);
    -webkit-background-clip: text;
    background-clip: text;
    @media (min-width: 768px) {
      font-size: 2.5rem;
    }
    @media (min-width: 1024px) {
      font-size: 3rem;
    }
  }
  
  &.section-title--center {
    align-items: center;
  }
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 0.75rem;
  background-image: var(--grad-ink);
  color: var(--snow);
  line-height: 1.25;
  letter-spacing: 0.02em;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  transition: all ease 200ms;
  &::after {
    content: "";
    aspect-ratio: 1 / 1;
    width: 1.5rem;
    background-image: url(/system_panel/uploads/images/arrow-right.svg);
    background-size: contain;
    background-repeat: no-repeat;
  }
  &:hover {
    text-decoration: none;
    color: var(--snow);
    opacity: 90%;
    transform: scale(0.95);
  }
  
  &.button--icon-left::after {
    content: none;
  }
  &.button--instagram {
    background-image: url(/system_panel/uploads/images/grad-insta.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  &.button--lg-icon {
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1.25rem 0.75rem 5rem;
    font-weight: 500;
    font-size: 0.875rem;
    & p:first-of-type {
      line-height: 1;
      letter-spacing: 0.12em;
      font-size: 1.5rem;
    }
    & img {
      position: absolute;
      top: -1.0625rem;
      left: -1.5rem;
      aspect-ratio: 1 / 1;
      width: 6.25rem;
      filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.16)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.08));
    }
    &::after {
      content: none;
    }
  }
}

.footer-contact {
  background: linear-gradient(216deg, rgba(255, 210, 0, 0.25) 19.87%, rgba(232, 95, 41, 0.25) 38.7%, rgba(49, 164, 181, 0.25) 56.78%, rgba(40, 171, 135, 0.25) 75.99%), #F7F7F7;
  @media (min-width: 1200px) {
    padding-top: 7.5rem;
    padding-bottom: 10rem;
  }
  & .footer-contact__image {
    aspect-ratio: 1034 / 687;
    width: 28.75rem;
    mask-image: url(/system_panel/uploads/images/mask-ellipse--footer-contact.png);
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    position: absolute;
    right: -3.5rem;
    bottom: 2rem;
    & img {
      width: 100%;
      height: 100%;
    }
    @media (min-width: 768px) {
      width: 40rem;
      right: 1.5rem;
      bottom: -6rem;
    }
    @media (min-width: 1024px) {
      width: 45rem;
      right: -8.5rem;
      bottom: -8rem;
    }
    @media (min-width: 1200px) {
      width: 64.625rem;
      top: -4rem;
      right: -9rem;
      bottom: auto;
    }
  }
}

.side-menu {
  background-color: hsl(from var(--snow) h s l / 75%);
  backdrop-filter: blur(8px);
  box-shadow: var(--elevation-2);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 20rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  @media (min-width: 768px) {
    padding: 2rem;
  }
  
  & .side-menu__title {
    position: relative;
    line-height: 1;
    letter-spacing: 0.24em;
    font-size: 0.875rem;
    padding-bottom: 1rem;
    align-self: center;
    &::before {
      content: "";
      height: 1rem;
      position: absolute;
      right: -0.625rem;
      bottom: 0;
      left: -0.625rem;
      background-image: url(/system_panel/uploads/images/jagged-line-ume.png);
      background-size: 100% 100%;
      background-repeat: no-repeat;
    }
    @media (min-width: 768px) {
      font-size: 1rem;
    }
    @media (min-width: 1024px) {
      font-size: 1.125rem;
    }
  }
  @media (min-width: 1024px) {
    position: sticky;
    top: 7.5rem;
  }
  
  &.side-menu--wide {
    max-width: 22.5rem;
  }
}

.sales-cards {
  & .no-items-text {
    line-height: 1.25;
    text-align: center;
    font-weight: 500;
    font-size: 0.875rem;
    @media (min-width: 768px) {
      font-size: 1rem;
      grid-column: span 2 / span 2;
    }
    @media (min-width: 1024px) {
      font-size: 1.125rem;
    }
    @media (min-width: 1200px) {
      grid-column: span 3 / span 3;
    }
  }
}

.sales-card {
  background-color: hsl(from var(--snow) h s l / 75%);
  backdrop-filter: blur(8px);
  box-shadow: var(--elevation-2);
  border-radius: 16px;
  padding: 1.25rem;
}

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

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

.blog-list {
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    @media (min-width: 768px) {
      gap: 1.25rem;
      & .webgene-pagination {
        margin-top: 0.75rem;
      }
    }
    
    & .blog-list-content {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical; 
      overflow: hidden;
      & h1, & h2, & h3, & h4, & h5, & h6, p {
        font-size: 0.75rem;
        display: inline;
      }
      & img, & a {
        display: none;
      }
    }
  }
}

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

.insta-1 {
  & .webgene-blog {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
    & .webgene-no-items {
      grid-column: span 2 / span 2;
    }
    @media (min-width: 768px) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.75rem;
      & .webgene-no-items {
        grid-column: span 3 / span 3;
      }
    }
    @media (min-width: 1024px) {
      grid-template-columns: repeat(6, minmax(0, 1fr));
      & .webgene-no-items {
        grid-column: span 6 / span 6;
      }
    }
  }
}









