#ld-floating-menu{
    position: fixed;
    z-index: 3000000000;
    bottom:0;
    right:0;
    height: 100%;
}

@media (orientation: landscape){
    #ld-floating-menu{
        display: none;
    }
}

#ld-floating-menu.active{
    height: 100%;
    pointer-events: fill;
}

#ld-floating-menu .overlay{
    background: rgba(83,83,83,0.9);
    transform: translate(0px, 100vh);
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height: 0;
    opacity:0,
    visibility: hidden;
    transition: visibility 0.01s ease-in-out;
    transition-delay: 0.32s;
    overflow:hidden;
    -webkit-overflow-scrolling: touch;
}

#ld-floating-menu.active .overlay{
    height:100vh;
    opacity:1,
    transition: 0.01s ease-in-out;
    transform: translate(0px, 0px);
    transition-delay: 0.05s;
}

#ld-floating-contents{
    position: fixed;
    left:0;
    right:0;
    top:0;
    bottom:0;
    width:100%;
    z-index:10002;
    opacity:0;
    transition: 0.17s ease-in-out;
    transform: translate(0px, 100vh);
}

#ld-floating-contents.active{
    transform: translate(0px, 0px);
    opacity:1;
    transition: 0.17s ease-in-out;
}

#ld-floating-contents .modal{
    position: relative;
    height: calc(100% - 102px);
    width:calc(100% - 20px);
    background:#FFF;
    margin-top: 51px;
    border-radius:5px;
    margin-left:10px;
}


#ld-floating-contents .modal::after{
    content: "";
    position: absolute;
    top:0;
    width:51pc;
    left:-51px;
    height:100%;
    z-index:-1;
}

#ld-floating-contents .contents-top,
#ld-floating-contents .contents-bottom{
    height:51px;
    width:100%;
    position: absolute;
}


#ld-floating-contents .contents-top{
    top:0;
}

#ld-floating-contents .contents-bottom{
    bottom: 0;
}

#ld-floating-contents .modal .title{
    width: 100%;
    height:49px;
    border-top-left-radius:5px;
    border-top-right-radius:5px;
    align-items:center;
    display:flex;
    pointer-events: none;
}

#ld-floating-contents .modal .title .icon{
    display:flex;
    align-items:center;
    margin-left:14px;
    margin-right:10px;
    pointer-events: none;
}

#ld-floating-contents .modal .title .icon svg{
    pointer-events: none;
}

#ld-floating-contents .modal .title .icon:nth-child(1){
    transform: translate(1px, 1px);
}


#ld-floating-contents .modal .title .text{
    display:flex;
    align-items:center;
    color:#FFF;
    font-size:18px;
    font-weight: bold;
    pointer-events: none;
}

#ld-floating-contents .modal .title .close{
    display:flex;
    background:rgba(255,255,255,0);
    width:40px;
    height:40px;
    margin-left:auto;
    margin-right: 2px;
    cursor:pointer;
    pointer-events: fill;
}

#ld-floating-contents .modal .title .close span{
    display:flex;
    width:27px;
    height:2px;
    background:#fff;
    border-radius:1px;
}

#ld-floating-contents .modal .title .close span:nth-child(1){
    transform: translate(10px, 20px) rotate(-45deg);
}

#ld-floating-contents .modal .title .close span:nth-child(2){
    transform: translate(-10px, 20px) rotate(45deg);
}

#ld-floating-contents .modal .articles{
    padding: 0 18px 0 18px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    height: calc(100% - 49px);
}

#ld-floating-contents .modal .articles p{
    margin: 10px 0 10px;
    color:#0088e7;
    font-size:16px;
    font-weight:bold;
    border-bottom:1px solid #0088e7;
}

#ld-floating-contents .modal .articles ul li{
    margin-bottom:20px;
}

#ld-floating-contents .modal .articles ul.all{
    margin-top:10px;
}

#ld-floating-contents .modal .articles ul li .img{
    margin-right:10px;
}

#ld-floating-contents .modal .articles ul li .noimage{
    display: grid;
    place-items: center;
    background-color: #c5c5c5;
    width: 60px;
    min-width: 60px;
    height: 60px;
}

#ld-floating-contents .modal .articles ul li .noimage img{
    width: 27px;
    height: auto;
}

#ld-floating-contents .modal .articles ul li a{
    color:#333333;
    font-size:14px;
    display:flex;
    flex-direction: row;
}

