@charset "UTF-8";
/* map-wide.css  市区町村の地図ページだけ、PCで横幅を広く使う */

#wrapper,
#content {
  width: auto !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  box-sizing: border-box;
}

#content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas:
    "filter filter"
    "map    list";
  column-gap: 16px;
  row-gap: 16px;
  padding: 16px 16px 24px !important;
}

/* 想定外の要素（読み込み表示・フッターなど）は横いっぱいに */
#content > * {
  grid-column: 1 / -1;
}

#content > .filterBox { grid-area: filter; }
#content > #mainBorder { grid-area: map; }
#content > #sidebar { grid-area: list; }

#content > .filterBox,
#content > #mainBorder,
#content > #sidebar {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  box-sizing: border-box;
}

#content > #thisTerm {
  display: none;
}

/* 地図 */
#mainBorder #mainContent {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}
#mainBorder .mapSection {
  width: auto !important;
  margin: 0 !important;
}
#map {
  width: 100% !important;
  height: calc(100vh - 170px) !important;
  min-height: 520px;
}

/* 一覧：地図と同じ高さで、中だけスクロール */
#sidebar {
  height: calc(100vh - 170px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
#sidebar #tab-box {
  flex: 1;
  min-height: 0;
  width: auto !important;
}
#sidebar #tab-box > section {
  height: 100%;
  display: flex;
  flex-direction: column;
}
#sidebar #tab-box > section > div {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* 少し狭い画面では一覧を細く */
@media (max-width: 1000px) {
  #content {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}