<div class="floating__banner">
<label for="sns_modal" class="jp">商品に関するお問合せはこちら</label>
<label for="sns_modal" class="en">CONTACT US</label>
<ul class="">
<input type="checkbox" id="sns_modal">
<li>
<a href="https://lin.ee/nScYUPv">
<img src="/html/user_data/assets/img/common/line.png" alt="" />
</a>
</li>
<li>
<a href="https://wa.me/message/B43VTRL37ZNAL1">
<img src="/html/user_data/assets/img/common/whatsapp.png" alt="" />
</a>
</li>
</ul>
</div>
<style>
.floating__banner {
position: fixed;
right: 0;
bottom: 15vh;
font-size: 1.25rem;
z-index: 999;
}
.floating__banner label {
font-size: 2em;
text-align: right;
font-weight: bold;
writing-mode: vertical-rl;
background: #1a1a1a;
padding: 1em 0.65em;
border-top: 1px solid #999;
border-left: 1px solid #999;
border-bottom: 1px solid #999;
border-radius: 1em 0 0 1em;
color: #fff;
}
.floating__banner label.jp {
font-size: 1em;
padding: 1em 2em;
}
.floating__banner ul {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
transform: translateX(101%);
}
.floating__banner ul input{
display: none;
}
.floating__banner ul li {
width: 5em;
margin-top: 1em;
}
.floating__banner ul li a {
display: block;
}
.floating__banner ul li a img {
width: 100%;
}
.floating__banner ul:has(:checked) {
transform: translateX(0);
transition: all 0.3s ease-in-out;
}
@media screen and (max-width: 767px) {
.floating__banner {
bottom: 5vh;
font-size: 1rem;
}
}
.floating__banner label{
transform: translateY(-5px);
box-shadow: 0px 0px 0px rgba(0,0,0,0.4);
position:relative;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
.floating__banner label.show:after {
content: '';
position: absolute;
top:50%;
transform: translateX(-5em) translateY(-5em);
width: 1.5em;
height: 1.5em;
border-radius: 50%;
box-shadow: 0px 0px 20px #ffc421, 0px 0px 30px #ffc421, inset 0px 0px 10px #ffc421;
animation: spin 1.75s infinite linear;
}
.floating__banner label:has(:checked) {
transform: translateY(0);
box-shadow: 0px 10px 10px rgba(0,0,0,0.4);
transition: 500ms;
}
.floating__banner label.show:has(:checked):after {
background: transparent;
box-shadow: 0px 0px 50px transparent;
transition: 500ms;
animation:unset;
}
@keyframes spin{
25%{transform: translateX(-5.5em) translateY(5em);
width: 1em;
height: 1em;}
50% {transform: translateX(-5em) translateY(0);
width: 0.3em;
height: 0.3em;}
75% {transform: translateX(-4.5em) translateY(-5em);
width: 1em;
height: 1em;}
}
</style>