@charset "UTF-8";
/* ==============================
   年度絞り込み
============================== */

.select-flex {
  display: flex;
  gap: 12px;
}

.ir-filter {
  gap: 12px;
  margin-bottom: 30px;
}

.page-section .ir-filter__label {
  width: 100%;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.ir-dropdown__current {
  font-weight: normal;
}

.ir-dropdown {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.ir-dropdown__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 12px 55px 12px 18px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  background-color: #fff;
  border: 1px solid #aaaaaa;
  border-radius: 4px;
  cursor: pointer;
}

.ir-dropdown__button:hover {
  border-color: #5543a5;
}

.ir-dropdown__button:focus-visible {
  border-color: #5543a5;
  outline: 3px solid rgba(85, 67, 165, 0.2);
  outline-offset: 2px;
}

.ir-dropdown__icon {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}

.ir-dropdown.is-open .ir-dropdown__icon {
  transform: translateY(-30%) rotate(225deg);
}

.ir-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  width: 100%;
  max-height: 360px;
  padding: 8px;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid #aaaaaa;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ir-dropdown__menu[hidden] {
  display: none;
}

.ir-dropdown__option {
  display: block;
  width: 100%;
  padding: 12px 14px;
  color: #333;
  font-size: 16px;
  text-align: left;
  background-color: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}

.ir-dropdown__option:hover,
.ir-dropdown__option:focus-visible {
  color: #fff;
  background-color: #5543a5;
  outline: none;
}

.ir-dropdown__option.is-active {
  color: #fff;
  background-color: #5543a5;
}

.ir-filter__reset {
  min-height: 54px;
  padding: 12px 22px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  background-color: #5543a5;
  border: 1px solid #5543a5;
  border-radius: 4px;
  cursor: pointer;
}

.ir-filter__reset:hover {
  color: #5543a5;
  background-color: #fff;
}

.ir-filter__reset[hidden] {
  display: none;
}

.column [hidden] {
  display: none !important;
}

/* 既存の年度リンク一覧を非表示 */
.is-ir-filter-ready .sitelink_area {
  display: none;
}

/* 年度絞り込み専用の非表示クラス */
.ir-list > .is-ir-hidden,
.column > .is-ir-hidden {
  display: none !important;
}

@media screen and (max-width: 767px) {
  .ir-filter {
    display: block;
  }

  .ir-dropdown {
    max-width: none;
  }

  .ir-dropdown__button {
    min-height: 50px;
    font-size: 16px;
  }

  .ir-dropdown__menu {
    max-height: 300px;
  }

  .ir-filter__reset {
    width: 100%;
    margin-top: 12px;
  }
  .select-flex {
    flex-direction: column;
  }
}