/* 施工事例 - エリア検索フィルター */

.gallery-category-section {
  padding: 40px 0 30px;
}

.gallery-search-filter {
  /* background: #fff;
  padding: 20px; */
  /* border: 1px solid #ddd; */
}

/* アコーディオン */
.gallery-search-filter__accordion {
  margin-bottom: 20px;
}

.gallery-search-filter__accordion-trigger {
  width: 100%;
  padding: 15px 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  font-size: 1.6rem;
  font-weight: 500;
  font-family: var(--noto-fonts);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.gallery-search-filter__accordion-trigger:hover {
  background: #f0f0f0;
}

.gallery-search-filter__accordion-icon {
  transition: transform 0.3s ease;
}

.gallery-search-filter__accordion-trigger.is-open
  .gallery-search-filter__accordion-icon {
  transform: rotate(180deg);
}

.gallery-search-filter__accordion-content {
  display: none;
  padding: 20px;
  border: 1px solid #ddd;
  border-top: none;
}

.gallery-search-filter__accordion-content.is-open {
  display: block;
}

/* アイテムグループ（エリア・タグ共通） */
.gallery-search-filter__item-group {
  margin-bottom: 20px;
}

.gallery-search-filter__item-group:last-child {
  margin-bottom: 0;
}

.gallery-search-filter__item-parent {
  display: inline-block;
  width: 210px;
  padding: 10px 8px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  font-size: 1.4rem;
  font-weight: 500;
  font-family: var(--noto-fonts);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.gallery-search-filter__item-parent:hover {
  background: #f9f9f9;
}

.gallery-search-filter__item-parent.is-active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* 子カテゴリー */
.gallery-search-filter__item-children {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-search-filter__item-child {
  width: 100px;
  padding: 10px 8px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  font-size: 1.4rem;
  font-family: var(--noto-fonts);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-search-filter__item-child:hover {
  background: #f9f9f9;
}

.gallery-search-filter__item-child.is-active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* タグリスト */
.gallery-search-filter__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-search-filter__tag-item {
  padding: 10px 20px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 1.4rem;
  font-family: var(--noto-fonts);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-search-filter__tag-item:hover {
  background: #f9f9f9;
}

.gallery-search-filter__tag-item.is-active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* アクションボタン */
.gallery-search-filter__actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.gallery-search-filter__submit {
  width: 100%;
  max-width: 300px;
  padding: 15px 30px;
  background: #333;
  color: #fff;
  border: none;
  font-size: 1.6rem;
  font-weight: 500;
  font-family: var(--noto-fonts);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-search-filter__submit:hover {
  background: #333;
}

.gallery-search-filter__reset {
  color: #666;
  font-size: 1.4rem;
  font-family: var(--noto-fonts);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
}

.gallery-search-filter__reset:hover {
  color: #333;
}

/* 検索結果表示 */
.gallery-search-filter__results {
  margin-top: 20px;
  font-size: 1.4rem;
  font-family: var(--noto-fonts);
  text-align: center;
}

.gallery-search-filter__results-label {
  font-weight: 500;
  color: #333;
  margin-right: 10px;
}

.gallery-search-filter__results-text {
  color: #666;
}

/* カテゴリーページのヘッダー */
.gallery-category-head {
  margin-top: 30px;
  padding: 20px 0;
  border-bottom: 2px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-category-head .category-title {
  font-size: 2.4rem;
  font-weight: 500;
  color: #333;
}

.gallery-category-head .category-title .sub {
  font-size: 1.6rem;
  color: #999;
  margin-left: 10px;
}

.gallery-category-head .releasebtn {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  color: #666;
  text-decoration: none;
  border: 1px solid #ddd;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.gallery-category-head .releasebtn:hover {
  background: #f5f5f5;
  border-color: #999;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .gallery-category-section {
    padding: 30px 0 20px;
  }

  .gallery-search-filter {
    padding: 20px 15px;
  }

  .gallery-search-filter__accordion-trigger {
    font-size: 1.4rem;
    padding: 12px 15px;
  }

  .gallery-search-filter__accordion-content {
    padding: 15px;
  }

  .gallery-search-filter__item-parent {
    font-size: 1.4rem;
    padding: 10px 15px;
  }

  .gallery-search-filter__item-children {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-search-filter__item-child {
    font-size: 1.3rem;
    padding: 8px 12px;
  }

  .gallery-search-filter__tag-item {
    font-size: 1.3rem;
    padding: 8px 15px;
  }

  .gallery-search-filter__submit {
    font-size: 1.4rem;
    padding: 12px 25px;
  }

  .gallery-search-filter__reset {
    font-size: 1.3rem;
  }

  .gallery-category-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 20px;
    padding: 15px 0;
  }

  .gallery-category-head .category-title {
    font-size: 2rem;
  }

  .gallery-category-head .category-title .sub {
    font-size: 1.4rem;
  }

  .gallery-category-head .releasebtn {
    font-size: 1.3rem;
    padding: 6px 12px;
  }
}

.gallery-category-head .category-title {
  font-size: 2rem;
}
