.multi-widget {
    /* スマホ時のデフォルト：右端に半分だけ表示 */
    position: fixed;
    bottom: 6em;
    right: -20px;     /* ボタン 50px の半分だけ外に出す */
    left: auto;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    width: auto;
    pointer-events: none;
    z-index: 999;
}

/* スクロール条件を満たしたら表示（位置はそのまま） */
.multi-widget.multi-widget--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 開いたとき：画面中央へ移動（スマホのみ） */
.multi-widget.multi-widget--open {
    right: 50%;
    left: auto;
    transform: translate(50%, 0);
}

.multi-widget button i {
    color: #fff;
}

.multi-widget-center {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 1em auto;
    position: relative;
    transition: background .2s;
    z-index: 2;
}

.multi-widget-center:hover {
    background: rgba(0, 0, 0, .5);
}

.multi-widget__list {
    list-style: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
}

.multi-widget__item {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    transition: .3s;
}

.multi-widget__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.5em;
    border: none;
    outline: none;
    box-shadow: none;
    appearance: none;
}

.multi-widget-center{
    width: 55px;
    height: 55px;
}

.multi-widget__link{
    width: 50px;
    height: 50px;
}

@media screen and (min-width: 767px){
    .multi-widget-center{
        width: 50px;
        height: 50px;
    }

    .multi-widget__link{
        width: 45px;
        height: 45px;
}
}

.multi-widget__link i {
    color: #fff;
    font-size: 18px;
}

.multi-widget__item--line .multi-widget__link {
    background-color: rgba(6, 199, 85, .8);
}

.multi-widget__item--line .multi-widget__link:hover {
    background-color: rgba(6, 199, 85, 1);
    transform: translateY(-0.1875em);
    box-shadow: 0 2px 6px -2px rgba(6, 199, 85, 0.8);
}

.multi-widget__item--email .multi-widget__link {
    background-color: rgba(234, 67, 53, .8);
}

.multi-widget__item--email .multi-widget__link:hover {
    background-color: rgba(234, 67, 53, 1);
    transform: translateY(-0.1875em);
    box-shadow: 0 2px 6px -2px rgba(234, 67, 53, 0.8);
}

.multi-widget__item--x .multi-widget__link {
    background-color: rgba(0, 0, 0, .8);
}

.multi-widget__item--x .multi-widget__link:hover {
    background-color: rgba(0, 0, 0, 1);
    transform: translateY(-0.1875em);
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.8);
}

.multi-widget__item--facebook .multi-widget__link {
    background-color: rgba(24, 119, 242, .8);
}

.multi-widget__item--facebook .multi-widget__link:hover {
    background-color: rgba(24, 119, 242, 1);
    transform: translateY(-0.1875em);
    box-shadow: 0 2px 6px -2px rgba(24, 119, 242, 0.8);
}

.multi-widget__item--sms .multi-widget__link {
    background-color: rgba(52, 199, 89, .8);
}

.multi-widget__item--sms .multi-widget__link:hover {
    background-color: rgba(52, 199, 89, 1);
    transform: translateY(-0.1875em);
    box-shadow: 0 2px 6px -2px rgba(52, 199, 89, 0.8);
}

.multi-widget__item--home .multi-widget__link {
    background-color: rgba(199, 52, 162, 0.8);
}

.multi-widget__item--home .multi-widget__link:hover {
    background-color: rgba(199, 52, 162, 1);
    transform: translateY(-0.1875em);
    box-shadow: 0 2px 6px -2px rgba(199, 52, 162, 0.8);
}

.multi-widget__item--search .multi-widget__link {
    background: linear-gradient(135deg, #6c63ff, #4e52f7);
}

.multi-widget__item--search .multi-widget__link:hover {
    background-color: #2a36b6ff;
    transform: translateY(-0.1875em);
    box-shadow: 0 2px 6px -2px #5950ffff;
}

.multi-widget__item--linkedin .multi-widget__link {
    background-color: rgba(10, 102, 194, .8);
}

.multi-widget__item--linkedin .multi-widget__link:hover {
    background-color: rgba(10, 102, 194, 1);
    transform: translateY(-0.1875em);
    box-shadow: 0 2px 6px -2px rgba(10, 102, 194, 0.8);
}

.multi-widget__item--copy .multi-widget__link {
    background-color: rgba(102, 102, 102, 8);
    cursor: pointer;
    padding: 0;
}

.multi-widget__item--copy .multi-widget__link:hover {
    background-color: rgba(102, 102, 102, 1);
    transform: translateY(-0.1875em);
    box-shadow: 0 2px 6px -2px rgba(102, 102, 102, 0.8);
}

.multi-widget__item--copy .multi-widget__link.copied {
    background-color: #4CAF50;
}

.multi-widget__item--top a {
    background-color: rgba(201, 129, 35, .8);
}

li.multi-widget__item--top a:hover {
    transform: translateY(-0.1875em);
    background-color: rgba(201, 129, 35, 1);
    box-shadow: 0 2px 6px -2px rgba(201, 129, 35, .8);
}

.multi-widget__toast {
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50px);
    background-color: #444;
    color: #fff;
    padding: 0.75em 1.5em;
    border-radius: 0.25em;
    font-size: 0.875em;
    box-shadow: 0 0.25em 0.75em rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.multi-widget__toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* PC（767px以上）は従来どおり右側に固定 */
@media (min-width: 767px) {
    .multi-widget {
        left: auto;
        right: 5.25em;
        bottom: 3.75em;
        transform: translateY(30px);
    }

    .multi-widget.multi-widget--visible {
        transform: translateY(0);
    }

    /* PC では中央移動させない（右側のまま） */
    .multi-widget.multi-widget--open {
        right: 5.25em;
        transform: translateY(0);
    }
}

.multi-widget__search-open {
    cursor: pointer;
}

.sss-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sss-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.sss-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sss-modal.active .sss-modal-bg {
    opacity: 1;
}

.sss-modal-box {
    border-radius: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    background: #fff;
    padding: 1.2em;
    width: 90%;
    max-width: 400px;
    opacity: 0;
    transition: all 0.3s ease;
}

.sss-modal.active .sss-modal-box {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.sss-search-form {
    display: flex;
    gap: 0.5em;
}

.sss-search-form input[type="search"] {
    flex: 1;
    padding: 0.5em;
}

.sss-search-form button {
    padding: 0.5em 1em;
}

.sss-modal-box button {
    border-radius: 50%;
    border: none;
}
