@charset "UTF-8";

/* 制作実績一覧 */
.works-section {
  padding: 80px 0 0;
}

.works-section__inner {
  width: min(calc(100% - var(--space-content-sp)), var(--content-width));
  margin-inline: auto;
}

.works-grid {
  display: grid;
  gap: 40px;
}

.work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 16px;
  border: 3px solid var(--color-text);
  background: var(--color-white);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.work-card__type {
  font-family: "Space Grotesk", var(--font-base);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.work-card h3 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.work-card__media {
  display: none;
  margin: 24px 0 30px;
}

.work-card__media.is-loaded {
  display: block;
}

.work-card__image {
  display: none;
  width: 100%;
  height: auto;
}

.work-card__image.is-loaded {
  display: block;
}

.work-card__details {
  display: grid;
  gap: 24px;
  margin: 0;
}

.work-card__details dt {
  color: var(--color-red);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.work-card__details dd {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.work-card__details li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.work-card__details li::before {
  color: var(--color-green);
  content: "•";
  font-weight: 900;
  text-align: center;
}

.work-card__link {
  position: relative;
  display: grid;
  grid-template-columns: max-content 18px;
  place-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  margin: 30px 4px;
  padding: 0.75rem 8px;
  border: 4px solid var(--color-red);
  box-shadow: 6px 7px 0 var(--color-yellow);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.work-card__link img {
  width: 18px;
  height: 18px;
  transition: transform 0.22s ease;
}

.works-section__plans-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 480px);
  margin: 80px auto 0;
  padding: 20px 64px 20px 24px;
  border: 4px solid var(--color-red);
  box-shadow: 6px 7px 0 var(--color-yellow);
  background: var(--color-white);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.works-section__plans-arrow {
  position: absolute;
  top: 50%;
  right: 32px;
  color: var(--color-red);
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.22s ease;
}

.site-main + .contact-cta {
  margin-top: 140px;
}

/* WORKSページのスクロール演出 */
.works-reveal {
  opacity: 0;
  transition:
    opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.works-reveal--heading {
  transform: translateX(-20px);
}

.works-reveal--content {
  transform: translateY(20px);
}

.works-reveal--card {
  transform: translate(8px, 18px);
}

.works-reveal .heading-highlight {
  background-size: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.7s ease-out calc(var(--reveal-delay, 0ms) + 220ms);
}

.works-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

.works-reveal.is-revealed .heading-highlight {
  background-size: 100% 100%;
}

@media (hover: hover) {
  .work-card__link {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }

  .work-card__link:hover {
    box-shadow: 8px 9px 0 var(--color-yellow);
    transform: translate(-2px, -2px);
  }

  .work-card__link:hover img {
    transform: translate(3px, -3px);
  }

  .works-section__plans-link:hover {
    box-shadow: 8px 9px 0 var(--color-yellow);
    transform: translate(-2px, -2px);
  }

  .works-section__plans-link:hover .works-section__plans-arrow {
    transform: translate(3px, -50%);
  }
}

@media (min-width: 1080px) {
  .works-section {
    padding-top: 112px;
  }
}
