/* 既存のCSSはそのまま保持しています */

/* 右セクションのスタイル */
.right-section {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 22%; /* 15%から22%に拡大 */
    background-color: #00536D;
    color: #ffe9e4;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5; /* 中央セクションより上 */
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 80%;
    justify-content: center;
    padding-left: 50px; /* 左側にpadding-left: 50pxを追加 */
}

.right-section h1 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 300;
}

.right-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.right-section ul li {
    margin-bottom: 20px;
}

.right-section ul li a {
    text-decoration: none;
    color: #ffe9e4;
    font-size: 18px;
    font-weight: 300;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.right-section ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    right: 0;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.right-section ul li a:hover {
    color: #b3a297;
}

.right-section ul li a:hover::after {
    transform: scaleX(1);
}

.animated-line {
    width: 1px;
    background-color: #fff;
    transition: height 2s ease;
}

.top-line {
    height: 0;
    margin-bottom: 30px;
}

.bottom-line {
    height: 0;
    margin-top: 30px;
}

@keyframes lineGrow {
    0% {
        height: 0;
    }
    100% {
        height: 50px;
    }
}

.right-section .bottom-line {
    animation: lineGrow 2s forwards;
}

/* 追加部分: MenuとTopの間のアニメーションライン */
.right-section ul::before {
    content: '';
    width: 1px;
    height: 0;
    background-color: #fff;
    position: relative;
    margin-bottom: 20px;
    animation: lineGrow 2s forwards; /* アニメーションを適用 */
    animation-delay: 0.5s; /* 少し遅れて表示 */
}
