:root {
    --base-bg-color: #FEFAF1;
    /*--header-gb-color: #ffcd5d;*/
    --header-gb-color: #ffce62;
}

body {
    font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
    background-color: var(--base-bg-color);
    text-rendering:auto;
}

b,
strong,
.bold {
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
}

a{
    color: #000;
    text-decoration: none;
}

ul{
    margin: 0;
    padding: 0;

    li{
        list-style: none;
    }
}

#hero{
    position: relative;
    margin: 0 0 30px;

    img{
        width: 100%;
        height: 650px;
        object-fit: cover;
        aspect-ratio: 3300 / 2250;

        @media screen and (max-width:600px) {
            &{
                height: auto;
                object-fit: initial;
            }
        }
    }

    .message{
        position: absolute;
        z-index: 2;
        width: 100%;
        bottom: 10%;
        padding: 1.5em;
        color: #fff;
        line-height: 1.5;
        text-align: center;
        text-shadow: 0 0 12px black;

        @media screen and (max-width:600px) {
            &{
                padding: 1.0em;
                bottom: 0%;
            }
        }

        h1{
            font-size: clamp(0.8rem, calc(0.8rem + 3vw), 3rem);
            font-weight: 700;
        }

        br{
            display: none;

            @media screen and (max-width:600px) {
                &{
                    display: block;
                }
            }
        }

        
    }
}

.textContent{
    background-color: #fff;
    margin: 0 auto;
    padding: 25px;
    box-shadow: 2px 2px 14px 0px #e4e4e4;
    max-width: 800px;
    border-radius: 5px;

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

    &.bgNone{
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        margin: 40px auto;
        max-width: 600px;

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

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

    h1{
        font-size: 25px;
        margin: 0 0 0.5em;
    }

    h2{
        font-size: 20px;
        margin: 0 0 0.3em;
    }

    p{
        margin: 0 0 1em;

        &:last-child{
            margin: 0;
        }
    }

    table{
        background-color: #fff;
        padding: 25px;
        border-radius: 5px;
        box-shadow: 2px 2px 14px 0px #e4e4e4;

        @media screen and (max-width:850px) {
            padding: 15px;
        }

        tr{
            td{
                vertical-align: top;
    
                &.year{
                    width: 5em;
                }
            }
        }
        
    }
}

.marker{
    position: relative;
    text-align: center;

    &:before {
        content: "";
        position: absolute;
        z-index: -1;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 14px;
        background: url(/images/common/marker.svg) 0 0 / 100% 100% no-repeat;
    }
}

h2.marker{
    margin: 0 0 1em;
    font-size: 24px;
}


.toCenter{
    text-align: center;
}

.borderBold{
    &.yellow{
        background-image: linear-gradient(transparent 60%, var(--header-gb-color) 60%);
    }
}

.fukidashi-02-04 {
    position: relative;
    width: fit-content;
    margin: 0 auto;
  }
  .fukidashi-02-04 > .text {
    position: relative;
    padding: 12px 16px;
    border-radius: 4px;
    background-color: #fff;
  }
  .fukidashi-02-04 > .text::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 30%;
    width: 15px;
    height: 15px;
    transform: rotate(135deg);
    box-sizing: border-box;
    background-color: #fff;
  }
  .fukidashi-02-04 > .ornament {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
  }
  .fukidashi-02-04 > .ornament::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    width: 36px;
    height: 14px;
    transform: rotate(-45deg);
    box-sizing: border-box;
    background-color: #ff57b1;
    mix-blend-mode: multiply; /* 乗算 */
  }
  .fukidashi-02-04 > .ornament::after {
    content: "";
    position: absolute;
    top: calc(100% - 15px);
    right: -10px;
    width: 36px;
    height: 14px;
    transform: rotate(-45deg);
    box-sizing: border-box;
    background-color: #64d1ff;
    mix-blend-mode: multiply; /* 乗算 */
  }




