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

#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;
        border-radius: 9999px;
        font-weight: 700;
        color: var(--snow);
        background-color: var(--ink);
        &:hover {
          text-decoration: none;
          color: var(--snow);
        }
      }

      &.selected {
        & a {
          background-color: var(--yellow-brown);
          &: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%;
  }

  & 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;
}

.page-hero {
  position: relative;
  padding: 9rem 0 1.25rem;
  background-color: var(--beige);
  @media (min-width: 768px) {
    padding-inline: 2.5rem; 
  }
  @media (min-width: 1200px) {
    padding-top: 17.5rem;
  }
  
  & .page-hero__content {
    position: relative;
    padding: 5rem 1.25rem;
    mask-image: url("/system_panel/uploads/images/image-mask.png");
    -webkit-mask-image: url("/system_panel/uploads/images/image-mask.png");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    @media (min-width: 768px) {
      padding: 6.25rem 2.5rem; 
    }
    @media (min-width: 1024px) {
      padding: 7.5rem 3.75rem; 
    }
    @media (min-width: 1200px) {
      padding-inline: 5rem; 
    }
  }
  
  & .page-hero__bg-image {
    position: absolute;
    inset: 0;
    & img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
    &::after {
      content: "";
      pointer-events: none;
      position: absolute;
      inset: 0;
      background-color: var(--ink);
      opacity: 30%
    }
  }
  
  & .page-hero__title {
    position: relative;
    line-height: 1.25;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--snow);
    & .page-hero__title-sub {
      text-shadow: var(--elevation-1);
      font-size: 1.25rem;
      letter-spacing: 0.32em;      
    }
    & .page-hero__title-main {
      margin-top: 0.25rem;
      text-shadow: var(--elevation-2);
      font-size: 2rem;
      letter-spacing: 0.32em;
    }
    @media (min-width: 768px) {
      & .page-hero__title-sub {
        font-size: 1.5rem;
      }
      & .page-hero__title-main {
        font-size: 2.5rem;
      }
    }
    @media (min-width: 1024px) {
      & .page-hero__title-sub {
        font-size: 2rem;
      }
      & .page-hero__title-main {
        font-size: 3.25rem;
      }
    }
    @media (min-width: 1200px) {
      & .page-hero__title-sub {
        font-size: 2.5rem;
      }
      & .page-hero__title-main {
        font-size: 4rem;
      }
    }
  }
}

.wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5rem;
  background-color: var(--beige);
  mask-image: url("/system_panel/uploads/images/wave.png");
  -webkit-mask-image: url("/system_panel/uploads/images/wave.png");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  @media (min-width: 768px) {
    height: 5rem;
  }
  @media (min-width: 1200px) {
    height: 6.375rem;
  }
  
  &.wave--snow {
    background-color: var(--snow);
  }
  &.wave--paper {
    background-image: var(--paper);
  }
  &.wave--reverse {
    top: auto;
    bottom: 0;
    transform: scaleY(-1);
  }
}

.external-link-button {
  position: relative;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  line-height: 1;
  letter-spacing: 0.12em;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-color);
  --text-color: var(--snow);
  background-color: var(--ink);
  transition: all ease 200ms;
  &:hover {
    text-decoration: none;
    color: var(--text-color);
    opacity: 90%;
    transform: scale(0.95);
  }
  
  &.external-link-button--brown {
    background-color: var(--brown);
  }
  &.external-link-button--dark-brown {
    background-color: var(--dark-brown);
  }
  &.external-link-button--dark-green {
    background-color: var(--dark-green);
  }
  &.external-link-button--line-green {
    background-color: #06C755;
  }
  &.external-link-button--insta {
    background-image: url("/system_panel/uploads/images/Frame 474.jpg");
    background-size: 100% 100%;
  }
}

