.error{
  text-align: center;
  color: #f00;
  margin: 2em 0;
}

.fortune-top__img img{
  vertical-align: bottom;
}


.fortune-wrap{
  background: url(/common/images/fortune/fortune-bg.png) repeat-y 0 0;
  padding: 4em 0;
  background-size: 100%; 
  min-height: 750px;
}

.fortune-lead,
.fortune-result-lead{
  background: url(/common/images/fortune/fortune_lead_decoration.svg) no-repeat center 0;
  background-size: 170px auto;
  padding-top: 45px;
  margin: -2em 0 2em;
}

.fortune-lead p{
  text-align: center;
}

.fortune-lead .credit{
  font-size: 12px;
  margin-top: 1em;
}

.fortune-explan{
  width: 85%;
  padding: 1em;
  margin: 0 auto 4em;
  background: #fff;
  border: double 3px #999;
}

.fortune-explan-title{
  width: 190px;
  margin: 0 auto .5em;
}

.fortune-explan ul{
  list-style: none;
  font-size: 14px;
}

.fortune-explan ul li{
  margin-bottom: 1em;
  border-bottom: dotted 1px #eee;
  display: flex;
  align-items: flex-start;
  padding-bottom: .5em;
}
.fortune-explan ul li:last-child{
  border-bottom: none;
  padding-bottom: 0;
}

.fortune-explan ul li span{
  font-size: 11px;
  display: inline-block;
  margin-right: 5px;
  background: #e4dfcc;
  padding: .2em .5em;
  margin-right: 14px;
  flex-shrink: 0;
}

.fortune-card-defalut img{
  width: 250px;
  display: block;
  margin: 0 auto;
}

.fortune-card-defalut{
  cursor: pointer;
}

.fortune-card-defalut:hover{
  opacity: .6;
  transition: opacity .5s ease-out;
}

.fortune-btn img{
  width: 100%;
}

.fortune-btn{
  width: 250px;
  margin: 4rem auto 2rem;
  display: block;
}

.fortune-btn:hover{
  opacity: .6;
  transition: opacity .5s ease-out;
}

/*占いボタンをクリックしたら*/
.fortune-card-defalut.animate img{
  animation: cardAnimation 1.5s linear 1 forwards;
}

.fortune-lead.is-disabled,
.fortune-btn.is-disabled,
.fortune-card-defalut.is-disabled,
.fortune-explan.is-disabled{
  display: none;
}


@keyframes cardAnimation{
 0% {
  opacity: 0;
  transform: rotateY(-360deg) scaleX(0.3) scaleY(0.3);
  }
  99% {
    opacity: 1;
    transform: rotateY(0deg) scaleX(1.10) scaleY(1.10);
  }
  100% {
    opacity: 0;
    display: none;
  }
}

.fortune-result{
  display: none;
  opacity: 0;
}
.fortune-result.is-enable{
  display: block;
  animation: resultAnimation 1.5s ease-out forwards;
}

@keyframes resultAnimation{
 0% {
  opacity: 0;
  }
  100% {
  opacity: 1;
  }
}


.fortune-result-lead{
  margin-bottom: .4em; 
}
.fortune-result-lead p{
  text-align: center;
}

