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

#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: 1px solid var(--ink);
        &:hover {
          text-decoration: none;
        }
      }

      &.selected {
        & a {
          color: var(--snow);
          background-color: var(--orange);
          &: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--3x4 {
    padding-top: 133.3333333333%;
  }
  &.thumbnail--3x2 {
    padding-top: 66.6666666667%;
  }

  & 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;
  border-bottom: 1px solid hsl(from var(--ink) h s l / 25%);
  opacity: 80%;
  &.page-hero--border-none {
    border: none;
  }
  & .page-hero__title {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    line-height: 1.15;
    text-align: center;
    font-family: var(--font-serif);
    width: fit-content;
    margin-inline: auto;
    & .page-hero__title-en {
      position: relative;
      font-size: 1.75rem;
      &::after {
        content: "";
        display: block;
        width: 100%;
        height: 4px;
        background-image: url("/system_panel/uploads/images/title-line.png");
        background-size: 100% 100%;
        background-repeat: no-repeat;
        margin-top: 0.5rem;
      }
    }
    & .page-hero__title-ja {
      position: relative;
      font-size: 1.25rem;
    }
    @media (min-width: 768px) {
      & .page-hero__title-en {
        font-size: 3rem;
      }
      & .page-hero__title-ja {
        font-size: 2rem;
      }
    }
    @media (min-width: 1024px) {
      & .page-hero__title-en {
        font-size: 3.5rem;
      }
      & .page-hero__title-ja {
        font-size: 2.5rem;
      }
    }
    @media (min-width: 1200px) {
      & .page-hero__title-en {
        font-size: 4rem;
      }
      & .page-hero__title-ja {
        font-size: 3rem;
      }
    }
  }
}

.section-title {
  opacity: 80%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-serif);
  width: fit-content;
  line-height: 1.15;
  & .section-title__en {
    position: relative;
    font-size: 1.5rem;
    &::after {
      content: "";
      display: block;
      width: 100%;
      height: 4px;
      background-image: url("/system_panel/uploads/images/title-line.png");
      background-size: 100% 100%;
      background-repeat: no-repeat;
      margin-top: 0.25rem;
    }
  }
  & .section-title__ja {
    position: relative;
    font-size: 1.125rem;
  }
  @media (min-width: 768px) {
    & .section-title__en {
      font-size: 1.75rem;
    }
    & .section-title__ja {
      font-size: 1.25rem;
    }
  }
  @media (min-width: 1200px) {
    & .section-title__en {
      font-size: 2rem;
    }
    & .section-title__ja {
      font-size: 1.5rem;
    }
  }
  
  &.section-title--snow {
    color: var(--snow);
    & .section-title__en::after {
      background-image: url("/system_panel/uploads/images/title-line-snow.png");
    }
  }
  &.section-title--lg {
    & .section-title__en {
      font-size: 2rem;
    }
    & .section-title__ja {
      font-size: 1.5rem;
    }
    @media (min-width: 768px) {
      & .section-title__en {
        font-size: 2.5rem;
      }
      & .section-title__ja {
        font-size: 1.75rem;
      }
    }
    @media (min-width: 1200px) {
      & .section-title__en {
        font-size: 3rem;
      }
      & .section-title__ja {
        font-size: 2rem;
      }
    }
  }
}

.footer-contact-bg-image {
  position: absolute;
  inset: 0;
  &::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0;
    background-color: hsl(0deg 0% 0% / 65%);
  }
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