.button {
  position: relative;
  padding: 1rem 1.5rem 1rem 2rem;
  border-radius: 1.5rem;
  border: 3px solid var(--dark-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  line-height: 1.25;
  letter-spacing: 0.32em;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark-brown);
  background-image: url("/system_panel/uploads/images/paper-brown.jpg");
  transition: all ease 200ms;
  & > div p:first-child {
    letter-spacing: 0.32em;
    font-size: 0.75rem;
  }
  &::after {
    content: "";
    aspect-ratio: 41 / 26;
    width: 2.5625rem;
    background-image: url("/system_panel/uploads/images/large-arrow.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  &:hover {
    text-decoration: none;
    color: var(--dark-brown);
    opacity: 90%;
    transform: scale(0.95);
  }
  @media (min-width: 768px) {
    font-size: 1.125rem;
  }
}

.masked-image {
  mask-image: url("/system_panel/uploads/images/image-mask.png");
  -webkit-mask-image: url("/system_panel/uploads/images/image-mask.png");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.title-bg-dec {
  width: 9.5rem;
  position: absolute;
  @media (min-width: 768pxpx) {
    width: 14rem;
  }
  @media (min-width: 1200px) {
    width: 16.375rem;
  }
  & img {
    width: 100%;
  }
  
  &.title-bg-dec--vertical-rl {
    top: -4rem;
    left: -4rem;
    @media (min-width: 768px) {
      top: -5rem;
      left: -3rem;
    }
    @media (min-width: 1200px) {
      top: -7.5rem;
      left: -7.5rem;
    }
  }
  &.title-bg-dec--start {
    top: -4rem;
    left: -3rem;
    @media (min-width: 768px) {
      top: -5rem;
      left: -2rem;
    }
    @media (min-width: 1200px) {
      top: -7.5rem;
      left: -5rem;
    }
  }
  &.title-bg-dec--center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.about-feature-cards {
  counter-reset: feature-num;
  & .about-feature-card {
    counter-increment: feature-num;
    & .about-feature-num {
      position: relative;
      z-index: 0;
      &::before {
        content: counter(feature-num, decimal-leading-zero);
        line-height: 1.25;
        letter-spacing: 0;
        font-family: var(--font-display);
        font-weight: 900;
        font-size: 3.75rem;
        position: absolute;
        top: -0.75em;
        left: -0.4em;
        z-index: -1;
        color: var(--yellow-brown);
        @media (min-width: 1200px) {
          font-size: 5rem;
        }
      }
    }
  }
}

.services-intro-bg-image {
  opacity: 40%;
  object-fit: cover;
  aspect: 3 / 2;
  width: clamp(30rem, 80%, 50rem);
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(21.25%, -22.5140712946%);
}

.lineup-bg-circle {
  position: relative;
  z-index: 0;
  &::before {
    content: "";
    z-index: -1;
    width: 3.125em;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    position: absolute;
    top: -1.5em;
    left: -1.25em;
  }
  &.lineup-bg-circle--1::before {
    background-image: linear-gradient(180deg, #F9FBE7 0%, #DCEDC8 100%);
  }
  &.lineup-bg-circle--2::before {
    background-image: linear-gradient(180deg, #FFFDE7 0%, #FFECB3 100%);
  }
  &.lineup-bg-circle--3::before {
    background-image: linear-gradient(180deg, #FAFAFA 0%, #E0E0E0 100%);
  }
  &.lineup-bg-circle--4::before {
    background-image: linear-gradient(180deg, #E7FBF8 0%, #E7FBF8 100%);
  }
}

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

.blog-category,
.blog-archives {
  display: grid;
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--snow);
  box-shadow: var(--elevation-1);
  & > p {
    padding: 0.5rem;
    background-color: var(--brown);
    color: var(--snow);
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0.32em;
    font-weight: 700;
    font-size: 1.125rem;
  }
  & .webgene-blog {
    padding: 0.75rem;
    display: grid;
    gap: 0.5rem;
  }
}

















