@charset "UTF-8";

/* 事業内容（依頼書 第3部 第5項） */

/* ===== ④ 施工実績 ===== */
.works {
  padding: 64px 0 80px;
  scroll-margin-top: 60px;
}

.works__intro {
  margin: 24px 0 32px;
  font-size: clamp(1.3rem, 1.2143rem + 0.2198vw, 1.5rem);
  font-weight: 500;
  line-height: 1.8;
}

.works__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.works__item {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
}

.works__title {
  font-size: clamp(1.5rem, 1.3286rem + 0.4396vw, 1.9rem);
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
}

.works__photo {
  overflow: hidden;
  aspect-ratio: 470 / 313;
  border-radius: 8px;
  background: var(--color-panel);
}

.works__photo picture {
  width: 100%;
  height: 100%;
}

.works__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works__text {
  font-size: clamp(1.2rem, 1.1143rem + 0.2198vw, 1.4rem);
  font-weight: 500;
  line-height: 1.6;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .works {
    padding: calc(var(--px) * 120) 0;
    scroll-margin-top: 0;
  }

  .works__intro {
    margin: calc(var(--px) * 40) 0;
    font-size: clamp(1.182rem, 0.001rem + 1.1534vw, 2.077rem);
    line-height: 2;
  }

  .works__list {
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--px) * 24);
  }

  .works__item {
    gap: calc(var(--px) * 40);
    padding: calc(var(--px) * 40);
    border-radius: 20px;
  }

  .works__title {
    font-size: clamp(1.497rem, 0.0006rem + 1.4613vw, 2.631rem);
  }

  .works__photo {
    border-radius: 6px;
  }

  .works__text {
    font-size: clamp(1.103rem, 0.0011rem + 1.076vw, 1.938rem);
    line-height: 1.7;
  }
}

/* ===== 仮原稿の札（修正2）：中央寄せの文では札も中央に ===== */
.works__title .sample-tag {
  margin-right: auto;
  margin-left: auto;
}
