﻿
#notice-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5rem;
    background-color: #7fbe26;
    border: 0.15rem solid white;
    padding: 0.2rem 0.8rem;
    cursor: pointer;
}

    #notice-button img {
        height: 1.8rem;
        width: 1.8rem;
    }

    #notice-button span {
        font-size: 0.88rem;
        font-weight: bold;
        color: white;
        margin-right: 0.5rem;
        margin-top: 0.1rem;
    }

#notice {
    height: 3rem;
    width: 3rem;
    margin-bottom: -3rem;
    position: relative;
    float: right;
    border-radius: 5rem;
    z-index: 1;
    box-shadow: 0 0 8px #0000004d;
    right: -0.9rem;
    top: -1rem;
}

#sideMenu {
    position: fixed;
    width: 36.25rem;
    height: 100%;
    transition: right 0.3s ease;
    background-color: white;
    z-index: 10001;
    overflow-y: auto;
    top: 70px;
}

.menu-visible {
    right: 0;
}

.menu-hidden {
    right: -100%;
}

#overlay {
    position: fixed;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    top: 70px;
}

#sideMenu-header {
    height: 4rem;
    background-color: #7fbe26;
}

.hidden {
    display: none !important;
}

.overflow-hidden {
    overflow: hidden;
    scrollbar-gutter: stable
}

.notice-container {
    display: flex;
    width: 100%;
    align-items: center;
    background-color: #7fbe26;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 0.5rem;
    padding: 0.3rem 1rem;
}

.notice-icon {
    height: 3rem;
    width: 3rem;
}

.notice-text {
    margin-right: auto;
    font-weight: bold;
    line-height: 1.375;
    color: white;
    font-size: 1.1rem;
}

#notice-close {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    margin-right:0.45rem;
}

    #notice-close img {
        height: 1.5rem;
        width: 1.5rem;
    }

.header-content {
    position: relative;
    display: flex;
    cursor: pointer;
    gap: 1rem;
    padding: 1.5rem;
    padding-bottom: 3.5rem;
}
.kyojuimage {
    height: 4.5rem;
    min-height: 4.5rem;
    width: 4.5rem;
    min-width: 4.5rem;
    background-color: #9ca3af;
}

.newbudge {
    height: 1.8rem;
    width: 1.8rem;
    left: 0.75rem;
    top: 0.75rem;
    z-index: 1;
    position: absolute;
}

    .header-content:after {
        --tw-border-opacity: 1 !important;
        border-color: #000 transparent transparent;
        border-top-color: rgb(127 190 38);
        border-style: solid;
        border-width: 0.7rem 0.7rem;
        bottom: 0.3rem;
        content: "";
        height: 0;
        left: calc(50% - .66rem);
        position: absolute;
        width: 0;
    }

    .header-content:nth-child(even) {
        background-color: #f3f9ed;
    }

    .header-content.expand:after {
        bottom: .75rem;
        transform: rotate(180deg);
    }

.url a {
    color: black;
    text-decoration-line: underline;
    word-break: break-all;
    font-weight: 400;
    font-size: 0.9rem;
}

.button-wrapper {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.video-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: black;
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
}

#notice-list-area {
    margin-bottom: 5.3rem;
}

.date {
    font-size: 0.7rem;
    font-weight: 500;
}

.teacher {
    font-size: 0.8rem;
    font-weight: 500;
}

.title {
    font-size: 1rem;
    font-weight: 700;
    word-break: break-all;
}

.description, .previewtext {
    font-size: 0.8rem;
    font-weight: 500;
    word-break: break-all;
}

.notification-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.8rem;
    background-color: rgb(255, 217, 0);
    color: black !important;
    border-radius: 50%;
    padding: 0.4rem 0;
    min-width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tooltip {
    position: relative;
}

.tooltip-text {
    visibility: hidden;
    width: 14rem;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 0.65rem;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 1rem;
    font-weight: bold;
    position: absolute;
    box-shadow: 0 0 8px #0000004d;
    right: -0.698rem;
    top: -4.38rem;
}

    .tooltip-text::after {
        content: "";
        position: absolute;
        top: 100%;
        border-width: 8px;
        border-style: solid;
        border-color: #000 transparent transparent transparent;
        margin-left: -5px;
    }

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/*sp-------------------------------------------------*/
@media screen and (max-width: 767px) {

    #notice {
        height: 2.5rem;
        width: 2.5rem;
    }

    #sideMenu {
        width: 100%;
        top: 70px;
    }

    #notice-button {
        height: 2.5rem;
        width: 2.5rem;
        padding: 0.25rem;
    }

        #notice-button img {
            height: 2.3rem;
            width: 2.3rem;
        }

        #notice-button span {
            display: none;
        }

    .notice-container {
        gap: 0.6666rem;
        padding: 0.3rem 1rem;
    }

    .notice-text {
        font-size: 1.2rem;
    }

    .video-button {
        padding: 0.5rem 1.5rem;
        font-size: 0.85rem;
    }

    .header-content {
        gap: 1.25rem;
        padding: 2rem;
        padding-bottom: 2.75em;
    }

    .content-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .date {
        font-size: 0.75rem;
        font-weight: 500;
    }

    .teacher {
        font-size: 0.83rem;
        font-weight: 500;
    }

    .title {
        margin-top: 0.25rem;
        word-break: break-all;
        font-size: 1.05rem;
        font-weight: bold;
    }

    .description, .previewtext {
        margin-top: 0.25rem;
        word-break: break-all;
        font-size: 0.83rem;
        font-weight: 500;
    }

    .tooltip-text {
        display: none
    }

    .newbudge {

        left: 1.2rem;
        top: 1.2rem;
    }
}

