*,
*::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(--paper);
  letter-spacing: 0.08em;
  font-weight: 500;
}

#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 {
          background-color: var(--ink);
          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--3x2 {
    padding-top: 66.6667%;
  }
  &.thumbnail--square {
    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;
  }
}

/* 今後スタイルを定義するためのプレースホルダー */
.news-list {
  /* TODO: ニュース一覧のスタイルを定義 */
}
.blog-list {
  /* TODO: ブログ一覧のスタイルを定義 */
}

.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__content {
  color: var(--snow);
  mix-blend-mode: difference;
}
.page-hero__image {
  mask-image: url(/system_panel/uploads/images/hero-shape.png);
  mask-position: center;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-breadcrumbs {
  & .page-breadcrumbs__list {
    display: inline;
  }
  & p, & a {
    display: inline;
    & + p, & + a {
      &::before {
        content: ">";
        margin-inline: 1rem;
      }
    }
  }
}

.button {
  border: 1px solid var(--ink);
  border-radius: 9999px;
  display: flex;
  align-items: cneter;
  gap: 0.75rem;
  padding-block: 0.5rem;
  padding-left: 1.5rem;
  padding-right: 0.75rem;
  line-height: 1.25;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.08em;
  transition: opacity 200ms linear;
  
  &::after {
    content: "";
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background-image: url(/system_panel/uploads/images/arrow-right.svg);
    background-size: contain;
    background-repeat: no-repeat;
  }
  
  &:hover {
    opacity: 0.85;
    text-decoration: none;
  }
  
  &.button--snow {
    color: var(--snow);
    border: 1px solid var(--snow);
    
    &::after {
      background-image: url(/system_panel/uploads/images/arrow-right-snow.svg);
    }
  }
}

.faq-list {
  counter-reset: faq;
  
  & .faq-item {
    counter-increment: faq;
  }
  & .faq-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    &::before {
      content: "Question " counter(faq, decimal-leading-zero);
      font-size: 0.625rem;
      line-height: 1.25;
    }
    &::after {
      content: "";
      display: block;
      flex: 1 0 0%;
      height: 0.0625rem;
      background-color: var(--ink);
      opacity: 0.3;
    }
    
    @media (min-width: 768px) {
      flex-direction: column;
      width: 6.25rem;
      
      &::before {
        font-size: 0.875rem;
      }
      &::after {
        height: unset;
        width: 0.0625rem;
      }
    }
  }
}

.product-heading {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  align-items: flex-start;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  
  & > p {
    font-size: 0.875rem;
    line-height: 1;
    font-weight: 300;
    position: relative;
    z-index: 0;
    &::before {
      content: "";
      position: absolute;
      bottom: -56%;
      left: 50%;
      transform: translateX(-50%);
      width: 108%;
      height: 100%;
      background-color: var(--snow);
      z-index: -1;
    }
  }
  
  & > h2 {
    font-size: 1.25rem;
    font-weight: 400;
    padding-top: 0.1428571429em;
    padding-inline: 0.5714285714em;
    padding-bottom: 0.2857142857em;
    background-color: var(--snow);
    line-height: 1.25;
  }
  
  @media (min-width: 768px) {
    & > p {
      font-size: 1.5rem;
    }
    & > h2 {
      font-size: 2.5rem;
    }
  }
  @media (min-width: 1024px) {
    & > p {
      font-size: 1.75rem;
    }
    & > h2 {
      font-size: 3rem;
    }
  }
  @media (min-width: 1200px) {
    & > p {
      font-size: 2rem;
    }
    & > h2 {
      font-size: 3.5rem;
    }
  }
  
  &.product-heading--snow {
    & > p::before, & > h2 {
      background-color: var(--ink);
    }
  }
}

.product-slider {
  & .swiper {
    & .swiper-slide, & .swiper-slide img {
      aspect-ratio: 16 / 9;
      object-fit: cover;
    }
  }
}

.gallery-slider, .insta-list {
  & .swiper-wrapper {
    transition-timing-function: linear;
  }
}

& .swiper {
  &:not(.swiper-initialized) {
    & .swiper-wrapper {
      display: flex;
      overflow-x: auto;
    }
    & .swiper-slide {
      min-width: 25rem;
      width: 25rem;
    }
  }
}

