*,
*::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-serif);
  color: var(--snow);
  background-color: var(--ink);
  background-image: var(--paper);
  letter-spacing: 0.12em;
}

#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(--snow);
}

[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;
        color: var(--snow);
        background-color: hsl(0deg 0% 100% / 40%);
        &:hover {
          text-decoration: none;
          color: var(--snow);
        }
      }

      &.selected {
        & a {
          background-image: var(--paper-2);
          &:hover {}
        }
      }
    }
  }
}

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

.thumbnail {
  position: relative;

  &.thumbnail--16x9 {
    padding-top: 56.25%;
  }
  &.thumbnail--4x3 {
    padding-top: 75%;
  }
  &.thumbnail--3x4 {
    padding-top: 133.33%;
  }

  & img,
  &:empty::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  &.news-detail-image {
    & img {
      object-fit: contain;
    }
  }

  &: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: 12.5rem 1.25rem 7.5rem;
  anchor-name: --page-hero-anchor;
  &::before,
  &::after {
    content: "";
    aspect-ratio: 1 / 1;
    position: absolute;
    background-image: url(/system_panel/uploads/images/dec-circle.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    animation-name: rotation;
    animation-duration: 80s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    font-size: var(--content-width);
    width: var(--content-width);
  }
  &::before {
    --content-width: 15rem;
    top: -0.36875em;
    right: -0.28125em;
    @media (min-width: 768px) {
      --content-width: 20rem;
    }
    @media (min-width: 1024px) {
      --content-width: 30rem;
    }
    @media (min-width: 1200px) {
      --content-width: 40rem;
    }
  }
  &::after {
    animation-name: rotation-reverse;
    --content-width: 7rem;
    bottom: -0.175em;
    left: -0.3em;
    @media (min-width: 768px) {
      --content-width: 10rem;
    }
    @media (min-width: 1024px) {
      --content-width: 15rem;
    }
    @media (min-width: 1200px) {
      --content-width: 25rem;
    }
  }
  &.page-hero--article {
    &::before,
    &::after {
      content: none;
    }
  }
  @media (min-width: 768px) {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  @media (min-width: 1024px) {
    padding-left: 3.75rem;
    padding-right:3.75rem;
  }
  @media (min-width: 1200px) {
    padding: 16.25rem 5rem 7.5rem;
  }
  
  & .page-hero__title {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    letter-spacing: 0.32em;
    & .page-hero__title-en {
      line-height: 1;
      font-weight: 300;
      font-size: 1.125rem;
    }
    & .page-hero__title-ja {
      line-height: 1.5;
      font-size: 2rem;
    }
    &.page-hero__title--with-interpunct {
      & .page-hero__title-ja {
        line-height: 0.85;
      }
    }
    @media (min-width: 768px) {
      & .page-hero__title-en {
        font-size: 1.25rem;
      }
      & .page-hero__title-ja {
        font-size: 2.25rem;
      }
      &.page-hero__title--with-interpunct {
        & .page-hero__title-ja {
          line-height: 1.5;
          & > br {
            display: none;
          }
        }
      }
    }
    @media (min-width: 1024px) {
      & .page-hero__title-en {
        font-size: 1.5rem;
      }
      & .page-hero__title-ja {
        font-size: 2.5rem;
      }
    }
  }
}

.page-hero--article-bg-decs {
  pointer-events: none;
  position: absolute;
  position-anchor: --page-hero-anchor;
  top: 0;
  bottom: calc(anchor(bottom) - 10rem);
  left: 0;
  width: 100%;
  overflow: hidden;
  &::before,
  &::after {
    content: "";
    aspect-ratio: 1 / 1;
    position: absolute;
    background-image: url(/system_panel/uploads/images/dec-circle.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    animation-name: rotation;
    animation-duration: 80s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    font-size: var(--content-width);
    width: var(--content-width);
  }
  &::before {
    --content-width: 15rem;
    top: -0.36875em;
    right: -0.28125em;
    @media (min-width: 768px) {
      --content-width: 20rem;
    }
    @media (min-width: 1024px) {
      --content-width: 30rem;
    }
    @media (min-width: 1200px) {
      --content-width: 40rem;
    }
  }
  &::after {
    animation-name: rotation-reverse;
    --content-width: 7rem;
    bottom: calc(-0.175em + 8rem);
    left: -0.3em;
    @media (min-width: 768px) {
      --content-width: 10rem;
    }
    @media (min-width: 1024px) {
      --content-width: 15rem;
    }
    @media (min-width: 1200px) {
      --content-width: 25rem;
    }
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  letter-spacing: 0.32em;
  & .section-title__en {
    position: relative;
    line-height: 1;
    font-weight: 300;
    font-size: 1rem;
  }
  & .section-title__ja {
    position: relative;
    line-height: 1.5;
    font-size: 1.5rem;
  }
  
  &.section-title--sm {
    gap: 0.75rem;
    & .section-title__en {
      font-size: 0.75rem;
    }
    & .section-title__ja {
      font-size: 1.125rem;
    }
  }
  
  &.section-title--vertical {
    gap: 1.25rem;
    text-align: center;
    & .section-title__ja {
      writing-mode: vertical-rl;
      line-height: 1.5;
      letter-spacing: 0.15em;
      text-align: start;
      align-self: center;
      flex-shrink: 0;
    }
  }
  @media (min-width: 768px) {
    & .section-title__en {
      font-size: 1.25rem;
    }
    & .section-title__ja {
      font-size: 1.75rem;
    }
    
    &.section-title--sm {
      & .section-title__en {
        font-size: 0.875rem;
      }
      & .section-title__ja {
        font-size: 1.25rem;
      }
    }
  }
  @media (min-width: 1024px) {
    & .section-title__en {
      font-size: 1.5rem;
    }
    & .section-title__ja {
      font-size: 2rem;
    }
    
    &.section-title--sm {
      & .section-title__ja {
        font-size: 1.25rem;
      }
    }
  }
}

.company-philosophy-image {
  position: relative;
  width: 100%;
  & img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 2 / 1;
  }
  &::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(35, 43, 39, 0.00) 0%, #232B27 100%);
  }
}

.company-philosophy-content {
  position: relative;
  margin-top: -3rem;
  & .company-philosophy-content__logo {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  @media (min-width: 768px) {
    margin-top: -10rem;
    & .company-philosophy-content__logo {
      max-width: 30rem;
    }
  }
  @media (min-width: 1024px) {
    margin-top: -14rem;
  }
  @media (min-width: 1200px) {
    margin-top: -23.75rem;
    & .company-philosophy-content__logo {
      max-width: 40rem;
    }
  }
}

.contact-reserve-links {
  display: grid;
  gap: 1.5rem;
  @media (min-width: 768px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    & > :only-child {
      grid-column: 2;
    }
  }
  & .button {
    max-width: 11.75rem;
    font-size: 1.125rem;
  }
}

.contact-reserve-image {
  aspect-ratio: 40 / 57;
  width: 100%;
}

.button {
  position: relative;
  width: calc(100% - 3.25rem);
  padding: 0.75rem 2rem 0.75rem 1rem;
  margin-right: 3.25rem;
  border: 1px solid var(--snow);
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  font-style: italic;
  font-weight: 200;
  font-size: 1.375rem;
  color: var(--snow);
  transition: all ease 200ms;
  &::after {
    content: "";
    aspect-ratio: 7 / 1;
    width: 5.25rem;
    background-image: url(/system_panel/uploads/images/button-diamonds.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    right: -3.25rem;
    transform: translateY(-50%);
  }
  &:hover {
    text-decoration: none;
    color: var(--snow);
    transform: scale(0.95);
    opacity: 90%;
  }
}

.footer-contact-bg-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 50%;
  }
  &::after {
    content: "";
    aspect-ratio: 1 / 1;
    width: 3.75rem;
    border-radius: 9999px;
    background-color: var(--red);
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
  }
  @media (min-width: 768px) {
    border-radius: 3rem;
    &::after {
      right: 2.5rem;
      bottom: 2.5rem;
    }
  }
  @media (min-width: 1024px) {
    border-radius: 4rem;
    &::after {
      right: 3.75rem;
      bottom: 3.75rem;
    }
  }
  @media (min-width: 1200px) {
    border-radius: 5rem;
    &::after {
      right: 5rem;
      bottom: 5rem;
    }
  }
}

.spaghetti-western-line {
  height: 4px;
  background-image: url(/system_panel/uploads/images/spaghetti-western-line.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.artist-bg-circle {
  width: clamp(20rem, 58.8235294118%, 50rem);
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(calc(10% + 5rem), -50%);
  &.artist-bg-circle--left {
    right: auto;
    left: 0;
    transform: translate(calc(-10% - 5rem), -50%);
  }
  &.artist-bg-circle--center {
    width: 50rem;
    right: 50%;
    transform: translate(50%, -50%);
  }
  @media (min-width: 1200px) {
    transform: translate(10%, -50%);
    &.artist-bg-circle--left {
      transform: translate(-10%, -50%);
    }
  }
}

.swiper:not(.swiper-initialized) {
  & .swiper-wrapper {
    display: flex;
    overflow: auto;
  }
  & .swiper-slide {
    min-width: 95%;
  }
  &.fu-gallery-slider {
    & .swiper-slide {
      min-width: 20%;
    }
  }
}

.project-slider {
  width: 100%;
  position: absolute;
  inset: 0;
  opacity: 50%;
  & .swiper-wrapper {
    width: 100%;
    height: 100%;
  }
  & .swiper-slide {
    width: 100%;
    height: 100%;
    & img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
  }
}

.project-content {
  gap: 10rem;
  @media (min-width: 768px) {
    gap: 20rem;
  }
  @media (min-width: 1200px) {
    gap: 25rem;
  }
}

.collaboration-article-text {
  & h1, & h2, & h3, & h4, & h5, & h6, & p {
    display: inline;
    line-height: 1.8;
    font-size: 0.875rem;
    @media (min-width: 768px) {
      font-size: 1rem;
    }
  } 
  & img {
    display: none;
  }
}

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

.collaboration-bg-circle {
  width: 55.3125rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.services-intro-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  line-height: 2;
  font-size: 0.875rem;
  text-align: center;
  & p {
    position: relative;
  }
  @media (min-width: 768px) {
    writing-mode: vertical-rl;
    gap: 1rem;
    text-align: start;
    line-height: 2;
    letter-spacing: 0.15em;
    font-size: 1rem;
    padding-top: 4rem;
  }
  @media (min-width: 1024px) {
    gap: 1.5rem;
    font-size: 1.125rem;
    padding-top: 5rem;
  }
}

.services-intro-bg-dec {
  position: absolute;
  &.services-intro-bg-dec--1 {
    width: clamp(12.5rem, 252.9644268775%, 40rem);
    top: 0;
    left: 0;
    transform: translate(-3.828125%, -35.652173913%);
  }
  &.services-intro-bg-dec--2 {
    width: clamp(10rem, 153.781512605%, 22.875rem);
    bottom: 0;
    left: 0;
    transform: translate(-75%, 49.5652173913%);
    @media (min-width: 768px) {
      transform: translate(-85.7923497268%, 49.5652173913%);
    }
  }
}

.service-bg-image {
  position: absolute;
  inset: 0;
  &:has(> :nth-child(2):last-child) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  &::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(/system_panel/uploads/images/paper.jpg);
    mask-image: linear-gradient(180deg, #232B27 0%, rgba(35, 43, 39, 0.00) 20.67%, rgba(35, 43, 39, 0.00) 78.85%, #232B27 100%);
  }
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 25%;
    filter: blur(12px);
  }
}

.service-dec-circle {
  position: absolute;
  top: -16.25rem;
  left: -11.25rem;
  width: 40rem;
  opacity: 20%;
  & img {
    width: 100%;
  }
  &.service-dec-circle--artist-management {
    top: -11.25rem;
    left: -7.5rem;
  }
  &.service-dec-circle--branding {
    top: -11.25rem;
    left: -10rem;
  }
  @media (min-width: 1200px) {
    opacity: 80%;
  }
}

.artist-management-images {
  display: grid;
  gap: 0.625rem;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  & img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1 / 2;
    box-shadow: var(--elevation-1);
    &:first-child {
      margin-top: 5rem;
    }
  }
}

.fu-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: end;
  height: 42.5rem;
  padding: 10rem 1.25rem 5rem;
  @media (min-width: 768px) {
    padding-right: 3.75rem;
    padding-left: 3.75rem;
  }
  @media (min-width: 1024px) {
    padding-right: 7.5rem;
    padding-left: 7.5rem;
  }
  @media (min-width: 1200px) {
    padding-right: 10rem;
    padding-left: 10rem;
  }
  
  &::after {
    content: "";
    aspect-ratio: 1 / 1;
    position: absolute;
    background-image: url(/system_panel/uploads/images/dec-circle.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: clamp(25rem, 35%, 35rem);
    top: 0;
    right: 0;
    transform: translate(21.4285714286%, -51.7857142857%);
  }
  
  & .fu-hero__bg-image {
    position: absolute;
    inset: 0;
    & img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
    &::after {
      pointer-events: none;
      content: "";
      position: absolute;
      inset: 0;
      background-image: url(/system_panel/uploads/images/paper.jpg);
      mask-image: linear-gradient(180deg, rgba(35, 43, 39, 0.00) 0%, rgba(35, 43, 39, 0.00) 59.13%, #232B27 100%);
    }
  }
}

.fu-profile-bg-dec {
  width: clamp(50rem, 75%, 75rem);
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-24.1666666667%, -10.5777777778%);
  & img {
    width: 100%;
  }
}

.fu-activity-bg-dec {
  width: 118.5185185185%;
  min-width: 30rem;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-20%, calc(-50% - 1.25rem));
  &.fu-activity-bg-dec--reverse {
    top: 50%;
    left: -5rem;
    transform: translateY(-50%) scaleX(-1);
  }
}

.fu-gallery-slider {
  width: 100%;
  overflow: visible;
  --swiper-pagination-color: var(--snow);
  --swiper-pagination-progressbar-bg-color: hsl(0deg 0% 100% / 40%);
  & .swiper-slide {
    & img {
      aspect-ratio: 1 / 1;
      width: 100%;
      object-fit: cover;
    }
  }
  & .swiper-pagination {
    position: static;
    margin: 2rem 0 0;
  }
}

.news-list {
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    & .webgene-pagination {
      margin-top: 1rem;
    }
    & .article-content {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }
  }
}

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

.article-content {
  & * {
    display: none;
  }
  & h1, & h2, & h3, & h4, & h5, & h6, & p {
    display: inline;
    font-size: 0.75rem;
  }
}

.blog-list {
  & .webgene-blog {
    display: grid;
    gap: 1.5rem;
    & .webgene-pagination {
      margin-top: 2.5rem;
    }
    @media (min-width: 768px) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      & .webgene-pagination,
      & .webgene-no-items {
        grid-column: span 2 / span 2;
      }
    }
    & .article-content {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }
  }
}