.fortune-result-horoscope{
  text-align: center;
  font-weight: bold;
  font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  font-size: 27px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.fortune-result-horoscope span{
  border: solid 1px #999;
  display: block;
  width: 34px;
  padding: 1px;
  box-sizing: border-box;
  border-radius: 100%;
  margin-right: 10px;
}
.fortune-result-horoscope span img{
  border: solid 1px #999;
  border-radius: 100%;
  padding: 4px;
  display: block;
}

.fortune-result-horoscope__img{
  width: 350px;
  margin: 0 auto 2em;
}

.fortune-result-horoscope-comment{
  margin: -1.8em auto 1em;
  position: relative;
  padding:0 1.5em; 
}

.fortune-result-horoscope-comment::after{
  content: "";
  background:#ece7d8;
  display: block;
  width: 70%;
  height: 155px;
  position: absolute;
  bottom: -5px;
  border-radius: 30px;
  right: 92px;
}

@media all and (-ms-high-contrast:none){
  *::-ms-backdrop, .fortune-result-horoscope-comment-inner { height: 190px; } 
}

.fortune-result-horoscope-comment-inner{
  background: url(/common/images/fortune/bubble.svg) 0 0 no-repeat;
  background-size: 97%;
  width: 80%;
  padding: 2em 3.5em 0em 2.5em;
  min-height: 190px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  font-size: 18px;
  justify-content: center;
}

.fortune-result-horoscope-comment-inner::before,
.fortune-result-horoscope-comment-inner::after{
  width: 45px;
  height:45px;
  position: absolute;
  display: block;
  content: "";
  opacity: .7;
}

.fortune-result-horoscope-comment-inner::before{
  background: url(/common/images/fortune/q01.svg) 0 0 no-repeat;
  top: 52px;
  left: 25px;
  background-size: 100%; 
}

.fortune-result-horoscope-comment-inner::after{
  background: url(/common/images/fortune/q02.svg) 0 0 no-repeat;
  bottom: 23px;
  right: 40px;
  background-size: 100%; 
}

.fortune-result-horoscope-comment-inner p{
  font-style: italic;
  line-height: 1.8;
  position: relative;
}

.fortune-result-horoscope-detail{
  padding: 3rem 2rem;
  margin: 4em 0 2em;
  position: relative;
  line-height: 2;
  background-position:
  0 5px, 0 calc(100% - 5px);
  border-top:2px solid #b5a883;
  border-bottom:2px solid #b5a883;
  font-size: 17px;
}

.fortune-twitter-btn{
  width: 250px;
  margin: 4em auto 0;
  display: block;
}

.fortune-twitter-btn:hover{
  opacity: .6;
  transition:opacity .2s ease-out;
}

.fortune-twitter-atend{
  font-size: 13px;
  width: 91%;
  margin: 2em auto 0;
}

.fortune-result-horoscope-detail::before,
.fortune-result-horoscope-detail::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  border-top:dotted 2px #b5a883;
  position: absolute;
  left: 0;
}

.fortune-result-horoscope-detail::before{
  top: 3px;
}

.fortune-result-horoscope-detail::after{
  bottom: 3px;
}

/*プロフィール*/
.fortune-profile{
  position: relative;
  margin:6em 1.5em 1em; 
}
.fortune-profile-inner{
  background: url(/common/images/fortune/profile_line_center.png) repeat-y 0 0;
  background-size: 100%;
  padding:1em 2em; 
}
.fortune-profile::before,
.fortune-profile::after{
  content: "";
  display: block;
  width: 100%;
  height: 16px;
}

.fortune-profile::before{
  background: url(/common/images/fortune/profile_line_top.png) no-repeat 0 0;
  background-size: 100%;
}

 .fortune-profile::after{
  background: url(/common/images/fortune/profile_line_bottom.png) no-repeat 0 0;
  background-size: 100%;
}

.fortune-profile-inner__title{
  font-weight: bold;
  font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  color: #ab941d;
  text-align: center;
  font-size: 22px;
  margin: 0 0 1em;
}

.fortune-profile-inner-box{
  display: flex;
  flex-wrap: wrap;
}

.p-01{
  margin-bottom: 2em;
}

.fortune-profile-inner-box__img{
  width: 145px;
}

.fortune-profile-inner-box-r{
  width: calc(100% - 145px);
  padding-left: 15px;
}
.fortune-profile-inner-box-r__name {
  font-weight: bold;
  font-size: 18px;
}

.fortune-profile-inner-box-r__name span{
  display: block;
  font-size: 14px;
  font-weight: normal;
  color: #666;
}

