/* =========================================================
   Events Filter (inline) — インラインフィルターバー
   blocks/events-filter/style.css
   ========================================================= */

/* =========================================
   フィルターバー全体
   ========================================= */
.events-filter-bar {
  padding: 20px 0;
}

.events-filter-bar__top,
.events-filter-bar__bottom {
  width: 100%;
}

/* =========================================
   上段：道府県チェックボックス
   ========================================= */
.events-filter-prefecture {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px 0;
}

.events-filter-prefecture__label {
  font-family: var(--wp--preset--font-family--ja-serif);
  font-size: 14px;
  color: var(--wp--preset--color--black);
  margin-right: 8px;
}

.events-filter-prefecture__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wp--preset--font-family--ja-serif);
  font-size: 14px;
  color: var(--wp--preset--color--black);
  cursor: pointer;
}

.events-filter-prefecture__item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--wp--preset--color--black);
  cursor: pointer;
}

/* =========================================
   下段：イベントタイプボタン
   ========================================= */
.events-filter-types {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 15px 0;
  flex-wrap: wrap;
}

.events-filter-type-btn {
  appearance: none;
  background: transparent;
  border: none;
  padding: 8px 0;
  font-family: var(--wp--preset--font-family--ja-serif);
  font-size: 14px;
  color: var(--wp--preset--color--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: opacity 0.2s ease;
}

.events-filter-type-btn:hover {
  opacity: 0.7;
}

.events-filter-type-btn .arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

/* アクティブ状態のボタン */
.events-filter-type-btn.is-active {
  font-weight: 600;
}

.events-filter-type-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--wp--preset--color--black);
}

/* =========================================
   レスポンシブ：モバイル（SP）
   ========================================= */
@media (max-width: 768px) {
  .events-filter-bar {
    padding: 15px 0;
  }

  /* 道府県チェックボックス：中央寄せ、縦並び */
  .events-filter-prefecture {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
  }

  .events-filter-prefecture__label {
    margin-right: 0;
    margin-bottom: 4px;
  }

  /* タイプボタン：2x2グリッド */
  .events-filter-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px 0;
  }

  .events-filter-type-btn {
    justify-content: center;
    font-size: 13px;
  }
}

/* =========================================
   アクセシビリティ
   ========================================= */
.events-filter-type-btn:focus-visible {
  outline: 2px solid var(--wp--preset--color--black);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .events-filter-type-btn,
  .events-filter-type-btn .arrow {
    transition: none !important;
  }
}
