@charset "UTF-8";
body{
    background-color: #fff462;
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    width: 100%;
    color: #1a1a1a;
    font-weight: bold;
    margin: 0;
}
p{
    margin: 0 0 5px 0;
}
ul{
    text-decoration: none;
    margin: 0;
    padding-top: 30px;
    padding-inline-start: 30px;
}
li{
    margin-bottom: 8px;
}
.menubar{
    display: none;
}

/* PageTopボタン */
#page_top{
    width: 60px;
    height: 60px;
    position: fixed;
    right: 20px;
    bottom: 10px;
    z-index: 1000;
}
#page_top a{
    width: 60px;
    height: 60px;
    text-decoration: none;
}
#page_top a::before{
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f0aa';
    font-size: 50px;
    color: #e6afcf;
    opacity: .8;
}

/* header */
header{
    width: 90%;
    margin: 0 auto;
    padding-top: 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
}
h1{
    width: 50%;
    font-size: 48px;
    margin: 0;
    text-align: center;
}
.logo{
    height: auto;
    margin-bottom: -20px;
    margin-right: -40px;
}
h2{
    font: side 24px;
    align-self: center;
    text-align: center;
    margin: 0;
}
.phone{
    width: 25%;
    display: flex;
    justify-content: center;
}
.phone h2{
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 10px;
    font: side 26px;
}
.phone h2::before{
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url(images/phone.png);
    background-size: contain;
    vertical-align: middle;
    margin-right: 8px;
    margin-bottom: 5px;
}
figure{
    width: 80%;
    margin: 0 auto;
}
figure img{
    width: 100%;
}
/* メイン */
section{
    width: 80%;
    min-width: 900px;
    max-width: 940px;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
}
aside, .right{
    width: 25%;
}
main{
    width: 50%;
}

/* 左 */
aside img{
    margin-bottom: -30px;
    z-index: 1000;
}
.left{
    width: 80%;
    height: 350px;
    background-color: #f9f9f9;
    border-radius: 10px;
    z-index: 100;
    overflow: scroll;
}
.left a{
    color: #1a1a1a;
    text-decoration: none;
}
.left a:hover{
    font-size: 18px;
    color: #003f8e;
    border-bottom: solid 1px #003f8e;
}
aside p{
    width: 120px;
    height: 30px;
    text-align: center;
    margin: 20px auto;
    background-color: #e6afcf;
    border-radius: 20px;
}
aside a{
    text-decoration: none;
    color: #1a1a1a;
    padding: 0;
}
aside i{
    padding-right: 5px;
}
aside p:hover{
    transform: scale(1.2);
}

/* 真ん中 */
main p{
    text-align: center;
}
main p:first-child{
    margin-top: 30px;
}
.mainimg{
    width: 90%;
    margin: 0 auto;
    border-radius: 100px 20px 100px 20px;
}
#hsj{
    max-width: 100%;
    height: auto;
    margin-top: -140px;
}
.fadein1{
    opacity: 0;
}
.fadein1_on{
    opacity: 1;
    transition : all 5s ease-out;
}
.fadein2{
    opacity: 0;
    transform: translate(0,50px);
}
.fadein2_on{
    opacity: 1;
    transform: translate(0,0);
    transition: all .5s;
}
/* 右 */
.right{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    height: 400px;
    margin-top: 50px;
}
.right ul{
    width: 90%;
    list-style-type: none;
    font-size: 20px;
    padding: 0;
}
.right li{
    margin-bottom: 30px;
}
.right a{
    text-decoration: none;
}
.right a:hover{
    font-size: 23px;
}
.right li:hover{
    transform:rotate(8deg);
}
.right img{
    width: 60px;
    height: 60px;
}
.yohaku{
    padding-left: 25px;
}
.rinen, .nyuen, .contact{
    margin-right: -50px;
    margin-bottom: -15px;
}
.ichiji{
    margin-right: -40px;
    margin-bottom: -15px;
}
.about{
    margin-right: -30px;
    margin-bottom: -15px;
}
.right a{
    color: #1a1a1a;
}
/* スクロール画面 */
.scrolldisplay{
    display: flex;
    flex-direction: column;
}
.scrolldisplay article{
    width: 100%;
    margin: 20px 0;
    padding-bottom: 50px;
    border-radius: 10px;
}
.scrolldisplay h2{
    margin: 10px 0 10px 0;
}
#philosophy{
    background-color: #e3acae;
}
#enrolment{
    background-color: #e6afcf;
}
#temporary{
    background-color: #c2e5f2;
}
#aboutus{
    background-color: #bee0ce;
}
.scrolldisplay div{
    background-color: #f9f9f9;
    width: 90%;
    margin: 5px auto;
    border-radius: 10px;
}
h4{
    margin: 0;
    padding-top: 5px;
    text-align: center;
}
.text_box{
    /* padding: 20px 50px; */
    /* width: 90%; */
    padding: 10px 0;
    min-height: 165px;
}
.text_box p{
    color: #000;
    margin: 5px auto;
    font-size: 15px;
}
.sample_text{
    text-align: center;
    width: 80%;
    height: 120px;
    margin: 5px auto;
}
details{
    margin: 10px 0;
    background-color: #f9f9f9;
}
details[open].content {
    animation: fadeIn 2.0s ease-in-out;
}
summary{
    font-size: 14px;
}
details p{
    padding: 10px 0 10px 10px;
}
#address{
    display: flex;
    flex-direction: row;
    padding-bottom: 0;
    background-color: #f9f9f9;
    border-radius: 10px;
}
.jyusho{
    width: 60%;
    padding-top: 50px;
}
.jyusho h2{
    width: 60%;
    text-align: left;
    margin: 10px auto;
    font-size: 30px;
}
.jyusho div{
    width: 60%;
    margin: 20px auto;
}
.jyusho img{
    margin-bottom: -20px;
    margin-right: -50px;
}
.jyusho p{
    font-size: 20px;
}
iframe{
    width: 40%;
    margin: 5px 0;
    border-radius: 10px;
}