/* ヘッダー */
header {
    position: fixed;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    align-items: start;
    width: 100%;

    .left{
        .sns{
            background-color: var(--header-gb-color);
            padding: 20px 40px 45px 20px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            width: 125px;
            gap: 15px;
            clip-path: polygon(0% 0%, 100% 0%, 85% 55%, 0% 100%);
    
            @media screen and (max-width:600px) { 
                &{
                    padding: 13px 20px 18px 15px;
                    width: 95px;
                    clip-path: polygon(0% 0%, 100% 0%, 90% 75%, 0% 100%);
                }
            }

            a{
                display: block;
    
                img{
                    width: 100%;
                    height: auto;
                    vertical-align: bottom;
                }
            }
        }
    }

    .center{
        .logo{
            text-align: center;
            background-color: var(--header-gb-color);
            padding: 20px 0 35px;
            clip-path: polygon(0% 0%, 100% 0%, 92% 100%, 12% 80%);            
            width: 330px;
            margin: 0 auto;

            .facilityType{
                font-size: 16px;
                margin: 6px 0 0px;
                line-height: 1;
            }
    
            .age{
                font-size: 16px;
                margin: 4px 0 -3px;
                line-height: 1;
            }

            img{
                width: 180px;
                height: auto;
                vertical-align: bottom;
                margin: 0 auto;

                @media screen and (max-width:480px) { 
                    width: 150px;
                }

            }

            @media screen and (max-width:600px) { 
                &{
                    width: 100%;
                    padding: 15px 0 25px;
                    font-size: 18px;
                }
            }

            @media screen and (max-width:480px) { 
                &{
                    width: 111%;
                    margin: 0 0 0 -12px;
                }
            }
        }
    }

    .right{
        position: relative;

        .bg{
            background-color: var(--header-gb-color);
            height: 65px;
            width: 90px;
            clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 25% 85%);
            margin: 0 0 0 auto;

            @media screen and (max-width:600px) { 
                &{
                    height: 55px;
                    width: 70px;
                    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 20% 80%);
                }
            }
        }
    }


    

    /* ハンバーガーメニュー */
    .outer-menu {
        position: absolute;
        z-index: 1;
        top: 16px;
        right: 20px;

        @media screen and (max-width:600px) { 
            &{
                top: 10px;
                right: 15px;
            }
        }
       

        .checkbox-toggle {
            position: absolute;
            top: 0;
            left: 0;
            z-index: 2;
            cursor: pointer;
            width: 30px;
            height: 30px;
            opacity: 0;

            @media screen and (max-width:600px) { 
                &{
                    width: 25px;
                    height: 25px;
                }
            }

            &:checked+.hamburger>div {
                transform: rotate(135deg);
            }

            &:checked+.hamburger>div:before,
            &:checked+.hamburger>div:after {
                top: 0;
                transform: rotate(90deg);
            }

            &:checked+.hamburger>div:after {
                opacity: 0;
            }

            &:checked~.menu {
                pointer-events: auto;
                visibility: visible;
            }

            &:checked~.menu>div {
                transform: scale(1);
                transition-duration: .75s;
                border-radius: 45%;
            }

            &:checked~.menu>div>div {
                opacity: 1;
                transition: opacity .4s ease .1s;
            }

            &:checked:hover+.hamburger>div {
                transform: rotate(225deg);
            }
        }

        .hamburger {
            position: relative;
            top: 0;
            left: 0;
            z-index: 1;
            width: 30px;
            height: 30px;
            background: transparent;
            border-radius: 0 .12em .12em 0;
            cursor: pointer;
            transition: box-shadow .4s ease;
            backface-visibility: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 0 0 auto;

            @media screen and (max-width:600px) { 
                &{
                    width: 25px;
                    height: 25px;
                }
            }

            &>div {
                position: relative;
                flex: none;
                width: 100%;
                height: 3px;
                background: #000;
                transition: all .4s ease;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50px;
            }

            &>div:before,
            &>div:after {
                content: '';
                position: absolute;
                z-index: 1;
                top: -10px;
                left: 0;
                width: 100%;
                height: 3px;
                background: inherit;
                transition: all .4s ease;
                border-radius: 50px;
            }

            &>div:after {
                top: 10px;
            }

            @media screen and (max-width:600px) { 
                &>div:before,
                &>div:after {
                    top: -8px;
                }

                &>div:after {
                    top: 8px;
                }
            }


        }

        .menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            visibility: hidden;
            overflow: hidden;
            backface-visibility: hidden;
            outline: 1px solid transparent;
            display: flex;
            align-items: center;
            justify-content: center;

            &>div {
                width: 200vw;
                height: 200vw;
                color: #FEFEFE;
                background: rgb(254 250 241 / 90%);
                border-radius: 50%;
                transition: all .4s ease;
                flex: none;
                transform: scale(0);
                backface-visibility: hidden;
                overflow: hidden;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            &>div>div {
                max-width: 90vw;
                max-height: 100vh;
                opacity: 0;
                transition: opacity .4s ease;
                overflow-y: auto;
                flex: none;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            &>div>div>ul {
                list-style: none;
                padding: 0 1em;
                margin: 0;
                display: block;
                max-height: 100vh;
            }

            &>div>div>ul>li {
                padding: 0;
                margin: 1em;
                font-size: 23px;
                display: block;

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

            &>div>div>ul>li>a {
                position: relative;
                display: inline;
                cursor: pointer;
                color: #000;
                text-decoration: none;
            }

            
            &>div>div>ul>li>a:hover {
                color: #444;
                font-weight: 700;
            }
            

            /*
            &>div>div>ul>li>a:hover:after {
                width: 100%;
            }
            */

            /*
            &>div>div>ul>li>a:after {
                content: '';
                position: absolute;
                z-index: 1;
                bottom: -0.15em;
                left: 0;
                width: 0;
                height: 2px;
                background: #e5e5e5;
                transition: width .4s ease;
            }
            */
        }
    }
}

.headerUnderSpace{
    height: 100px;
}

footer{
    background-color: var(--base-bg-color);

    .inner{
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 800px;
        margin: 0 auto;
        padding: 50px 20px;
        
        @media screen and (max-width:960px) {
            &{
                padding: 50 20px 0;
                gap: 40px;
            }
            
        }
    
        @media screen and (max-width:700px) {
            &{
                flex-direction: column;
            }
        }
    
        .left{
            font-size: 12px;
    
            @media screen and (max-width:700px) {
                &{
                    text-align: center;
                }
            }
    
            .logo{
                
                img{
                    width: 180px;
                    height: auto;
                    vertical-align: bottom;
                    margin: 0 0 0.8em;
                }
    
                @media screen and (max-width:700px) {
                    &{
                        margin: 0 0 1.5em;
                    }
                }
            }
        }
    
        .center{
    
            .sns{
                display: flex;
                align-items: center;
                gap: 20px;
    
                a{
                    img{
                        width: 25px;
                        height: auto;
                        vertical-align: bottom;
                    }
    
                    .map{
                        background-color: #000;
                        color: #fff;
                        font-size: 10px;
                        font-weight: 700;
                        padding: 0 8px;
                        line-height: 1;
                        border-radius: 8px;
                        height: 23px;
                        display: grid;
                        align-items: center;
                    }
                }
            }
        }
    
        .right{
    
            @media screen and (max-width:700px) {
                &{
                    text-align: center;
                }
            }
    
            h2{
                font-size: 15px;
                font-weight: 700;
    
                @media screen and (max-width:700px) {
                    &{
                        margin: 0 0 1em;
                    }
                }
            }
    
            a{
                font-size: 22px;
                font-weight: 700;
            }
    
            p{
                font-size: 12px;
    
                @media screen and (max-width:700px) {
                    &{
                        margin: 1em 0;
                    }
                }
            }
        }
    }
}

#footerGraphics{
    overflow: hidden;
    background-color: var(--base-bg-color);

    .inner{
        margin: 0 -30px 0;
        width: 100%;
        height: 170px;
        position: relative;

        #footerGraphicsTree{
            width: 100px;
            height: auto;
            position: absolute;
            bottom: 38px;
            left: 10%;
            opacity: 0.8;
            
            @media screen and (max-width:480px) {
                &{
                    bottom: 57px;
                    left: 32%;
                }
            }
        }
    
        #footerGraphicsChild{
            width: 33px;
            height: auto;
            position: absolute;
            bottom: 57px;
            right: 30%;
            opacity: 0.8;

            @media screen and (max-width:480px) {
                &{
                    bottom: 50px;
                    right: 13%;
                    opacity: 0.8;
                    transform: rotate(12deg);
                }
            }
        }
    
        #footerGraphicsGround{
            background-color: #535048;
            width: 110%;
            height: 120px;
            border-radius: 50%;
            clip-path: polygon(1% 0%, 100% 0%, 100% 50%, 0% 50%);
            margin: 0 auto -60px;
            position: absolute;
            bottom: 0;
        }
    }
    
}

.notFoundPage{
    .textContent{
        height: 500px;
        display: flex;
        justify-content: center;
        align-items: center;

        @media screen and (max-width:480px) {
            &{
                height: auto;
            }
        }

        h1{
            font-size: 50px;
    
            @media screen and (max-width:480px) {
                &{
                    font-size: 30px;
                    text-align: center;
                    margin: 0 0 50px;
                }
            }
        }
    
        .m-plus-1p-medium {
            font-family: "M PLUS 1p", sans-serif;
            font-weight: 500;
            font-style: normal;
        }
          
        .m-plus-1p-extrabold {
            font-family: "M PLUS 1p", sans-serif;
            font-weight: 800;
            font-style: normal;
        }
    }

    
}

