:root {
  --color-white: #fff;
  --color-txt: #4b4b4b;
  --color-main: #9b51e0;
  --color-sub: #f6edff;
  --color-sub02: #ebc8ff;
  --color-sub03: #c699e2;
  --color-gray: #adadad;
  --color-accent: #ff62b6;
}

/* =======================================================
works
======================================================= */
.l-works {
  padding-bottom: 10.5rem;
}
@media screen and (max-width: 767px) {
  .l-works {
    padding-bottom: 4rem;
  }
}

.p-works .c-hgroup {
  margin-bottom: 4.8125rem;
}
@media screen and (max-width: 767px) {
  .p-works .c-hgroup {
    margin: 0.3125rem 0 1.8125rem;
  }
}
.p-works__cat {
  display: grid;
  place-content: center;
  width: 10.5625rem;
  height: 3.125rem;
  padding-bottom: 0.125rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: calc(24/20);
  color: var(--color-main);
  background: var(--color-sub);
  border-radius: 1.5625rem;
}
.p-works__cat-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}
@media screen and (max-width: 767px) {
  .p-works__cat-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.5rem;
  }
}
@media screen and (max-width: 767px) {
  .p-works__cat {
    width: 10.5rem;
    height: 2.5rem;
  }
}
@media screen and (max-width: 767px) {
  .p-works__cat:nth-of-type(odd) {
    justify-self: start;
  }
}
@media screen and (max-width: 767px) {
  .p-works__cat:nth-of-type(even) {
    justify-self: end;
  }
}
.p-works__cat.--is-active {
  color: var(--color-white);
  background: linear-gradient(180deg, #9b51e0 70%, #bd7eda 100%);
  opacity: 1;
}
.p-works__year {
  position: relative;
  display: grid;
  place-content: center;
  width: 7.625rem;
  height: 1.75rem;
  padding-bottom: 0.125rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: calc(22/18);
  color: var(--color-main);
  letter-spacing: 0.1em;
  background-color: var(--color-sub);
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 10%, rgba(255, 255, 255, 0) 20%);
  background-position: -150% 0;
  background-size: 200% 100%;
}
@media screen and (max-width: 767px) {
  .p-works__year-box {
    margin-bottom: 1.5rem;
  }
}
@media screen and (max-width: 767px) {
  .p-works__year-toggle {
    position: relative;
    display: flex;
    gap: 0.5625rem;
    align-items: center;
    padding-right: 2.1875rem;
    margin: 0 0 1rem auto;
  }
}
@media screen and (max-width: 767px) {
  .p-works__year-toggle::after {
    position: absolute;
    top: -0.25rem;
    right: 0;
    width: 1.625rem;
    height: 1.6875rem;
    content: "";
    background: url("../images/works/works-toggle-sp.svg") top center/contain no-repeat;
  }
}
@media screen and (max-width: 767px) {
  .p-works__year-toggle.--js-open::after {
    top: 0.25rem;
    transform: scale(1, -1);
  }
}
@media screen and (max-width: 767px) {
  .p-works__year-outer {
    display: none;
  }
}
.p-works__year-wrapper {
  display: flex;
  gap: 3.25rem;
  justify-content: center;
  padding: 0 1.625rem;
  margin-bottom: 3rem;
}
@media screen and (max-width: 767px) {
  .p-works__year-wrapper {
    display: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.25rem;
    padding: 1.5rem 0 0;
    margin-bottom: 0;
  }
}
@media screen and (max-width: 767px) {
  .p-works__year {
    width: 10.1875rem;
    height: 1.875rem;
    font-size: 1.3125rem;
  }
}
.p-works__year.--is-active {
  color: var(--color-white);
  background: linear-gradient(180deg, #9b51e0 70%, #bd7eda 100%);
  opacity: 1;
}
.p-works__year.--js-animation {
  animation: works-year 0.8s ease forwards;
}
@media (hover: hover) {
  .p-works__year:hover {
    opacity: 0.5;
  }
}
@keyframes works-year {
  0% {
    background-position: -150% 0;
  }
  100% {
    background-position: 100% 0;
  }
}
@media screen and (max-width: 767px) {
  .p-works__year:nth-of-type(odd)::before {
    position: absolute;
    top: 50%;
    right: -0.6875rem;
    width: 0.0625rem;
    height: 2.375rem;
    content: "";
    background: var(--color-main);
    transform: translateY(-50%);
  }
}
@media screen and (min-width: 768px) {
  .p-works__year::before {
    position: absolute;
    top: 50%;
    left: -1.65625rem;
    width: 0.0625rem;
    height: 1.75rem;
    content: "";
    background: var(--color-main);
    transform: translateY(-50%);
  }
}
@media screen and (min-width: 768px) {
  .p-works__year:last-of-type::after {
    position: absolute;
    top: 50%;
    right: -1.65625rem;
    width: 0.0625rem;
    height: 1.75rem;
    content: "";
    background: var(--color-main);
    transform: translateY(-50%);
  }
}
.p-works__article {
  display: grid;
  gap: 0.5rem;
}
.p-works__article-wrapper {
  display: grid;
  gap: 2.0625rem 2rem;
}
@media screen and (min-width: 768px) {
  .p-works__article-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 767px) {
  .p-works__article-wrapper {
    gap: 1.5rem;
  }
}
@media screen and (max-width: 767px) {
  .p-works__article {
    gap: 0.25rem;
  }
}
.p-works__article-figure {
  height: 22.375rem;
  overflow: hidden;
  border-radius: 0.625rem;
}
@media screen and (max-width: 767px) {
  .p-works__article-figure {
    height: 21.875rem;
  }
}
.p-works__article-figure > img {
  object-fit: contain;
}
.p-works__article-ttl {
  font-size: 1.125rem;
  font-weight: 700;
}
.p-works__article-txt {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 500;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.p-works__not {
  display: grid;
  gap: 1.5rem;
  justify-content: center;
}
.p-works__not-figure {
  justify-self: center;
  width: 15.625rem;
  overflow: hidden;
  border-radius: 50%;
}
.p-works__not-txt {
  font-weight: 700;
  line-height: calc(19/16);
  color: var(--color-main);
  text-align: center;
}
.p-works__pagination {
  margin-top: 1.5rem;
}
.p-works__modal {
  z-index: 2;
  display: none;
  max-width: 60rem;
  padding: 2.5rem;
  margin: 0 auto;
  background: var(--color-white);
}
.p-works__modal-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  display: none;
  width: 100vw;
  height: 100vh;
  padding: 2.5rem 0;
  margin: 0 auto;
  overflow-y: scroll;
  background: rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.p-works__modal-wrapper::-webkit-scrollbar {
  display: none;
}
.p-works__modal-wrapper.--js-active {
  display: grid;
}
@media screen and (min-width: 768px) {
  .p-works__modal-wrapper.--js-active {
    place-content: center;
  }
}
@media screen and (max-width: 767px) {
  .p-works__modal-wrapper {
    top: 0;
    width: 100%;
    padding: 1.25rem 0 6.25rem;
    transform: translateX(-50%);
  }
}
@media screen and (min-width: 768px) {
  .p-works__modal {
    grid-template: "figure ttl" "figure txt" "figure cat-wrapper" "close close";
    grid-template-rows: repeat(2, auto) 1fr;
    grid-template-columns: 25.875rem 25rem;
    gap: 2rem 2.875rem;
  }
}
@media screen and (max-width: 767px) {
  .p-works__modal {
    grid-template: "figure" "ttl" "txt" "cat-wrapper" "close";
    width: 100%;
    max-width: 21.875rem;
    padding: 1.25rem;
  }
}
.p-works__modal.--js-active {
  display: grid;
}
.p-works__modal.--is-landscape {
  grid-template: "figure" "ttl" "txt" "cat-wrapper" "close";
}
.p-works__modal-figure {
  grid-area: figure;
  max-height: 80vh;
}
@media screen and (max-width: 767px) {
  .p-works__modal-figure {
    margin-bottom: 1.5rem;
  }
}
.p-works__modal-figure > img {
  object-fit: contain;
}
.p-works__modal-ttl {
  grid-area: ttl;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: calc(24/20);
}
@media screen and (max-width: 767px) {
  .p-works__modal-ttl {
    margin-bottom: 1.5rem;
  }
}
.p-works__modal-txt {
  grid-area: txt;
  font-size: 0.875rem;
  line-height: calc(24/14);
}
@media screen and (max-width: 767px) {
  .p-works__modal-txt {
    margin-bottom: 2rem;
    font-size: 0.9375rem;
  }
}
.p-works__modal-cat {
  display: flex;
  font-weight: 700;
  line-height: calc(19/16);
}
.p-works__modal-cat-wrapper {
  display: flex;
  flex-wrap: wrap;
  grid-area: cat-wrapper;
  gap: 0.3125rem 1.125rem;
  align-self: start;
}
@media screen and (max-width: 767px) {
  .p-works__modal-cat-wrapper {
    margin-bottom: 2rem;
  }
}
.p-works__modal-cat::before {
  flex: 0 1 auto;
  content: "# ";
}
.p-works__modal-close {
  grid-area: close;
  justify-self: center;
  width: 3.125rem;
  height: 3.125rem;
  background: url("../images/works/works-modal-close.svg") top center/contain no-repeat;
}

#works-content {
  margin-bottom: 5.5rem;
}
@media screen and (max-width: 767px) {
  #works-content {
    margin-bottom: 4rem;
  }
}