@charset "utf-8";

.gift-diagnosis-entry,
.gift-diagnosis-banner-entry{
  margin:24px 0;
  text-align:center;
}

.gift-diagnosis-entry{
  background:#faf6f1;
  border:1px solid #eadfd3;
  border-radius:16px;
  padding:18px;
}

.gift-diagnosis-entry__lead{
  margin:0 0 6px;
  font-size:14px;
  font-weight:700;
  color:#8b5e3c;
  line-height:1.6;
}

.gift-diagnosis-entry__text{
  margin:0 0 14px;
  font-size:14px;
  color:#5b5148;
  line-height:1.8;
}

.gift-diagnosis-entry__btn{
  appearance:none;
  border:none;
  cursor:pointer;
  background:linear-gradient(180deg,#9b6d49 0%,#7d5334 100%);
  color:#fff;
  border-radius:999px;
  padding:12px 22px;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
}

.gift-diagnosis-banner-entry__link{
  display:block;
  max-width:640px;
  margin:0 auto;
  text-decoration:none;
  cursor:pointer;
}

.gift-diagnosis-banner-entry__image{
  display:block;
  width:100%;
  height:auto;
  border:0;
  border-radius:14px;
  box-shadow:0 8px 24px rgba(63,35,18,0.12);
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.gift-diagnosis-banner-entry__link:hover .gift-diagnosis-banner-entry__image{
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(63,35,18,0.18);
  opacity:.98;
}

.gift-diagnosis-banner-entry__note{
  margin:10px 0 0;
  font-size:13px;
  color:#6b5d50;
  line-height:1.7;
}

.gift-diagnosis-modal{
  position:fixed;
  inset:0;
  z-index:9999;
}

.gift-diagnosis-modal__bg{
  position:absolute;
  inset:0;
  background:rgba(40,25,15,.58);
}

.gift-diagnosis-modal__box{
  position:relative;
  z-index:2;
  width:min(980px,calc(100% - 24px));
  height:min(90vh,820px);
  margin:24px auto;
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,.22);
}

.gift-diagnosis-modal__close{
  position:absolute;
  top:10px;
  right:10px;
  z-index:3;
  width:40px;
  height:40px;
  border:none;
  border-radius:999px;
  background:#f3ece4;
  color:#5f4330;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.gift-diagnosis-modal__header{
  position:absolute;
  top:0;
  left:0;
  right:0;
  z-index:2;
  padding:14px 56px 10px 18px;
  background:linear-gradient(180deg,rgba(255,253,249,.98) 0%,rgba(255,253,249,.92) 100%);
  border-bottom:1px solid #efe2d4;
}

.gift-diagnosis-modal__kicker{
  margin:0 0 4px;
  font-size:12px;
  font-weight:700;
  color:#8b5e3c;
  line-height:1.4;
}

.gift-diagnosis-modal__title{
  margin:0;
  font-size:18px;
  font-weight:700;
  color:#4a2f1b;
  line-height:1.5;
}

.gift-diagnosis-modal__iframe{
  width:100%;
  height:100%;
  border:none;
  background:#fff;
  padding-top:72px;
}

@media screen and (max-width:767px){
  .gift-diagnosis-entry,
  .gift-diagnosis-banner-entry{
    margin:20px 0;
  }

  .gift-diagnosis-entry{
    padding:16px 14px;
  }

  .gift-diagnosis-entry__lead{
    font-size:13px;
  }

  .gift-diagnosis-entry__text{
    font-size:13px;
  }

  .gift-diagnosis-entry__btn{
    width:100%;
    padding:12px 16px;
  }

  .gift-diagnosis-modal__box{
    width:calc(100% - 16px);
    height:calc(100vh - 16px);
    margin:8px auto;
    border-radius:16px;
  }

  .gift-diagnosis-modal__header{
    padding:12px 52px 10px 14px;
  }

  .gift-diagnosis-modal__title{
    font-size:16px;
  }

  .gift-diagnosis-modal__iframe{
    padding-top:68px;
  }
}