/* 施工実績一覧 */
.works-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--size-24);
  margin-bottom: var(--size-40);
}

.works-list-item {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.works-list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.works-list-item__image {
  width: 100%;
  height: var(--size-240);
  position: relative;
}

.works-list-item__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-light-gray2);
}

.image-placeholder {
  color: var(--color-text-gray);
  font-size: var(--size-14);
  text-align: center;
}

.works-list-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.works-list-item__content {
  padding: var(--size-16) var(--size-8);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.works-list-item__title {
  font-size: var(--size-18);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--size-12);
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

.works-list-item__meta {
  margin-top: auto;
  font-size: var(--size-14);
}

.works-list-item__location,
.works-list-item__date {
  margin-top: var(--size-4);
}

/* フィルターフォーム */
.works-filter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--size-24);
  background: var(--color-bg-light-gray2);
  padding: var(--size-32);
  gap: var(--size-40);
}

.works-carousel-wrapper {
  width: 100%;
  background: var(--color-text-black);
  padding: var(--size-32) 0 var(--size-24) 0;
}

.works-filter-selects {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--size-40);
}

.works-filter-selects select {
  width: 235px;
  height: 44px;
  box-sizing: border-box;
  padding: 0 var(--size-16);
  border: 1px solid var(--color-text-gray);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--size-16) center;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* フォーカス時のすべてのセレクトボックス */
.works-filter-selects select:focus {
  outline: none;
  border-color: var(--color-main-blue);
  box-shadow: 0 0 0 2px rgba(var(--color-main-blue-rgb), 0.1);
}

/* ホバー時のすべてのセレクトボックス */
.works-filter-selects select:hover {
  border-color: var(--color-text-black);
}

/* セレクトボックスのラベル表示 */
.works-filter-select {
  position: relative;
}

.works-filter-submit {
  min-width: var(--size-160);
}

/* 検索結果なしメッセージ */
.works-no-results {
  text-align: center;
  padding: var(--size-40) 0;
  color: var(--color-text-gray);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .works-list {
    grid-template-columns: repeat(1, 1fr);
    gap: var(--size-16);
  }

  .works-list-item__image {
    height: var(--size-200);
  }

  .works-list-item__title {
    font-size: var(--size-16);
  }

  .works-list-item__meta {
    font-size: var(--size-12);
  }

  .works-filter-form {
    flex-direction: column;
    padding: var(--size-16);
  }

  .works-filter-selects {
    flex-direction: column;
    width: 100%;
    gap: var(--size-16);
  }

  .works-filter-select {
    width: 100%;
  }

  .works-filter-selects select {
    width: 100% !important;
    max-width: none;
    min-width: 0;
  }

  .works-filter-submit {
    width: 100%;
  }

  .works-filter-buttons {
    margin-top: var(--size-16);
    width: 100%;
    display: flex;
    gap: var(--size-16);
  }

  .works-filter-buttons .button {
    flex: 1;
    min-width: unset;
  }

  .works-carousel-wrapper {
    padding: var(--size-24) 0 var(--size-16) 0;
  }
}
