@charset "utf-8";
html{
    height: 100%;
}
body{
    width: 100%;
    margin: 0;
    padding: 0;
    height: 100%;
    background-color:rgb(248, 247, 247);
    box-sizing: border-box;
}

header{
    width: 100%;
    height: 100px;
    background-color: rgb(0, 93, 170);
    text-align: center;
    line-height: 100px;
    position:fixed;
    top: 0;
}
header p{
    font-family: 'Staatliches', cursive;
    color: white;
    font-size: 68px;
    padding-left: 3px;
    padding-top: 1px;
}
header .subtitle{
    font-size: 14px;
    margin-left: 5px;
}
nav{
    /* background-color: white; */
    background-color:rgb(248, 247, 247);
    font-family: "Gill Sans Extrabold", sans-serif;
    font-weight: bold;
    font-size: clamp(20px,2vw,28px);
    margin-bottom: 20px;
    height: 100px;
    line-height: 100px;
    position: fixed;
    top: 100px;
    width: 100%;
    opacity: 0.95;
}
nav ul{
    display:flex;
    justify-content: center;
    font-family: "Gill Sans Extrabold", sans-serif;
    font-weight: bold;
    font-size: clamp(20px,2vw,28px);
    gap: 30px;
}
li a{
    display: block;
    height: 100%;
    width: 100%;
    color:  rgb(0, 31, 57);
}
.grays{
    color: gray;
}

.navsecond{
    font-family: "Gill Sans Extrabold", sans-serif;
    font-weight: bold;
    position: fixed;
    top:200px;
    width: 100%;
    background-color:rgb(248, 247, 247);
    opacity: 0.95;
    line-height: 50px;

}
.navsecond ul{
    display: flex;
    justify-content: center;
    gap: 30px;
}
.navsecond li a{
    display: block;
    height: 100%;
    width: 100%;

}
main{
    margin-bottom: 20px;
    margin-top: 220px;

}
main section{
    margin-left: 10%;
    margin-right: 10%;
}
main article section h1{
    font-family: "Gill Sans Extrabold", sans-serif;
    font-size: clamp(18px,2vw,30px);
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 10px;
    border-left: 5px solid rgb(6, 83, 147);
    border-bottom:1px solid ;
    padding-left: 5px;
    color: rgb(0, 57, 104);
}
main article section p{
    font-family: "Gill Sans Extrabold", sans-serif;
    font-size: clamp(13px,2vw,16px);
    line-height: 1.6em;
    text-indent: 1em;

}
main a{
    text-decoration: underline;
    color: rgb(32, 95, 255);
}
.cal{
    font-weight: bold;
    margin-right: 5px;
    color: rgb(0, 57, 104);
}
.shortd{
    text-indent: 2em;
}
.kankyu{
    line-height: 3rem;
}
section{
    margin-bottom: 20px;
}

.buncyu{
    color: red;
}

figure{
    display: inline-block;   /* インラインブロック化 */
    margin: 0px 3px 10px 0px; /* 外側に余白を追加(※右に3px・下に7px) */
    background-color: #ccc;  /* 背景色 */
}
figure img {
    display: block;          /* 余計な余白が出ないようにする */
    margin: 0px 0px 3px 0px; /* 下側にだけ3pxの余白を追加 */
}
figcaption{
    font-size: 0.8em;
    text-align: center;
}

footer{
        /*grid-area: footer;*/
        height: 200px;
        background-color: rgb(0, 93, 170);
        text-align: center;
        position:sticky;
        top: 85vh;
        width: 100%;
}
footer p{
    font-family: "Gill Sans Extrabold", sans-serif;
    font-size: 14px;
    color: white;
    line-height: 200px;
}

@media(max-width:799px){
    header p{
        font-size: 40px;
    }
    nav{
        /* height: 150px; */
        /* position: fixed; */
        /* top: 100; */
        /* line-height: 25px; */
        overflow-x: auto;
        height: min-content;

    }
    nav ul{
        /* gap: 10px; */
        /* display:block; */
        /* margin: 0; */
        display: flex;
        width: max-content;
        margin: 0 auto;
    }
    nav ul li{
        margin-left: 5px;
    }
    main{
        margin-top: 250px;
    }
    .item p{
        padding-left: 20%;
    }
}