.fortune-profile-inner-box-r__ditail {
  font-size: 12px;
  margin-top: .8em;
}
.fortune-profile-inner-box-r__ditail a{
  text-decoration: underline;
}

/*スマホ用*/
@media screen and (max-width: 480px) {
  .fortune-explan{
    width: 90%;
  }
  .fortune-result-horoscope-comment{
    padding:0; 
  }
  .fortune-top__img{
    margin-top: 1em;
  }
  .fortune-wrap{
    padding: 6rem 0px 4rem;
    font-size: 14px;
  }
  .fortune-result-horoscope__img{
    width: auto;
    max-width: 300px;
  }
  .fortune-lead, .fortune-result-lead{
    padding: 45px 2em 0;
  }
  .fortune-lead p{
    text-align: left;
  }
  .fortune-lead .txt{
    font-size: 15px;
  }

  .fortune-result-lead{
    margin-bottom: 0; 
  }
  .fortune-result-horoscope{
    font-size: 32px;
  }
  /*吹き出し*/
  .fortune-result-horoscope-comment::before{
    content: "";
    display: block;
    width: auto;
    margin: 0 auto;
    padding-top: 13.33%;
    background: url(/common/images/fortune/bubble.svg) 46% 0 no-repeat;
    background-size: 106% auto;
  }
  .fortune-result-horoscope-comment::after{
    content: "";
    background-color:transparent; 
    display: block;
    padding-top: 11.3%;
    width: auto;
    margin: 0 auto;
    height: auto;
    position: static;
    background: url(/common/images/fortune/bubble.svg) 46% 111% no-repeat;
    background-size: 106% auto;
    border-radius: 0;
  }
  .fortune-result-horoscope-comment-inner{
    background-image: none;
    width: auto;
    display: block;
    padding: 0 2em;
    min-height:auto;
    background: #fff;
  }
  .fortune-result-horoscope-comment-inner p{
    z-index: 100;
    font-size: 16px;
  }
  .fortune-result-horoscope-comment-inner::before, .fortune-result-horoscope-comment-inner::after{
    width: 35px;
    height: 35px;
  }
  .fortune-result-horoscope-comment-inner::before{
    top:-10px;
    left: 15px;
  }
  .fortune-result-horoscope-comment-inner::after{
    bottom: -15px;
    right: 20px;
  }
  .fortune-result-horoscope-detail{
     margin: 2em 0;
     font-size: 15px;
     line-height: 1.8;
  }
  .fortune-profile{
    padding:0 1em;
    margin: 5em 0 1em;
  }
  .fortune-profile::before,
  .fortune-profile::after{
    height: 10px;
  }
  .fortune-profile-inner-box-r{
    width: 100%;
    padding: 0; 
  }
  .fortune-profile-inner{
    padding: 1em 1.5em;
  }
  .fortune-profile-inner-box{
    justify-content: center;
  }
  .fortune-profile-inner-box-r__name{
    text-align: center;
  }
  .fortune-profile-inner-box-r__name span{
    font-size: 12px;
  }
  .p-01{
    margin-bottom: 2.5em;
  }

  .fortune-explan-title{
    margin-bottom: 1em;
  }
  .fortune-card-defalut:hover,
  .fortune-twitter-btn:hover,
  .fortune-btn:hover{
    opacity: 1;
    transition: none;
  }
  .fortune-explan ul li{
    display: block;
    word-break: break-all; 
  }
  .fortune-explan ul li span{
    left: 4px;
    box-sizing: border-box;
    width: 4px;
    height: 4px;
    border: 4px solid transparent;
    border-left: 4px solid #ab941d;
    font-size: 11px;
    vertical-align: middle;
    text-indent: -9999px;
    background-color: transparent;
    padding: 0;
    margin-right: 2px;
  }
  .txt br{
    display: none;
  }
}
@media screen and (max-width: 320px) {
  .fortune-profile::before,
  .fortune-profile::after{
    height: 8px;
  }
}
