/* Navigation Styles */
#nav {
    width: 100%;
    background-color: transparent;
    font-weight: bold;
}

@media screen and (max-width: 769px) {
    .pc-nav {
        display: none;
    }
    
    .sp-nav {
        top: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background-color: white;
        opacity: 0.85;
        position: fixed;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .sp-nav img {
        height: 80px;
        margin: 0;
        width: auto;
    }

    .sp-nav-button img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

    .sp-nav-button {
        position: relative;
        width: 40px;
        height: 40px;
        background-color: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 20px;
    }
    
    /* SPナビゲーションコンテンツのスタイル */
    #nav-content {
        overflow: auto;
        position: fixed;
        top: 0;
        right: 0;
        width: 60vw; /* 横幅を60vwに制限 */
        max-width: 300px; /* 最大幅を300pxに制限 */
        height: auto; /* 高さを自動調整 */
        max-height: 80vh; /* 最大高さを80vhに制限 */
        background-color: transparent;
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 10000;
        padding: 20px 0;
        box-sizing: border-box;
        display: none; /* 初期状態では非表示 */
    }

    .sp-nav-list {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .sp-nav-list li {
        margin: 6px;
        border-top: 1px solid lightgrey;
        border-radius: 8vw 0 0 9vw;
    }

    .list-content {
        border: solid 1px #c0c0c0;
        background-color: #e0e0e0;
        margin: 2px 10px;
        border-radius: 8px;
    }

    .list-content a {
        width: 100%;
        height: 100%;
        display: block;
        padding: 15px 20px;
        text-decoration: none;
        color: #333;
        font-weight: bold;
        text-align: center;
        box-sizing: border-box;
    }


    /* 横スクロールバーを非表示 */
    #nav-content::-webkit-scrollbar {
        display: none;
    }

    #nav-content {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

@media screen and (min-width: 768px) {
    .sp-nav {
        display: none;
    }
    
    #nav-content {
        display: none !important;
    }
}

.pc-nav {
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: white;
    opacity: 0.85;
    position: fixed;
    z-index: 9999;
}

.pc-logo {
    margin: 0;
    float: left;
}

.pc-logo img {
    height: 150px;
    width: auto;
}

.pc-nav-menu {
    position: relative;
    width: calc(100% - 213.5px);
    height: 80px;
    margin: 0;
    float: left;
    right: 0;
    display: block;
    padding: 0;
}

.pc-nav-menu li {
    line-height: 80px;
    display: block;
    float: right;
    text-align: center;
    margin: 0 3.2vw;
}

/* SPナビゲーションのスタイルはメディアクエリ内で定義 */

.nav-unshown {
    display: none;
}

/* #nav-close は削除されたため、関連スタイルも削除 */

#nav-input:checked ~ #nav-content {
    display: block; /* チェック時に表示 */
    -webkit-transform: translateX(5%);
    transform: translateX(5%);
    box-shadow: 6px 0 25px rgba(0,0,0,0.0);
}

/* SPナビゲーションコンテンツのスタイルはメディアクエリ内で定義 */