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

#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 {
  & 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-color: var(--orange);
          color: var(--snow);
          &:hover {
            color: var(--snow);
          }
        }
      }
    }
  }
}

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

.thumbnail {
  position: relative;

  &.thumbnail--16x9 {
    padding-top: 56.25%;
  }
  &.thumbnail--2x3 {
    padding-top: 150%;
  }

  & 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/thumbnail.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 {
  overflow: hidden;
  position: relative;
  height: 40rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 0 1.25rem 3.75rem;
  &::after {
    content: "";
    aspect-ratio: 490 / 371;
    width: 15rem;
    background-image: url("/system_panel/uploads/images/house-1.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: absolute;
    bottom: 8rem;
    right: -4.5rem;
  }
  @media (min-width: 768px) {
    padding-inline: 2.5rem;
    &::after {
      width: 20rem;
      right: -2.5rem;
    }
  }
  @media (min-width: 1024px) {
    padding: 0 3.75rem 5rem;
    &::after {
      width: 25rem;
      bottom: 9.75rem;
      right: -2rem;
    }
  }
  @media (min-width: 1200px) {
    padding: 0 5rem 6.25rem;
    &::after {
      width: 30.625rem;
      bottom: 11.75rem;
      right: 5rem;
    }
  }
  
  & .page-hero__image {
    width: 25rem;
    aspect-ratio: 767 / 517;
    position: absolute;
    z-index: 0;
    top: 6.25rem;
    left: 50%;
    transform: translateX(-50%);
    &::before {
      pointer-events: none;
      content: "";
      aspect-ratio: 259 / 233;
      width: 33.7679269883%;
      background-image: url("/system_panel/uploads/images/house-2.png");
      background-size: 100% 100%;
      background-repeat: no-repeat;
      position: absolute;
      z-index: 1;
      bottom: 0;
      left: 0;
      transform: translate(-49.0347490347%, 18.025751073%);
    }
    &::after {
      pointer-events: none;
      content: "";
      width: 100%;
      height: 100%;
      background-image: url("/system_panel/uploads/images/mask-border-1.png");
      background-size: 100% 100%;
      background-repeat: no-repeat;
      position: absolute;
      top: 0;
      left: 0;
      transform: translate(-2.6075619296%, -3.8684719536%);
    }
    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      mask-image: url("/system_panel/uploads/images/mask-1.png");
      -webkit-mask-image: url("/system_panel/uploads/images/mask-1.png");
      mask-size: 100% 100%;
      mask-repeat: no-repeat;
    }
    @media (min-width: 768px) {
      width: 35rem;
      top: 2.75rem;
      left: 2rem;
      transform: none;
    }
    @media (min-width: 1024px) {
      width: 40rem;
      top: 3rem;
      left: 5rem;
    }
    @media (min-width: 1200px) {
      width: 47.9375rem;
      top: 4rem;
      left: 10.25rem;
    }
  }
  
  & .page-hero__title {
    position: relative;
    display: flex;
    justify-content: end;
    align-items: center;
    height: 3rem;
    &::before {
      content: "";
      display: block;
      position: absolute;
      top: 0;
      right: -1.25rem;
      left: -1.25rem;
      height: 100%;
      background-color: var(--brown);
      opacity: 6%;
    }
    & img {
      object-position: right;
      position: relative;
      height: calc(100% * 0.75);
    }
    @media (min-width: 768px) {
      height: 3.5rem;
      &::before {
        right: -2.5rem;
        left: -2.5rem;
      }
    }
    @media (min-width: 1024px) {
      height: 3.75rem;
      &::before {
        right: -3.75rem;
        left: -3.75rem;
      }
    }
    @media (min-width: 1200px) {
      height: 4rem;
      &::before {
        width: 100%;
        max-width: 50rem;
        right: -5rem;
        left: auto;
      }
    }
  }
}

.bg-wave {
  position: relative;
  &::before {
    content: "";
    width: 100%;
    aspect-ratio: 16 / 1;
    background-image: url("/system_panel/uploads/images/wave.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: absolute;
    top: -1px;
    left: 0;
  }
}

.section-title {
  position: relative;
  line-height: 1.25;
  text-align: center;
  & .section-title__en {
    font-family: var(--font-display-en);
    color: var(--gray);
    font-size: 2rem;
  }
  & .section-title__ja {
    font-weight: 500;
    color: var(--orange2);
    font-size: 0.875rem;
  }
  @media (min-width: 768px) {
    & .section-title__en {
      font-size: 3.5rem;
    }
    & .section-title__ja {
      font-size: 1.25rem;
    }
  }
  @media (min-width: 1024px) {
    & .section-title__en {
      font-size: 4.5rem;
    }
    & .section-title__ja {
      font-size: 1.5rem;
    }
  }
  @media (min-width: 1200px) {
    & .section-title__en {
      font-size: 6rem;
    }
    & .section-title__ja {
      font-size: 2rem;
    }
  }
  
  &.section-title--start {
    text-align: start;
  }
  &.section-title--snow {
    & .section-title__en {
      color: var(--snow);
    }
    & .section-title__ja {
      color: var(--orange3);
    }
  }
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  line-height: 1.25;
  letter-spacing: 0.16em;
  font-family: var(--font-display-ja);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--orange2);
  transition: opacity ease 200ms;
  & > p {
    border-bottom: 2px solid var(--orange2);
  }
  &::before {
    content: "";
    width: 1.9375rem;
    aspect-ratio: 31 / 22;
    background-image: url("/system_panel/uploads/images/button-dec.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  &:hover {
    opacity: 85%;
    color: var(--orange2);
    text-decoration: none;
  }
  
  &.button--phone {
    &::before {
      width: 1.125rem;
      aspect-ratio: 18 / 17;
      background-image: url("/system_panel/uploads/images/phone.svg");
    }
  }
  &.button--snow {
    color: var(--snow);
    & > p {
      border-color: var(--snow);
    }
    &::before {
      background-image: url("/system_panel/uploads/images/button-dec-snow.svg");
    }
  }
}

.strengths-bg-line {
  display: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 115.625%;
  & img {
    width: 100%;
  }
  @media (min-width: 768px) {
    display: block;
  }
}

.masked-image {
  position: relative;
  --mask-image: url("/system_panel/uploads/images/mask-1.png");
  --mask-border: url("/system_panel/uploads/images/mask-border-1.png");
  &::after {
    pointer-events: none;
    content: "";
    width: 100%;
    height: 100%;
    background-image: var(--mask-border);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: absolute;
  }
  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: var(--mask-image);
    -webkit-mask-image: var(--mask-image);
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
  }
  
  &.masked-image--2 {
    aspect-ratio: 640 / 434;
    --mask-image: url("/system_panel/uploads/images/mask-2.png");
    --mask-border: url("/system_panel/uploads/images/mask-border-2.png");
    &::after {
      bottom: 0;
      right: 0;
      transform: translate(3.125%, 4.6082949309%);
    }
    &.masked-image--2-bl {
      &::after {
        right: auto;
        left: 0;
        transform: translate(-3.125%, 4.6082949309%);
      }
    }
  }
  
  &.masked-image--3 {
    aspect-ratio: 545 / 574;
    --mask-image: url("/system_panel/uploads/images/mask-3.png");
    --mask-border: url("/system_panel/uploads/images/mask-border-3.png");
    &::after {
      bottom: 0;
      right: 0;
      transform: translate(2.9411764706%, 4.8865619546%);
    }
  }
  
  &.masked-image--4 {
    aspect-ratio: 548 / 521.61;
    --mask-image: url("/system_panel/uploads/images/mask-4.png");
    --mask-border: url("/system_panel/uploads/images/mask-border-4.png");
    &::after {
      bottom: 0;
      right: 0;
      transform: translate(3.6429872495%, 2.34375%);
    }
  }
  &.masked-image--6 {
    aspect-ratio: 490 / 458;
    --mask-image: url("/system_panel/uploads/images/mask-6.png");
    --mask-border: url("/system_panel/uploads/images/mask-border-6.png");
    &::after {
      bottom: 0;
      right: 0;
      transform: translate(3.6734693878%, 2.4017467249%);
    }
    &.masked-image--6-snow {
      --mask-border: url("/system_panel/uploads/images/mask-border-6-snow.png");
    }
  }
  &.masked-image--7 {
    aspect-ratio: 426 / 448;
    --mask-image: url("/system_panel/uploads/images/mask-7.png");
    --mask-border: url("/system_panel/uploads/images/mask-border-7.png");
    &::after {
      bottom: 0;
      right: 0;
      transform: translate(5.3184488837%, 5.0502568684%);
    }
    &.masked-image--7-snow {
      --mask-border: url("/system_panel/uploads/images/mask-border-7-snow.png");
    }
  }
  &.masked-image--8 {
    aspect-ratio: 426 / 436;
    --mask-image: url("/system_panel/uploads/images/mask-8.png");
    --mask-border: url("/system_panel/uploads/images/mask-border-8.png");
    &::after {
      bottom: 0;
      left: 0;
      transform: translate(-5.062133646%, 4.9494717501%);
    }
  }
  &.masked-image--9 {
    aspect-ratio: 426 / 433;
    --mask-image: url("/system_panel/uploads/images/mask-9.png");
    --mask-border: url("/system_panel/uploads/images/mask-border-9.png");
    &::after {
      bottom: 0;
      left: 0;
      transform: translate(-5.2352941176%, 5.1291512915%);
    }
  }
  &.masked-image--10 {
    aspect-ratio: 480 / 326;
    --mask-image: url("/system_panel/uploads/images/mask-10.png");
    --mask-border: url("/system_panel/uploads/images/mask-border-10.png");
    &::after {
      bottom: 0;
      right: 0;
      transform: translate(4.1666666667%, 6.1349693252%);
    }
    &.masked-image--10-snow {
      --mask-border: url("/system_panel/uploads/images/mask-border-10-snow.png");
    }
  }
}

.strength-illust {
  position: absolute;
  z-index: 2;
  &.strength-illust--1 {
    width: 16.375rem;
    top: -13rem;
    left: -4.5rem;
  }
  &.strength-illust--2 {
    width: 20.1875rem;
    top: -13.1875rem;
    right: -7.5rem;
  }
  &.strength-illust--3 {
    width: 15rem;
    top: -10rem;
    left: -5.75rem;
  }
}

.strengths-masked-image {
  width: 100%;
  max-width: 34.0625rem;
  margin-left: auto;
  @media (min-width: 1024px) {
    margin-top: -2rem;
    margin-left: -9rem;
    width: 40%;
  }
  @media (min-width: 1200px) {
    margin-top: -5rem;
    margin-bottom: -9999px;
    margin-left: -7rem;
    width: 100%;
  }
}

.commitment-typo {
  display: none;
  padding-bottom: 5rem;
  line-height: 1.25;
  letter-spacing: 0.16em;
  font-family: var(--font-display-en);
  font-size: 5rem;
  color: var(--brown);
  opacity: 10%;
  position: absolute;
  inset: 7.5rem auto 0 2.5rem;
  & p {
    position: sticky;
    top: 2.5rem;
    transform-origin: top left;
    transform: rotate(90deg) translateY(-100%);
  }
  @media (min-width: 1200px) {
    display: block;
  }
}

.blog-date {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(calc(50% - 1rem), -50%) rotate(90deg);
}

.blog-body {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  & * {
    display: inline;
  }
  & img {
    display: none;
  } 
  & p, h1, h2, h3, h4, h5, h6 {
    line-height: 1.8;
    font-weight: 500;
    font-size: 0.875rem;
    @media (min-width: 768px) {
      font-size: 1rem;
    }
  }
}

.blog-list {
  & .webgene-blog {
    display: grid;
    gap: 5rem;
    @media (min-width: 768px) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: var(--blog-gap);
      --blog-gap: 2.5rem;
      & .webgene-no-items,
      & .webgene-pagination {
        grid-column: span 2 / span 2;
      }
    }
    @media (min-width: 1024px) {
      --blog-gap: 3.75rem;
    }
    & .webgene-item {
      position: relative;
      &:nth-child(odd):not(:last-child)::after {
        content: "";
        width: 4px;
        height: 100%;
        background-color: #B29780;
        position: absolute;
        top: 0;
        right: calc(var(--blog-gap) / -2 - 2px);
      }
    }
  }
}

