﻿body:has(.wrapper_ .search-modal.is-active) {
  overflow: hidden;
}

.main-visual__txt {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #FFFFFF;
  text-align: center;
  transform: translate(-50%, -50%);
  margin: 0 auto;
  z-index: 3;
}
.main-visual__title {
  position: initial;
  transform: none;
}
.main-visual__search-btn {
  margin-top: 30px;
  position: relative;
  background: #081570;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  padding: 20px 66px 20px 35px;
  border: 1px solid #081570;
  border-radius: 15px;
  transition: 0.2s;
  cursor: pointer;
  width: 436px;
  margin: 30px auto;
}
.main-visual__search-btn:hover {
  background: #FFF;
  color: #081570;
}
.main-visual__search-btn::after {
  content: "+";
  position: absolute;
  right: 25px;
  top: 48%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: bold;
}

@media screen and (max-width: 767px) {
  .main-visual__search-btn {
    margin-top: 10px;
    font-size: 13px;
    padding: 10px 15px 10px 15px;
    border-radius: 10px;
    width: 280px;
    text-align: center;
  }
  .main-visual__search-btn::after {
    right: 15px;
    font-size: 16px;
    top: 50%;
  }
}



/* 基本的なスタイル */
.search-modal__switch-content-checkbox {
  position: relative;
  width: 110px;
  margin: 0 auto;
}
.search-modal__switch-content-checkbox label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.search-modal__switch-content-checkbox label > div {
  border-radius: 50%;
  width: 110px;
  height: 110px;
  background: #F7F7F7;
  display: flex;
  justify-content: center;
  align-items: center;
}
.search-modal__switch-content-checkbox img {
  width: 80px;
  height: 80px;  
}
.search-modal__switch-content-checkbox label > p {
  margin-top: 4px;
  font-size: 12px;
}


.search-modal__switch-content-checkbox label::before {
  content:"";
  background:#C4C4C4;
  position: absolute;
  top: 10px;
  right: 0px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transform:translateY(-50%);
}
.search-modal__switch-content-checkbox label:after {
  content: "";
  width: 16px;
  height: 10px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  position: absolute;
  top: 9px;
  right: 19px;
  transform: rotate(-45deg) translate(9px, 1px);
}
.search-modal__switch-content-checkbox input[type="checkbox"] {
  position: absolute;
  top: calc(50% - 20px);
  left: -25px;
  display: none;
}
.search-modal__switch-content-checkbox:has(input[type="checkbox"]:checked) label:before {
  background: #0095E2;
}
.search-modal__switch-content-checkbox:has(input[type="checkbox"]:checked) label:after {
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.search-modal__switch-content-checkbox:has(input[type="checkbox"]:checked) label > div {
  background: #E8F1F6;
}

/* --- モーダル関連 --- */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1005;
}
.search-modal.is-active {
  display: flex;
  justify-content: center;
  align-items: center;
}
.search-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}
.search-modal__inner {
  position: relative;
  background-color: #fff;
  padding: 40px 0;
  border-radius: 15px;
  width: 90%;
  max-width: 1200px;
  z-index: 1001;
  max-height: 80vh;
  overflow: hidden;
  height: 815px;
  min-width: 1000px;
}
.search-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  background: #F5F5F5;
  border-radius: 50%;
}
.search-modal__close::before,
.search-modal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background-color: #333;
}
.search-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.search-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.search-modal__content {
  overflow: auto;
  height: calc(80vh - 80px);
}




/* --- タブ関連 --- */
.search-modal__tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 30px 0 15px;
  /* border-bottom: 1px solid #ccc; */
  justify-content: center;
  gap: 60px;
}
.search-modal__tab {
  padding: 8px 16px;
  cursor: pointer;
  border: 2px solid #242424;
  width: 380px;
  text-align: center;
  border-radius: 7px;
  font-size: 22px;
  font-weight: 500;
  position: relative;
  transition: 0.2s;
}
.search-modal__tab.is-active {
  font-weight: bold;
  border-color: #0095E2;
  color: #0095E2;
}
.search-modal__tab:after {
  content:"";
  border-top: 2px solid;
  border-right: 2px solid;
  width: 10px;
  height: 10px;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-40%) rotate(135deg);
  transition: 0.2s;
}
.search-modal__tab.is-active:after {
  transform: translateY(-10%) rotate(-45deg);
}
.search-modal__tab.-category span {
  position:absolute;
  top: -17.5px;
  left: -17.5px;
  display: block;
  background: #a00000;
  color: #fff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  line-height: 35px;
}
.search-modal__switch {
  display: none;
  border-top: 2px solid #F2F2F2;
}
.search-modal__switch.is-active {
  display: block;
}
.search-modal__switch-content {
  padding: 10px 0;
  display: flex;
  justify-content: left;
  gap: 40px;
  padding: 20px 100px;
  flex-wrap: wrap;
  height: 516px;
}
.search-modal__switch[data-content="price"] .search-modal__switch-content {
  padding: 30px 190px;
  display: block;
}
.search-modal__switch-content li {
  width: calc((100% - 200px) / 6);
}
.p-block-filter-contents-row-tit {
  font-size: 24px;
}

