header {
    background-color: #000044;
    position: fixed;
    z-index: 90;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    padding: 20px 40px;
    box-sizing: border-box;
    font-size: 30px;
}

header .inner {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 30px;
}
.logo {
    position: relative;
    margin: 0;
    padding: 0;
    width: 25%;
    font-weight: bold;
    font-size: 100%;
    text-decoration: none;
    letter-spacing: 2px;
}

.logo a {
    text-decoration: none;
    color: #fff;
    font-family: "HGP教科書体";
}

.hlogo {
    position: relative;
    margin-right: 10px;
    padding: 0;
    width: 70px;
    height: 55px;
    font-weight: bold;
    font-size: 30px;
}

header .nav {
    display: flex;
    margin: 0 0 0 auto;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
    font-family: "HGP教科書体";
    list-style: none;
}
header .nav li {
    margin: 5px 0 0 40px;
}
header .nav li:first-child {
    margin-left: 0;
}
header .nav li a {
    display: block;
    box-sizing: border-box;
    text-decoration: none;
    color: #fff;
    position: relative;
}
.nav li a:hover {
    color: #b8860b;
}

.nav li a::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 1%;
    width: 100%;
    height: 2px;
    background: #b8860b;
    transition: all 0.3s;
    transform: scale(0, 1);
    transform-origin: center top;
}

.nav li a:hover::after {
    transform: scale(1, 1);
}

/* layout */

body {
    margin: 0;
    padding: 0;
}
.nav_toggle,
.hamburger {
    display: none;
}

/* PC */
/* @media (max-width:834px) and (min-width:768px) */
/* @media (max-width: 1250px) and (min-width: 1024px) { */
@media (max-width: 1280px) and (min-width: 960px) {
    header {
        background-color: #000044;
        position: fixed;
        z-index: 99;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px;
        padding: 20px 40px;
        box-sizing: border-box;
    }
    header .inner {
        position: relative;
        display: flex;
        align-items: center;
        height: 100%;
    }
    .logo {
        position: relative;
        margin: 0;
        padding: 0;
        width: 33%;
        font-weight: bold;
        font-size: 24px;
        text-decoration: none;
        letter-spacing: 2px;
    }

    .logo a {
        text-decoration: none;
        color: #fff;
        font-family: "HGP教科書体";
    }
    .hlogo {
        position: relative;
        margin-right: 10px;
        padding: 0;
        width: 50px;
        height: 45px;
        font-weight: bold;
        font-size: 30px;
    }
    header .nav {
        display: flex;
        margin: 0 0 0 auto;
        padding: 0;
        font-size: 14px;
        font-weight: bold;
        font-family: "HGP教科書体";
        list-style: none;
    }
    header .nav li {
        margin: 5px 0 0 21px;
    }
    header .nav li:first-child {
        margin-left: 0;
    }
    header .nav li a {
        display: block;
        box-sizing: border-box;
        text-decoration: none;
        color: #fff;
        position: relative;
    }
    .nav li a:hover {
        color: #b8860b;
    }
    .nav_toggle,
    .hamburger {
        display: none;
    }
}

/* タブレット */
@media (max-width: 960px) and (min-width: 768px) {
    /* @media (max-width: 1024px) and (min-width: 768px) { */
    header {
        background-color: #000044;
        position: fixed;
        z-index: 99;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px;
        padding: 20px 40px;
        box-sizing: border-box;
    }
    header .inner {
        position: relative;
        display: flex;
        align-items: center;
        height: 100%;
    }
    .logo {
        position: relative;
        margin: 0;
        padding: 0;
        width: 33%;
        font-weight: bold;
        font-size: 21px;
        text-decoration: none;
        letter-spacing: 2px;
    }

    .logo a {
        text-decoration: none;
        color: #fff;
        font-family: "HGP教科書体";
    }

    .hlogo {
        position: relative;
        margin-right: 10px;
        padding: 0;
        width: 50px;
        height: 45px;
        font-weight: bold;
        font-size: 30px;
    }

    header .nav {
        display: flex;
        margin: 0 0 0 auto;
        padding: 0;
        font-size: 10.5px;
        font-weight: bold;
        font-family: "HGP教科書体";
        list-style: none;
    }
    header .nav li {
        margin: 5px 0 0 15px;
    }
    header .nav li:first-child {
        margin-left: 0;
    }
    header .nav li a {
        display: block;
        box-sizing: border-box;
        text-decoration: none;
        color: #fff;
        position: relative;
    }
    .nav li a:hover {
        color: #b8860b;
    }
    .nav_toggle,
    .hamburger {
        display: none;
    }
}

