p {
    color: rgba(0, 0, 0, 0.6);
}
.container {
    max-width: none;
    padding: 0 5% !important;
}

.custom-header {
    border-bottom: 1px solid #ddd;
    padding: 0.8rem 0;
    background-color: #fff;
}

.navbar-brand {
    letter-spacing: 0.2rem;
    font-size: calc(1.0rem + 0.5vw);
    color: rgba(0, 0, 0, 0.6) !important;
}

.navbar-nav > li > a {
    font-size: calc(0.5rem + 0.5vw); /* ビューポート幅に応じてサイズを調整 */
    letter-spacing: 0.2rem;
    color: rgba(0, 0, 0, 0.5) !important;
    text-transform: uppercase;
    margin-left: 1.4rem;
    text-decoration: none;
    font-family: "Yu Mincho", "游明朝", serif !important;
}

.navbar-toggler {
    border-radius: 0;
}

.navbar-nav .nav-item:last-child .nav-link {
    margin-right: 0;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #555;
}

.navbar-toggler {
    padding: 0;
}

.navbar-toggler-icon {
    /* 右に少しずらす */
    translate: 2px 0 0 0;  
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 40%; /* サイドバーの幅をレスポンシブ対応に */
    max-width: 150px; /* 最大幅の制限 */
    background-color: #fdfdfd;
    overflow-y: auto;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 縦方向の余白を均一に */
    padding: 5px 0 0 5px;
}

.close-sidebar {
    font-size: 2rem;
    font-family: "Yu Mincho", "游明朝", serif !important;
    background: none;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    color: rgba(0, 0, 0, 0.5);
    padding: 0;
}

.sidebar .nav-item .nav-link {
    font-size: calc(0.8rem + 0.5vw); /* フォントサイズをレスポンシブに調整 */
    color: #333;
    padding: 0.5rem 0;
}

.navbar-light .navbar-toggler {
    border: none;
}

.navbar-light .navbar-toggler:focus {
    outline: none;
}

.close-sidebar:focus {
    outline: none;
}


@media (max-width: 991.98px) {
    #navbarNav {
        display: none !important;
    }

    .navbar-nav > li > a {
        font-size: 0.9rem;
        letter-spacing: 0.2rem;
        line-height: 2;
        font-weight: 500;
        margin-bottom: 10px;
        text-transform: uppercase;
        margin-right: 1.4rem;
        margin-left: 10px;
        text-decoration: none;
    }
}

@media (max-width: 768px) {
    .custom-header {
        padding: 0.6rem 0;
    }
}

@media (max-width: 576px) {
    .custom-header {
        padding: 0.4rem 0;
    }
}
