@import url(common.css);

.select_block {
  padding: 2em 1.5em 0;
}

/*
------------------------
都道府県タイトルブロック
------------------------- */
.area-ui__label {
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: left;
  gap: 0.5em;
}
.area-ui__label img {
  display: block;
  width: clamp(25px, 35.6vw, 35px);
  height: auto;
}

/* 必須ラベル
------------------------- */
.required {
  display: inline-block;
  font-size: 65%;
  background-color: var(--main_red);
  color: #fff;
  padding: 0.3em 0.6em;
  margin-left: 0.5em;
  font-weight: 400;
}

/*
-----------------------
◯◯県ボタンブロック
------------------------- */
.pref-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1em 0;
}

.pref-btn {
  font-size: clamp(16px, 3.52vw, 17px);
  appearance: none;
  border: 1px solid #cfd8cf;
  background: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.pref-btn.is-active {
  background: #2e9b57;
  color: #fff;
  border-color: #2e9b57;
}

.city-acc details {
  border: 1px solid #d7ded7;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.city-acc summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
}

.city-acc summary::-webkit-details-marker {
  display: none;
}

.city-acc .city-list {
  padding: 10px 14px 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

@media (min-width: 900px) {
  .city-acc .city-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.city-acc a {
  display: block;
  padding: 8px 10px;
  border: 1px solid #e3e8e3;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  background: #f7faf7;
}

.city-acc a:hover {
  filter: brightness(0.98);
}

/* -------------------------


もっと詳しく検索するアコーディオンブロック
（.more-search）


------------------------- */

.more-search {
  margin-top: 2em;
  display: none;
}

/* アコーディオン本体
------------------------- */
.more-search__details {
  border: 1px solid #d7ded7;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

/* アコーディオントリガー部分
------------------------- */
.more-search__summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
}
.more-search__details[open] .more-search__summary {
  border-bottom: 1px solid #eef2ee;
}

/* アコーディオンの中身
------------------------- */
.more-search__accordion__body {
  padding: 2em 1.5em 1.5em;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}
.more-search__accordion__body div select,
.more-search__accordion__body .work-cat-group {
  margin-top: 0.5em;
}

/* 画面に出さず、JSのために残す */
.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 検索結果ブロック
------------------------- */
/* .more-search__body {
} */

/* -------------------------
◯◯工事に対応していますブロック
------------------------- */
.support-summary {
  margin: 2em 0 1.5em;
  padding: 12px 14px;
  border-radius: 7px;
  background: #fffbd7;
}

/* 対応状況タイトル
------------------------- */
.support-summary__title {
  font-weight: 800;
  margin: 0 0 6px;
  text-align: center;
}

/* 対応状況の内容
------------------------- */
.support-summary__list {
  text-align: center;
}
.support-summary__list li {
  margin: 4px 0;
}

#workName option.option-disabled {
  color: #bbb;
}
#workName.is-disabled {
  opacity: 0.6;
}
/* カテゴリ未選択時：select自体を薄く */
#workName.is-disabled {
  opacity: 0.6;
}

/* optionを薄く（効かないブラウザもあります） */
#workName option.option-disabled {
  color: #bbb;
}

/* 工事の種類（カテゴリ）を無効化したとき */
.work-cat-item.is-disabled {
  opacity: 0.35;
  pointer-events: none; /* クリック不可 */
}
