/*-----------------------------------------------------------------------------------------------------------------------*/
/* add 20260126 後で見る機能
/*-----------------------------------------------------------------------------------------------------------------------*/



#fadeMenu * {
    box-sizing: border-box;
    > button {
        cursor: pointer;
    }
}

.modalOverlay * {
    box-sizing: border-box;
    > button {
        cursor: pointer;
    }
}


#fadeMenu {
    position: fixed;
    display: flex;
    flex-direction: column;
    left: 0;
    bottom: 48px;
    color: #fff;
    border: none;
    border-radius: 0 10px 10px 0;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
    z-index: 1000;
    &.visible {
        opacity: 1;
        pointer-events: auto;
    }
}

#slideBtns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 19px 14px;
    transform: translateX(-100%);
    border-bottom-right-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);

    &.visible {
        transform: translateX(0);
    }

    > button {
        position: relative;
        width: 60px;
        height: 60px;
        border: none;
        background-color: transparent;

        &::before {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            content: '';
            background-size: contain;
            background-position: center;
        }
    }

    #listBtn {
        &::before {
            background-image: url('/excludes/images/p/org2/common/btn_list.png');
        }
    }

    #laterBtn {
        &::before {
            background-image: url('/excludes/images/p/org2/common/btn_later.png');
        }
    }
}

#toggleBtn {
    position: relative;
    padding: 70px 0 0 88px;
    border: none;
    background-color: rgba(164, 153, 156, .7);
    color: #fff;
    font-weight: bold;
    border-top-right-radius: 10px;

    &::before {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 12px;
        height: 24px;
        content: "";
        background-image: url('/excludes/images/p/org2/common/icon_arrow_wht.png');
        background-size: contain;
        background-position: center;
        transform: translateY(-50%) translateX(-50%);
        background-repeat: no-repeat;
    }

    &.close {
        &::before {
            transform: translateY(-50%) translateX(-50%) rotate(180deg);
        }
    }
}

/* モーダルデモ */
.modalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    overflow-y: auto;
}
.modalWrapper {
    background: #fff;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.modalClose {
    position: absolute;
    padding: 0;
    width: 30px;
    height: 30px;
    top: -35px;
    right: 0;
    font-weight: bold;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;

    > img {
        width: 100%;
    }
}

.modalContainer {
    display: flex;
    flex-direction: column;
    width: 596px;
    height: 80dvh;
    max-height: 648px;

    &.is-confirm {
        height: 295px;

        .modalContents {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            padding-block: 60px;

            > p {
                font-size: 18px;
            }

            .modalOk {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 190px;
                height: 56px;
                color: #fff;
                font-size: 18px;
                border: none;
                border-radius: 10px;
                background-color: #E95283;
            }

            .toList {
                position: relative;
                padding: 0 28px 0 12px;
                color: #E95283;
                border: none;
                border-bottom: solid 1px #E95283;
                background-color: transparent;

                &::after {
                    position: absolute;
                    top: 50%;
                    right: 0;
                    width: 12px;
                    height: 12px;
                    content: "";
                    background-image: url('/excludes/images/p/org2/common/icon_arrow_v2.png');
                    background-size: contain;
                    background-position: center;
                    background-repeat: no-repeat;
                    transform: translateY(-50%);
                }
            }
        }
    }
    button {
        color: #333;
    }
}

.modalHeader {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 10px 10px 0 0;
    background-color: #425877;

    .modalHdg {
        position: absolute;
        top: 50%;
        left: 28px;
        width: fit-content;
        font-size: 18px;
        font-weight: 400;
        color: #fff;
        transform: translateY(-50%);
    }

    > div {
        display: block;

        &.is-hidden {
            display: none;
        }
    }

    #questionBtn {
        position: relative;
        width: 30px;
        height: 30px;
        background-color: transparent;
        border: none;

        &::before {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            content: "";
            background-image: url("/excludes/images/p/org2/common/btn_question.png");
            background-size: contain;
            background-position: 0 0;
            border-radius: 50%;
        }
    }

    .edit-btn {
        position: relative;
        padding: 4px 8px 4px 27px;
        font-size: 12px;
        background-color: #fff;
        border: none;
        border-radius: 2px;

        &::before {
            position: absolute;
            top: 50%;
            left: 8px;
            width: 14px;
            height: 13px;
            content: '';
            background-image: url("/excludes/images/p/org2/common/icon_edit.png");
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            transform: translateY(-50%);
        }
    }

    .add-this-btn {
        position: relative;
        padding: 4px 20px;
        font-size: 12px;
        background-color: #fff;
        border: none;
        border-radius: 2px;

        &::before {
            position: absolute;
            top: 50%;
            left: 8px;
            width: 8px;
            height: 8px;
            content: '';
            background-image: url("/excludes/images/p/org2/common/icon_plus.png");
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            transform: translateY(-50%);
        }
    }
}

