/* アニメーション設定 */
@keyframes fadeIn {
  to {
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes opacity {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes ls--1em {
  to {
    letter-spacing: -1em;
  }
}

@keyframes ls--_5em {
  to {
    letter-spacing: -.5em;
  }
}

@keyframes move-LR_20em {
  from {
    transform: translateX(-20em);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes move-RL_20em {
  from {
    transform: translateX(20em);
  }

  to {
    transform: translateX(0);
  }
}

/* アニメーション設定 ここまで */

.main-hdr {
  align-items: center;
  background: url(../img/mv_ourwork_pc.jpg) no-repeat center top / 1920px auto;
  display: flex;
  height: 450px;
  justify-content: center;
}

.main-hdr-ttl {
  animation: opacity 3s ease-in-out 1s forwards;
  color: #000;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, .7)) drop-shadow(0 0 15px rgba(255, 255, 255, .7)) drop-shadow(0 0 10px rgba(255, 255, 255, .7)) drop-shadow(0 0 5px rgba(255, 255, 255, .7));
  opacity: 0;
  width: 1200px;
}

.main-hdr-ttl-main {
  animation: ls--1em 2s ease-in-out 1s reverse forwards;
  border-bottom: 2px solid #000;
  display: block;
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: .2em;
  padding-left: 2rem;
  width: 400px;
  will-change: letter-spacing;
}

.main-hdr-ttl-sub {
  animation: ls--_5em 2s ease-in-out 1s reverse forwards;
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .2em;
  padding-left: 2rem;
  will-change: letter-spacing;
}

.ourwork.section-ctr {
  background-color: #eaeaea;
  padding: 6rem 0 11.5rem;
}

.ourwork-wrapper {
  margin: 0 auto;
  width: 1200px;
}

.ourwork-wrapper:not(:first-of-type) {
  margin-top: 8rem;
}

.ourwork-wrapper.ourwork-1 {
  --ourwork-col: #009fa3;
}

.ourwork-wrapper.ourwork-2 {
  --ourwork-col: #683b93;
}

.ourwork-wrapper.ourwork-3 {
  --ourwork-col: #e94746;
}

.ourwork-hdr {
  display: grid;
  grid-template-columns: repeat(2, 50%);
  place-items: center self-start;
}

.ourwork-hdr-ttl {
  color: #fff;
  font-size: 7rem;
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: -.08em;
  margin-left: 1rem;
  transform: skew(-10deg);
}

.ourwork-hdr-catch {
  color: var(--ourwork-col);
  font-size: 1.8rem;
  font-weight: 700;
}

.ourwork-cat {
  background-color: #fff;
  column-gap: 10px;
  display: grid;
  grid-template-columns: 230px 960px;
  position: sticky;
  top: var(--mainHdr-height, 80px);
  z-index: 10;
}

.ourwork-cat-hdr {
  background-color: #fff;
  border-left: 10px solid #aeaeae;
}

.ourwork-cat-hdr-ttl {
  align-content: center;
  color: var(--ourwork-col);
  display: grid;
  font-weight: 700;
  height: 12rem;
  padding: 0 1rem;
  position: relative;
  width: fit-content;
}

.ourwork-cat-hdr-ttl::after {
  border-left: 10px solid var(--ourwork-col);
  content: "";
  display: block;
  height: 100%;
  left: -10px;
  position: absolute;
  top: 0;
}

.ourwork-cat-hdr-ttl-main {
  display: block;
  font-size: 5rem;
  line-height: 1;
}

.ourwork-cat-hdr-ttl-sub {
  display: block;
  font-size: 1.6rem;
  margin-left: .25em;
}

.ourwork-cat-hdr-txt {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -.02em;
  padding: 1rem 1rem 2rem;
}

.ourwork-cat-list {
  align-content: center;
  background-color: #fff;
  column-gap: 10px;
  display: grid;
  grid-template-columns: repeat(3, 300px);
  justify-content: center;
  row-gap: 10px;
}

.ourwork-cat-list-item {
  align-items: flex-end;
  background-color: var(--ourwork-col);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 2rem;
  font-weight: 700;
  height: 110px;
  justify-content: center;
  position: relative;
  transition: height .2s;
}

.ourwork-cat-list-item[data-content="1-1"] {
  --ourwork-cat-img: url(../img/img_ourwork-1-1_pc.jpg);
}

.ourwork-cat-list-item[data-content="1-2"] {
  --ourwork-cat-img: url(../img/img_ourwork-1-2_pc.jpg);
}

.ourwork-cat-list-item[data-content="1-3"] {
  --ourwork-cat-img: url(../img/img_ourwork-1-3_pc.jpg);
}

.ourwork-cat-list-item[data-content="1-4"] {
  --ourwork-cat-img: url(../img/img_ourwork-1-4_pc.jpg);
}

.ourwork-cat-list-item[data-content="1-5"] {
  --ourwork-cat-img: url(../img/img_ourwork-1-5_pc.jpg);
}

.ourwork-cat-list-item[data-content="1-6"] {
  --ourwork-cat-img: url(../img/img_ourwork-1-6_pc.jpg);
}

.ourwork-cat-list-item[data-content="2-1"] {
  --ourwork-cat-img: url(../img/img_ourwork-2-1_pc.jpg);
}

.ourwork-cat-list-item[data-content="2-2"] {
  --ourwork-cat-img: url(../img/img_ourwork-2-2_pc.jpg);
}

.ourwork-cat-list-item[data-content="2-3"] {
  --ourwork-cat-img: url(../img/img_ourwork-2-3_pc.jpg);
}

.ourwork-cat-list-item[data-content="3-1"] {
  --ourwork-cat-img: url(../img/img_ourwork-3-1_pc.jpg);
}

.ourwork-cat-list-item[data-content="3-2"] {
  --ourwork-cat-img: url(../img/img_ourwork-3-2_pc.jpg);
}

.ourwork-cat-list-item[data-content="3-3"] {
  --ourwork-cat-img: url(../img/img_ourwork-3-3_pc.jpg);
}

.ourwork-cat-list-item::before {
  background: var(--ourwork-cat-img);
  content: "";
  display: block;
  height: 100%;
  left: 0;
  opacity: .6;
  position: absolute;
  top: 0;
  transition: height 50ms ease-out, opacity .2s ease-out;
  width: 100%;
}

.ourwork-cat-list-item.active::before,
.ourwork-cat-list-item:hover::before {
  opacity: 1;
}

.ourwork-cat-list-item-txt {
  background-color: var(--ourwork-col);
  line-height: 1.5;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 1;
}

.ourwork-cat-list-item-txt::before {
  background: linear-gradient(transparent, var(--ourwork-col));
  content: "";
  display: block;
  height: 2rem;
  left: 0;
  position: absolute;
  top: 0;
  transform: translateY(-100%);
  width: 100%;
}

/* sticky状態の設定 */

.ourwork-cat.sticky::after {
  background: linear-gradient(rgba(0, 0, 0, .05), rgba(0, 0, 0, 0));
  bottom: 0;
  content: "";
  display: block;
  height: 1.5rem;
  left: 0;
  position: absolute;
  transform: translateY(100%);
  width: 100%;
}


.ourwork-cat.sticky .ourwork-cat-hdr-txt {
  display: none;
}

.ourwork-cat.sticky .ourwork-cat-list-item {
  height: calc(1.5em + 4px);
}

.ourwork-cat.sticky .ourwork-cat-list-item .ourwork-cat-list-item-txt {
  transition: background-color .2s, color .2s;
}

.ourwork-cat.sticky .ourwork-cat-list-item.active .ourwork-cat-list-item-txt,
.ourwork-cat.sticky .ourwork-cat-list-item .ourwork-cat-list-item-txt:hover {
  background-color: #fff;
  border: 2px solid var(--ourwork-col);
  color: var(--ourwork-col);
  padding: 0;
}

.ourwork-cat.sticky .ourwork-cat-list-item-txt {
  height: 100%;
  padding: 2px 0;
}

.ourwork-cat.sticky .ourwork-cat-list-item-txt::before {
  content: none;
}

/* sticky状態の設定 ここまで */

.ourwork-cat-content-wrapper {
  background-color: #fff;
  display: none;
  height: auto;
  overflow: hidden;
  transition: height .5s ease-in-out;
}

.ourwork-cat-content {
  display: none;
  opacity: 0;
  padding-bottom: 3rem;
  transition: opacity .5s ease-in-out;
}

.ourwork-cat-content.active {
  opacity: 1;
}

.ourwork-cat-content-hdr {
  align-items: center;
  background-color: var(--ourwork-col);
  display: flex;
  justify-content: center;
  min-height: 8rem;
}

.ourwork-cat-content-hdr-btn {
  align-items: center;
  background-color: transparent;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  height: 5rem;
  justify-content: center;
  position: relative;
  width: 5rem;
}

.ourwork-cat-content-hdr-btn.btn-prev::before,
.ourwork-cat-content-hdr-btn.btn-next::before {
  border-top: 2px solid #fff;
  content: "";
  display: block;
  height: 1.5rem;
  width: 1.5rem;
}

.ourwork-cat-content-hdr-btn.btn-prev::before {
  border-left: 2px solid #fff;
  transform: scaleY(.75) translateX(25%) rotate(-45deg);
}

.ourwork-cat-content-hdr-btn.btn-next::before {
  border-right: 2px solid #fff;
  transform: scaleY(.75) translateX(-25%) rotate(45deg);
}

.ourwork-cat-content-hdr-btn:hover {
  background-color: #fff;
}

.ourwork-cat-content-hdr-btn.btn-prev:hover::before,
.ourwork-cat-content-hdr-btn.btn-next:hover::before {
  border-color: var(--ourwork-col);
}

.ourwork-cat-content-hdr-ttl {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 500;
  text-align: center;
  width: 70%;
}

.ourwork-cat-content-inner {
  display: grid;
  gap: 3.5rem 4rem;
  grid-template-columns: repeat(2, 1fr);
  margin: 2.3rem auto 0;
  width: 840px;
}

.ourwork-cat-content-outline {
  grid-column: 1 / -1;
}

.ourwork-cat-content-outline-ttl {
  border-bottom: 1px solid #aeaeae;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.8;
}

.ourwork-cat-content-outline-txt {
  font-size: 1.4rem;
  line-height: 1.57;
  margin-top: 1rem;
}

.ourwork-cat-content-item-ttl {
  border-bottom: 1px solid var(--ourwork-col);
  color: var(--ourwork-col);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.8;
}

.ourwork-cat-content-item-catch {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 1rem;
}

.ourwork-cat-content-item-txt {
  font-size: 1.4rem;
  line-height: 1.57;
  margin-top: .5rem;
}

.ourwork-cat-content-item-ttl+.ourwork-cat-content-item-txt {
  margin-top: 1rem;
}

.ourwork-cat-content[data-content="2-2"] .ourwork-cat-content-item.content {
  margin-top: -7rem;
}

.content .ourwork-cat-content-item-ttl {
  border-bottom: 1px solid var(--ourwork-col);
}

.content .ourwork-cat-content-item-ttl-txt {
  background-color: var(--ourwork-col);
  color: #fff;
  display: block;
  padding: 0 .5em;
  width: fit-content;
}

.content .ourwork-cat-content-item-subttl {
  color: var(--ourwork-col);
  font-size: 1.6rem;
  font-weight: 500;
  margin-top: 1rem;
}

.ourwork-cat-content-img {
  align-items: center;
  display: flex;
  justify-content: center;
}

.ourwork-cat-content[data-content="2-2"] .ourwork-cat-content-img {
  justify-content: space-between;
}

.ourwork-cat-content[data-content="2-3"] .ourwork-cat-content-item-txt+.ourwork-cat-content-img {
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.ourwork-cat-content-item .ourwork-cat-content-item-catch+.ourwork-cat-content-img {
  display: block;
  margin-right: -1rem;
}

.ourwork-cat-content-item .ourwork-cat-content-item-catch+.ourwork-cat-content-img img {
  clear: both;
  float: right;
}

.ourwork-cat-content-item .ourwork-cat-content-item-catch+.ourwork-cat-content-img::before {
  content: "";
  display: block;
  float: right;
}

.ourwork-cat-content-item .ourwork-cat-content-item-catch+.ourwork-cat-content-img.img-float-1::before {
  height: 3.5rem;
}

.ourwork-cat-content-item .ourwork-cat-content-item-catch+.ourwork-cat-content-img.img-float-2::before {
  height: 5.3rem;
}

.ourwork-cat-content-item .ourwork-cat-content-item-catch+.ourwork-cat-content-img img::after {
  clear: both;
  content: "";
  display: block;
}

.ourwork-cat-content-close {
  align-items: center;
  background-color: var(--ourwork-col);
  border: none;
  color: #fff;
  display: flex;
  font-size: 1.6rem;
  font-weight: 500;
  height: 4rem;
  justify-content: center;
  margin: 5rem auto 2.5rem;
  text-align: center;
  width: 20rem
}