@charset "utf-8";
/* CSS Document */

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p&family=Noto+Sans+JP:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body{
    margin: 0;
    padding: 0;
    position: relative;
    font-family: "M PLUS 1p";
    font-size: 16px;
    overflow: auto;
}
#bg1{
    position: absolute;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #56c1dc 5%, #fff 42% 55%, #86bc42 75%);
    z-index: -999;
    overflow-y: hidden;
}
#bg2{
    position: absolute;
    bottom: 10vw;
    width: 100%;
    mix-blend-mode: hard-light;
    opacity: .7;
}
#wrap{
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 100px 4fr 1fr;
    position: relative;
}
.scrollbox{
    width: 100vw;
    height: 100vh;
    display: contents;
}
header{
    grid-column: 1/3;
    grid-row: 1/2;
    height: 100px;
    padding: 15px;
    display: flex;
    justify-content: center;
    background-image: url(../images/header-bg.png);
    width: 100%;
}
footer{
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #86bc42;
    font-size: 14px;
    color: #fff;
}
#footer-title{
    margin: 20px;
    padding: 5px 20px;
    background-color: #6b8e23;
    border-radius: 100vh;
    letter-spacing: 2px;
}
#footer-info{
    margin: 20px;
}
nav{
    grid-row: 2/3;
}
main{
    grid-row: 2/4;
    width: 880px;
    display: flex;
    flex-direction: column;
}
#main-bg{
    width: 100%;
    min-height: 50%;
    /* margin-left: 20px; */
    padding: 30px;
    align-self: flex-start;
    background-color: rgba(255, 255, 255, .9);
    /* border-radius: 8px; */
    /* box-shadow: 6px 6px 5px rgba(99, 130, 91, .4); */
}

/* 見出し類 */
h1{
    text-align: center;
}
h1 img{
    max-height: 100%;
    width: auto;
}
h1 a{
    display: block;
    width: 100%;
    height: 100%;
}
h2,h3,h4,h5,h6{
    width: 100%;
    word-break: break-all;
    text-wrap: wrap;
    margin-bottom: 1em;
}
h2{
    margin-bottom: 50px;
    padding: 0 1rem;
    border-radius: 0 100vh 100vh 0;
    background-image: linear-gradient(180deg, #71c6d4 30%, #076baf);
    font-size: 32px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 1px;
}
h3{
    display: inline-flex;
    align-items: center;
    font-size: 28px;
    font-weight: 500;
    color: #006baf;
    line-height: 15px;
}
h3::before{
    content:'';
    display: block;
    width: 10px;
    height: 30px;
    margin: 0 1rem 0 0;
    background-color: #006baf;
}
h4{
    font-size: 24px;
    font-weight: 700;
    color: #86bc42;
    display: block;
    border-bottom: 2px solid #86bc42;
}
h5{
    font-size: 18px;
    font-weight: 700;
    background-image: linear-gradient(90deg, #71c6d4 70%, transparent);
    color: #fff;
    padding: 2px 0.8rem;
    letter-spacing: 1px;
}
h6{
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #63825b;
}
h6::before{
    content:'';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 100vh;
    margin-right: 0.5rem;
    background-color: #63825b;
}


/* 文字・段落の基本装飾 */
p{ 
    margin: auto 0.5rem;
    text-align: justify;
    word-break: break-all;
    text-wrap: wrap;
}
.red{
    color: #d24717;
}
.indent_01{
    text-indent: 1rem;
}
/* 迷惑メール対策 */
.at::after{
    content: '@';
}

/* 段落ボックス */

.tbox_01{
    margin-bottom: 64px;
    padding: 0;
}
.tbox_02{
    margin-bottom: 32px;
    padding: 0;
}
.tbox_03{
    margin-bottom: 24px;
    padding: 0;
}

/* リンクとボタン */
a{
    cursor: pointer;
    font-weight: bold;
    text-decoration: underline;
    color: #6a5acd;
}
a:hover{
    color: #d24717;
}

.btnBox{}


/* レスポンシブ切り替え */

.tb_on{
    display: none;
}
.sp_on{
    display: none;
}
body.scrollStop{
    overflow: hidden;
    position: sticky;
    -webkit-overflow-scrolling: touch;
}
/* #wrap.scrollStop main{
    pointer-events: none;
} */

@media screen and (min-width:2000px){
    body{
        height: fit-content;
    }
    #bg2{
        width: 100%;
        max-height: 90vh;
        bottom: -20%;
    }
}
@media screen and (max-width:1200px){
    main{
        width: 100%;
    }
}

@media screen and (max-width:1060px){
    .tb_on{
        display: block;
    }
    #wrap{
        max-width: 100vw;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
    }
    header{
        width: 100%;
        height: 10vw;
        margin: 0 auto;
    }
    h1{
        margin-right: 10vw;
        width: fit-content;
        max-width: 80%;
    }
    #main-bg{
        width: 90%;
        margin: 50px auto;
        min-height: 80vh;
        border-radius: 8px;
        box-shadow: 6px 6px 5px rgba(99, 130, 91, .4);
    }
    h2{
        font-size: clamp(20px, 3vw, 32px);
    }
    h3{
        font-size: clamp(16px, 2.6vw, 28px);
    }
    h4{
        font-size: clamp(14px, 2.3vw, 24px);
    }
    h5,h6{
        font-size: clamp(12px, 1.7vw, 18px);
    }
}

@media screen and (max-width:780px){
    .sp_none{
        display: none;
    }
    .sp_on{
        display: block;
    }
    body{
        font-size: clamp(12px, 1.5vw, 16px);
    }    
    header{
        padding: 5px;
    }
    .head_right{
        margin: 0;
        min-width: 20px;
    }
    h1{
        width: fit-content;
        max-width: 100%;
    }
    footer{
        /* height: calc(100px + 10vw); */
        height: calc((100px + 8vh)*1.5);
        padding: 20px 0;
        flex-direction: column;
    }
    #footer-title{
        margin: 0;
    }
    #main-bg{
        width: 90%;
        margin: 30px auto 50px;
        min-height: 80vh;
    }
    h2{
    margin-bottom: 5vw;
    }
    .tbox_01{
        margin-bottom: 48px;
        padding: 0;
    }
    .tbox_02{
        margin-bottom: 24px;
        padding: 0;
    }
    .tbox_03{
        margin-bottom: 16px;
        padding: 0;
    }
}
@media screen and (max-width:412px){

    header{
        padding: 0;
    }
    h1{
        max-width: 70%;
    }
    footer{
        height: calc((100px + 10vh)*1.3);
        font-size: 12px;
        padding: 10px;
    }
    #footer-info{
        margin: 10px;
    }
    #main-bg{
        margin: 20px auto 50px;
    }
}