@charset "UTF-8";
/* 活動報告ページ：絞り込み検索 UI */

/* 標準の.wrap(max-width:1000px)より広くする */
.maparea .wrap {
  max-width: 1120px;
}

.search-map-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}
.search-map-layout .map-col {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}
.map-col .map_txt {
  position: absolute;
  top: 20%;
  left: 20%;
  z-index: 2;
}
.map-col .map_txt h2 {
  white-space: nowrap;
  line-height: 2.4;
}
.map-col .map_txt h2 span::before {
  display: inline-block;
  width: 1.6rem;
  height: 2.3rem;
  padding-left: 0;
  margin-right: .6rem;
  vertical-align: middle;
  background-size: contain;
  background-position: center;
}
.map-col svg {
  display: block;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ---------- filter panel ---------- */
.filter-panel {
  flex: 0 0 32rem;
  width: 32rem;
  background: #F2FBFF;
  border: 1px solid #cfe9f2;
  padding: 1.6rem 1.6rem .8rem;
  box-sizing: border-box;
}
.filter-panel button,
.filter-panel input {
  font-family: inherit;
}

.filter-heading {
  font-size: 1.6rem;
  margin: 0 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid #007B9A;
}
.filter-heading .filter-note {
  font-size: 1.4rem;
  font-weight: normal;
  color: #555;
  margin-left: .5rem;
}

.filter-group {
  margin-bottom: .8rem;
}
.filter-group-label {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  color: #005D7C;
  margin-bottom: .3rem;
}

.filter-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid #007B9A;
  color: #003b4a;
  padding: .8rem 1.1rem;
  font-size: 1.4rem;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}
.filter-toggle[aria-expanded="true"] {
  border-radius: 8px 8px 0 0;
}
.filter-toggle::after {
  content: '';
  flex: 0 0 auto;
  width: .8rem;
  height: .8rem;
  border-right: 2px solid #007B9A;
  border-bottom: 2px solid #007B9A;
  transform: rotate(45deg);
  transition: transform .2s;
}
.filter-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}
.filter-toggle-current {
  color: #007B9A;
  font-weight: bold;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-dropdown {
  border: 1px solid #cfe9f2;
  border-top: none;
  background: #fff;
  padding: 1rem;
  max-height: 32rem;
  overflow-y: auto;
  border-radius: 0 0 8px 8px;
}
.filter-dropdown fieldset {
  border: none;
  margin: 0;
  padding: 0;
}
.filter-dropdown label {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.3rem;
  padding: .4rem 0;
  cursor: pointer;
}
.filter-dropdown .count {
  color: #666;
  font-size: 1.2rem;
}

.filter-dropdown-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2eef2;
}
.filter-dropdown-actions button {
  background: #f5fbfd;
  border: 1px solid #007B9A;
  color: #007B9A;
  font-weight: bold;
  font-size: 1.2rem;
  padding: .4rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color .15s;
}
.filter-dropdown-actions button:hover {
  background: #e0f2f8;
}

.filter-region {
  margin-bottom: 1rem;
}
.filter-region-legend {
  width: 100%;
  padding: 0;
  margin: 0 0 .3rem;
}
.filter-region-select-all {
  font-weight: bold;
  border-bottom: 1px solid #e2eef2;
  width: 100%;
  padding-bottom: .3rem;
}
.filter-region-prefs {
  padding-left: 1.8rem;
}

#filter-keyword {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #007B9A;
  padding: .8rem 1.1rem;
  font-size: 1.4rem;
  border-radius: 8px;
}

.filter-footer {
  display: flex;
  align-items: center;
  margin-top: 1.2rem;
  margin-bottom: .5rem;
}

.filter-reset {
  flex: 0 0 auto;
  background: #000;
  border: 1px solid #000;
  color: #fff;
  font-weight: bold;
  padding: .6rem 1.3rem;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 8px;
}

.filter-count {
  flex: 1 1 auto;
  text-align: center;
  font-size: 1.6rem;
  margin: 0;
}
.filter-count strong {
  color: #007B9A;
  font-size: 2.4rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.filter-chip {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.2rem;
  padding: .5rem .6rem .5rem 1rem;
  border-radius: 999px;
}
.filter-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  background: rgba(0, 0, 0, .18);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  color: inherit;
  transition: background-color .15s;
}
.filter-chip button:hover {
  background: rgba(0, 0, 0, .32);
}
.filter-chip--type {
  background-color: #007B9A;
  color: #fff;
}
.filter-chip--pref {
  background-color: #ddf3ff;
  color: #005D7C;
}
.filter-chip--year {
  background-color: green;
  color: #fff;
}
.filter-chip--keyword {
  background-color: #fff;
  color: #000;
  border: 1px solid #ff9a4d;
}

.maparea svg a.is-filtered-out {
  cursor: default;
}
.maparea svg a.is-filtered-out path:not(.ca),
.maparea svg a.is-filtered-out polygon:not(.ca),
.maparea svg a.is-filtered-out rect:not(.ca),
.maparea svg a.is-filtered-out polyline:not(.ca) {
  fill: #bfd5d8 !important;
}
.maparea svg a.is-filtered-out path.ca {
  fill: #000 !important;
}

@media (max-width: 979px) {
  .search-map-layout {
    flex-direction: column;
  }
  .filter-panel {
    width: 100%;
    flex: 1 1 auto;
  }
  .map-col {
    width: 100%;
  }
  .map-col .map_txt {
    top: 20%;
    left: 8%;
  }
  .map-col .map_txt h2 {
    white-space: normal;
    line-height: 1.6;
  }

  /* iOSのinput対応 */
  #filter-keyword {
    font-size: 16px;
  }
}
