@charset "utf-8";
* {
   box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    font-family: メイリオ, Meiryo, "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "ＭＳ Ｐゴシック", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #fff;
    letter-spacing: 0em;
    font-size: 1em;
    color: darkslategray;
    line-height: 1.6em;
}
header {
    margin: 0;
    padding: 10px 25% 10px;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
}
#top {
    margin-bottom: -80px;
}
h1 {
    margin: 0; padding: 80px 0 0 0;
    font-size: 1.2em;
    text-align: center;
}
p {
    margin-top: -1px;
    font-size: 1em;
    text-align: center;
}
a {	
    text-decoration: none;
    color: dimgray;
}
nav {
    margin: 0 0 0 auto;
}
ul {
    list-style: none;
    margin: 0; 
    display: flex;
}
li {
    margin: 0 0 0 15px;
    font-size: 1em;
}
.contents {
    align-items: top;
    margin: 80px 25% 0;
    height: 100vh;
}
.contents ol {
    margin: 0 0 0 -15px;
    }
.contents li {
    margin: 0 0 0 15px ;
}
h2 {
    padding: 20px 0 0 0 ;
    margin: 0;
    font-size: 1em;
    font-weight: normal;
    color: darkslateblue;
    text-align: center;
}
.sp-nav {
   display: none;
}
h3 {
    padding: 10px 0 0 0 ;
    margin: 0;
    font-size: 1.1em;
    font-weight: normal;
    color: darkslategray;
    text-align: left;
}
h4 {
    margin: 0 30px 0 30px;
    font-weight: normal;
    color: darkslategray;
    text-align: left;
}
img {
    max-width: 100%;
    min-width: 200px;
    height: auto;
}
@media screen and (max-width:640px) {
    header {
    padding: 10px 4% 10px;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    }

    .pc-nav {
        display: none;
    }
    .sp-nav {
        z-index: 1;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: block;
        width: 100%;
        background: rgba(255,255,255, .9);
        transition: all .2s ease-in-out;
        opacity: 0;
        transform: translateY(-100%);
    }
    #hamburger {
        position: relative;
        display: block;
        width: 30px;
        height: 25px;
        margin: 0 0 0 auto;
    }
    #hamburger span {
        position: absolute;
        top: 50%;
        left: 0;
        display: block;
        width: 100%;
        height: 2px;
        background-color: dimgray;
        transform: translateY(-50%);
    }
    #hamburger::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: dimgray;
    }
    #hamburger::after {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 70%;
        height: 2px;
        background-color: dimgray;
    }
    /*スマホメニュー*/
    .sp-nav ul {
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
    .sp-nav li {
        margin: 0;
        padding: 0;
    }
    .sp-nav li span {
        font-size:1em;
        color: dimgray;
    }
    .sp-nav li a, .sp-nav li span{
        display: block;
        padding: 20px 0;
    }
    .sp-nav .link {
    }
    /*閉じるアイコン*/
    .sp-nav .close {
        position: relative;
        padding-left: 20px;
    }
    .sp-nav .close::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        display: block;
        width: 16px;
        height: 1px;
        background: dimgray;
        transform: rotate( 45deg );
    }
    .sp-nav .close::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        display: block;
        width: 16px;
        height: 1px;
        background: dimgray;
        transform: rotate( -45deg );
    }
    .toggle {
        transform: translateY( 0 );
        opacity: 1;
    }
    h1 {line-height: 1.6;
        text-align: center;
    }
    h2 {
        line-height: 1.6;
        text-align: center;
    }
    h3 {
        line-height: 1.6;
        text-align: center;
    }
    h4 {
        margin: 0;
        padding-left: 40px;
    }
    div#news {
        text-align: center;
    }
    div#mokuhyou img {
        text-align: center;
    }
    .contents {
    margin: 80px 4% 0;
    }
    div#symbol img {
    max-width: 320px;
    max-height: 240px;
    min-width: 240px;
    min-height: 180px;
    }
    div#tree img {
    max-width: 320px;
    max-height: 240px;
    min-width: 240px;
    min-height: 180px
    }
    div#song img {
    max-width: 500px;
    max-height: 375px;
    min-width: 240px;
    min-height: 180px;
    }
    div#mokuhyou img {
    max-width: 425px;
    max-height: 52px;
    min-width: 120px;
    }
    div#schoollife {
        text-align: center;
    }
}