*,
*::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.02em;
  font-weight: 700;
}

#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;
        &:hover {
          text-decoration: none;
        }
      }

      &.selected {
        & a {
          &: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,
  & 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-top: 7.5rem;
  & .page-hero__content {
    position: relative;
    padding: 5rem 1.25rem 6.25rem;
    @media (min-width: 768px) {
      padding-inline: 2.5rem;
    }
    @media (min-width: 1024px) {
      padding-inline: 3.75rem;
    }
    @media (min-width: 1200px) {
      padding-inline: 5rem;
    }
  }
  
  & .page-hero__bg-image {
    position: absolute;
    inset: 0;
    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    &::after {
      pointer-events: none;
      content: "";
      position: absolute;
      inset: 0;
      background-color: var(--snow);
      opacity: 50%;
    }
  }
  
  & .page-hero__title {
    position: relative;
    display: grid;
    gap: 1.25rem;
    text-align: center;
    line-height: 1.05;
    letter-spacing: 0.08em;
    font-weight: 900;
    & .page-hero__title-en {
      font-family: var(--font-display);
      color: var(--sky);
      font-size: 1.5rem;
    }
    & .page-hero__title-ja {
      font-size: 2rem;
    }
    @media (min-width: 768px) {
      & .page-hero__title-en {
        font-size: 1.75rem;
      }
      & .page-hero__title-ja {
        font-size: 4rem;
      }
    }
    @media (min-width: 1200px) {
      & .page-hero__title-en {
        font-size: 2rem;
      }
      & .page-hero__title-ja {
        font-size: 5rem;
      }
    }
  }  
}

.section-title {
  position: relative;
  display: grid;
  gap: 1.25rem;
  text-align: center;
  line-height: 1.05;
  letter-spacing: 0.08em;
  font-weight: 900;
  & .section-title__en {
    font-family: var(--font-display);
    color: var(--sky);
    font-size: 1.125rem;
  }
  & .section-title__ja {
    font-size: 2.5rem;
  }
  @media (min-width: 768px) {
    & .section-title__en {
      font-size: 1.25rem;
    }
    & .section-title__ja {
      font-size: 3.5rem;
    }
  }
  @media (min-width: 1200px) {
    & .section-title__en {
      font-size: 1.5rem;
    }
    & .section-title__ja {
      font-size: 4rem;
    }
  }
  
  &.section-title--start {
    text-align: start;
     & .section-title__en {
       margin-left: 0.25rem;
    }
  }
  &.section-title--snow {
    color: var(--snow);
    & .section-title__en {
      color: var(--snow);
    }
  }
  &.section-title--sun {
    & .section-title__en {
      color: var(--sun);
    }
  }
  &.section-title--lg {
    & .section-title__en {
      font-size: 1.5rem;
    }
    & .section-title__ja {
      font-size: 3rem;
    }
    @media (min-width: 768px) {
      & .section-title__en {
        font-size: 1.75rem;
      }
      & .section-title__ja {
        font-size: 4rem;
      }
    }
    @media (min-width: 1200px) {
      & .section-title__en {
        font-size: 2rem;
      }
      & .section-title__ja {
        font-size: 5rem;
      }
    }
  }
  &.section-title--sm {
    & .section-title__en {
      font-size: 1rem;
    }
    & .section-title__ja {
      font-size: 2rem;
    }
    @media (min-width: 768px) {
      & .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;
      }
    }
  }
}