.gallery-category {
  & .webgene-blog {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }
}

.gallery-list {
  &.swiper {
    width: 100%;
    overflow: visible;
    & .webgene-blog {
      display: flex;
    }
  }
  
  & .webgene-blog {
    display: grid;
    gap: 3.75rem;
  }
  
  & .webgene-item {
    & .thumbnail.masked-image::before {
      mask-image: var(--mask-image);
      -webkit-mask-image: var(--mask-image);
      mask-size: 100% 100%;
      mask-repeat: no-repeat;
    }
    &:nth-child(5n + 1) {
      & .masked-image {
        grid-column: span 8;
        aspect-ratio: 850 / 600;
        padding-top: 70.5882352941%;
        --mask-image: url("/system_panel/uploads/images/mask-5.png");
        --mask-border: url("/system_panel/uploads/images/mask-border-5.png");
        &::after {
          bottom: 0;
          left: 0;
          transform: translate(-2.8235294118%, 4%);
        }
      }
    }
    &:nth-child(5n + 2) {
      & .masked-image {
        aspect-ratio: 490 / 458;
        padding-top: 93.4693877551%;
        --mask-image: url("/system_panel/uploads/images/mask-6.png");
        --mask-border: url("/system_panel/uploads/images/mask-border-6.png");
        &::after {
          bottom: 0;
          right: 0;
          transform: translate(3.6734693878%, 2.4017467249%);
        }
      }
    }
    &:nth-child(5n + 3) {
      & .masked-image {
        aspect-ratio: 426 / 448;
        padding-top: 105.1643192488%;
        --mask-image: url("/system_panel/uploads/images/mask-7.png");
        --mask-border: url("/system_panel/uploads/images/mask-border-7.png");
        &::after {
          bottom: 0;
          right: 0;
          transform: translate(5.3184488837%, 5.0502568684%);
        }
      }
    }
    &:nth-child(5n + 4) {
      & .masked-image {
        aspect-ratio: 426 / 436;
        padding-top: 102.3474178404%;
        --mask-image: url("/system_panel/uploads/images/mask-8.png");
        --mask-border: url("/system_panel/uploads/images/mask-border-8.png");
        &::after {
          bottom: 0;
          left: 0;
          transform: translate(-5.062133646%, 4.9494717501%);
        }
      }
    }
    &:nth-child(5n + 5) {
      & .masked-image {
        aspect-ratio: 426 / 433;
        padding-top: 101.6431924883%;
        --mask-image: url("/system_panel/uploads/images/mask-9.png");
        --mask-border: url("/system_panel/uploads/images/mask-border-9.png");
        &::after {
          bottom: 0;
          left: 0;
          transform: translate(-5.2352941176%, 5.1291512915%);
        }
      }
    }
  }
  
  &.gallery-list.gallery-list--store {
    & .webgene-item {
      &:nth-child(5n + 1) {
        & .masked-image {
          --mask-border: url("/system_panel/uploads/images/mask-border-5-snow.png");
        }
      }
      &:nth-child(5n + 2) {
        & .masked-image {
          --mask-border: url("/system_panel/uploads/images/mask-border-6-snow.png");
        }
      }
      &:nth-child(5n + 3) {
        & .masked-image {
          --mask-border: url("/system_panel/uploads/images/mask-border-7-snow.png");
        }
      }
      &:nth-child(5n + 4) {
        & .masked-image {
          --mask-border: url("/system_panel/uploads/images/mask-border-8-snow.png");
        }
      }
      &:nth-child(5n + 5) {
        & .masked-image {
          --mask-border: url("/system_panel/uploads/images/mask-border-9-snow.png");
        }
      }
    }
  }
  
  @media (min-width: 1024px) {
    & .webgene-blog {
      grid-template-columns: repeat(12, minmax(0, 1fr));
      align-items: center;
    }
    
    & .webgene-no-items,
    & .webgene-pagination {
      grid-column: span 12 / span 12;
    }

    & .webgene-item {
      &:nth-child(5n + 1) {
        grid-column: span 8;
      }
      &:nth-child(5n + 2), 
      &:nth-child(5n + 3), 
      &:nth-child(5n + 4), 
      &:nth-child(5n + 5) {
        grid-column: span 4;
      }
    }
  }
}

