@charset "UTF-8";
/* ::::::::::  議員一覧  :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
/* =========================================================
絞り込み検索
========================================================= */

.custom-select-wrapper {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: rgba(151, 151, 151, 0.2);
  padding: 25px;
  gap: 20px;
  margin-bottom: 50px;
  font-weight: bold;
}
@media (max-width: 767px) {
  .custom-select-wrapper {
    justify-content: flex-start;
    gap: 15px;
    font-size: 17px;
    width: 100%;
    text-align: center;
    padding: 15px 25px 25px;
  }
}
.custom-select-trigger {
  background: #fff;
  padding: 15px 10px 15px 30px;
  cursor: pointer;
  width: 380px;
  position: relative;
  height: 60px;
  line-height: 30px;
}
@media (max-width: 767px) {
  .custom-select-trigger {
    padding: 15px 10px 15px 10px;
    width: 100%;
    height: 70px;
    line-height: 40px;
  }
}

.custom-select-trigger::after {
  content: "";
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 1px solid #222;
  border-bottom: 1px solid #222;
  transform: rotate(45deg);
  transition: 0.2s;
}

.custom-options.open~.custom-select-trigger::after,
.custom-select-trigger.open::after {
  transform: rotate(-135deg);
  top: 45%;
  transition: 0.2s;
}

.custom-options {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(30px, auto);
  gap: 5px;
  padding: 10px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  width: 1200px;
  top: 85px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: grid;
}

@media (max-width: 767px) {
  .custom-options {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(30px, auto);
    max-height: 380px;
    width: 100%;
    top: 135px;
    left: 0;
  }
}

.custom-options.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option:hover {
  background: #222;
  color: #fff;
  transition: 0.3s ease;
}

.custom-options .custom-option {
  text-align: center;
  cursor: pointer;
  line-height: 60px;
  height: 60px;
  font-weight: 500;
}
@media (max-width: 767px) {
  .custom-options .custom-option {
    font-size: 15px;
  }
}

.custom-options .custom-option.half {
  line-height: 25px;
  margin: 0;
  padding: 5px 0;
}

@media (max-width: 767px) {
  .custom-options .custom-option {
    line-height: 50px;
    height: 50px;
  }
  
  .custom-options .custom-option.half {
    line-height: 25px;
  }
}

.prefectures_box .prefectures_list{
  opacity: 0;
  transform: translateY(-10px); /* 初期状態で左に隠れる */
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  height: auto;
  overflow: hidden;
}

.prefectures_box.show .prefectures_list{
  opacity: 1;
  transform: translateY(0); /* スライドイン */
}
/* =========================================================
コンテンツ
========================================================= */

.prefectures_box p.prefectures {
  font-size: 27px;
  border-bottom: 1px solid #ccc;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 40px;
  font-weight: bold;
}
@media (max-width: 767px) {
  .prefectures_box p.prefectures {
    font-size: 18px;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }
}
.prefectures_box p.prefectures::before {
  content: "";
  width: 40px;
  height: 1px;
  background: #222;
  /* display: block; */
  bottom: -1px;
  position: absolute;
}
@media (max-width: 767px) {
  .prefectures_box p.prefectures::before {
    width: 56px;
  }
}
.prefectures_box ul {
  margin-bottom: 70px;
}
@media (max-width: 767px) {
  .prefectures_box ul {
    margin-bottom: 50px;
  }
}

.prefectures_box .prefectures_list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 30px;
}

.prefectures_box .prefectures_list li.list {
  width: 290px;
}
@media (max-width: 1024px) {
  .prefectures_box .prefectures_list li.list {
    width: calc(50% - 15px);
  }
}

.prefectures_box .prefectures_list li.list a{
  color: inherit;
  text-decoration: none;
}

.prefectures_box .prefectures_list li.list a img {
  width: 100%;
}

.prefectures_box .prefectures_list li.list a .prefectures_txt {
  background: #f3efe9;
  padding: 20px;
}
@media (max-width: 767px) {
  .prefectures_box .prefectures_list li.list a .prefectures_txt {
    padding: 12px;
  }
}
.prefectures_box .prefectures_list li.list a .prefectures_txt p {
  line-height: 1.8;
  font-size: 15px;
}
@media (max-width: 767px) {
  .prefectures_box .prefectures_list li.list a .prefectures_txt p {
    font-size: 12px;
  }
}
.prefectures_box .prefectures_list li.list a .prefectures_txt p.name {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
}
@media (max-width: 767px) {
  .prefectures_box .prefectures_list li.list a .prefectures_txt p.name {
    font-size: 15px;
    margin-bottom: 8px;
  }
}
.prefectures_box .prefectures_list li.list a .prefectures_txt p.name span {
  display: block;
  font-size: 12px;
  margin-top: -3px;
}

@media (max-width: 767px) {
  .prefectures_box .prefectures_list li.list a .prefectures_txt p.name span {
    font-size: 9px;
  }
}