.product-dec {
  position: absolute;
  
  &.product-dec--tezome-top {
    top: 0;
    left: 0;
    transform: translate(-45%, -35%);
    width: 100%;
    max-width: 80rem;
  }
  &.product-dec--tezome-bottom {
    bottom: 0;
    right: 0;
    transform: translate(25%, 35%);
    width: 100%;
    max-width: 80rem;
  }
  &.product-dec--sishu-top {
    top: 0;
    left: 0;
    transform: translate(-35%, -45%);
    width: 100%;
    max-width: 67.5rem;
  }
  &.product-dec--sishu-bottom {
    bottom: 0;
    right: 0;
    transform: translate(25%, 15%);
    width: 100%;
    max-width: 62rem
  }
  &.product-dec--studs-bottom {
    top: 0;
    right: 0;
    transform: translate(30%, -30%);
    width: 100%;
    max-width: 80rem;
  }
}

.description-item {
  z-index: 0;
  & > img.backdrop-object {
    z-index: -1;
  }
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.7;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 79.81%, #000 100%);
    pointer-events: none;
  }
}

.home-hero-slider {
  & .swiper:not(.swiper-initialized) {
    & .swiper-slide {
      min-width: 100%;
      width: 100%;
    }
  }
  & .swiper-slide, & .swiper-slide img {
    aspect-ratio: 4 / 1;
    object-fit: cover;
    width: 100%;
  }
}


.concept-video {
  aspect-ratio: 4 / 5;
  width: 15rem;
  & video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  & [data-gjs-type="video"] {
    width: 100% !important;
    height: 100% !important;
  }
}

.home-lineup {
  height: clamp(37.5rem, 100dvh, 75rem);
  
  & .home-lineup-item {
    z-index: 0;
    & > img.backdrop-object {
      z-index: -1;
    }
    &::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0.5;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%);
      pointer-events: none;
    }
  }
}

.home-lineup-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  display: none;
  & > p, & > h2 {
    position: relative;
    mix-blend-mode: 
  }
  
  &::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    border-radius: 50%;
    background-color: var(--ink);
    filter: blur(80px);
  }
  
  @media (min-width: 768px) {
    display: flex;
  }
}

.home-atelier {
  padding-top: 30rem;
  
  @media (min-width: 1024px) {
    padding-top: 37.5rem;
  }
  z-index: 0;
  & > img.backdrop-object {
    z-index: -1;
  }
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #1A1A1A 0%, rgba(26, 26, 26, 0.30) 15.87%, rgba(26, 26, 26, 0.30) 100%);
    pointer-events: none;
  }
}

.artists-gallery {
  & .swiper {
    overflow: visible;
  }
}
.insta-list {
  &::after {
    position: absolute;
    content: "";
    inset: 0;
    background: var(--ink);
    opacity: 0.3;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  & .webgene-blog:empty {
    height: 18.75rem;
  }
}
.position-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.artist-list {
  & .webgene-blog {
    counter-reset: artists;
    display: flex;
    flex-direction: column;
    gap: 5rem;
  }
  & .webgene-item {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    counter-increment: artists;
    @media (min-width: 1024px) {
      flex-direction: row;
      align-items: center;
      gap: 3rem;
      padding-right: 5rem;
      
      &:nth-of-type(even) {
        flex-direction: row-reverse;
        padding-right: unset;
        padding-left: 5rem;
      }
    }
    @media (min-width: 1200px) {
      gap: 5rem;
    }
  }
  & .artist-list-image {
    position: relative;
    &::before {
      content: "#" counter(artists, decimal-leading-zero);
      position: absolute;
      bottom: 0;
      right: 0;
      color: var(--snow);
      mix-blend-mode: difference;
      line-height: 1;
      font-size: 4rem;
      z-index: 1;
      font-weight: 300;
      @media (min-width: 768px) {
        font-size: 6rem;
      }
    }
  }
}


.artist-detail {
  & .backdrop {
    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  & .item-images {
    & img {
      aspect-ratio: 4 / 3;
      object-fit: cover;
      width: 100%;
    }
  }
}

.artist-header {
  display: grid;
  gap: 3rem;
  
  @media(min-width: 1024px) {
    grid-template-columns: 55% 45%;
    gap: 0;
  }
}

.text-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.blog-detail .item-images img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}