#ld-floating-contents .modal .articles ul li span{
    display:flex;
}

#ld-floating-menu #ld-floating-navi{
    position:absolute;
    color:#333;
    bottom: 121px;
    right: 10px;
    visibility:hidden;
    opacity: 0;
    z-index:10001;
    width: 100vw;
    pointer-events:none;
    transition: all 0.3s ease;
}

#ld-floating-menu.anime #ld-floating-navi{
    visibility: visible;
    opacity: 1;
    transition: all 0.3s ease;
}

#ld-floating-menu #ld-floating-navi nav{
    margin-right: 6px;
}


#ld-floating-menu #ld-floating-navi nav ul li{
    color:#fff;
    font-weight: bold;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    margin-bottom:12px;
    transition: 0.25s ease-in-out;
    transition-delay: 0.2s;
    pointer-events:none;
}

#ld-floating-menu #ld-floating-navi nav ul li a{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    color:#fff;
}

#ld-floating-menu.active #ld-floating-navi nav ul li{
    pointer-events: auto;
}

#ld-floating-menu #ld-floating-navi nav ul li{
    transform: translate(0px, 10px);
    opacity:0;
}

#ld-floating-menu #ld-floating-navi nav ul.active li:nth-child(1){
    transform: translate(0px, 0px);
    opacity:1;
    transition: 0.4s ease-in-out;
    transition-delay: 0.4s;
}

#ld-floating-menu #ld-floating-navi nav ul.active li:nth-child(2){
    transform: translate(0px, 0px);
    opacity:1;
    transition: 0.4s ease-in-out;
    transition-delay: 0.3s;
}

#ld-floating-menu #ld-floating-navi nav ul.active li:nth-child(3){
    transform: translate(0px, 0px);
    opacity: 1;
    transition: 0.4s ease-in-out;
    transition-delay: 0.2s;
}

#ld-floating-menu #ld-floating-navi nav ul li span.text{
     pointer-events: none;
}

#ld-floating-menu #ld-floating-navi nav ul li span.btn{
    display:flex;
    width:38px;
    height:38px;
    padding:8px;
    box-sizing: border-box;
    border:1px solid #0088e7;
    background:#FFF;
    border-radius:30px;
    justify-content:center;
    align-items:center;
    box-shadow: 2px 1px 2px 0px rgba(88,88,88,0.6);
    margin-left:10px;
    pointer-events: none;
}

#ld-floating-menu #ld-floating-navi nav ul li.ldapp span.btn svg{
    transform: translateY(2px);
    pointer-events: none;
    width: 100%;
}

#ld-floating-menu #ld-floating-btn{
    position:absolute;
    right: 0px;
    border:1px solid #0088e7;
    width:48px;
    height:48px;
    box-sizing: border-box;
    border-radius:30px;
    display:flex;
    justify-content:center;
    background:#FFF;
    box-shadow: 2px 1px 2px 0px rgba(88,88,88,0.6);
    transition: 0.4s ease-in-out;
    pointer-events: auto;
}

#ld-floating-menu #ld-floating-btn.active{
    background:#0088e7;
    border:1px solid #fff;
    transition: 0.4s ease-in-out;
}

 #ld-floating-menu #ld-floating-btn .btn-inner{
    display:flex;
    align-items:center;
    flex-direction:column;
    justify-content:center;
    transform: rotate(0deg);
    transition: 0.4s ease-in-out;
}

#ld-floating-menu #ld-floating-btn.active .btn-inner{
    transform: rotate(360deg);
    transition: 0.4s ease-in-out;
}

#ld-floating-menu #ld-floating-btn span{
    display:block;
    width: 22px;
    height: 2px;
    border-radius:1px;
    background:#0088e7;
    margin-bottom: 5px;
    transition: 0.4s ease-in-out;
}

#ld-floating-menu #ld-floating-btn span:last-child{
    margin-bottom:0;
}

#ld-floating-menu #ld-floating-btn.active span{
    background:#FFF;
    transition: 0.4s ease-in-out;
}

#ld-floating-menu #ld-floating-btn.active span:nth-child(1){
    transform: translate(0px, 7px) rotate(-45deg);
    transition: 0.4s ease-in-out;
}

#ld-floating-menu #ld-floating-btn.active span:nth-child(2){
    opacity:0;
    transition: 0.4s ease-in-out;
}

