@charset "utf-8";

:root {
  --color: #333;
}
.sns {
    margin: 16.0rem auto 12.0rem auto;
    width: 238px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.sns #twt, .sns #fb, .sns #line, .sns #copy{
    position: relative;
}
.sns #twt .img, .sns #fb .img, .sns #line .img, .sns #copy .img{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    transition: .4s;
}
.sns #twt:hover .img, .sns #fb:hover .img, .sns #line:hover .img, .sns #copy:hover .img{
    transform: scale(1.2);
}
.sns #twt::before, .sns #fb::before, .sns #line::before, .sns #copy::before{
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 99px;
    color: #fff;
    height: 25px;
    border-radius: 5px;
}
.sns #twt::after, .sns #fb::after, .sns #line::after, .sns #copy::after{
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 10px 0 10px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    content: "";
    display: block;
}
.sns #twt a, .sns #fb a, .sns #line a, .sns #copy a{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-indent: -9999px;
}
.sns #twt .img {
    background-color: var(--color);
}
.sns #twt::before {
    content: "Xでポスト";
    background-color: var(--color);
}
.sns #twt::after {
    border-color: var(--color) transparent transparent transparent;
}
.sns #fb .img {
    background-color: var(--color);
}
.sns #fb::before {
    content: "Facebookでシェア";
    background-color: var(--color);
}
.sns #fb::after {
    border-color: var(--color) transparent transparent transparent;
}
.sns #line .img {
    background-color: var(--color);
}
.sns #line::before {
    content: "LINEで送る"; background-color: var(--color);
}
.sns #line::after {
    border-color: var(--color) transparent transparent transparent;
}
.sns #copy .img {
    background-color: var(--color);
}
.sns #copy::before {
    content: "リンクをコピー"; background-color: var(--color);
}
.sns #copy::after {
    border-color: var(--color) transparent transparent transparent;
}
@media (min-width: 576px) {
    .sns {
        width: 280px;
    }
}
#toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 6px;
    background: rgba(0,0,0,.8);
    color: #fff;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9999;
}
#toast.show {
    opacity: 1;
    visibility: visible;
}