/* Ensure proper rendering on mobile devices */
body {
    margin: 0;
    font-family: 'Noto Serif JP', serif;
    font-size: 16px; /* Base size, adjust as necessary */
    line-height: 1.6;
}

main.content {
    max-width: 1024px; /* Set a maximum width for the content */
    margin: 0 auto; /* Center the content horizontally */
    padding: 1rem; /* Add padding for better spacing */
    line-height: 1.6; /* Improve readability */
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: white; /* Make the background white */
    border-bottom: 2px solid black; /* Add a black underline */
    color: black; /* Update text color to black */
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-left img {
    max-height: 40px;
    margin-right: 0.5rem;
}

.nav-right {
    display: flex;
    gap: 1rem;
}

.nav-right a {
    text-decoration: none;
    color: black; /* Update link color to black */
    font-weight: bold;
}

.nav-right a:hover {
    text-decoration: underline;
    color: #555; /* Optional: slightly darker hover effect */
}

/* Hamburger menu button - hidden on larger screens */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: black; /* Update toggle icon color to black */
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Rules */

@media (min-width: 1024px) {
    body {
        font-size: 18px; /* Increase font size for larger screens */
    }

    main.content {
        line-height: 1.8; /* Optionally, slightly increase the line height */
    }
}


@media (max-width: 768px) {
    .nav-right {
        display: none;
        flex-direction: column;
        background-color: white; /* Keep background white for mobile dropdown */
        position: absolute;
        top: 65px; /* Adjust to create space for the navbar */
        right: 10px;
        width: 150px;
        border: 1px solid black; /* Border around the dropdown */
        padding: 0.5rem;
    }

    .nav-right a {
        padding: 0.5rem 0;
    }

    .nav-right.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}