#ld-floating-menu #ld-floating-btn.active span:nth-child(3){
    transform: translate(0px, -7px) rotate(45deg);
    transition: 0.4s ease-in-out;
}

/* シェアボタン */
#ld-floating-share{
    position: fixed;
    left: 19px;
    bottom: 121px;
    opacity: 0;
    visibility: hidden;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
    transition: all 0.3s ease
}

#ld-floating-menu.anime #ld-floating-share{
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease
}

#ld-floating-share ul{
    position:absolute;
    display:flex;
    pointer-events: none;
}

#ld-floating-share ul li.clap,
#ld-floating-share ul li.comment{
    position: relative;
}

#ld-floating-share ul li.sharebtn_x span.shadow{
    background-color: #000000;
    border: solid 1px gray;
    margin-top: -1px;
}

#ld-floating-share ul li.sharebtn_x img{
    width: 20px;
    height: auto;
}

#ld-floating-share ul li a,
#ld-floating-share ul li.clap .clap-box{
    margin-right: 12px;
    height:48px;
    display:flex;
    align-items: center;
    pointer-events: auto;
}

#ld-floating-share ul li a .border,
#ld-floating-share ul li a .shadow{
    background: #fff;
    box-sizing: border-box;
    width: 36px;
    height:36px;
    border-radius: 18px;
    display:flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 3px 6px rgba(0,0,0,0.25);
}

#ld-floating-share ul li a .border{
    border: 1px solid #0088E7;
}

#ld-floating-share ul li.comment a .border{
    transform: translateX(-1px);
}


#ld-floating-share ul li.clap .clap-box .bg{
    border: 1px solid #0088E7;
    box-sizing: border-box;
    width: 36px;
    height:36px;
    border-radius: 18px;
    display:flex;
    justify-content: flex-start;
    align-items: center;
    filter: drop-shadow(0px 3px 6px rgba(0,0,0,0.25));
    background: #fff;
}

#ld-floating-share ul li.clap .clap-box .bg .sprite{
    position: relative;
    z-index: 2;
    background: url(/img/lite2/floating/clap_splite.png) no-repeat;
    background-size: 800px 25px;
    background-position: 0 0;
    width:25px;
    height:25px;
    display:block;
    transform: translate(8px, -3px) scale(1.2);
    user-select: none;
}

#ld-floating-share ul li.clap .clap-box .bg .sprite.active{
    animation: clap 1s steps(32) none;
}

@keyframes clap {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -800px 0;
    }
}

#ld-floating-share ul li.clap .count,
#ld-floating-share ul li.comment .count{
    position: absolute;
    bottom: -7px;
    width: 36px;
    height:11px;
    border-radius: 7px;
    background: #0083DF;
    font-size: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    overflow:hidden;
    padding-bottom: 1px;
    line-height: 1.3em;
}

#ld-floating-share ul li.clap .count span{
    height:100%;
    justify-content: center;
}

#ld-floating-share ul li.clap .count.active span{
    animation: clap-count-up 0.8s cubic-bezier(.785, .135, .15, .86) forwards;
    animation-duration: 1s;
    will-change: transform;
}

@keyframes clap-count-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

#ld-floating-share ul li.clap .clap-comment{
    position:absolute;
    background: #FFF;
    width: 247px;
    height: 84px;
    top: -75px;
    left: -10px;
    background: url(/img/lite2/floating/comment_bg.png) -5px 0px;
    background-size: 247px 84px;
    opacity: 0;
    transform-origin: top left;
    transition: visibility 0s 1.5s;
    visibility: hidden;
    animation: clap-comment-out .4s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

#ld-floating-share ul li.clap .clap-comment .icon{
    position: absolute;
    top: 17px;
    left: 19px;
    display:block;
    width: 35px;
    height: 35px;
    border-radius: 18px;
    overflow:hidden;
}

#ld-floating-share ul li.clap .clap-comment .icon img{
    width:100%;
    height: 100%;
}

#ld-floating-share ul li.clap .clap-comment .text{
    display: flex;
    height: 72px;
    width: 170px;
    left: 60px;
    align-items: center;
    position: absolute;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
}

#ld-floating-share ul li.clap .clap-comment.active{
    visibility: inherit;
    transition: none;
    animation: clap-comment-in .4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes clap-comment-in {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes clap-comment-out {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}
