/* ———————————————————————————————————————————
  施工実績ページ：MAPから探す
——————————————————————————————————————————— */
.p-mapSearch {
  width: min(100% - 50px, 1350px);
  margin-inline: auto;
  padding-top: 89px;
}

@media screen and (max-width: 767px) {
  .p-mapSearch {
    padding-top: 45px;
  }
}

.p-mapSearch__lead {
  margin-top: 30px;
  line-height: calc(46 / 28);
}

@media screen and (max-width: 767px) {
  .p-mapSearch__lead {
    margin-top: 20px;
    font-size: 14px;
  }
}

.c-dot {
  display: inline-block;
  width: 0.875em;
  height: 0.875em;
  border-radius: 50em;
}
.c-dot.-kenchiku {
  background-color: #009944;
}
.c-dot.-doboku {
  background-color: #f65007;
}
.c-dot.-setsubi {
  background-color: #0068b7;
}

.p-mapSearch__lead .c-dot {
  margin-inline: 1px;
}

.p-mapSearch__legend {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 8px;
}

@media screen and (max-width: 767px) {
  .p-mapSearch__legend {
    gap: 10px;
    font-size: 14px;
  }
}

.p-mapSearch__legend ._item {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}

.p-mapSearch__map {
  width: 100%;
  height: 630px;
  background-color: #eee;
}
@media screen and (max-width: 767px) {
  .p-mapSearch__map {
    width: 100vw;
    height: auto;
    margin-inline: calc(50% - 50vw);
    aspect-ratio: 750 / 980;
  }
}

.p-mapSearch__note {
  text-align: right;
  margin-top: 8px;
}

@media screen and (max-width: 767px) {
  .p-mapSearch__note {
    font-size: 14px;
  }
}

.p-mapSearch__error {
  font-size: 13px;
  color: #c00;
  padding: 20px;
  background-color: #fdf0f0;
  text-align: center;
}

/*
Google Maps InfoWindow内のポップアップカード
（InfoWindowはiframe/独自DOMのため、theme共通クラスは使わず専用クラスで組む）
*/
.gm-style .gm-style-iw-c {
  padding: 5px 2px 10px 20px !important;
  border-radius: 0 !important;
}

html:not(.is-chrome) .gm-style .gm-style-iw-c {
  padding-right: 20px !important;
}

@media (max-width: 767px) {
  .gm-style .gm-style-iw-c {
    padding: 0 15px 15px !important;
    max-width: initial !important;
  }
}

.gm-style .gm-style-iw-c button[aria-label='閉じる'] {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  background-color: #d2d2d2 !important;
  border-radius: 50%;
  opacity: 1 !important;
  z-index: 10 !important;
}

@media (max-width: 767px) {
  .gm-style .gm-style-iw-c button[aria-label='閉じる'] {
    width: 32px !important;
    height: 32px !important;
  }
}

.gm-style .gm-style-iw-c button[aria-label='閉じる'] span {
  margin: 0 !important;
}

/*
InfoWindowの閉じるボタンはGoogle側のインラインstyleが強いため、クラス指定でも上書きして言語差分（閉じる/Close）に依存しないようにする
*/
.p-mapSearch .gm-style .gm-style-iw-chr .gm-ui-hover-effect {
  border-radius: 50% !important;
}

.p-mapSearch .gm-style .gm-style-iw-tc {
  display: none !important;
}

.p-mapPopup {
  display: block;
  width: 324px;
  color: inherit;
}
@media (hover: hover) {
  .p-mapPopup:hover .p-mapPopup__img img {
    transform: scale(1.05);
  }
}

@media (max-width: 767px) {
  .p-mapPopup {
    width: calc(454 / 750 * 100vw);
  }
}

.p-mapPopup__img {
  width: 100%;
  aspect-ratio: 324 / 216;
  overflow: hidden;
  margin: 0;
}
.p-mapPopup__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.8s ease;
}

.p-mapPopup__body {
  display: grid;
  gap: 10px;
  padding-top: 20px;
}

.p-mapPopup__catList {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 6px;
}

.p-mapPopup__cat {
  padding: 5px 10px 3px;
  border: 1px solid #333;
  font-size: 11px;
  line-height: 1.2;
}

.p-mapPopup__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .p-mapPopup__title {
    font-size: 14px;
  }
}

.p-mapPopup__btn {
  margin-inline: auto;
}

@media (max-width: 767px) {
  .p-mapPopup__btn {
    width: 100%;
  }
}

/* ———————————————————————————————————————————
　施工実績ページ：一覧から探す
——————————————————————————————————————————— */
.p-listSearch {
  padding-top: 89px;
}
@media screen and (max-width: 767px) {
  .p-listSearch {
    padding-top: 45px;
  }
}

.p-mapSearch + .p-listSearch {
  padding-top: 56px;
}

@media screen and (max-width: 767px) {
  .p-mapSearch + .p-listSearch {
    padding-top: 30px;
  }
}

.p-listSearch__inner {
  width: min(100% - 50px, 1350px);
  margin-inline: auto;
}

.p-listSearch .l-contaside {
  padding-top: 60px;
}
@media screen and (max-width: 767px) {
  .p-listSearch .l-contaside {
    padding-top: 30px;
  }
}
