body {
    margin: 0;
    font-family: Arial, sans-serif;
}
@media (max-width: 768px) {
    body {
        margin-left: 0.6rem;
        margin-right: 0.6rem;
    }
}
.navbar {
    background-color: white; /* ネイビーブルー */
    color: blue;
    padding: 10px 20px;
    position: relative;
}

.hamburger-menu {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.line {
    background-color: blue;
    height: 3px;
    width: 100%;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
}

.nav-item {
    margin: 10px 0;
}

.nav-item a {
    color: blue;
    text-decoration: none;
}

#menu-toggle {
    display: none;
}

#menu-toggle:checked + .hamburger-menu + .nav-list {
    display: flex;
}

#menu-toggle:checked ~ #page-content {
    display: none; /* メニューが開かれたときにページコンテンツを隠す */
}

@media (min-width: 769px) {
    .navbar {
        display: none;
    }
    .hamburger-menu {
        display: none;
    }
    .nav-list {
        display: none;
    }   
    #page-content {
        display: block; /* コンテンツを表示 */
    }
}

@media (max-width: 768px) {
    header {
        display: none;
    }
    main {
        margin-top: 20px; /* 例として50pxに設定 */
    }
}