.item-images.swiper {
  --swiper-pagination-color: var(--orange);
}

.service-intro-image {
  position: absolute;
  &.masked-image--7 {
    width: clamp(10rem, 25%, 25rem);
    top: -3rem;
    left: 0;
    transform: translate(-42.5%, 47.5059382423%);
    @media (min-width: 1200px) {
      top: 0;
    }
  }
  &.masked-image--10 {
    width: clamp(15rem, 30%,30rem);
    bottom: 0;
    right: 0;
    transform: translate(16.6666666667%, 47.2392638037%);
  }
}

.service-identity-bg-dec {
  position: absolute;
  & img {
    width: 100%;
  }
  &.service-identity-bg-dec--1 {
    width: clamp(10rem, 63.125%, 63.125rem);
    top: 0;
    left: 0;
    transform: translate(-48.5148514851%, 16%);
  }
  &.service-identity-bg-dec--2 {
    width: clamp(15rem, 81%, 81rem);
    bottom: 0;
    right: 0;
    transform: translate(17.8240740741%, 64.3%);
  }
}

.service-gallery-arrow {
  position: absolute;
  width: clamp(10rem, 30.625%, 30.625rem);
  top: 0;
  right: 0;
  transform: translate(-9.7959183673%, -30.5210918114%);
}
}
















