#notice-section.notice-section {
    .section-wrap {

        h2 {
            time {
                font-size: var(--size18);

                @media screen and (max-width: 768px) {
                    font-size: var(--sp_size20);
                }

                @media screen and (max-width: 440px) {
                    font-size: var(--sp_size24);
                }

                text-align: right;
                margin-left: 1.85em;


            }

        }


        a {
            font-size: var(--size20);

            @media screen and (max-width: 768px) {
                font-size: var(--sp_size20);
            }

            @media screen and (max-width: 440px) {
                font-size: var(--sp_size20);
            }

            font-weight: 600;
            width: fit-content;
            color: var(--color-main);
            line-height: 1;
            margin-bottom: .6em;
            margin-top: .6em;

            &.text-title {
                font-size: var(--size24);
                font-weight: 600;

                @media screen and (max-width: 768px) {
                    font-size: var(--sp_size26);
                }

                @media screen and (max-width: 440px) {
                    font-size: var(--sp_size28);
                }

                background: linear-gradient(90deg,
                    #d333b8,
                    var(--color-orange-dark));
                background-size: 100% 100%;
                -webkit-background-clip: text;
                background-clip: text;
                -webkit-text-fill-color: transparent;
                color: #ffffff00;
            }

            &.text-title2 {
                font-size: var(--size20);
                font-weight: 300;

                @media screen and (max-width: 768px) {
                    font-size: var(--sp_size24);
                }

                @media screen and (max-width: 440px) {
                    font-size: var(--sp_size28);
                }

                color: var(--color-orange-dark);
            }

            &.text-title3 {
                font-size: var(--size22);
                font-weight: 600;

                @media screen and (max-width: 768px) {
                    font-size: var(--sp_size24);
                }

                @media screen and (max-width: 440px) {
                    font-size: var(--sp_size26);
                }

                color: #ff1b82;
            }

            &.link-file[href*=".pdf" i]::after {
                content: 'PDF';
                background-color: var(--color-main);
                color: #fff;
                -webkit-text-fill-color: white;
                font-size: var(--size16);
                font-weight: bold;
                padding: var(--size04) var(--size08);
                vertical-align: middle;
            }

            &.link-file[href*=".docx" i]::after {
                content: 'DOCX';
                background-color: var(--color-main);
                color: #fff;
                -webkit-text-fill-color: white;
                font-size: var(--size16);
                font-weight: bold;
                padding: var(--size04) var(--size08);
                vertical-align: middle;
            }



            &.link-file[href*=".xls" i]::after {
                content: 'XLS';
                background-color: rgb(0, 179, 0);
                color: #fff;
                -webkit-text-fill-color: white;
                font-size: var(--size16);
                font-weight: bold;
                padding: var(--size04) var(--size08);
                vertical-align: middle;
            }

            &.link-file[href*=".xlsx" i]::after {
                content: 'XLSX';
                background-color: green;
                color: #fff;
                -webkit-text-fill-color: white;
                font-size: var(--size16);
                font-weight: bold;
                padding: var(--size04) var(--size08);
                vertical-align: middle;
            }

            @media screen and (max-width: 768px) {
                font-size: var(--sp_size18);
                gap: var(--sp_size08);
                padding: var(--sp_size08) var(--sp_size08);

                &.link-file[href*=".pdf" i]::after {
                    font-size: var(--sp_size18);
                }

                &.link-file[href*=".xlsx" i]::after {
                    font-size: var(--sp_size18);
                }

                &.link-file[href*=".xls" i]::after {
                    font-size: var(--sp_size18);
                }
            }

            @media screen and (max-width: 440px) {
                font-size: var(--sp_size24);
                gap: var(--sp_size08);
                padding: var(--sp_size08) var(--sp_size08);

                &.link-file[href*=".pdf" i]::after {
                    font-size: var(--sp_size20);
                }

                &.link-file[href*=".xlsx" i]::after {
                    font-size: var(--sp_size20);
                }

                &.link-file[href*=".xls" i]::after {
                    font-size: var(--sp_size20);
                }
            }
        }


        a {
            &:hover {
                color: var(--color-main);
                background-image: linear-gradient(90deg,
                        var(--color-main));
                -webkit-background-clip: text;
                background-clip: text;
            }
        }

        .dli-external-link {
            display: inline-block;
            vertical-align: middle;
            color: var(--color-main);
            line-height: 1;
            width: 0.6em;
            height: 0.6em;
            border: 0.1em solid currentColor;
            border-radius: 0.1em;
            background: #fff;
            box-sizing: content-box;
            position: relative;
            margin-left: 0.5em;
        }

        .dli-external-link>span {
            position: absolute;
            top: -0.2em;
            right: -0.2em;
            width: 45%;
            height: 45%;
            border: 0.1em solid currentColor;
            border-bottom: 0;
            border-left: 0;
            background: #fff;
            box-shadow: -0.1em 0.1em 0 0.1em #fff;
            box-sizing: border-box;
        }

        .dli-external-link>span::before {
            content: '';
            position: absolute;
            top: -0.05em;
            right: -0.1em;
            width: 0.1em;
            height: 0.9em;
            background: currentColor;
            transform: rotate(45deg);
            transform-origin: top center;
        }

        .text-main-wrap {
            width: 100%;
            margin: 0 auto;
            padding-bottom: 1em;

            &.none {
                display: none;
            }

            p {
                line-height: 1.85;

                span {
                    font-size: var(--size16);
                    display: inline-block;
                    width: 100%;

                    &.right-align {
                        text-align: right;
                    }

                    &.center-align {
                        text-align: center;
                        font-size: var(--size20);
                        line-height: 2;
                        margin-top: 1em;
                        margin-bottom: 1em;

                        @media screen and (max-width: 768px) {
                            font-size: var(--sp_size24);
                        }

                        @media screen and (max-width: 440px) {
                            font-size: var(--sp_size28);
                        }
                    }

                    @media screen and (max-width: 768px) {
                        font-size: var(--sp_size20);
                    }

                    @media screen and (max-width: 440px) {
                        font-size: var(--sp_size24);
                    }

                    line-height: 1.5;
                }
            }

            .text-main-wrap-inner {
                margin-bottom: 1em;


                .list-title {
                    font-size: var(--size20);
                    color: var(--color-main);
                    font-weight: 600;
                    margin-bottom: 0.5em;
                    line-height: 1;

                    @media screen and (max-width: 768px) {
                        font-size: var(--sp_size24);
                    }

                    @media screen and (max-width: 440px) {
                        font-size: var(--sp_size28);
                    }
                }

                ul {
                    margin-left: 0;
                    list-style: none;
                    padding-left: 0;
                }

                li {
                    margin-bottom: 0.5em;
                    line-height: 1.5;
                    position: relative;
                    padding-left: 1.2em;
                    list-style: none;
                }

                li::before {
                    content: '・';
                    position: absolute;
                    left: 0;
                }

                li span {
                    font-size: var(--size16);
                    display: inline-block;
                    width: 100%;
                }
            }
        }
    }
}