.bg-caussules {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 15rem;
  filter: blur(4px);
  pointer-events: none;
  &::before,
  &::after {
    content: "";
    aspect-ratio: 480 / 496;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  &::before {
    background-image: url("/system_panel/uploads/images/capsule-sky.svg");
    align-self: flex-end;
    width: 30rem;
    margin-right: -2.5rem;
  }
  &::after {
    background-image: url("/system_panel/uploads/images/capsule-sun.svg");
    width: 20rem;
    margin-left: -0.625rem;
  }
  &.bg-caussules--outline {
    top: 33.75rem;
  }
  &.bg-caussules--business-intro {
    top: -10rem;
  }
  &.bg-caussules--business-list-1 {
    top: 13.75rem;
  }
  &.bg-caussules--business-list-2 {
    top: 79.375rem;
  }
}

.button {
  position: relative;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid var(--dark-sun);
  background-color: var(--sun);
  color: var(--snow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.04em;
  &::after {
    content: "";
    aspect-ratio: 1 / 1;
    width: 1.5rem;
    background-image: url("/system_panel/uploads/images/closed-capsule-blue.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  &:hover {
    text-decoration: none;
    color: var(--snow);
    &::after {
      aspect-ratio: 29 / 35;
      width: 1.8125rem;
      margin-top: -0.6875rem;
      margin-right: -0.3125rem;
      background-image: url("/system_panel/uploads/images/opened-capsule-blue.png");
    }
  }
  
  &.button--blue {
    background-color: var(--sky);
    border-color: var(--dark-sky);
    &::after {
      background-image: url("/system_panel/uploads/images/closed-capsule-yellow.png");
    }
    &:hover {
      &::after {
        background-image: url("/system_panel/uploads/images/opened-capsule-yellow.png");
      }
    }
  }
}

.business-intro-bg-image {
  position: absolute;
  inset: 0;
  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  &::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0;
   	background-color: var(--dark-sun);
    opacity: 20%;
  }
}

.sidebar {
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;

    & .webgene-item a {
      display: block;
      padding: 0.75rem 1.5rem;
      border: 2px solid var(--dark-sky);
      border-radius: 9999px;
      line-height: 1;
      font-weight: 700;
      color: var(--dark-sky);
      &:hover {
        text-decoration: none;
      }
    }
  }
}

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

.business-card-capsule {
  &::after {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    content: "";
    aspect-ratio: 1 / 1;
    width: 3rem;
    background-image: url("/system_panel/uploads/images/closed-capsule-red.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  &:hover {
    &::after {
      aspect-ratio: 29 / 35;
      width: 3.5625rem;
      margin-top: -1.3125rem;
      margin-right: -0.5625rem;
      background-image: url("/system_panel/uploads/images/opened-capsule-red.png");
    }
  }
}

.business-reasons-bg-capsule {
  aspect-ratio: 480 / 496;
  width: 30rem;
  position: absolute;
  right: -2.5rem;
  bottom: 0;
  filter: blur(4px);
  & img {
    width: 100%;
  }
}

.businesses-intro-bg-capsule {
  aspect-ratio: 480 / 496;
  width: 45rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(16px);
  & img {
    width: 100%;
  }
}

.flow-list {
  display: grid;
  gap: 1.5rem;
  
  @media screen and (min-width: 768px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  @media screen and (min-width: 1200px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  & .flow-list__item {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    & .flow-list__title {
      border-radius: 1.5rem;
      padding: 1.5rem;
      text-align: center;
      font-weight: 900;
      font-size: 1.125rem;
      line-height: 1.25;
    }
    & .flow-list__container {
      border-radius: 1.5rem;
      padding: 1rem;
      background-color: #FFFCF5;
    }
    &:first-child .flow-list__title {
      background-color: #FFF7E5;
    }
    &:nth-child(2) .flow-list__title {
      background-color: #FFD880;
    }
    &:nth-child(3) .flow-list__title {
      background-color: #F5AA00;
    }
    
    @media screen and (min-width: 768px) {
      & .flow-list__title {
        border-radius: 0.75rem;
        padding: 1.5rem;
      }
      & .flow-list__container {
        border-radius: 0.75rem;
        padding: 2rem;
        flex: 1 0 0%;
      }
      & .flow-list__content {
        flex: 1 0 0%;
      }
    }
    @media screen and (min-width: 1200px) {
      gap: 2rem;
      & .flow-list__title {
        position: relative;
        &::before {
          content: "";
          position: absolute;
          top: 0;
          right: -20px;
          width: 20px;
          height: 100%;
          z-index: 1;
        }
      }
      &:first-child {
        & .flow-list__title {
          border-top-right-radius: 0;
          border-bottom-right-radius: 0;
          &::before {
            background: no-repeat center/100% 100% url("/system_panel/uploads/images/flow-polygon--1.png");
          }
        }
        & .flow-list__container {
          border-top-right-radius: 0;
          border-bottom-right-radius: 0;
        }
        & .flow-list__content {
          border-right: 1px dashed var(--sun);
          padding-right: 2rem;
          margin-right: -2rem;
          height: 100%;
        }
      }
      &:nth-child(2) {
        & .flow-list__title {
          border-radius: 0;
          &::before {
            background: no-repeat center/100% 100% url("/system_panel/uploads/images/flow-polygon--2.png");
          }
        }
        & .flow-list__container {
          border-radius: 0;
        }
        & .flow-list__content {
          border-right: 1px dashed var(--sun);
          padding-right: 2rem;
          margin-right: -2rem;
          height: 100%;
        }
      }
      &:nth-child(3) {
        & .flow-list__title {
          border-radius: 0;
          &::before {
            background: no-repeat center/100% 100% url("/system_panel/uploads/images/flow-polygon--3.png");
          }
        }
        & .flow-list__container {
          border-radius: 0;
        }
        & .flow-list__content {
          padding-right: 2rem;
          margin-right: -2rem;
          height: 100%;
        }
      }
    }
  }
  
  &.flow-list--sky {
    & .flow-list__container {
      background-color: #F5FCFF;
    }
    & .flow-list__item {
      &:first-child .flow-list__title {
        background-color: #CCF0FF;
      }
      &:nth-child(2) .flow-list__title {
        background-color: #80D8FF;
      }
      &:nth-child(3) .flow-list__title {
        background-color: #0091D0;
      }
      @media screen and (min-width: 1200px) {
        &:first-child {
          & .flow-list__title {
            &::before {
              background: no-repeat center/100% 100% url("/system_panel/uploads/images/flow-polygon--1-sky.png");
            }
          }
          & .flow-list__content {
            border-color: var(--sky);
          }
        }
        &:nth-child(2) {
          & .flow-list__title {
            &::before {
              background: no-repeat center/100% 100% url("/system_panel/uploads/images/flow-polygon--2-sky.png");
            }
          }
          & .flow-list__content {
            border-color: var(--sky);
          }
        }
        &:nth-child(3) {
          & .flow-list__title {
            color: var(--snow);
            &::before {
              background: no-repeat center/100% 100% url("/system_panel/uploads/images/flow-polygon--3-sky.png");
            }
          }
        }
      }
    }
  }
}

.bg-capsule-image {
  position: absolute;
  aspect-ratio: 320 / 331;
  filter: blur(4px);
  & img {
    position: relative;
    object-fit: cover;
    width: 100%;
    height: 100%;
    mask-image: url("/system_panel/uploads/images/mask-capsule.svg");
    -webkit-mask-image: url("/system_panel/uploads/images/mask-capsule.svg");
    mask-size: 100% 100%;
  }
  &::before {
    content: "";
    aspect-ratio: 320 / 331;
    border-radius: 9999px;
    background-color: var(--snow);
    position: absolute;
    width: 100%;
    top: -0.625rem;
    left: -1.25rem;
  }
  
  &.bg-capsule-image--sun {
    &::before {
      background-color: var(--sun);
    }
  }
  
  &.bg-capsule-image--right {
    &::before {
      inset: auto -0.625rem -0.625rem auto;
    }
  }
  
  &.bg-capsule-image--vending-machine-sales-1 {
    width: 22.5rem;
    top: 12.5rem;
    left: -5.625rem;
  }
  &.bg-capsule-image--vending-machine-sales-2 {
    width: 15rem;
    top: 57.5rem;
    right: 3.75rem;
  }
  &.bg-capsule-image--vending-management-1 {
    width: 22.5rem;
    top: 12.5rem;
    right: -6.25rem;
  }
  &.bg-capsule-image--vending-management-2 {
    width: 15rem;
    top: 58.125rem;
    left: 3.75rem;
  }
  &.bg-capsule-image--stores-2 {
    width: 15rem;
    top: 98.125rem;
    left: 3.75rem;
  }
  &.bg-capsule-image--pop-ups-2 {
    width: 15rem;
    top: 57.5rem;
    right: 3.75rem;
  }
  &.bg-capsule-image--wholesale-2 {
    width: 15rem;
    top: 58.125rem;
    left: 3.75rem;
  }
}

.bg-gatya-box {
  position: absolute;
  top: -8.625rem;
  right: -7.5rem;
  width: 12rem;
  & img {
    width: 100%;
  }
  @media (min-width: 1200px) {
    width: 22.5rem;
  }
}










