/**
 * Plan Sticky Navigation
 * PC: 右側追従ナビ（769px以上）— 右からスライドイン
 * SP: 下部追従ナビ（768px以下）— 下からスライドイン
 */

/* ---- PC: 右側追従サイドナビ ---- */
.plan-sticky-nav {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 95;
    display: flex;
    flex-direction: column;
    width: 150px;
    transform: translate(100%, -50%);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease,
        visibility 0.45s;
}

.plan-sticky-nav.is-visible {
    transform: translate(0, -50%);
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.plan-sticky-nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80px;
    padding: 20px 16px;
    background: #434343;
    color: var(--color-white);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.15em;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: opacity 0.2s;
}

.plan-sticky-nav-item:hover {
    opacity: 0.8;
}

.plan-sticky-nav-item--events {
    background: var(--color-primary);
}

/* ---- SP: 下部追従ナビ ---- */
.plan-mobile-sticky-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-sizing: border-box;
    transform: translateY(100%);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease,
        visibility 0.45s;
}

.plan-mobile-sticky-nav.is-visible {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.plan-mobile-sticky-nav-item,
.plan-mobile-sticky-nav-close {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 56px;
    padding: 8px 4px;
    border: none;
    margin: 0;
    color: var(--color-white);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.plan-mobile-sticky-nav-item {
    background: #434343;
}

.plan-mobile-sticky-nav-item--events,
.plan-mobile-sticky-nav-close {
    background: var(--color-primary);
}

.plan-mobile-sticky-nav-item:active,
.plan-mobile-sticky-nav-close:active {
    opacity: 0.8;
}

.plan-mobile-sticky-nav-close {
    cursor: pointer;
}

.plan-mobile-sticky-nav-close-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--color-white);
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
}

/* ---- ブレークポイント（既存 768px に合わせる） ---- */
@media screen and (max-width: 768px) {
    .plan-sticky-nav {
        display: none !important;
    }
}

@media screen and (min-width: 769px) {
    .plan-mobile-sticky-nav {
        display: none !important;
    }
}

/* ---- アニメーション軽減設定 ---- */
@media (prefers-reduced-motion: reduce) {
    .plan-sticky-nav,
    .plan-mobile-sticky-nav {
        transition: none;
    }
}