.footer-typo {
  line-height: 1.25;
  letter-spacing: 0;
  font-family: var(--font-serif);
  color: var(--snow);
  mix-blend-mode: exclusion;
  position: absolute;
  top: -0.875em;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 2.5rem;
  @media (min-width: 768px) {
    font-size: 5rem;
  }
  @media (min-width: 1024px) {
    font-size: 7rem;
  }
  @media (min-width: 1200px) {
    font-size: 10rem;
  }
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.75rem 1.5rem 0.75rem 1.25rem;
  background-color: var(--ivory);
  box-shadow: var(--elevation-1);
  line-height: 1.25;
  letter-spacing: 0.16em;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  transition: all ease 200ms;
  &::after {
    content: "";
    aspect-ratio: 40 / 4.55;
    width: 2.5rem;
    background-image: url("/system_panel/uploads/images/arrow-right.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  &:hover {
    text-decoration: none;
    color: var(--ink);
    opacity: 90%;
    transform: scale(0.95);
  }
  
  &.button--orange {
    background-color: var(--orange);
    color: var(--snow);
    &::after {
      background-image: url("/system_panel/uploads/images/arrow-right-snow.png");
    }
    &:hover {
      color: var(--snow);
    }
  }
  &.button--lg {
    font-size: 1.125rem;
  }
  
  &.button--rounded {
    padding: 1rem 2rem 1rem 1.75rem;
    border-radius: 9999px;
    border: 2px solid var(--ink);
    box-shadow: 2px 4px 0 0 var(--ink);
    background-color: var(--snow);
    letter-spacing: 0.04em;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.5rem;
    &::after {
      aspect-ratio: 1 / 1;
      width: 0.75rem;
      border-radius: 9999px;
      background-color: var(--light-orange);
      background-image: none;
    }
  }
}

.works-bg {
  position: absolute;
  inset: 7.5rem 0 -4rem -2rem;
  background-image: var(--linen-black);
  opacity: 80%;
}

.section-work-list {
  position: relative;
  width: 100%;
  & .article-content {
    color: var(--snow);
  }
}

.reasons-num {
  line-height: 1;
  letter-spacing: 0;
  font-family: var(--font-serif);
  color: var(--orange);
  opacity: 20%;
  position: absolute;
  top: -0.6em;
  left: -0.3em;
  font-size: 5rem;
  @media (min-width: 768px) {
    font-size: 7.5rem;
  }
  @media (min-width: 1200px) {
    font-size: 10rem;
  }
}

.service-link-bg-image {
  position: absolute;
  inset: 0;
  &::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0;
    background-color: hsl(0deg 0% 0% / 50%);
  }
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

.work-category {
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
}

.work-list {
  & .webgene-blog {
    display: grid;
    gap: 1.5rem;
    @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;
      }
    }
  }
}

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

.work-detail {
  .item-image {
    & img {
      aspect-ratio: 3 / 2;
      width: 100%;
      object-fit: cover;
    }
  }
  .swiper-pagination {
    position: relative;
    margin: 0.75rem 0 0;
    --swiper-pagination-color: var(--orange);
  }
}

.home-passion-image {
  position: absolute;
  top: 2.5rem;
  left: 6.25rem;
  aspect-ratio: 1 / 1;
  width: clamp(20rem, 33.3333333333%, 30rem);
  filter: blur(6px);
  &::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0;
    background-color: hsl(from var(--snow) h s l / 40%);
  }
}

.home-passion-images {
  display: flex;
  flex-direction: column;
  gap: 3.75rem;
  & img {
    object-fit: cover;
    aspect-ratio: 4 / 3;
    &:first-child {
      width: 64%;
      filter: blur(4px);
    }
    &:last-child {
      width: 74.6666666667%;
      margin-left: auto;
    }
  }
  @media (min-width: 768px) {
    flex-direction: row-reverse;
    justify-content: center;
    align-items: start;
    & img {
    &:first-child {
        width: 25%;
      }
      &:last-child {
        width: 30%;
        margin-top: 5rem;
        margin-left: 0;
      }
    }
  }
  @media (min-width: 1024px) {
    gap: 7.5rem;
  }
  @media (min-width: 1200px) {
    gap: 10rem;
    & img:last-child {
      margin-top: 7.5rem;
    }
  }
}

.home-illust {
  position: absolute;
  inset: 0 0 0 50%;
  width: 100%;
  min-width: 90rem;
  transform: translateX(-50%);
  & img {
    width: 100%;
    height: 100%;
  }
}




