.diagnosis-wrapper .answer img,
.diagnosis-wrapper .result img{
  margin: 0;
}
.diagnosis-wrapper .result .juiz_sps_links,
.analysis-wrapper .result .juiz_sps_links{
  margin-left: 0;
  margin-bottom: 0;
  padding-bottom: 40px;
  overflow: visible;
}

.juiz_custom_box_diagnosis{
  /* display: flex;
  justify-content: space-between; */
  margin-bottom: 5px;
  height: 40px;
}

.juiz_sps_btn_wrap{
  overflow: hidden;
  display: block;
  height: 40px;
}

.juiz_custom_box_diagnosis_bottom{
  margin-bottom: 0;
}

.juiz_custom_box_diagnosis .juiz_sps_item{
  position: relative;
  height: 40px;
  width: calc(33.3% - 10.7px);
  float: left;
  margin-left: 8px;
  margin-bottom: 8px;
  border-radius: 3px;
  display: inline-block;
  line-height: 40px;
  padding: 0;
}

.juiz_custom_box_diagnosis_bottom .juiz_sps_item{
  width: calc(50% - 12px);
}

.juiz_custom_box_diagnosis .juiz_sps_item .juiz_sps_btn{
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  white-space: nowrap;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
}

.juiz_sps_item_fb{
  background: #3b5998;
}
.juiz_sps_item_twitter{
  background: #1da1f2;
}
.juiz_sps_item_line{
  background: #00b900;
}
.juiz_sps_item_link{
  background: #e91e63;
}
.juiz_sps_item_reset{
  border: 1px solid #e91e63;
  background: #fff;
}
.juiz_sps_btn_reset{
  color: #e91e63 !important;
}

.juiz_sps_btn::before{
  font-family: FontAwesome;
  font-size: 20px;
  padding-right: 7px;
}
.juiz_sps_btn img.juiz_sps_btn_icon{
  padding-bottom: 2px;
}
.juiz_sps_btn_facebook img.juiz_sps_btn_icon{
  width: 20px;
  margin-left: -25px;
  margin-right: 7px;
}
.juiz_sps_btn_twitter img.juiz_sps_btn_icon{
  width: 20px;
  margin-left: -25px;
  margin-right: 7px;
}
.juiz_sps_btn_line img.juiz_sps_btn_icon{
  width: 20px;
  margin-left: -25px;
  margin-right: 7px;
}
.juiz_sps_btn_link img.juiz_sps_btn_icon{
  width: 18px;
  margin-left: -25px;
  margin-right: 7px;
}
.juiz_sps_btn_reset img.juiz_sps_btn_icon{
  width: 18px;
  margin-left: -25px;
  margin-right: 7px;
}

.juiz_sps_btn_text{
  padding-top: 2px;
}

.link_copy_balloon {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 70px;
  left: 50%;
  width: 90%;
  text-align: center;
  padding: 0px 10px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  background: #333;
  color: #fff;
  z-index: 100;
}

.link_copy_balloon:after {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -10px;
  border: solid transparent;
  border-color: rgba(51, 51, 51, 0);
  border-bottom-color: #333;
  border-width: 10px;
  pointer-events: none;
  content: " ";
}

@media (max-width: 643px){
  .diagnosis-wrapper .result .juiz_sps_links,
  .analysis-wrapper .result .juiz_sps_links{
    height: 269px;
  }
  .juiz_custom_box_diagnosis .juiz_sps_item{
    width: calc(100% - 16px);
  }
}

/* ポップアップ用 */
.diagnosis_dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  display: none;
  z-index: 950;
  width: 220px;
  height: 226px;
  margin-top: -113px;
  margin-left: -110px;
  border-radius: 8px;
  background-color: #fff;
  box-sizing: border-box;
  -webkit-box-shadow: 0px 4px 2px rgba(0, 0, 0, 0.2);
     -moz-box-shadow: 0px 4px 2px rgba(0, 0, 0, 0.2);
          box-shadow: 0px 4px 2px rgba(0, 0, 0, 0.2);
}

.diagnosis_dialog_title {
  position: absolute;
  top: -46px;
  left: 0;
  width: 100%;
  height: 18px;
  color: #fff;
  font-size: 18px;
  line-height: 18px;
  text-align: center;
  border-left: none !important;
  font-weight: normal;
}

.diagnosis_button_wrap{
  padding: 20px 10px 0;
}

.diagnosis_button{
  position: relative;
  float: left;
  width: 80px;
  height: 80px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border-radius: 10px;
  margin: 0 10px;
  margin-bottom: 23px;
}
.diagnosis_button_fb{
  background-color: #315096;
  background-image: url(https://s3-ap-northeast-1.amazonaws.com/static.curazy.com/image/share/logo_facebook_600x600.png);
  border: 1px solid #315096;
  box-shadow: 0 3px 0 #14203c;
}
.diagnosis_button_tw{
  background-color: #55acee;
  background-image: url(https://s3-ap-northeast-1.amazonaws.com/static.curazy.com/image/share/logo_twitter_600x600.png);
  border: 1px solid #55acee;
  box-shadow: 0 3px 0 #1372ba;
}
.diagnosis_button_ln{
  background-color: #00c300;
  background-image: url(https://s3-ap-northeast-1.amazonaws.com/static.curazy.com/image/share/logo_line_600x600.png);
  border: 1px solid #00c300;
  box-shadow: 0 3px 0 #007f00;
}
.diagnosis_button_lc{
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  background-color: #e91e63;
  border: 1px solid #e91e63;
  box-shadow: 0 3px 0 #a21042;
  box-sizing: border-box;
  cursor: pointer;
  background-size: 60px;
  background-position: top center;
  background-image: url(https://s3-ap-northeast-1.amazonaws.com/static.curazy.com/image/share/icon_link_600x600.png);
}
.diagnosis_button:hover{
  top: 3px;
  box-shadow: none;
}
.diagnosis_button_fb:hover{
  background-color: #1c2e56;
  border: 1px solid #1c2e56;
}
.diagnosis_button_tw:hover{
  background-color: #1684d8;
  border: 1px solid #1684d8;
}
.diagnosis_button_ln:hover{
  background-color: #009000;
  border: 1px solid #009000;
}
.diagnosis_button_lc:hover{
  background-color: #a21042;
  border: 1px solid #a21042;
}

.diagnosis_button_text{
  position: absolute;
  bottom: 0;
  left: 0;
  color: #fff;
  font-size: 10px;
  width: 100%;
}

.diagnosis_dialog_overlay{
  position: fixed;
  display: none;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 900;
}

.diagnosis_dialog_close_button {
  position: absolute;
  top: -30px;
  left: 0px;
  width: 40px;
  height: 40px;
  padding-top: 8px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  z-index: 960;
}

.diagnosis_dialog_close_button svg{
  width: 20px;
  height: 20px;
}

.diagnosis_dialog_copied{
  display: none;
  background-color: #000;
  opacity: 0.75;
}
.diagnosis_dialog_copied_inner{
  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%); /* Safari用 */
  transform: translateY(-50%);
}
.diagnosis_dialog_copied_text{
  color: #fff;
  text-align: center;
  font-size: 18px;
}
.diagnosis-result-message {
  padding: 20px 20px 0 20px;
  font-size: 22px;
  font-weight: bold;
  line-height: 35px;
  color: #444444;
}
.diagnosis-graph-text {
  text-align: center;
  font-size: 22px;
  margin-top: 10px;
}

@media screen and ( max-width: 643px ) {
  .diagnosis-result-message {
    font-size: 18px;
    line-height: 30px;
  }
}
