/* サイドナビゲーションのスタイル */
.side-nav-trigger {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 200px;
    background-color: rgba(212, 182, 153, 0.7);
    border-radius: 0 10px 10px 0;
    z-index: 1001;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-nav-trigger::after {
    content: "◀";
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.side-nav-trigger:hover {
    background-color: rgba(212, 182, 153, 0.9);
}

.side-nav-trigger:hover::after {
    transform: scale(1.2);
    color: #000;
}

.side-nav {
    position: fixed;
    left: -220px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: auto;
    max-height: 80vh;
    background-color: rgba(212, 182, 153, 0.5);
    border-radius: 0 15px 15px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.side-nav.open {
    left: 0;
}

.side-nav-content {
    padding: 20px 15px;
}

.side-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-family: 'Montserrat', sans-serif; /* おしゃれな細い英文フォントを適用 */
}

.side-nav ul li {
    margin-bottom: 15px;
}

.side-nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    display: inline-block; /* インライン要素に変更 */
    padding: 8px 20px; /* 左の余白を20pxに変更 */
    transition: all 0.3s ease;
    position: relative;
}

.side-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 6px; /* 文字の下端に合わせて調整 */
    left: 20px; /* 左の余白に合わせて調整 */
    width: 0;
    height: 1px; /* 文字に合わせて細くする */
    background-color: #000;
    transition: all 0.3s ease;
}

.side-nav ul li a:hover {
    color: #000;
}

.side-nav ul li a:hover::after {
    width: calc(100% - 40px); /* 文字の幅に合わせる */
}

/* スクロールバーのスタイル */
.side-nav::-webkit-scrollbar {
    width: 3px;
}

.side-nav::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 3px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .side-nav-trigger {
        width: 15px;
        height: 150px;
    }

    .side-nav {
        width: 180px;
        left: -190px;
    }
}