///////////////////////////////////////
// SNSボタン共通
///////////////////////////////////////
.sns-buttons{
  display: flex;
  align-items: center;

  a{
    display: block;
    background-color: $text_color;
    text-align: center;
    @include link_cancel($white);
    border-radius: $basic_border_radius;
    height: 45px;
    //line-height: 45px;

    &:hover{
      opacity: 0.7;
      color: $white;
      transition: $bgc_hover_anime;
    }
  }
}
///////////////////////////////////////
// SNSシェアボタン
///////////////////////////////////////
%sns_button_color{
  a{
    cursor: pointer;
  }
  //ボタンカラー
  &.bc-brand-color{
    .twitter-button{
      background-color: $twitter_color;
    }

    .facebook-button{
      background-color: $facebook_color;
    }

    .hatebu-button{
      background-color: $hatebu_color;
    }

    .google-plus-button{
      background-color: $google_plus_color;
    }

    .pocket-button{
      background-color: $pocket_color;
    }

    .line-button{
      background-color: $line_color;
    }

    .website-button{
      background-color: $website_color;
    }

    .instagram-button{
      background-color: $instagram_color;
    }

    .pinterest-button{
      background-color: $pinterest_color;
    }

    .youtube-button{
      background-color: $youtube_color;
    }

    .linkedin-button{
      background-color: $linkedin_color;
    }

    .note-button{
      background-color: $note_color;
    }

    .flickr-button{
      background-color: $flickr_color;
    }

    .amazon-button{
      background-color: $amazon_color;
    }

    .rakuten-room-button{
      background-color: $rakuten_room_color;
    }

    .slack-button{
      background-color: $slack_color;
    }

    .github-button{
      background-color: $github_color;
    }

    .codepen-button{
      background-color: $codepen_color;
    }

    .feedly-button{
      background-color: $feedly_color;
    }

    .rss-button{
      background-color: $rss_color;
    }
  }

  &.bc-brand-color-white{
    a{
      background-color: $white;
      font-weight: 500;
      border: 1px solid $text_color;
      color: $text_color;
      &:hover{
        //background-color: $bgc_hover_color;
        //transition: $bgc_hover_anime;
        opacity: 0.5;
      }
    }

    .twitter-button{
      color: $twitter_color;
      border-color: $twitter_color;
    }

    .facebook-button{
      color: $facebook_color;
      border-color: $facebook_color;
    }

    .hatebu-button{
      color: $hatebu_color;
      border-color: $hatebu_color;
    }

    .google-plus-button{
      color: $google_plus_color;
      border-color: $google_plus_color;
    }

    .pocket-button{
      color: $pocket_color;
      border-color: $pocket_color;
    }

    .line-button{
      color: $line_color;
      border-color: $line_color;
    }

    .website-button{
      color: $website_color;
      border-color: $website_color;
    }

    .instagram-button{
      color: $instagram_color;
      border-color: $instagram_color;
    }

    .pinterest-button{
      color: $pinterest_color;
      border-color: $pinterest_color;
    }

    .youtube-button{
      color: $youtube_color;
      border-color: $youtube_color;
    }

    .linkedin-button{
      color: $linkedin_color;
      border-color: $linkedin_color;
    }

    .note-button{
      color: $note_color;
      border-color: $note_color;
    }

    .flickr-button{
      color: $flickr_color;
      border-color: $flickr_color;
    }

    .amazon-button{
      color: $amazon_color;
      border-color: $amazon_color;
    }

    .rakuten-room-button{
      color: $rakuten_room_color;
      border-color: $rakuten_room_color;
    }

    .slack-button{
      color: $slack_color;
      border-color: $slack_color;
    }

    .github-button{
      color: $github_color;
      border-color: $github_color;
    }

    .codepen-button{
      color: $codepen_color;
      border-color: $codepen_color;
    }

    .feedly-button{
      color: $feedly_color;
      border-color: $feedly_color;
    }

    .rss-button{
      color: $rss_color;
      border-color: $rss_color;
    }

  }
}


.sns-share{
  @extend %margin_top_and_bottom_in_content;
}

.ss-top{
  margin-top: 0;
  margin-bottom: 0;

  .sns-share-message{
    display: none;
  }
}

.sns-share{
  //カラム数
  &.ss-col-1 a{
    width: 100%;
  }

  &.ss-col-2 a{
    width: 49%;
  }

  &.ss-col-3 a{

  }

  &.ss-col-4 a{
    width: 24%;
  }

  &.ss-col-5 a{
    width: 19%;
  }

  &.ss-col-6 a{
    width: 16%;
  }

  %high_and_low{
    display: flex;
    align-content: center;

    line-height: 16px;
    .social-icon,
    .button-caption{
      display: block;
      font-size: 16px;
      margin: 0;
      &.button-caption{
        font-size: 12px;
      }
    }
  }

  //ロゴ・キャプション配置
  &.ss-high-and-low-lc a{
    @extend %high_and_low;
    flex-direction: column;
    >span{
      padding-top: 3px;
    }
  }

  &.ss-high-and-low-cl a{
    @extend %high_and_low;
    flex-direction: column-reverse;
  }

  //ボタンカラー
  &{
    @extend %sns_button_color;
  }
}

.sns-share-message{
  @extend %sns_message;
}

$sns_button_margin_bottom: 8px;

.sns-share-buttons{
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: center;

  a{
    width: 32%;
    margin-bottom: $sns_button_margin_bottom;
    font-size: 18px;
    display: inline-flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    position: relative;

    .button-caption{
      font-size: 16px;
      margin-left: 10px;
    }

    .share-count{
      @include service_count;
    }
  }
}

.share-menu-content .sns-share-buttons a{
  width: 24%;
}

//シェア数の非表示
.sbc-hide .share-count{
  display: none;
}

/* メッセージ */
.copy-info {
  display: none;
  /*初期状態は非表示*/padding: 1em 2em;
  color: #fff;
  border-radius: 8px;
  /*画面上部に表示*/position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: $text_color;
  opacity: 0.8;
  box-shadow: 0 4px 8px $pallid_text_color;
  z-index: 2;
}
