
/* =========================
   Project Knit All Together
========================= */

.project-main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 170px 8.4% 100px;
  box-sizing: border-box;
}

/* Project Intro */

.project-intro {
  max-width: 1024px;
  margin: 0 auto;
  text-align: center;
}

.project-title {
  font-family: var(--font-mincho);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 16px;
}

.project-subtitle {
  font-size: 13px;
  line-height: 1.8;
    margin-bottom: 80px;
}

.project-lead {
  max-width: 760px;
  margin: 56px auto 0;
  font-size: 14px;
  line-height: 2.2;
  text-align: left;
}

/* Project Content */

.project-content {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  text-align: left;
}

.project-text {
  width: 50%;
  font-size: 14px;
  line-height: 2.2;
  margin-bottom: 30px;
    text-align: left;
}

.project-text-left {
  margin-right: auto;
}

.project-text-right {
  margin-left: auto;
}

.project-image img {
  display: block;
  width: 100%;
  height: auto;
}

.project-image-full {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto 30px;
}

/* Gallery */

.project-gallery {
  max-width: 1024px;
  margin: 0 auto 30px;
}

.project-gallery-grid {
  display: grid;
  gap: 4px;
}

.project-gallery-grid-four {
  grid-template-columns: repeat(2, 1fr);
}

.project-caption {
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.8;
}
/* Three photographs：横3列専用 */
.project-gallery-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-gallery-three .project-image {
  margin: 0;
  width: 100%;
}

.project-gallery-three .project-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Credits */

.project-credits {
  max-width: 520px;
  margin: 100px auto 0;
  text-align: center;
}

.project-credits-title {
  font-family: var(--font-cantarell);
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 28px;
}

.project-credits-list {
  font-family: var(--font-cantarell);
  font-size: 11px;
  line-height: 2;
}

.project-credits-list > div {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.project-credits-list dt {
  min-width: 100px;
  text-align: right;
}

.project-credits-list dd {
  text-align: left;
}

/* =========================
   SP
========================= */

@media screen and (max-width: 768px) {
    body.profile-page.project-page main.project-main {
    padding-top: 100px;
  }

  .project-main {
    padding: 24px 6% 64px;
  }

  .project-intro {
    margin-bottom: 30px;
  }

  .project-title {
    font-size: 24px;
  }
 .project-subtitle {
    font-size: 14px;
    margin: 0 auto 40px;
  }
  .project-lead {
    margin-top: 30px;
  }

  .project-content {
    margin-bottom: 30px;
  }

  .project-text {
    width: 100%;
    margin-bottom: 28px;
    font-size: 16px;
  }

  .project-gallery {
    margin-bottom: 20px;
  }

  .project-gallery-grid-four {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-credits {
    margin-top: 72px;
  }

}

/* =========================
   Knit All Together Collage
========================= */

.project-gallery-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  max-width: 1024px;
  width: 100%;
  margin: 0 auto 30px;
}

.project-gallery-collage .project-image {
  width: 100%;
  margin: 0;
}

.project-gallery-collage .project-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* SP */
@media screen and (max-width: 768px) {
  .project-gallery-collage {
    margin-bottom: 30px;
  }
}

/* =========================
   Staff
========================= */

.project-credits {
  width: 100%;
  max-width: 640px;
  margin: 100px auto 80px;
  text-align: center;
}

.project-credits-title {
  font-family: var(--font-mincho);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 30px;
}

.project-credits-list {
      font-family: var(--font-mincho);
        font-size: 13px;
  width: 100%;
}

.project-credits-list > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  align-items: baseline;
  margin-bottom: 15px;
}

.project-credits-list dt {
  text-align: right;
}

.project-credits-list dd {
  text-align: left;
}

/* SP */
@media screen and (max-width: 768px) {
.project-credits-title {
  font-size: 15px;
}
  .project-credits {
    max-width: 100%;
    margin: 72px auto 56px;
  }

  .project-credits-list {
    font-size: 15px;
  }

  .project-credits-list > div {
    grid-template-columns: 1fr 1.5fr;
    column-gap: 10px;
    margin-bottom: 14px;
  }

}
/* 写真のフェードイン */

.project-page .project-image {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.project-page .project-image.is-visible {
  opacity: 1;
  transform: translateY(0);
}