@charset "utf-8";

#hero {
    margin-top: 85px;
    display: flex;
    justify-content: right;
    align-items: center;
    position: relative;
    background: linear-gradient(180deg, rgb(247, 244, 239) 70%, rgb(250, 184, 52) 20%, rgb(229, 97, 97) );
}

#hero-left {
    position: absolute;
    top: 25%;
    left: 20px;
    background-color: rgba(231, 105, 183, 0.9);
    padding: 0 30px;
    font-size: 1.3rem;
}

#hero-left h1, #hero-right2 h2 {
    font-weight: 300;
}

#hero-right {
    width: 80%;
    text-align: right;
}

#hero-right img {
    width: 90%;
    height: 600px;
    object-fit:fill;
    margin-left: auto;
}

#hero-right2 {
    position: absolute;
    bottom:70px;
    left: 20px;
    background-color: rgba(231, 105, 183, 0.9);
    padding: 0 20px;
    font-size: 1.5em;
}

#container {
    width: 90%;
    margin: 0 auto;
}

#intro-wrapper {
    width: 85%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

#introduce {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    padding: 20px 0;
    margin: 100px auto 90px;
    min-height: 250px;
    background-color: #f2cabc;
    box-sizing: border-box;
    font-size: 1.2rem;
    line-height: 1.8;
    position: relative;
    box-shadow: 4px 4px rgb(168, 166, 166);
}

#introduce p {
    width: 80%;
    font-size: 1.3rem;
}

#introduce p span {
    color: #ee0000;
}

#introduce:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 30px 40px 0 0;
    border-color: rgb(247, 244, 239) transparent transparent transparent;
}

#introduce:after {
    content: "";
    position: absolute;
    top: -6px;
    left: 5px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 40px 30px;
    border-color: transparent transparent #efefef transparent;
    box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.15);
    transform: rotate(16deg);
}

#intro-img {
    width: 40%;
}

#intro-img img {
    max-width: 350px;
    max-height: 300px;
    border-radius: 30px;
    margin-left: 50px;
    margin-right: 20px;
}

/* newsここから */
.contents-wrapper {
    width: 95%;
    margin: 0 auto;
}

#news-wrapper {
    margin-bottom: 100px;
    background-color: rgba(241, 215, 162, 0.5);
    padding-bottom: 30px;
}

.contents-title {
    display: flex;
    align-items: center;
}

.heading {
    position: relative;
    padding-bottom: 10px;
    width: 100%;
    border-bottom: 5px solid #c7c7c7;
}

.heading::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    height: 5px;
    background-color: rgb(224, 106, 51);
}

.contents-title h2 {
    font-size: 2rem;
    margin-bottom: 0;
    margin-left: 30px;
}

.contents-title p {
    font-size: 1.5rem;
    margin-left: 30px;
    margin-bottom: 0;
}

#news-contents {
    margin: 20px auto;
}

.news {
    display: flex;
    justify-content: center;
    align-items: center;
}

.news p span {
    color: #ee0000;
}

.news time {
    width: 15%;
    margin-left: 20px;
    font-size: 1.2rem;
}

.news .news-info {
    border: 2px solid #ee0000;
    color: #ee0000;
    border-radius:10px;
    padding: 0 10px;
    margin-right: 30px;
}

.news .news-title {
    width: 70%;
    font-size: 1.2rem;
}

/* policyここから */
#policy-wrapper {
    background-image:url("../images/classroom.jpg");
    background-size: cover;
    background-color:rgba(255,255,255,0.7);
    background-blend-mode:lighten;
    padding-bottom: 100px;
}

#policy-contents {
    display: flex;
    justify-content: space-around;
}