/**/
.search-modal__ttl {
  text-align: center;
  font-size:26px;
  font-weight: bold;
}

/* --- その他レイアウト --- */
.p-block-filter-price {
  display: flex;
  align-items: center;
  justify-content: left;
}
.p-block-filter-price-from,
.p-block-filter-price-to {
  position: relative;
  flex: 0 0 35%;
  max-width: 35%;
  justify-content: left;
}
.p-block-filter-price input {
  padding: 10px;
  border: 1px solid #707070;
  border-radius: 7px;
  background-color: #F5F5F5;
  font-size: 18px;
}
.p-block-filter-price-from-unit {
  color: #777;
  font-size: 20px;
  padding-left: 16px;
}
.p-block-filter-price-from-label {
  margin: 0 10px;
  flex: 0.2;
}
.search-modal__button {
  display: block;
  max-width: 420px;
  padding: 14px;
  background-color: #081570;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  margin: 20px auto 0;
  width: 90%;
}



@media screen and (min-width: 768px) {
  .fixed__search-btn {
    display: none !important;
  }
}
.fixed__search-btn {
  position: fixed;
  background: #081570;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 10px 15px 10px 20px;
  border: 1px solid #081570;
  border-radius: 10px;
  transition: 0.2s;
  cursor: pointer;
  width: auto;
  min-width: 245px;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 0;
  visibility: hidden;
}
.fixed__search-btn.is-active {
  opacity: 1;
  visibility: visible;
}
.fixed__search-btn::after {
  content: "+";
  position: absolute;
  right: 15px;
  font-size: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
}


@media screen and (max-width: 1024px) {
  .search-modal__inner {
    min-width: initial;
    max-height: initial;
    height: 100svh;
    width: 100%;
    border-radius: 0;
    padding: 0;
  }
  .search-modal__switch-content {
    padding: 20px;
    height: auto;
    gap: 30px;
  }
  .search-modal__switch-content li {
    width: calc((100% - 120px) / 5);
  }
}
@media screen and (max-width: 767px) {
  .search-modal__close {
    width: 30px;
    height: 30px;
    z-index: 10;
  }
  .search-modal__close::before, .search-modal__close::after {
    width: 16px;
  }
  .search-modal__content {
    height: 100svh;
    padding-bottom: 70px;
    position: relative;
  }
  .search-modal__tabs {
    gap: 16px;
    padding: 0 30px;
  }
  .search-modal__tab {
    width: 160px;
    font-size: 16px;
  }
  .search-modal__tab:after {
    border-top: 1px solid;
    border-right: 1px solid;
    width: 8px;
    height: 8px;
    right: 10px;
    transform: translateY(-60%) rotate(135deg);
  }
  .search-modal__tab.is-active:after {
    transform: translateY(-10%) rotate(-45deg);
  }
  .search-modal__switch-content-checkbox:has(input[type="checkbox"]:checked):before {
    
  }
  .search-modal__switch-content-checkbox label::before {
    width: 30px;
    height: 30px;
    top: 10px;
    right: 0;
  }
  .search-modal__switch-content-checkbox label::after {
    width:18px;
    height: 12px;
    top: 2px;
    right: 5px;
    transform: rotate(-45deg);
  }
  .search-modal__switch-content {
    gap: 15px 15px;
  }
  .search-modal__switch-content li {
    width: calc((100% - 30px) / 3);
  }
  .search-modal__switch-content-checkbox {
    width: 100%;
  }
  .search-modal__switch-content-checkbox label > div {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .search-modal__switch-content-checkbox img {
    width: 90%;
    height: auto;
  }
  .search-modal__switch-content-checkbox label > p {
    font-size: 10px;
    font-weight: bold;
  }

  .search-modal__ttl {
    background: #F7F7F7;
    font-size: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #DEDEDE;
  }

  .search-modal__switch[data-content="price"] .search-modal__switch-content {
    padding: 35px 20px;
  }
  .p-block-filter-contents-row-tit {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .p-block-filter-price-from,
  .p-block-filter-price-to {
    flex: 0 0 43%;
    max-width: 43%;
  }
  .p-block-filter-price input {
    padding: 6px 10px;
    height: 42px;
  }
  .p-block-filter-price-from-unit {
    padding-left: 6px;
    font-size: 14px;
  }
  .p-block-filter-price-from-label {
    margin: 0 15px;
  }

  .search-modal__button {
    padding: 10px;
    width: 80%;
    border-radius: 8px;
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    margin-top: 0;
  }
  .search-modal__content:before {
    content:"";
    width: 100vw;
    height: 70px;
    background: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1;
    opacity: 0.5;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
  }
  .search-modal__switch-content-checkbox input[type="checkbox"] {
    top: 0;
    left: 0;
    display: none;
  }
  .search-modal__tab.-category span {
    width: 24px;
    height: 24px;
    top: -12px;
    left: -12px;
    line-height: 24px;
    font-size: 14px;
  }
}