/* =============================================================
   支援実績一覧（/example/） 2026-11-12
   ・サイドバーをやめて3列表示
   ・絞り込みは一覧の下
   ・カードのタグ（プラットフォーム・業種・目的）は横並び
   ============================================================= */

/* カードのタグを横並びに（分類ページにも効く） */
.archive-works__item-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

.archive-works__item-tags .archive-works__item-head-category-wrap,
.archive-works__item-tags .archive-works__item-tag-list {
  margin-top: 0;
}

.archive-works__item-tags .archive-works__item-tag-list {
  flex-wrap: wrap;
  gap: 8px;
}

/* 一覧：サイドバーなしの3列 */
.archive-works-group .archive-works__flex {
  display: block;
}

.archive-works-group .archive-works__content {
  width: 100%;
  max-width: none;
}

@media screen and (min-width: 768px) {
  .archive-works-group .archive-works__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1000px) {
  .archive-works-group .archive-works__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 36px;
  }
}

/* 絞り込み（一覧の下） */
.works-filter {
  margin-top: 64px;
  padding: 32px 36px 36px;
  border-radius: 16px;
  background: #f5f5f5;
}

.works-filter__title {
  font-family: "Noto Sans JP", "Noto Sans jp", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
}

.works-filter__groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 18px;
}

.works-filter__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #1a1a1a;
}

.works-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
}

.works-filter__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: #1a1a1a;
  cursor: pointer;
}

.works-filter__check input {
  appearance: auto;
  -webkit-appearance: auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1a1a1a;
}

.works-filter__button {
  display: block;
  width: 320px;
  max-width: 100%;
  margin: 28px auto 0;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: #fff;
  background: #1a1a1a;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.works-filter__button:hover {
  opacity: 0.8;
}

@media screen and (max-width: 767px) {
  .works-filter {
    margin-top: 40px;
    padding: 24px 20px 28px;
  }

  .works-filter__title {
    font-size: 18px;
  }

  .works-filter__groups {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =============================================================
   左下の事例集ダウンロードのバナー（2026-11-12）PC のみ
   ============================================================= */
.works-dl {
  display: none;
}

@media screen and (min-width: 1000px) {
  .works-dl {
    display: block;
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 90;
    width: 248px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px -14px rgba(26, 26, 26, 0.45), 0 2px 8px rgba(26, 26, 26, 0.08);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .works-dl[hidden] {
    display: none;
  }

  .works-dl.is-show {
    opacity: 1;
    transform: translateY(0);
  }

  .works-dl__close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    color: #fff;
    background: #1a1a1a;
    cursor: pointer;
  }

  .works-dl__link {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    color: #1a1a1a;
  }

  .works-dl__img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f1ee;
  }

  .works-dl__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .works-dl__body {
    display: block;
    padding: 14px 18px 18px;
  }

  .works-dl__tag {
    display: inline-block;
    padding: 1px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    background: #ffe45c;
  }

  .works-dl__title {
    display: block;
    margin-top: 6px;
    font-family: "Noto Sans JP", "Noto Sans jp", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
  }

  .works-dl__btn {
    display: block;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    color: #fff;
    background: #1a1a1a;
    transition: opacity 0.2s ease;
  }

  .works-dl__link:hover .works-dl__btn {
    opacity: 0.8;
  }
}