.policy-box {
    width: 30%;
    margin-top: 30px;
    padding: 10px 30px;
    border-image-source: repeating-linear-gradient(45deg, #2b550e 0px, #2b550e 4px, rgba(0 0 0 / 0) 4px, rgba(0 0 0 / 0) 6px);
    border-image-slice: 3;
    border-width: 5px;
    border-style: solid;
    background-color: rgba(214, 231, 239, 0.7);
    font-size: 1.1rem;
    line-height: 1.8;
}

#policy01 h3,
#policy02 h3,
#policy03 h3{
    text-align: center;
    color: #2e1075;
    font-size: 1.5rem;
}

#policy03 img {
    display: block;
    margin: 0 auto;
}


@media screen and (max-width: 1024px) {
    /* 1024pxまでの幅の場合に適用される */
    #hero-left {
        width: 45%;
        top: 30%;
    }
    #hero-left h1 {
        font-size: 22px;
        text-align: center;
        font-weight: 200;
    }
    #hero-right2 {
        width: 38%;
        bottom: 20%;
    }
    #hero-right2 h2 {
        font-size: 20px;
        text-align: center;
    }
    #hero-right img{
        width: 100%;
        object-fit: cover;
        height: 450px;
    }
    #container {
        width: 95%;
    }
    #intro-wrapper {
        width: 95%;
    }
    #introduce {
        margin: 70px 10px;
        width: 50%;
    }
    #introduce p {
        font-size: 16px;
    }
    #intro-img img {
        margin-left: 10px;
        width: 100%;
    }
    .heading h2{
        font-size: 25px;
        font-weight: 400;
    }
    #news-wrapper {
        padding-bottom: 5px;
        margin-bottom: 50px;
    }
    #news-wrapper .contents-title p {
        font-weight: 200;
        margin-top: 15px;
        margin-left: 20px;
    }
    #news-contents .news time{
        font-size: 16px;
    }
    #news-contents .news .news-info {
        padding: 2px;
        width: 80px;
        text-align: center;
        margin-left: 10px;
    }
    #news-contents .news .news-title {
        font-size: 18px;
    }
    #policy-wrapper {
        background-image: none;
        background-color: #fff;
        padding-bottom: 50px;
    }
    #policy-contents {
        display: block;
        width: 95%;
    }
    .policy-box {
        width: 90%;
        margin: 20px auto;
    }
}
    @media screen and (max-width: 800px) {
        #hero-left,
        #hero-right2 {
            padding: 5px;
        }
        #hero-right2 {
            width: 45%;
        }
        #hero-left h1,
        #hero-right2 h2 {
            font-size: 18px;
        }
    }
    @media screen and (max-width: 550px) {
        #hero-right {
            width: 100%;
            margin-top: -15px;
        }
        #hero-left {
            width: 70%;
            top: 58%;
            left: 10px;
        }
        #hero-left h1 {
            font-size: 16px;
        }
        #hero-right2 {
            width: 70%;
            bottom: 10px;
            left: 10px;
        }
        #hero-right2 h2 {
            font-size: 16px;
        }
        #introduce {
            width: 100%;
            margin-top: 30px;
            margin-bottom: 40px;
        }
        #intro-img {
            display: none;
        }
        .news {
            display: block;
            margin-bottom: 20px;
            text-align: center;
            background-color: rgb(231, 209, 159);
            padding: 5px;
        }
        .news time {
            margin: 0 auto;
        }
        #news-contents .news .news-info {
            margin: 8px auto;
        }
        #news-contents .news .news-title {
            margin: 0 auto 10px;
            text-align: center;
            width: 90%;
        }
        #policy-wrapper {
            padding-bottom: 10px;
        }
        #policy-wrapper .contents-title h2,
        #policy-wrapper .contents-title p { 
            font-size: 21px;
        }
        #policy-contents {
            margin: 0 auto;
        }
        .policy-box {
            width: 100%;
            padding: 10px;
            margin: 20px auto;
        }
        .policy-box h3 {
           margin: 5px;
        }
        .policy-box p {
            font-size: 15px;
        }
        #footer {
            display: block;
        }
    }