/* ============================================================
   Projects セクション（事例紹介）
   Figma 基準: PC 1280px
   ============================================================ */

.projects {
  background: #fff;
}

.projects__inner {
  padding-block: clamp(100px, 16vh, 200px);
  padding-inline: clamp(40px, 7.66vw, 100px);
  max-width: 1512px;
  margin-inline: auto;
}

/* ============================================================
   ヘッダー（PROJECTS SVG + 事例紹介）
   ============================================================ */
.projects__header {
  margin-bottom: clamp(48px, 6vh, 88px);
}

.projects__logo {
  display: block;
  height: clamp(32px, 4.1vw, 53px);
  width: auto;
  margin-bottom: clamp(12px, 1.5vw, 25px);
}

.projects__subtitle {
  margin: 0;
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.48vw, 19px);
  color: #3d405b;
  letter-spacing: 0.69em;
  line-height: 2.04;
}

/* ============================================================
   カードグリッド
   PC: 2列、行間 81px、列間 19px
   ============================================================ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(12px, 1.48vw, 19px);
  row-gap: clamp(48px, 6.3vw, 81px);
  margin-bottom: clamp(48px, 6.3vw, 81px);
}

/* ============================================================
   プロジェクトカード
   ============================================================ */
.project-card__image {
  background: #f8f8f8;
  aspect-ratio: 530 / 382; /* Figma カード画像エリアの比率 */
  overflow: hidden;
  margin-bottom: clamp(16px, 1.56vw, 20px);
  padding: clamp(24px, 5.9vw, 74px);
}

.project-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.project-card__title {
  margin: 0 0 clamp(16px, 2.2vw, 28px);
  padding-inline: clamp(16px, 2.9vw, 38px); /* Figma: (530-455)/2 ≈ 37px */
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-weight: 700;
  font-size: clamp(17px, 1.87vw, 24px);
  color: #1d2029;
  line-height: 1.62;
  text-align: center;
}

.project-card__desc {
  margin: 0;
  padding-inline: clamp(16px, 2.9vw, 38px);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #1d2029;
  line-height: 2;
}

/* ============================================================
   その他の参画プロジェクト（下部グレーボックス）
   ============================================================ */
.projects__other {
  background: #f8f8f8;
  padding: clamp(24px, 2.8vw, 36px) clamp(32px, 4.5vw, 57px) clamp(16px, 2vw, 25px);
}

.projects__other-title {
  margin: 0 0 clamp(8px, 0.86vw, 11px);
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.41vw, 18px);
  color: #1d2029;
  line-height: 2.14;
}

.projects__other-desc {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #1d2029;
  line-height: 2.14;
}

.projects__other-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 40px;
}

@media (max-width: 767px) {
  .projects__other-list {
    grid-template-columns: 1fr;
  }
}

.projects__other-list li {
  padding-left: 1.2em;
  position: relative;
  font-size: 14px;
  color: #1d2029;
  line-height: 1.8;
}

.projects__other-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #aaa;
}

/* ============================================================
   レスポンシブ: SP（〜 767px）
   ============================================================ */
@media (max-width: 767px) {

  .projects__inner {
    padding-inline: clamp(20px, 6vw, 32px);
    padding-block: clamp(60px, 8vh, 100px);
  }

  .projects__logo {
    height: 48px;
  }

  .project-card__image img {
    object-fit: contain;
    object-position: center;
  }
}

@media (min-width: 768px) {
  .project-card__title br {
    display: none;
  }
}

@media (max-width: 767px) {
  /* 1列 */
  .projects__grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .project-card__title {
    font-size: 18px;
  }

  .project-card__desc {
    font-size: 14px;
  }

  .projects__other {
    padding: 24px 20px 20px;
  }
}
