/* ページ上部お知らせ掲載用CSS */

#notice-target {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    text-align: center;

    .included-section {
        /* display: grid; */
        grid-column-gap: 10px;
        grid-row-gap: 0;
        justify-items: start;
        margin: 0 auto;
        padding: 15px;
        background: #D1EBFF;

        p {
            margin: 0;
            text-align: left;
        }
        
        .include-ttl {
            width: 100%;
            font-size: clamp(1.4rem, 3.7vw, 2rem);
            grid-area: 1 / 1 / 2 / 2 ;
        }

        .include-txt {
            font-size: clamp(1.4rem, 3.7vw, 1.6rem);
            grid-area: 2 / 1 / 3 / 2;
        }

        .include-btn {
            width: 100%;
            height: 40px;
            margin: 0;
            padding: 0;
        }

        .include-btn a {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0 2rem;
            background-color: #FFF;
            border-radius: 5px;
            color: #004391;
            font-size: 16px;
            line-height: 1;
            transition: .3s ease-in-out;
            
            &:hover {
                background-color: #004391;
                color: #FFF;
                text-decoration: none;
            }

            span {
                display: inline-block;
                font-size: 12px;
                line-height: 1;
            }
        }

    }

}


/* 旧デザイン */

.included-section {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    align-items: center;
    width: 980px;
    padding: 10px;

    .include-btn {
        grid-area: 1 / 2 / 3 / 3;
    }
}


/* 新デザイン */

#notice-target.notice-target_newDesign {
    background: #D1EBFF;

    .included-section {
        display: block;
        width: 100%;
        max-width: 1130px;
        padding: 15px;

        .include-ttl {
            text-align: center;
        }

        .include-btn {
            margin-top: 1rem;
        }

        @media (min-width: 768px) {
            display: grid;
            grid-template-columns: 1fr auto;
            grid-template-rows: 1fr auto;
            align-items: center;
            
            .include-ttl {
                text-align: left;
                grid-area: 1 / 1 / 2 / 2 ;
            }

            .include-txt {
                grid-area: 2 / 1 / 3 / 2;
            }

            .include-btn {
                margin-top: 0;
                grid-area: 1 / 2 / 3 / 3;
            }
        }
    }
}
