.p-works__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.p-works__numWrap {
  grid-column: 1;
  grid-row: 1;
}

.p-works__accordion {
  grid-column: 1 / -1;
  grid-row: 2;
  z-index: 0;
  padding-right: 2rem;
  padding-bottom: 4.8rem;
}

.p-works__accordion:after {
  top: auto;
  right: auto;
  bottom: 1.2rem;
  left: 50%;
  margin: 0;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.p-works__copy {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin-right: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #f97598;
  color: #ffffff;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.p-works__copy:hover {
  background-color: #e85d84;
}

.p-works__copy:focus-visible {
  outline: 2px solid #f97598;
  outline-offset: 2px;
}

.p-works__copyIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
}

.p-works__copyIcon svg {
  display: block;
  width: 1.8rem;
  height: 1.8rem;
}

.p-works__copyIcon--check {
  display: none;
}

.p-works__copy.is-copied {
  background-color: #e85d84;
}

.p-works__copy.is-copied .p-works__copyIcon--link {
  display: none;
}

.p-works__copy.is-copied .p-works__copyIcon--check {
  display: flex;
}

.p-works__copyMessage {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%);
  display: none;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background-color: #4d4d4d;
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 900px) {
  .p-works__copyMessage {
    bottom: calc(8.8rem + 1.2rem);
  }
}

.p-works__copy.is-result .p-works__copyMessage {
  display: block;
}

@media screen and (max-width: 900px) {
  .p-works__copy {
    width: 44px;
    height: 44px;
  }

  .p-works__copyIcon,
  .p-works__copyIcon svg {
    width: 20px;
    height: 20px;
  }
}
