@charset "UTF-8";

/**
* 03_お気に入りポップアップ
*
* Date: 2025-08-01
*/

.contents .modal_favorite {
  display: none;
  height: var(--inner-height, 100vh);
  left: 0;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 400;
}

.contents .modal_favorite_box {
  background: #fff;
  border-radius: 12px;
  left: 50%;
  padding: 25px 30px 30px;
  position: absolute;
  text-align: center;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 400px;
  z-index: 2;
}

.contents .modal_favorite_box .tit {
  color: var(--color-primary-bg3);
  font-size: 1.92rem;
  font-weight: 600;
  line-height: 1.47;
  margin-bottom: 20px;
  text-align: center;
}

.contents .modal_favorite_box .txt_01 {
  align-items: flex-start;
  display: inline-flex;
  justify-content: center;
  margin: 0 auto 20px;
}

.contents .modal_favorite_box .txt_01 .icon {
  margin-right: 18px;
  width: 48px;
}

.contents .modal_favorite_box .txt_01 p {
  font-size: 1.56rem;
  font-weight: 600;
  line-height: 1.54;
}

.contents .modal_favorite_box .txt_02 {
  color: var(--color-text-gray);
  font-size: 1.32rem;
  line-height: 1.55;
  margin-bottom: 15px;
  text-align: center;
}

.contents .modal_favorite_box .btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-border-form);
  border-radius: 50px;
  display: flex;
  font-size: 1.4rem;
  font-weight: 600;
  height: 50px;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
  width: 168px;
}

.contents .modal_favorite_close {
  aspect-ratio: 1/1;
  background: url(../img/modal_close.svg) center center/100% auto no-repeat;
  font-size: 0;
  overflow: hidden;
  position: absolute;
  z-index: 3;
}

.contents .modal_favorite_close {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.contents .modal_favorite_overlay {
  background: rgba(0, 0, 0, 0.7);
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

@media screen and (min-width: 961px), print {
  .contents .modal_favorite_close {
    right: -10px;
    top: -10px;
    width: 30px;
  }
}

@media screen and (max-width: 960px) {
  .contents .modal_favorite_close {
    right: -10px;
    top: -12px;
    width: 29px;
  }
}

@media screen and (max-width: 600px) {
  .contents .modal_favorite_box {
    border-radius: 2.67vw;
    padding: 5.33vw 6.67vw 6.67vw;
    width: 80vw;
  }

  .contents .modal_favorite_box .tit {
    font-size: 4.27vw;
    margin-bottom: 4vw;
  }

  .contents .modal_favorite_box .txt_01 {
    margin-bottom: 4.27vw;
  }

  .contents .modal_favorite_box .txt_01 .icon {
    margin: 1.33vw 4vw 0 0;
    width: 10.67vw;
  }

  .contents .modal_favorite_box .txt_01 p {
    font-size: 3.47vw;
    line-height: 1.55;
  }

  .contents .modal_favorite_box .txt_02 {
    font-size: 2.93vw;
    line-height: 1.55;
    margin-bottom: 4.27vw;
  }

  .contents .modal_favorite_box .btn {
    font-size: 3.2vw;
    height: 11.07vw;
    width: 37.33vw;
  }

  .contents .modal_favorite_close {
    right: -2.8vw;
    top: -3.2vw;
    width: 7.73vw;
  }
}

@media (hover: none) {
  .contents .modal_favorite_box .btn {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  .contents .modal_favorite_box .btn:active {
    background: var(--color-bg-gray-light);
    opacity: 1;
  }

  .contents .modal_favorite_close {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  .contents .modal_favorite_close:active {
    opacity: 0.65;
  }
}

@media (-ms-high-contrast: none), (-ms-high-contrast: active), (-moz-touch-enabled: 0), (hover: hover) {
  .contents .modal_favorite_box .btn:hover {
    background: var(--color-bg-gray-light);
    opacity: 1;
  }

  .contents .modal_favorite_close:hover {
    opacity: 0.65;
  }
}