/* WORKS detail: original 100cqw XD composition, scaled with the page width. */
.works-detail {
  position: relative;
  height: 1540.72px;
  color: var(--blue);
}

.works-detail__meta {
  position: absolute;
  left: 410px;
  top: 102.5px;
  display: flex;
  align-items: center;
  gap: 35px;
  height: 34px;
}

.works-detail__meta time {
  font-size: 24px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: 1px;
}

.works-detail__meta span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 34px;
  border: 1px solid #7d9dc5;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
}

.works-detail h2 {
  position: absolute;
  left: 410px;
  top: 172.22px;
  margin: 0;
  width: 1100px;
  font-size: 28px;
  line-height: 50px;
  font-weight: 900;
}

.works-detail__image {
  position: absolute;
  left: 410px;
  top: 308px;
  width: 1100px;
  height: 500px;
  border-radius: 16px;
  background: #b5b5b5;
}

.works-detail__facts {
  position: absolute;
  left: 410px;
  top: 854.82px;
  margin: 0;
  display: grid;
  grid-template-columns: 257.5px 440px;
  row-gap: 11.27px;
}

.works-detail__facts > div {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 44px;
}

.works-detail__facts dt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 107.5px;
  height: 44px;
  border: 1px solid #7d9dc5;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.works-detail__facts dd {
  margin: 0;
  color: #373a38;
  font-size: 18px;
  line-height: 30px;
  white-space: nowrap;
}

.works-detail__facts > div:last-child dt {
  width: 139.5px;
}

.works-detail__product {
  position: absolute;
  left: 410px;
  top: 993.7px;
  margin: 0;
  font-size: 20px;
  line-height: 42px;
  font-weight: 700;
}

.works-detail__text {
  height: 177px;
  overflow: hidden;
  position: absolute;
  left: 410px;
  top: 1095.3px;
  width: 1100px;
  margin: 0;
  color: #373a38;
  font-size: 18px;
  line-height: 34px;
  font-weight: 500;
}

.works-detail__back {
  position: absolute;
  left: 780px;
  top: 1323.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  height: 90px;
  padding-right: 28px;
  border: 3px solid var(--blue);
  border-radius: 100px;
  background: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 5px 5px 0 #1b4a8029;
  --press-shadow-x: 5px;
  --press-shadow-y: 5px;
  --press-shadow-color: #1b4a8029;
}

.works-detail__back i {
  position: absolute;
  right: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font: normal 26px/1 Arial, sans-serif;
}

@media all {
  .works-detail {
    height: auto;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px 56px;
  }
  .works-detail__meta {
    position: static;
    gap: 20px;
    height: auto;
  }
  .works-detail__meta time {
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
  }
  .works-detail__meta span {
    width: auto;
    height: auto;
    padding: 4px 14px;
    border-width: 1px;
    border-radius: 40px;
    font-size: 12px;
  }
  .works-detail h2 {
    position: static;
    width: auto;
    margin-top: 20px;
    font-size: 26px;
    line-height: 1.7;
  }
  .works-detail__image {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 1100/500;
    margin-top: 28px;
    border-radius: 14px;
  }
  .works-detail__facts {
    position: static;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    margin-top: 28px;
  }
  .works-detail__facts > div {
    height: auto;
    align-items: flex-start;
    gap: 12px;
  }
  .works-detail__facts dt, .works-detail__facts > div:last-child dt {
    width: auto;
    flex: 0 0 96px;
    height: auto;
    padding: 6px;
    border-width: 1px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
  }
  .works-detail__facts dd {
    font-size: 16px;
    line-height: 1.8;
    white-space: normal;
  }
  .works-detail__product {
    position: static;
    margin-top: 28px;
    font-size: 18px;
    line-height: 1.8;
  }
  .works-detail__text {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.9;
  }
  .works-detail__back {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%,360px);
    height: 56px;
    margin: 40px auto 0;
    padding-right: 24px;
    border-width: 2px;
    border-radius: 60px;
    font-size: 16px;
    box-shadow: 5px 5px 0 #1b4a8029;
    --press-shadow-x: 5px;
    --press-shadow-y: 5px;
    --press-shadow-color: #1b4a8029;
  }
  .works-detail__back i {
    right: 18px;
    width: 26px;
    height: 26px;
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .works-detail {
    padding: 32px 16px 40px;
  }
  .works-detail h2 {
    font-size: 22px;
  }
  .works-detail__facts {
    grid-template-columns: minmax(0,1fr);
  }
}