/* 問い合わせフォーム */
#contact{
    width: 70%;
    min-width: 500px;
    max-width: 600px;
    background-color: #f9f9f9;
    margin: 50px auto;
    padding: 10px 50px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-sizing: border-box;
}
.input_box{
    flex-direction: row;
    margin: 10px 0;
}
#contact_name{
    margin-left: 65px;
}
.input_box input{
    width: 300px;
    font-size: 14px;
    padding: 2px 5px;
    box-sizing: border-box;
}
#comment{
    height: 200px;
    resize: none;
    font-size: 14px;
}
.contact_text{
    width: 100%;
    display: flex;
    flex-direction: column;
}
#submit{
    font-size: 14px;
    width: 50%;
    margin: 5px auto;
    border-radius: 10px;
    background-color: #e6afcf;
}
/* Footer */
footer{
    width: 100%;
    height: 20px;
    margin-top: 50px;
}
footer p{
    font-size: 14px;
    text-align: center;
    padding: 5px 0;
}
.footerfix{
    min-height: 100vh; /* コンテンツの高さの最小値＝ブラウザの高さに指定 */
    position: relative;
    padding-bottom: 20px; /* ←フッターの高さ */
    box-sizing: border-box;
}
.footerfix footer{
    text-align: center;
    position: absolute;
    bottom: 0;
}

/* タブレット用（一番大きいタブレットipad pro12.9の横幅に合わせている） */
@media screen and (max-width:1024px){
    header{
        width: 100%;
    }
    section{
        width: 80%;
        min-width: auto;
    }
    header h1{
        font-size: 44px;
    }
    .phone{
        font-size: 20px;
    }
    .phone h2{
        font-size: 24px;
    }
    .left{
        height: 220px;
    }
    .left img {
        margin-left: 100px;
    }
    h2 img{
        width: 50px;
        height: auto;
    }
    #hsj {
        margin-top: -100px;
    }
    .right img {
        width: 40px;
        height: auto;
    }
    .right ul{
        font-size: 18px;
    }
    .jyusho h2{
        width: 80%;
    }
    .jyusho div{
        width: 80%;
        /* padding-left: 80px; */
        padding-top: 10px;
    }
}