/* タブレット～スマホ */
/* @media (max-width: 767px) and (min-width: 415px) { */
@media (max-width: 767px) and (min-width: 431px) {
    header {
        background-color: #000044;
        position: fixed;
        z-index: 99;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px;
        padding: 20px 40px;
        box-sizing: border-box;
    }
    header .inner {
        position: relative;
        display: flex;
        align-items: center;
        height: 100%;
    }
    .logo {
        position: relative;
        margin: 0;
        padding: 0;
        width: 56%;
        font-weight: bold;
        font-size: 21px;
        text-decoration: none;
        letter-spacing: 2px;
    }

    .logo a {
        text-decoration: none;
        color: #fff;
        font-family: "HGP教科書体";
    }

    .hlogo {
        position: relative;
        margin-right: 10px;
        padding: 0;
        width: 50px;
        height: 45px;
        font-weight: bold;
        font-size: 30px;
    }
    .nlogo {
        width: 65%;
        height: 20%;
        margin-top: 20px;
    }
    ul.nav {
        display: none;
    }

    /* ハンバーガーのマーク */
    .nav_toggle {
        display: block;
        position: relative;
        width: 2rem;
        height: 1.5rem;
        margin-right: 10px;
        z-index: 2;
        left: 26%;
    }
    .nav_toggle i {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
        position: absolute;
        transition: transform 0.5s, opacity 0.5s;
    }
    .nav_toggle i:nth-child(1) {
        top: 0;
    }
    .nav_toggle i:nth-child(2) {
        top: 0;
        bottom: 0;
        margin: auto;
    }
    .nav_toggle i:nth-child(3) {
        bottom: 0;
    }

    /* クリックされた後のハンバーガーのマーク */
    .nav_toggle.show i:nth-child(1) {
        transform: translateY(10px) rotate(-45deg);
    }
    .nav_toggle.show i:nth-child(2) {
        opacity: 0;
    }
    .nav_toggle.show i:nth-child(3) {
        transform: translateY(-12px) rotate(45deg);
    }

    /* クリックで表示されるメニュー：クリックされる前 */
    .hamburger {
        display: flex;
        position: fixed;
        /* align-items: center; */
        justify-content: center;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s, visibility 0.5s;
        background-color: #000044;
        z-index: 1;
        /* height: 50%; */
    }
    .hamburger_menu_ul {
        padding-left: 0;
        width: 60%;
        text-align: center;
        margin-top: 100px;
    }
    .hamburger_menu_li {
        margin-bottom: 30px;
        list-style: none;
        border-bottom: 2px solid #fff;
        padding-bottom: 25px;
        font-weight: bold;
        font-family: "HGP教科書体";
    }
    .hamburger_menu_li:nth-child(1) {
        border-top: 2px solid #fff;
        padding-top: 25px;
    }
    li.hamburger_menu_li a {
        color: #fff;
        text-decoration: none;
    }

    /* クリックで表示されるメニュー：クリックされた後 */
    .hamburger.show {
        opacity: 1;
        visibility: visible;
    }

    /* ナビ開いてる時のボタン */
    .hamburger.active span:nth-child(1) {
        top: 16px;
        left: 6px;
        background: #000044;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .hamburger.active span:nth-child(2),
    .hamburger.active span:nth-child(3) {
        top: 16px;
        background: #000044;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        transform: rotate(45deg);
    }
}

/* スマホ */
/* @media (max-width: 414px) and (min-width: 360px) { */
@media (max-width: 430px) and (min-width: 376px) {
    header {
        background-color: #000044;
        position: fixed;
        z-index: 99;
        top: 0;
        left: 0;
        width: 100%;
        padding: 10px 20px;
        box-sizing: border-box;
    }
    header .inner {
        position: relative;
        display: flex;
        align-items: center;
    }
    .logo {
        position: relative;
        margin: 0;
        padding: 0;
        width: 50%;
        font-weight: bold;
        font-size: 17px;
        text-decoration: none;
        letter-spacing: 2px;
    }

    .logo a {
        text-decoration: none;
        color: #fff;
        font-family: "HGP教科書体";
    }

    .hlogo {
        position: relative;
        margin-right: 10px;
        padding: 0;
        width: 45px;
        height: 40px;
        font-weight: bold;
        font-size: 30px;
    }
    .nlogo {
        width: 80%;
        height: 30%;
        margin-top: 25px;
    }
    ul.nav {
        display: none;
    }
    /* ハンバーガーのマーク */
    .nav_toggle {
        display: block;
        position: relative;
        width: 1.8rem;
        height: 1.5rem;
        margin-right: 10px;
        z-index: 2;
        left: 25%;
    }
    .nav_toggle i {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
        position: absolute;
        transition: transform 0.5s, opacity 0.5s;
    }
    .nav_toggle i:nth-child(1) {
        top: 0;
    }
    .nav_toggle i:nth-child(2) {
        top: 0;
        bottom: 0;
        margin: auto;
    }
    .nav_toggle i:nth-child(3) {
        bottom: 0;
    }

    /* クリックされた後のハンバーガーのマーク */
    .nav_toggle.show i:nth-child(1) {
        transform: translateY(10px) rotate(-45deg);
    }
    .nav_toggle.show i:nth-child(2) {
        opacity: 0;
    }
    .nav_toggle.show i:nth-child(3) {
        transform: translateY(-12px) rotate(45deg);
    }

    /* クリックで表示されるメニュー：クリックされる前 */
    .hamburger {
        display: flex;
        position: fixed;
        align-items: center;
        justify-content: center;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s, visibility 0.5s;
        background-color: #000044;
        z-index: 1;
    }
    .hamburger_menu_ul {
        padding-left: 0;
        width: 60%;
        text-align: center;
        margin-bottom: 25%;
        margin-top: 130px;
    }
    .hamburger_menu_li {
        margin-bottom: 10px;
        /* margin-bottom: 30px; */
        list-style: none;
        border-bottom: 2px solid #fff;
        /* padding-bottom: 25px; */
        padding-bottom: 15px;
        font-weight: bold;
        font-family: "HGP教科書体";
    }
    .hamburger_menu_li:nth-child(1) {
        border-top: 2px solid #fff;
        /* padding-top: 25px; */
        padding-top: 10px;
    }
    li.hamburger_menu_li a {
        color: #fff;
        text-decoration: none;
        font-size: 20px;
    }

    /* クリックで表示されるメニュー：クリックされた後 */
    .hamburger.show {
        opacity: 1;
        visibility: visible;
    }

    /* ナビ開いてる時のボタン */
    .hamburger.active span:nth-child(1) {
        top: 16px;
        left: 6px;
        background: #000044;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .hamburger.active span:nth-child(2),
    .hamburger.active span:nth-child(3) {
        top: 16px;
        background: #000044;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    body {
        margin: 0;
        font-family: arial;
        width: 100vw;
        /* height: 100vh; */
        animation: bugfix infinite 1s;
        -webkit-animation: bugfix infinite 1s;
    }

    @keyframes bugfix {
        from {
            padding: 0;
        }
        to {
            padding: 0;
        }
    }
    @-webkit-keyframes bugfix {
        from {
            padding: 0;
        }
        to {
            padding: 0;
        }
    }
}
@media (max-width: 375px) {
    header {
        background-color: #000044;
        position: fixed;
        z-index: 99;
        top: 0;
        left: 0;
        width: 100%;
        padding: 10px 20px;
        box-sizing: border-box;
    }
    header .inner {
        position: relative;
        display: flex;
        align-items: center;
    }
    .logo {
        position: relative;
        margin: 0;
        padding: 0;
        width: 50%;
        font-weight: bold;
        font-size: 17px;
        text-decoration: none;
        letter-spacing: 2px;
    }

    .logo a {
        text-decoration: none;
        color: #fff;
        font-family: "HGP教科書体";
    }

    .hlogo {
        position: relative;
        margin-right: 10px;
        padding: 0;
        width: 45px;
        height: 40px;
        font-weight: bold;
        font-size: 30px;
    }
    .nlogo {
        width: 80%;
        height: 20%;
        margin-top: -5px;
    }
    ul.nav {
        display: none;
    }
    /* ハンバーガーのマーク */
    .nav_toggle {
        display: block;
        position: relative;
        width: 1.8rem;
        height: 1.5rem;
        margin-right: 10px;
        z-index: 2;
        left: 25%;
    }
    .nav_toggle i {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
        position: absolute;
        transition: transform 0.5s, opacity 0.5s;
    }
    .nav_toggle i:nth-child(1) {
        top: 0;
    }
    .nav_toggle i:nth-child(2) {
        top: 0;
        bottom: 0;
        margin: auto;
    }
    .nav_toggle i:nth-child(3) {
        bottom: 0;
    }

    /* クリックされた後のハンバーガーのマーク */
    .nav_toggle.show i:nth-child(1) {
        transform: translateY(10px) rotate(-45deg);
    }
    .nav_toggle.show i:nth-child(2) {
        opacity: 0;
    }
    .nav_toggle.show i:nth-child(3) {
        transform: translateY(-12px) rotate(45deg);
    }

    /* クリックで表示されるメニュー：クリックされる前 */
    .hamburger {
        display: flex;
        position: fixed;
        align-items: center;
        justify-content: center;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s, visibility 0.5s;
        background-color: #000044;
        z-index: 1;
    }
    .hamburger_menu_ul {
        padding-left: 0;
        width: 60%;
        text-align: center;
        margin-bottom: 25%;
        margin-top: 45%;
        font-size: 0.8em;
    }
    .hamburger_menu_li {
        margin-bottom: 25px;
        list-style: none;
        border-bottom: 2px solid #fff;
        padding-bottom: 20px;
        font-weight: bold;
        font-family: "HGP教科書体";
    }
    .hamburger_menu_li:nth-child(1) {
        border-top: 2px solid #fff;
        padding-top: 25px;
    }
    li.hamburger_menu_li a {
        color: #fff;
        text-decoration: none;
    }

    /* クリックで表示されるメニュー：クリックされた後 */
    .hamburger.show {
        opacity: 1;
        visibility: visible;
    }

    /* ナビ開いてる時のボタン */
    .hamburger.active span:nth-child(1) {
        top: 16px;
        left: 6px;
        background: #000044;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .hamburger.active span:nth-child(2),
    .hamburger.active span:nth-child(3) {
        top: 16px;
        background: #000044;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    body {
        /* background: #87cc77; */
        margin: 0;
        font-family: arial;
        width: 100vw;
        /* height: 100vh; */
        animation: bugfix infinite 1s;
        -webkit-animation: bugfix infinite 1s;
    }

    @keyframes bugfix {
        from {
            padding: 0;
        }
        to {
            padding: 0;
        }
    }
    @-webkit-keyframes bugfix {
        from {
            padding: 0;
        }
        to {
            padding: 0;
        }
    }
}
