@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&display=swap');

html {
    font-size: 16px;
    font-family: "Noto Sans JP", sans-serif;
}

body {
    margin: 0;
}

header {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    box-shadow: 2px 4px 4px #ccc;
}

@media (max-width: 600px) {
    header {
        height: 60px;
    }
}

.title {
    font-size: 30px;
    font-weight: bold;
}

.menu {
    cursor: pointer;
}

.menu div {
    height: 2px;
    width: 40px;
    background-color: black;
    margin-top: 10px;
}

.submenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 20%;
    height: 100%;
    background-color: #f9f9f9;
    transition: 0.5s;
    width: 300px;
    z-index: 1000;
}

@media (max-width: 600px) {
    .submenu {
        width: 100%;
    }
}

.submenu.add {
    right: 0 !important;
    transition: 0.5s;
}

.submenu ul {
    list-style: none;
    padding: 0 20px 0 20px;
}

.submenu li {
    border-bottom: solid 2px #cecccd;
    height: 40px;
}

.submenu li:first-child {
    border-bottom: unset;
    height: unset;
}

.submenu li:hover {
    background-color: #e3e3e3;
}

.submenu li:first-child:hover {
    background-color: unset;
}

.submenu a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    width: 100%;
    height: 100%;
    padding-left: 20px;
}

.submenu_menu {
    display: inline;
}

.submenu_head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
}

.submenu_head i {
    cursor: pointer;
}

main {
    padding: 20px;
}