.modalContents {
    flex: 1;
    position: relative;
    padding: 20px;
    width: 100%;
    min-height: 0;
}

.howto {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    text-align: left;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
    pointer-events: none;
    transition: all ease .5s;


    &.is-active {
        opacity: 1;
        pointer-events: all;
    }

    .howtoHdg {
        font-size: 18px;
        font-weight: bold;
    }

    .howtoPreText {
        margin-top: 20px;
        font-size: 16px;
    }

    > ul {
        margin-top: 10px;

        > li {
            position: relative;
            padding-left: 1em;
            font-size: 16px;

            &:not(:first-of-type) {
                margin-top: 5px;
            }

            &::before {
                position: absolute;
                top: .5em;
                left: 0;
                width: 4px;
                height: 4px;
                content: "";
                border-radius: 50%;
                background-color: #333;
            }

            > span {
                font-weight: bold;
            }
        }
    }

    .howtoLastText {
        margin-top: 20px;
        font-size: 16px;
    }
}

.pageList {
    position: relative;
    width: 100%;
    height: 100%;
    padding-right: 8px;
    background-color: #fff;
    pointer-events: none;
    transition: all ease .5s;
    list-style: none;
    overflow-y: scroll;

    a {
        pointer-events: none;
        cursor: auto;
    }

    &.is-active {
        pointer-events: all;
        z-index: 99;
        a {
            pointer-events: all;
            cursor: pointer;
        }
    }

    > li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-inline: 18px;
        text-align: left;
        background-color: #F3F6F7;

        &:not(:first-of-type) {
            margin-top: 8px;
        }

        > a {
            flex: 1;
            display: block;
            padding-block: 14px;
            text-decoration: none;
            font-size: 16px;
            color: #333;
        }

        .itemBtns {
            display: none;

            &.is-active {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100px;
                gap: 5px;

                > button {
                    cursor: pointer;
                    pointer-events: all;

                    &.deleteBtn {
                        padding: 4px 8px;
                        font-size: 12px;
                        color: #E95283;
                        border: solid 1px #E95283;
                        border-radius: 2px;
                        background-color: #fff;
                    }

                    &.upBtn {
                        position: relative;
                        background-color: transparent;
                        border: none;
                        width: 22px;
                        height: 22px;

                        &::before {
                            position: absolute;
                            top: 0;
                            left: 0;
                            width: 100%;
                            height: 100%;
                            content: '';
                            background-image: url('/excludes/images/p/org2/common/icon_sort.png');
                            background-size: contain;
                            background-position: center;
                        }
                    }

                    &.downBtn {
                        position: relative;
                        background-color: transparent;
                        border: none;
                        width: 22px;
                        height: 22px;

                        &::before {
                            position: absolute;
                            top: 0;
                            left: 0;
                            width: 100%;
                            height: 100%;
                            content: '';
                            background-image: url('/excludes/images/p/org2/common/icon_sort.png');
                            background-size: contain;
                            background-position: center;
                            transform: rotate(180deg);
                        }
                    }
                }
            }
        }
    }

    &:has(.no-contents) {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    
    .no-contents {
        text-align: center;
        font-size: 16px;
        background-color: transparent;
    }

    > li:has(.is-active) > a {
        pointer-events: none;
        cursor: none;
    }


    &::-webkit-scrollbar {
        transform: translateX(100px);
        width: 8px;
    }

    &::-webkit-scrollbar-thumb {
        background: #415778;
        border-radius: 4px;
    }

    &::-webkit-scrollbar-track {
        background: #E6E6E6;
        border-radius: 4px;
    }
}