*,
*::before,
*::after {
  min-width: 0px;
  min-height: 0px;
}
html {
  font-size: 18px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--white);
}

#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;
  }
}

.webgene-pagination {
  margin-top: 3rem;
  & 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 / 20%);

        &:hover {
          text-decoration: none;
        }
      }

      &.selected {
        & a {
          background: var(--grad-sky-orange);
          &: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.6666%;
  }

  & 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%;
}


.button {
  padding: 0.75rem 1.25rem 0.75rem 2rem;
  background: var(--grad-sky-orange);
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  transition: opacity 250ms ease;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
  min-width: 12.5rem;

  &:hover {
    opacity: 0.85;
    text-decoration: none;
  }

  &::after {
    content: "";
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2225%22%20height%3D%2224%22%20viewBox%3D%220%200%2025%2024%22%20fill%3D%22none%22%3E%0A%3Cpath%20d%3D%22M12.5%202L12.824%202.005C15.4467%202.09002%2017.9309%203.20254%2019.7408%205.10261C21.5507%207.00268%2022.5412%209.53801%2022.4987%2012.1618C22.4562%2014.7855%2021.384%2017.2874%2019.5136%2019.1279C17.6431%2020.9683%2015.1241%2021.9998%2012.5%2021.9998C9.8759%2021.9998%207.35694%2020.9683%205.48645%2019.1279C3.61596%2017.2874%202.54383%2014.7855%202.50131%2012.1618C2.4588%209.53801%203.4493%207.00268%205.25918%205.10261C7.06906%203.20254%209.55328%202.09002%2012.176%202.005L12.5%202ZM13.113%207.21C12.912%207.05459%2012.6594%206.98151%2012.4065%207.0056C12.1536%207.02969%2011.9193%207.14916%2011.7513%207.33972C11.5832%207.53029%2011.494%207.77767%2011.5018%208.03162C11.5095%208.28557%2011.6137%208.52704%2011.793%208.707L14.084%2011H8.5L8.383%2011.007C8.12991%2011.0371%207.89786%2011.1627%207.73427%2011.3582C7.57068%2011.5536%207.48789%2011.8042%207.50283%2012.0586C7.51777%2012.313%207.6293%2012.5522%207.81463%2012.7272C7.99997%2012.9021%208.24512%2012.9997%208.5%2013H14.084L11.793%2015.293L11.71%2015.387C11.5546%2015.588%2011.4815%2015.8406%2011.5056%2016.0935C11.5297%2016.3464%2011.6492%2016.5807%2011.8397%2016.7488C12.0303%2016.9168%2012.2777%2017.006%2012.5316%2016.9982C12.7856%2016.9905%2013.027%2016.8863%2013.207%2016.707L17.207%2012.707L17.28%2012.625L17.344%2012.536L17.406%2012.423L17.45%2012.313L17.48%2012.201L17.497%2012.075L17.5%2012L17.493%2011.882L17.464%2011.734L17.429%2011.629L17.375%2011.516L17.304%2011.405C17.2745%2011.3653%2017.242%2011.3279%2017.207%2011.293L13.207%207.293L13.113%207.21Z%22%20fill%3D%22%23353535%22%2F%3E%0A%3C%2Fsvg%3E');
    background-size: contain;
  }

  & > p {
    flex: 1 0 0%;
  }

  &.button--snow {
    background: var(--snow);
  }
  &.button--sky {
    background: var(--sky);
  }
  &.button--ink {
    background: var(--ink);
  }
  &.button--sky, &.button--ink {
    color: var(--snow);
    &:hover {
      color: var(--snow);
    }
    &::after {
      background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2225%22%20height%3D%2224%22%20viewBox%3D%220%200%2025%2024%22%20fill%3D%22none%22%3E%0A%3Cpath%20d%3D%22M12.5%202L12.824%202.005C15.4467%202.09002%2017.9309%203.20254%2019.7408%205.10261C21.5507%207.00268%2022.5412%209.53801%2022.4987%2012.1618C22.4562%2014.7855%2021.384%2017.2874%2019.5136%2019.1279C17.6431%2020.9683%2015.1241%2021.9998%2012.5%2021.9998C9.8759%2021.9998%207.35694%2020.9683%205.48645%2019.1279C3.61596%2017.2874%202.54383%2014.7855%202.50131%2012.1618C2.4588%209.53801%203.4493%207.00268%205.25918%205.10261C7.06906%203.20254%209.55328%202.09002%2012.176%202.005L12.5%202ZM13.113%207.21C12.912%207.05459%2012.6594%206.98151%2012.4065%207.0056C12.1536%207.02969%2011.9193%207.14916%2011.7513%207.33972C11.5832%207.53029%2011.494%207.77767%2011.5018%208.03162C11.5095%208.28557%2011.6137%208.52704%2011.793%208.707L14.084%2011H8.5L8.383%2011.007C8.12991%2011.0371%207.89786%2011.1627%207.73427%2011.3582C7.57068%2011.5536%207.48789%2011.8042%207.50283%2012.0586C7.51777%2012.313%207.6293%2012.5522%207.81463%2012.7272C7.99997%2012.9021%208.24512%2012.9997%208.5%2013H14.084L11.793%2015.293L11.71%2015.387C11.5546%2015.588%2011.4815%2015.8406%2011.5056%2016.0935C11.5297%2016.3464%2011.6492%2016.5807%2011.8397%2016.7488C12.0303%2016.9168%2012.2777%2017.006%2012.5316%2016.9982C12.7856%2016.9905%2013.027%2016.8863%2013.207%2016.707L17.207%2012.707L17.28%2012.625L17.344%2012.536L17.406%2012.423L17.45%2012.313L17.48%2012.201L17.497%2012.075L17.5%2012L17.493%2011.882L17.464%2011.734L17.429%2011.629L17.375%2011.516L17.304%2011.405C17.2745%2011.3653%2017.242%2011.3279%2017.207%2011.293L13.207%207.293L13.113%207.21Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E');
    }
  }
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  & .section-title__en {
    align-self: flex-start;
    line-height: 1;
    font-size: 1rem;
    background: var(--grad-sky-orange);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    @media screen and (min-width: 768px) {
      font-size: 1.5rem;
    }
  }

  & .section-title__ja {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.25;

    @media screen and (min-width: 768px) {
      font-size: 2rem;
    }
    @media screen and (min-width: 1200px) {
      font-size: 2.5rem;
    }
  }
  
  &.section-title--center {
    text-align: center;
    & .section-title__en {
      align-self: center;
    }
  }
}


