@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;200;300;400;500;600;700;800&display=swap');
/*font-family: 'Noto Sans JP', sans-serif;*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200;300;400;500;600;700;900&display=swap');
/*font-family: 'Noto Serif JP', serif;*/

html{
    padding: 0;
    margin: 0;
}
body{
    padding: 0;
    margin: 0;
    color: #2E4053;
    overflow: auto;
}

.wrap{
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 100%;
    min-height: 100vh;
}

header{
    width: 100%;
}

.header_wrap{
    position: fixed;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 5;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #fff;
    margin: 0 auto;
}

.header_title{
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    font-size: 20px;
    font-weight: bold;
    /* box-shadow: 0px 1px 0px #00000028; */
    box-sizing: border-box;
}
.header_title a{
    text-decoration: none;
    color: inherit;
}
.hamburger{
    display: none;
}

.logo{
    height: 30px;
}
.header_tab{
    width: 100%;
    height: 130px;
    margin: 0 auto;
    display: inline-block;
    padding: 0;
    box-sizing: border-box;
    background-color: #e8f4fe;
    color: #fff;
    border-top: 1px solid #d5d5d5;
}
.tab_area{
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(4,1fr);
    flex-wrap: wrap;
    width: 100%;
    max-width: 1280px;
    padding: 0;
    margin: 0 auto;
    top: 50%;
    position: relative;
    transform: translateY(-50%);
}
.tab{
    height: 44px;
    align-items: center;
    /* width: 24%; */
    list-style: none;
    border: 1px solid #0068b7;
    background-color: #fff;
    color: #0068b7;
    font-weight: 500;
    cursor: pointer;
}
.tab.active{
    background-color: #0068b7;
    color: #fff;
}
.tab div{
    text-align: center;
    line-height: 44px;
}

/* main */
main{
    /* padding-top: 250px; */
}

.panel {
    display: none;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    text-size-adjust: none;
    font-family: 'Noto Sans JP', sans-serif;
}
.panel.active {
    display: block;
}

.panel .chapter:nth-child(1){
    padding-top: 40px;
}
.panel .chapter{
    padding-top: 46px;
}

.chapter{
    border-bottom: 1px solid gray;
    /* padding-bottom: 10px; */
    padding-top: 15px;
    font-weight: bold;
    font-size: 20px;
    position: relative;
    color: #3a3a3a;
}
.chapter span{
    display: inline-block;
    border-bottom: 3px solid #0068b7;
    margin-bottom: -2px;
    padding-bottom: 10px;
    padding-right: 10px;
}

/* .chapter::before{ 
    content: '';
    position: absolute;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: #0068b7; 
} 
 .chapter::after{
    content: '';
    position: absolute;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: #d5d5d5; 
} */

.video_list{
    text-align: left;
}
.video_title{
    list-style: none;
    padding: 10px 0 0 0;
    font-size: 16px;
    color: #333333;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: thin;
    text-indent: -23px;
    padding-left: 23px;
    cursor: pointer;
}
.video_title:hover{
    color: #0068b7;
}
.video_title img{
    width: 15px;
    height: 15px;
    top: 2px;
    position: relative;
    margin-right: 8px;
}

/* footer */
footer{
    height: 50px;
    background-color: #f0f0f0;
    text-align: center;
    margin-top: 97px;
}
footer p{
    height: 50px;
    line-height: 50px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #8f8f8f;
    padding:0;
    margin: 0;
}


/* タブレット　縦 */
@media screen and (min-width:760px) and (max-width:1279px) {
    .header_title{
        max-width: none;
        width: 90%;
        margin: 0 auto;
    }

    .tab_area{
        width: 90%;
    }

    .tab{
        font-size: min(1.3vw,16px);
    }
}


/* スマホ */
@media screen and (max-width:760px) {

    /* .header_wrap{
        height: 64px;
    } */


    .header_title{
        max-width: none;
        padding: 0 18px;
        height: 64px; 
        justify-content: space-between;
        width: 100%!important;
        /* border-top: 4px solid #2E3E77; */
    }

    #header_txt{
        height: 34px;
        max-width: 55%;
    }

    .sitename{
        /* width: 223px; */
        width: 100%;
    }

    .logo{
        width: 92px;
    }

     /* ハンバーガーメニュー */
     .hamburger{
        display: block;
        width: 30px;
        height: 30px;
        border: none;
        background-color: white;
        padding: 0;
        width: 30px;
        height: 30px;
    }
    
    .hamburger.active span:nth-child(1) {
        top: 5px;
        transform: rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        top: -13px;
        transform: rotate(-45deg);
    }
    
    .hamburger span {
        /* width: 100%; */
        width: 30px;
        height: 1px;
        background-color: #2E3E77;
        position: relative;
        transition: ease .4s; /*ハンバーガーメニュークリック時の三本線の動きを遅延*/
        display: block;    
    }
    
    .hamburger span:nth-child(1) {
        top: 0;
    }
    
    .hamburger span:nth-child(2) {
        margin: 8px 0;
    }
    
    .hamburger span:nth-child(3) {
        top: 0;
    }

    .header_tab {
        position: absolute;
        width: 100%;
        right: -120%;
        margin: 0;
        background-color: #e8f4fe;
        height: 100vh!important;
        transition: ease .4s;
        padding: 0 18px;
    }
    .header_tab.active{
        right: 0;
        z-index: 999;
    }
    .tab_area{
        display: flex;
        top: 0;
        transform: none;
        padding-top: 20px;
    }

    .tab{
        height: auto;
        max-width: none;
        flex-direction: column;
        justify-content: stretch;
        list-style: none;
        text-align: center;
        width: 100%;
    }

    .sp_tabName{
        font-size: 22px;
        font-weight: bold;
        background-color: #0068b7;
        color: #fff;
        height: 45px;
        line-height: 45px;
        padding: 0 18px;
    }

    main{
        padding: 0 18px;
    }

    .panel .chapter:nth-child(1) {
        padding-top: 20px;
    }

    footer p{
        font-size: 10px;
    }
}
