/* REGIステップ - LP Subnav スタイル */

/* 初期状態（非表示） */
.lp-subnav {
    position: fixed;
    top: 76px; /* PC: REGIステップのヘッダー高さ */
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* スクロールバー非表示 */
.lp-subnav::-webkit-scrollbar {
    display: none;
}

.lp-subnav {
    scrollbar-width: none;
}

/* 表示時 */
.lp-subnav.visible {
    transform: translateY(0);
    opacity: 1;
}

/* リスト */
.lp-subnav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0 0.7rem;
    white-space: nowrap;
}

/* リンク */
.lp-subnav-link {
    display: block;
    padding: 0.6rem 0.7rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.lp-subnav-link:hover {
    color: var(--color-text-primary);
}

.lp-subnav-link.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    font-weight: 600;
}

/* スクロールプログレスバー（画面最下部に固定） */
.scroll-progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary, #2563eb), var(--color-accent, #f97316));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .lp-subnav {
        top: 66px; /* スマホ: REGIステップのヘッダー高さ */
    }

    .lp-subnav-list {
        justify-content: flex-start;
        padding: 0 0.5rem;
    }

    .lp-subnav-link {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
        font-weight: 600;
    }
}
