.collective-service-space {
  padding: 40px 16px 80px;
}
.collective-service-space__container {
  max-width: 1238px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.collective-service-space__heading {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.collective-service-space__title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 40px;
  font-weight: 300;
  font-style: normal;
  line-height: 120%;
  margin: 0 0 24px;
  color: #393C41;
  letter-spacing: normal;
}
.collective-service-space__subtitle {
  font-family: "Oswald", sans-serif;
  color: #A6A9AB;
  font-size: 11px;
  letter-spacing: normal;
  font-weight: 400;
  line-height: 120%;
}
.collective-service-space__cta-button {
  display: flex;
  justify-content: flex-end;
}
.collective-service-space__cta-button .btn--filled {
  max-width: 248px;
}
.collective-service-space__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.collective-service-space__card {
  position: relative;
  height: auto;
  background: #f4f4f4;
  box-shadow: 1px 0 0 #A6A9AB, 0 1px 0 #A6A9AB, 1px 1px 0 #A6A9AB, 1px 0 0 #A6A9AB inset, 0 1px 0 #A6A9AB inset;
  transition: all 0.4s ease;
  cursor: pointer;
}
.collective-service-space__card .btn__arrow {
  position: relative;
  display: flex;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
}
.collective-service-space__card .btn__arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  transform: rotate(0deg);
  transition: transform 0.5s ease;
  z-index: 0;
}
.collective-service-space__card .btn__arrow img {
  width: 11px;
  height: 7px;
  transform: rotate(0deg);
  transition: transform 0.5s ease;
  position: relative;
  z-index: 1;
}
.collective-service-space__card:hover .collective-service-space__image img {
  transform: scale(1.1);
}
.collective-service-space__card:hover .btn__arrow::before {
  transform: rotate(-24deg);
}
.collective-service-space__card:hover .btn__arrow img {
  animation: arrowFly 0.6s ease-in-out;
}
.collective-service-space__card:hover .collective-service-space__card-title {
  transition: all 0.6s ease;
}
.collective-service-space__card-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  justify-content: center;
  padding-top: 40px;
  display: none;
}
.collective-service-space__card-image.is-pc {
  display: flex;
}
.collective-service-space__card-image.is-sp {
  display: none;
}
.collective-service-space__image {
  width: 240px;
  height: 240px;
  overflow: hidden;
}
.collective-service-space__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.collective-service-space__card-content {
  padding: 24px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: self-end;
  letter-spacing: normal;
}
.collective-service-space__card-content-item {
  flex: 1;
}
.collective-service-space__card-title {
  font-family: "Commissioner", sans-serif;
  font-size: 16px;
  color: #393C41;
  line-height: 130%;
  margin-bottom: 8px;
  transition: all 0.4s ease;
  height: 19px;
  font-weight: 400;
}
.collective-service-space__card-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  color: #333;
  font-weight: 400;
  line-height: 100%;
  margin: 0;
}
.collective-service-space__card-arrow {
  position: relative;
  display: flex;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
}
.collective-service-space__card-arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  transform: rotate(0deg);
  transition: transform 0.5s ease;
  z-index: 0;
}
.collective-service-space__card-arrow img {
  width: 11px;
  height: 7px;
  transform: rotate(0deg);
  transition: transform 0.5s ease;
  position: relative;
  z-index: 1;
}
.collective-service-space__card-arrow:hover .btn__arrow::before {
  transform: rotate(-24deg);
}
.collective-service-space__card-arrow:hover .btn__arrow img {
  animation: arrowFly 0.6s ease-in-out;
}
.collective-service-space__card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

@keyframes arrowFly {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  30% {
    transform: translateX(15px);
    opacity: 0;
  }
  35% {
    transform: translateX(-15px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (max-width: 960px) {
  .collective-service-space {
    padding: 56px 16px;
  }
  .collective-service-space__container {
    gap: 40px;
    max-width: 375px;
  }
  .collective-service-space__content {
    grid-template-columns: repeat(2, 1fr);
  }
  .collective-service-space__title {
    font-size: 28px;
    margin: 0 0 16px;
  }
  .collective-service-space__card-image.is-pc {
    display: none;
  }
  .collective-service-space__card-image.is-sp {
    display: flex;
    padding-top: 0;
  }
  .collective-service-space__image {
    width: 140px;
    height: 140px;
    margin-bottom: 16px;
  }
  .collective-service-space__card-content {
    padding: 20px 16px 10px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    height: 100%;
  }
  .collective-service-space__card-content .btn__arrow {
    order: 2;
    align-self: flex-end;
    width: 26px;
    height: 26px;
  }
  .collective-service-space__card-text {
    line-height: 1.8;
  }
  .collective-service-space__card-content-item {
    order: 1;
  }
  .collective-service-space__card-title {
    font-size: 13px;
    height: 32px;
    margin-bottom: 16px;
  }
  .collective-service-space__cta-button .btn--filled {
    max-width: 228px;
  }
  .collective-service-space__cta-button .btn__arrow {
    align-items: center;
  }
}