@charset "utf-8";

.l-inner {
  max-width: 1206px;
  margin: 0 auto;
  padding: 0 20px;
}

.c-heading {
  display: flex;
  flex-direction: column;
}

.c-heading__en {
  font-weight: bold;
  font-size: 53px;
  font-family: var(--font-noto-sans);
  color: var(--color-red);
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.c-heading__ja {
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-heading__ja::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
}

.c-slides {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;

  img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    inset: 0;
    opacity: 0;
    transform: scale(1);
    transition:
      opacity 2s ease-out,
      transform 5s linear;
  }

  img.is-active {
    opacity: 1;
    transform: scale(1.1);
  }
}

.gjs-dashed *[data-highlightable] .c-slides img {
  opacity: 1;
  position: static;
}

.c-link-btn {
  background: var(--color-red);
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  padding: 8px 16px 8px 22px;
  gap: 10px;
  align-items: center;
  width: fit-content;
  cursor: pointer;

  p {
    color: var(--color-white);
    font-weight: 600;
    letter-spacing: 0.05em;
  }
}

.c-link-btn:hover {
  opacity: 0.7;
}

.c-link-btn__arrow {
  width: 34px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: 4px;

  img {
    width: 8px;
    object-fit: contain;
  }
}

.c-date {
  color: #9d9d9d;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.c-category {
  border-radius: 12px;
  color: var(--color-red);
  border: 1px solid var(--color-red);
  font-size: 12px;
  width: fit-content;
  min-width: 70px;
  padding: 3px 8px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
}

.c-works-item {
  .c-works-item__link:hover {
    opacity: 0.7;
  }

  .c-works-item__head {
    width: 100%;
    aspect-ratio: 358/247;
    border-radius: 10px;
    overflow: hidden;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .c-works-item__body {
    margin-top: 16px;

    @media (width < 1120px) {
      margin-top: 4px;
    }
  }

  .c-works-item__tags {
    display: flex;
    align-items: center;
    gap: 10px;

    @media (width < 1120px) {
      flex-direction: column;
      gap: 0;
      align-items: start;
    }
  }

  .c-works-item__title {
    margin-top: 8px;
    line-height: 2.143;
    letter-spacing: 0.06em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    min-height: 50px;
  }
}

.c-page-top {
  position: fixed;
  width: 102px;
  aspect-ratio: 1;
  bottom: 140px;
  right: 100px;
  background: var(--color-red);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  z-index: 10;
  transition: all 0.3s ease-out;

  @media (width < 1120px) {
    right: 20px;
  }

  @media (width < 768px) {
    right: 20px;
    width: 60px;
    gap: 3px;
  }

  img {
    margin-top: 12px;
    width: 13px;
    aspect-ratio: 9/6;
    transform: rotate(-90deg);
    object-fit: contain;
    transition: all 0.3s ease-out;
  }

  p {
    text-align: center;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.333;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    @media (width < 768px) {
      font-size: 10px;
    }
  }
}

.gjs-dashed *[data-highlightable] .c-page-top {
  opacity: 1;
  visibility: visible;
}

.c-page-top.is-show {
  opacity: 1;
  visibility: visible;
}

.fade-blur {
  animation-name: blurAnime;
  animation-duration: 3s;
  animation-fill-mode: forwards;

  &.is-delay1 {
    animation-delay: 0.4s;
  }

  &.is-delay2 {
    animation-delay: 0.8s;
  }
}

@keyframes blurAnime {
  from {
    filter: blur(20px);
    opacity: 0;
  }

  to {
    filter: blur(0);
    opacity: 1;
  }
}

.js-blur-trigger {
  opacity: 0;
}

.gjs-dashed *[data-highlightable] .js-blur-trigger {
  opacity: 1;
}

.webgene-pagination {
  margin-top: 20px;
  justify-self: center;
  grid-column: 1 / -1;
  color: #4b4b4b;

  ul .number a {
    background: #ebebeb;
  }

  ul .number a:hover,
  ul .number.selected a {
    background: var(--color-red);
    color: #ffffff;
  }

  ul .number.selected a {
    pointer-events: none;
  }

  ul {
    display: flex;
    list-style: none;
    gap: 10px;
    padding-inline-start: 0;
    justify-content: center;
    align-items: center;
  }

  ul .number a {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
  }

  li.next,
  li.prev {
    position: relative;
  }

  li.next {
    margin-left: 20px;
  }

  li.prev {
    margin-right: 20px;
  }

  li.next a,
  li.prev a {
    height: 40px;
    width: 76px;
    line-height: 1;
    display: flex;
    align-items: center;
  }

  li.prev a {
    justify-content: end;
  }

  li.next:hover::after,
  li.prev:hover::after {
    background: url("https://seishin-eng.jp/system_panel/uploads/images/page-arrow_red.svg") no-repeat center center / contain;
  }

  li.prev:after,
  li.next:after {
    pointer-events: none;
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 40px;
    height: 40px;
    background: url("https://seishin-eng.jp/system_panel/uploads/images/page-arrow_white.svg") no-repeat center center / contain;
    transition: all 0.3s ease-out;
  }

  li.prev:after {
    left: 0;
    transform: translateY(-50%) rotate(180deg);
  }

  li.next:after {
    right: 0;
  }
}
