/* SHOP LIST
   現行サイトのクラス名を維持しつつ、
   統合サイト用に見た目・余白・バナー枠を調整
*/

.shop-list-trigger {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 900;
  width: 120px;
  height: 195px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.14));
  transition: opacity .2s ease;
}

.shop-list-trigger img {
  display: block;
  width: 120px;
  height: 195px;
}

.shop-list-trigger:hover,
.shop-list-trigger:focus-visible {
  transform: translateY(-50%);
  opacity: .7;
}

.shop-list-trigger:focus-visible {
  outline: 3px solid rgba(50, 47, 39, .35);
  outline-offset: 4px;
  border-radius: 8px 0 0 8px;
}

/* overlay */
.modal-icracked.modal-shop-list {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.modal-icracked.modal-shop-list.is-open {
  display: block;
}

.modal-icracked-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .52);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

/* modal */
.modal-icracked-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1180px, calc(100% - 64px));
  max-height: 90vh;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
}

.modal-icracked-box {
  max-height: 90vh;
  padding: 0 38px 28px;
  overflow-y: auto;
  color: #111;
  -webkit-overflow-scrolling: touch;
}

/* modal title */
.modal-icracked-box > h2 {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 126px;
  margin: 0 -38px;
  padding: 28px 84px 20px;
  background: #fff;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .02em;
}

/* shop groups */
.modal-shop-list-item {
  padding: 24px 0 34px;
}

.modal-shop-list-item + .modal-shop-list-item {
  margin-top: 0;
}

.modal-shop-list-item h3 {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #aaa;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.modal-shop-list-item h4 {
  margin: 18px 0 16px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

/* banners */
.modal-shop-list-bnrs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
  justify-content: start;
}

.modal-shop-list-bnrs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d6d6d6;
  background: #fff;
  text-decoration: none;
  transition: opacity .2s ease, border-color .2s ease;
}

.modal-shop-list-bnrs a:hover,
.modal-shop-list-bnrs a:focus-visible {
  opacity: .7;
  transform: none;
  box-shadow: none;
  border-color: #bbb;
}

.modal-shop-list-bnrs img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82px;
  object-fit: contain;
}

/* close */
.close__btn {
  position: absolute;
  top: 26px;
  right: 30px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  cursor: pointer;
}

.close__btn::before,
.close__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: #111;
}

.close__btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close__btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.close__btn span {
  display: none;
}

body.shop-list-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .shop-list-trigger {
    top: auto;
    right: 0;
    bottom: 82px;
    width: 92px;
    height: 150px;
    transform: none;
  }

  .shop-list-trigger img {
    width: 92px;
    height: 150px;
  }

  .shop-list-trigger:hover,
  .shop-list-trigger:focus-visible {
    transform: none;
    opacity: .7;
  }

  .modal-icracked-frame {
    width: calc(100% - 20px);
    max-height: 92vh;
  }

  .modal-icracked-box {
    max-height: 92vh;
    padding: 0 18px 20px;
  }

  .modal-icracked-box > h2 {
    min-height: 92px;
    margin: 0 -18px;
    padding: 22px 58px 16px;
    font-size: 26px;
  }

  .modal-shop-list-item {
    padding: 20px 0 26px;
  }

  .modal-shop-list-item h3 {
    font-size: 18px;
  }

  .modal-shop-list-item h4 {
    margin: 14px 0 12px;
    font-size: 14px;
  }

  .modal-shop-list-bnrs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .modal-shop-list-bnrs a {
    min-height: 62px;
  }

  .modal-shop-list-bnrs img {
    max-height: 62px;
  }

  .close__btn {
    top: 20px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}