.news-list {
  & .webgene-item:last-of-type {
    border-bottom: 1px solid hsla(from var(--ink) h s l / 20%); 
  }
}
.catalog-list {
  & .webgene-blog {
    display: grid;
    gap: 2rem;
    
    @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));
    }
  }
  & .webgene-pagination, & .webgene-no-items {
    @media screen and (min-width: 768px) {
      grid-column: span 2 / span 2;
    }
    @media screen and (min-width: 768px) {
      grid-column: span 3 / span 3;
    }
  }
}

.category-list {
  & .webgene-blog {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.item-images {
  & .item-image {
    & img {
      width: 100%;
      aspect-ratio: 3 / 2;
      object-fit: cover;
    }
  }
}

.service-flow {
  counter-reset: flow;
  display: flex;
  flex-direction: column;
  
  @media screen and (min-width: 1024px) {
    flex-direction: row;
    flex-wrap: wrap;
    margin-left: 3.125rem;
    row-gap: 1.5rem;
  }
  
  & .service-flow__item {
    color: var(--snow);
    position: relative;
    counter-increment: flow;
    padding: 5rem 1.5rem;
    background-image: url("/system_panel/uploads/images/flow-polygon--mobile.png");
    background-size: 100% 100%;
    min-height: 20rem;
    
    &:first-child {
      background-image: url("/system_panel/uploads/images/flow-polygon-start--mobile.png");
      padding-top: 2.5rem;
    }
    &:last-child {
      background-image: url("/system_panel/uploads/images/flow-polygon-end--mobile.png");
      padding-bottom: 2.5rem;
    }
    
    & + .service-flow__item {
      margin-top: -3.125rem;
    }
    
    @media screen and (min-width: 768px) {
      padding: 7.5rem 5rem;
    }
    @media screen and (min-width: 1200px) {
      width: 20rem;
      margin-left: -3.125rem;
      min-height: 23.75rem;
      & + .service-flow__item {
        margin-top: 0;
      }
    
      background-image: url("/system_panel/uploads/images/flow-polygon.png");
      padding: 3.75rem 3rem 0 5.25rem;
      &:first-child {
        background-image: url("/system_panel/uploads/images/flow-polygon-start.png");
        padding: 3.75rem 3.75rem 0 2.5rem;
      }
      &:last-child {
        background-image: url("/system_panel/uploads/images/flow-polygon-end.png");
        padding: 3.75rem 1.25rem 0 5.25rem;
      }
    }
  }
  & .service-flow__num {
    &::before {
      content: "STEP " counter(flow);
      font-size: 0.75rem;
      font-weight: 500;
    }
  }
}

.home-catalog {
  &.swiper {
    overflow: visible;
  }
  & .swiper-wrapper {
  }
}

.home-hero-catalog {
  &.swiper {
    overflow: visible;
  }
  & .swiper-slide {
    opacity: 0 !important;
  }
  & .swiper-slide-visible {
    opacity: 1 !important;
  }
}

@media screen and (min-width: 1440px) {
  .home-hero-catalog__wrapper {
    position: absolute;
    top: 5rem;
    right: 7.5rem;
    width: 37.5rem;
  }
  .home-hero-banner {
    position: absolute;
    bottom: 5rem;
    right: 6rem;
    width: 25%;
  }
}