/*スマホ用(画面が崩れる境界線のサイズ) */
@media screen and (max-width:674px){
    #page_top{
        right: 0;
        width: 100%;
        text-align: center;
    }
    .phone{
        display: none;
    }
    header h1 {
        width: 90%;
        padding: 10px 0;
        font-size: 32px;
        margin: 0 auto;
    }
    .logo{
        margin-right: -60px;
    }
    section{
        flex-direction: column-reverse;
    }
    aside, main, .right{
        width: 100%;
        margin: 0 auto;
    }
    aside{
        padding-bottom: 10px;
    }
    .left{
        height: 100px;
        padding-bottom: 10px;
    }
    .right{
        display: none;
    }
    #hsj{
        z-index: 100;
    }

    .fadein2{
        opacity: 0;
        transform: translate(0,10px);
        z-index: 10;
    }
    .fadein2_on{
        opacity: 1;
        transform: translate(0,0);
        transition: all .5s;
        z-index: 10;
    }
    .left{
        margin: 0 auto;
    }
    .text_box{
        padding: 0;
    }
    .scrolldisplay div{
        width: 90%;
    }
    .scrolldisplay article{
        padding-bottom: 10px;
        margin: 5px auto;
    }
    .scrolldisplay h4{
        padding: 10px 5px 20px 5px;
        font-weight: 700;
    }
    #enrolment .text_box p, #temporary .text_box p, #aboutus .text_box p{
        font-size: 12px;
    }
    #address{
        flex-direction: column;
    }
    .jyusho{
        width: 100%;
    }
    .jyusho div{
        width: 80%;
    }
    .jyusho h2{
        font-size: 28px;
        text-align: center;
    }
    .jyusho p{
        font-size: 15px;
        text-align: center;
    }
    iframe{
        width: 90%;
        margin: 10px auto;
    }
    /* 園たより */
    .endayori{
        width: 80%;
    }
    /* お問い合わせフォーム */
    #contact{
        margin: 30px auto;
        padding: 10px 0;
        width: 95%;
        max-width: 95%;
        min-width: auto;
        box-sizing: border-box;
    }
    .input_box{
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-direction: column;
        padding-left: 10px;
    }
    .input_box input {
        width: 95%;
        line-height: 20px;
        max-width: 95%;
        margin: 0 auto;
    }
    #contact_name{
        margin-left: 0;
    }
    #submit{
        line-height: 24px;
    }
    label{
        font-size: 16px;
    }
    .contact_text{
        width: 100%;
        box-sizing: border-box;
        padding-left: 10px;
    }
    #comment{
        width: 95%;
        max-width: 95%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    .input_box input:focus{
        max-width: 95%;
    }
    #comment:focus{
        max-width: 95%;
    }
    #contact:focus{
        max-width: 95%;
    }

    footer p{
        font-size: 10px;
    }
    
    /* ハンバーガーメニュー */
    /* クリック前 */
    .menubar{
        display: block;
        padding: 5px 0 5px 5px;
    }
    .nav_toggle {
    display: block;
    position: relative;
    width: 60px;
    height: 60px;
    background-color:#e0cada;
    z-index: 100;
    border-radius: 10px;
    }
    .nav_toggle i {
    display: block;
    width: 50%;
    height: 2px;
    background-color:#10203d;
    position: absolute;
    transition: transform .5s, opacity .5s;
    }
    .nav_toggle i:nth-child(1) {
        top: 30%;
        left: 25%;
    }
    .nav_toggle i:nth-child(2) {
        top: 0;
        bottom: 0;
        left: 25%;
        margin: auto;
    }
    .nav_toggle i:nth-child(3) {
        left: 25%;
        bottom: 30%;
    }
    .menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity .5s, visibility .5s;
        z-index: 50;
        width: 80%;
        background-color: #e6afcf;
        padding-bottom: 100px;
        border-radius: 10px;
    }
    .menu >ul{
        list-style-type: none;
        margin-top: 100px;
        opacity: .8;
    }
    .menu li{
        margin-bottom: 12px;
    }
    .menu a{
        font-size: 20px;
        text-decoration: none;
        color: #fff;
    }
    .menu a:active{
        font-size: 18px;
    }
    /* クリック後 真ん中を決して上下の棒をXに変形*/
    .nav_toggle.show i:nth-child(1) {
        transform: translateY(11px) rotate(-45deg);
    }
    .nav_toggle.show i:nth-child(2) {
        opacity: 0;
    }
    .nav_toggle.show i:nth-child(3) {
        transform: translateY(-11px) rotate(45deg);
    }
    .menu.show {
        opacity: 1;
        visibility: visible;
    }
    html.fixed, html.fixed body{
        height: 100%;
        overflow: hidden;
    }
}

@media screen and (max-width:300px){
header h1{
    font-size: 28px;
}
}