*,
*::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(--sand);
  letter-spacing: 0.1em;
}

#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: hsl(from var(--ink) h s l / 5%);
        font-weight: 500;
        &:hover {
          text-decoration: none;
        }
      }

      &.selected {
        & a {
          background-color: var(--dark-yellow-green);
          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--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;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: 7.5rem;
  padding-left: 1.25rem;
  background-color: var(--gray);
  @media (min-width: 768px) {
    padding-left: 3rem;
  }
  @media (min-width: 1024px) {
    padding-left: 5rem;
    flex-direction: row;
    align-items: center;
  }
  @media (min-width: 1200px) {
    padding-left: 10rem;
  }
  
  & .page-hero__title {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-weight: 700;
    @media (min-width: 1024px) {
      max-width: 39.5%;
      flex: 1 1 0%;
    }
    & .page-hero__title-en {
      line-height: 1;
      letter-spacing: 0;
      opacity: 25%;
      font-size: 1.5rem;
      @media (min-width: 768px) {
        font-size: 2rem;
      }
      @media (min-width: 1200px) {
        font-size: 2.5rem;
      }
    }
    & .page-hero__title-ja {
      line-height: 1.25;
      letter-spacing: 0.04em;
      font-size: 2.25rem;
      @media (min-width: 768px) {
        font-size: 3.25rem;
      }
      @media (min-width: 1200px) {
        font-size: 3.75rem;
      }
    }
  }
  
  & .page-hero__image {
    border-radius: 2rem 0 0 2rem;
    object-fit: cover;
    aspect-ratio: 832 / 400;
    @media (min-width: 1024px) {
      flex: 1 1 0%;
    }
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 700;
  & .section-title__en {
    line-height: 1;
    letter-spacing: 0;
    opacity: 25%;
    font-size: 1rem;
    @media (min-width: 768px) {
      font-size: 1.5rem;
    }
    @media (min-width: 1200px) {
      font-size: 2rem;
    }
  }
  & .section-title__ja {
    line-height: 1.25;
    letter-spacing: 0.04em;
    font-size: 1.5rem;
    @media (min-width: 768px) {
      font-size: 2.5rem;
    }
    @media (min-width: 1200px) {
      font-size: 3rem;
    }
  }
}

.for-beginners-card-num {
  position: absolute;
  top: -0.5333333333em;
  left: -0.4666666667em;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 2.75rem;
  opacity: 10%;
  color: var(--orange);
  @media (min-width: 768px) {
    font-size: 3.25rem;
  }
  @media (min-width: 1200px) {
    font-size: 3.75rem;
  }
}

.section-bg-mountain {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100%;
  transform: translateX(-50%);
  opacity: 25%;
  min-width: 30rem;
  & img {
    width: 100%;
    height: 100%;
  }
  
  &.section-bg-mountain--information::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #F0EBE5 0%, rgba(240, 235, 229, 0.00) 12%, rgba(240, 235, 229, 0.00) 100%), linear-gradient(180deg, rgba(240, 235, 229, 0.00) 0%, rgba(240, 235, 229, 0.00) 88%, #F0EBE5 100%);
  }
  &.section-bg-mountain--home-news {
    opacity: 1;
    &::before, &::after {
      pointer-events: none;
      content: "";
      position: absolute;
      inset: 0;
    }
    & img {
      opacity: 0.25;
    }
    &::before {
      background-image: var(--noise-black);
      opacity: 0.25;
    }
    &::after {
      background-image: linear-gradient(180deg, #B3B3AC 0%, rgba(179, 179, 172, 0.00) 12%, rgba(179, 179, 172, 0.00) 100%), linear-gradient(180deg, rgba(240, 237, 223, 0.00) 0%, rgba(240, 237, 223, 0.00) 88%, #F0EDDF 100%);
    }
    
  }
}

.button {
  position: relative;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--earth-orange);
  line-height: 1.25;
  letter-spacing; 0.1em;
  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); 
  }
}

.faq-bg-image {
  position: absolute;
  inset: 0;
  opacity: 35%;
  & img {
    object-fit: cover;
    position: absolute;
    inset: 1px 0;
    width: 100%;
    height: calc(100% - 2px);
  }
  &::before, &::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }
  &::after {
    background: linear-gradient(180deg, #F0EBE5 0%, rgba(240, 235, 229, 0.00) 12%, rgba(240, 235, 229, 0.00) 100%), linear-gradient(180deg, rgba(240, 235, 229, 0.00) 0%, rgba(240, 235, 229, 0.00) 88%, #F0EBE5 100%);
  }
  &::before {
    background-image: var(--noise);
    inset: 0;
  }
}

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

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







