@charset "utf-8";    /* 下記のコメントより後では適用されない */
/*
 * 赤穂塩田資料公開システム
 * ヘッダーCSS
 * Description: ヘッダーのCSSを記述
 * Copyright (C) City of Ako
 * Date: 2022/03/17
 */


/******************************************************************************
 * Webフォント設定
 ******************************************************************************/

/* Noto Sans JP Medium */
/* URL: https://fonts.google.com/noto/specimen/Noto+Sans+JP */
@font-face {
  font-family: 'Noto Sans JP Medium';
  src: url('../../fonts/NotoSansJP-Medium.otf');
}

/* ヘッダ */
header {
    font-family: 'Noto Sans JP Medium';
    background-color:#ffffff;

    height: 80px;    /*高さ指定*/
    width: 100%;     /*横幅指定*/

    /*以下はレイアウトのためのCSS*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ff0000;
}

/*JSを使いfixedクラスが付与された際の設定*/
#header.fixed {
    position: fixed;

    /*fixedを設定して固定*/
    z-index: 999;    /*最前面へ*/
    top: 0;          /*位置指定*/
    left: 0;
}

/* ロゴ */
.logo {
    float: left;
    margin-top: 12px;
    height: 100%;
}
.logo img {
    width: 100px;
}
.logoheader {
    float: left;
    margin-top: 12px;
    height: 100%;
}
.logoheader img{
    height: 50px;
}

/* ロゴ(生徒児童向け */
.logo2 img {
    float: left;
    height: 72px;
}
.nav_list {
    height: 100%;
    font-size: 12pt;
    text-align: right;
    margin-top: 12px;
}

.nav_list a {
    color: inherit;
    text-decoration: none;
}


/*========= レイアウトのためのCSS ===============*/
@media only screen and (min-width: 769px) {

    .header {
        min-width: 1200px;
    }

    .header_inner {
        max-width: 100%;
        width: 100%;
        padding: 15px 30px;
        margin-left: auto;
        margin-right: auto;
    }

    .nav_list li {
        display: inline-block;
        text-align: center;
        font-weight: 600;
        text-align: center;
        padding: 0 20px;
        border-right: 1px #b8b9dc solid;    /* 縦棒 */
    }
    .nav_list li:last-child {
        border-right: none                  /* 最後の縦棒は表示しない */
    }
    .nav_list l::after {
        content: "";
        display: block;
        width: 2px;
        height: 20px;
        background-color: #b8b9dc;
        position: absolute;
        right: -1px;
        top: calc((100% - 20px)/2);
    }
    .nav_list li:last-child::after {
        content: none;
    }

    .nav_list a {
        display: flex;
        justify-content: center;
    }
    .nav_list span {
        display: flex;
        align-items: center;
        word-break: keep-all;
    }

    /* メニュー-アイテム リンク:ホバー */
    .nav_list a:hover {
        opacity: 0.3;
    }

}/* pc */



@media only screen and (max-width: 768px) {

    header {
        font-family: 'Noto Sans JP Medium';
        background-color:#ffffff;
    
        height: 55px;    /*高さ指定*/
        width: 100%;     /*横幅指定*/
    
        /*以下はレイアウトのためのCSS*/
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logoheader {
        position: relative;
        left: 5px;
    }
    
    .logoheader img{
        width: 50%;
        height: auto
    }
    
    .nav {
        position: fixed;
        right: -320px; /* 右から出てくる */
        top: 0;
        width: 150px; /* スマホに収まるサイズ */
        height: 100vh;
        padding-top: 60px;
        background-color: #fff;
        transition: all .6s;
        z-index: 200;
        overflow-y: auto; /* メニューが多くなったらスクロール */
    }

    .hamburger {
        position: absolute;
        right: 15px;
        top: 8px;
        width: 40px; /* クリックしやすい幅 */
        height: 40px; /* クリックしやすい高さ */
        cursor: pointer;
        z-index: 300;
    }

    .nav_list {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .nav_item {
        text-align: center;
        padding: 0 14px;
    }
    .nav_item a {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
        text-decoration: none;
        color: #333;
    }
    .nav_item a:hover {
        background-color: #eee;
    }

    .hamburger_border {
        position: absolute;
        left: 11px;
        width: 18px;
        height: 2px;
        background-color: #333;
        transition: all .6s;
    }
    .hamburger_border_top {
        top: 14px;
    }
    .hamburger_border_center {
        top: 20px;
    }
    .hamburger_border_bottom {
        top: 26px;
    }
    .black_bg {
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        z-index: 100;
        background-color: #333;
        opacity: 0;
        visibility: hidden;
        transition: all .6s;
        cursor: pointer;
    }

    /* 表示された時用のCSS */
    .nav-open .nav {
        right: 0;
    }
    .nav-open .black_bg {
        opacity: .8;
        visibility: visible;
    }
    .nav-open .hamburger_border_top {
        transform: rotate(45deg);
        top: 20px;
    }
    .nav-open .hamburger_border_center {
        width: 0;
        left: 50%;
    }
    .nav-open .hamburger_border_bottom {
        transform: rotate(-45deg);
        top: 20px;
    }

}/* sp */

