:root {
    --header-gb-color-345: #2ECC71;
    --header-gb-color-345_subPage: #ffce62;

    --header-gb-color-012: #f7f1cb;
    --header-gb-color-012_subPage: #ffce62;
}

.facility345{
    background-color: var(--header-gb-color-345);

    /*
    header {
        .left{
            .sns{
                background-color: var(--header-gb-color-345);
            }
        }
    
        .center{
            .logo{
                background-color: var(--header-gb-color-345);
            }
        }
    
        .right{
            .bg{
                background-color: var(--header-gb-color-345);
            }
        }
    }
    */
}

.facility345.subPage{
    background-color: var(--header-gb-color-345);

    /*
    header {
        .left{
            .sns{
                background-color: var(--header-gb-color-345_subPage);
            }
        }
    
        .center{
            .logo{
                background-color: var(--header-gb-color-345_subPage);
            }
        }
    
        .right{
            .bg{
                background-color: var(--header-gb-color-345_subPage);
            }
        }
    }
        */
}

.facility012{
    background-color: var(--header-gb-color-012);

    /*
    header {
        .left{
            .sns{
                background-color: var(--header-gb-color-012_subPage);
            }
        }
    
        .center{
            .logo{
                background-color: var(--header-gb-color-012_subPage);
            }
        }
    
        .right{
            .bg{
                background-color: var(--header-gb-color-012_subPage);
            }
        }
    }
    */
}

.facility012.subPage{
    background-color: var(--header-gb-color-012);

    /*
    header {
        .left{
            .sns{
                background-color: var(--header-gb-color-012_subPage);
            }
        }
    
        .center{
            .logo{
                background-color: var(--header-gb-color-012_subPage);
            }
        }
    
        .right{
            .bg{
                background-color: var(--header-gb-color-012_subPage);
            }
        }
    }
    */
}

.textContent{
    box-shadow: none;

    li{
        list-style: outside disc;
        margin: 0 0 0.5em 1em;
    }
}

.facility345{
    .time{
        color: var(--header-gb-color-345);
    }
}

.facility012{
    .time{
        color: #64d1ff;
    }
}

.timeLine{
    margin: 0 0 70px;

    .textContent{
        max-width: 600px;
        margin-bottom: 30px;
        border-radius: 10px;

        @media screen and (max-width: 850px) {
            margin-right: auto;
            margin-left: auto;
        }

        @media screen and (max-width: 630px) {
            margin: 0 20px 15px;
        }

        .time{
            font-size: 25px;
            font-weight: 700;
            margin: 0;

            &.spToSmall{
                @media screen and (max-width: 600px) {
                    &{
                        font-size: 22px;
                    }
                }
            }
        }

        .message{
            font-size: 20px;
            text-align: center;
            margin: 0;

            @media screen and (max-width: 600px) {
                &{
                    font-size: 19px;
                    text-align: left;
                }

                br{
                    display: none;
                }
            }

        }

        .content{
            display: flex;
            gap: 10px;
            margin: 0.5em 0 0;

            &.photoLeft{
                flex-direction: row-reverse;
            }

            &.photoBottom{
                flex-direction: column;

                .photo{
                    display: grid;
                    grid-template-columns: 1fr 1fr 1fr;
                    gap: 15px;

                    @media screen and (max-width: 600px) {
                        &{
                            grid-template-columns: 1fr 1fr;
                        }
                    }

                    &.one{
                        grid-template-columns: 1fr;
                    }

                    &.slideshow{
                        display:block;

                        .swiper{
                            .swiper-slide{
                                list-style: none;
                                margin: 0;
                            }
                        }
                    }
                }
            }

            .note{
                font-size: 18px;
                font-weight: 500;
                flex: 2;

                @media screen and (max-width: 600px) {
                    &{
                        flex: 1.3;
                    }
                }
            }
    
            .photo{
                flex: 1;

                

                img{
                    border-radius: 15px;
                    width: 100%;
                    height: auto;
                    aspect-ratio: 4 / 3;
                }

                figcaption{
                    margin: 5px 0 0;
                    font-size: 14px;

                    @media screen and (max-width: 600px) {
                        font-size: 12px;
                    }
                    
                    &.center{
                        text-align: center;
                    }
                }
            }

            h2{
                margin-top: 30px;
            }
        }
    }
}

.content{
    .links{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: row;
        gap: 30px;
        margin: 50px auto;
        max-width: 450px;
        font-size: 23px;

        @media screen and (max-width:480px) {
            &{
                margin: 50px 20px;
                font-size: 18px;
            }
        }

        li{
            position: relative;

            a{
                font-weight: 700;
            }

            .fukidashi-02-04{
                font-size: 15px;
                margin: 18px 0 0;
                left: -22px;
            }


        }
    }
}

.annualEvents{
    h2{
        font-size: 33px;
    }

    .calendarOfEvents{
        box-shadow: none;
        margin: 0 auto;

        th{
            width: 2.8em;
            text-align: right;
        }

        td{
            width: 17em;
            text-align: left;
        }

        th, td{
            
            vertical-align: top;
            font-size: 18px;
            border-bottom: 3px dotted #64d1ff;
            padding: 0 0px 5px;
            line-height: 1.8;

            @media screen and (max-width:480px) {
                &{
                    font-size: 16px;
                }
            }
        }
    }

    .eventPhotos{
        max-width: 700px;
        border-radius: 10px;
        background-color: #fff;
        padding: 25px;
        margin: 0 auto 80px;

        @media screen and (max-width: 740px) {
            margin: 0 15px 30px;
            padding: 15px;
        }

        .swiper {
            width: 100%;
            height: 100%;

            .swiper-slide{
                background: #fff;
                display: flex;
                justify-content: center;
                align-items: center;
    
                img{
                    border-radius: 15px;
                    display: block;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
        }

        figcaption{
            margin: 10px 0 0;
            font-size: 18px;
            text-align: center;

            &.left{
                text-align: left;
            }

            @media screen and (max-width: 600px) {
                font-size: 14px;
                text-align: left;

                &.center{
                    text-align: center;
                }
            }
        }

        h2{
            font-size: 25px;
            color: var(--header-gb-color-345);
        }

        .note{
             margin: 0.5em 0 1em;
        }
    }

}