/* モーダルスタイル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    &.is-active {
        opacity: 1;
        visibility: visible;
    }
}

.modal-container {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 4em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;

    @media screen and (max-width: 768px) {
        max-width: 95%;
        padding: 1.5em;
    }

    @media screen and (max-width: 440px) {
        max-width: 98%;
        padding: 1em;
    }
}

.modal-overlay.is-active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 0em;
    right: 1em;
    background: none;
    border: none;
    font-size: 2em;
    color: #333;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 1.5em;
    height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;

    &:hover {
        color: var(--color-main);
    }

    @media screen and (max-width: 768px) {
        font-size: 1.5em;
        top: 0.5em;
        right: 0.5em;
    }

    @media screen and (max-width: 440px) {
        top: 0em;
        right: 0em;
    }
}

.modal-content {
    margin-top: 1em;
    max-width: 920px;

    p {
        line-height: 2;
        margin-bottom: 1em;
        font-feature-settings: "palt";
        letter-spacing: 0.08em;

        span {
            font-size: var(--size16);
            display: inline-block;
            width: 100%;

            &.right-align {
                text-align: right;
                padding-right: 1em;

                @media screen and (max-width: 768px) {
                    padding-right: 0em;
                }

                &.time {
                    padding-right: 0;
                }
            }

            &.center-align {
                text-align: center;
                font-size: var(--size22);
                line-height: 2;
                margin-bottom: 1.5em;
                margin-top: 0.5em;

                @media screen and (max-width: 768px) {
                    font-size: var(--sp_size26);
                }

                @media screen and (max-width: 440px) {
                    font-size: var(--sp_size30);
                }
            }

            &.red-text {
                color: #ff1b41;
                width: auto;
            }

            @media screen and (max-width: 768px) {
                font-size: var(--sp_size24);
            }

            @media screen and (max-width: 440px) {
                font-size: var(--sp_size28);
            }
        }
    }

    .text-main-wrap-inner {
        margin-bottom: 1em;

        ul {
            margin-left: 1em;
            list-style: none;
            padding-left: 0;
        }

        li {
            margin-bottom: 0.5em;
            line-height: 1.5;
            position: relative;
            padding-left: 1.2em;
            list-style: none;
        }

        li::before {
            content: '・';
            position: absolute;
            left: 0;
        }

        li span {
            font-size: var(--size16);
            display: inline-block;
            width: 100%;

            &.red-text {
                color: #ff1b41;
                width: auto;
            }
        }

        .list-title {
            font-size: var(--size20);
            color: var(--color-main);
            font-weight: 600;
            margin-bottom: 0.25em;
            line-height: 1.25;
            margin-top: 0.8em;
            padding-left: 0;

            @media screen and (max-width: 768px) {
                font-size: var(--sp_size24);
            }

            @media screen and (max-width: 440px) {
                font-size: var(--sp_size28);
            }
        }

        .list-title2 span {
            font-size: var(--size18);

            @media screen and (max-width: 768px) {
                font-size: var(--sp_size20);
            }

            @media screen and (max-width: 440px) {
                font-size: var(--sp_size24);
            }
        }

        .waku {
            border: 1px solid var(--color-main);
            padding: 1em;

            span {
                line-height: 1.5;

            }
        }

        .arrow-text {
            text-align: left;
            margin: 0 0 0.5em 1.2em;
        }

        .text-padding-1p2 {
            padding-left: 1.2em;
        }

        .red-text {
            color: #ff1b41;
        }

    }
}