/*
 * Rotating Navigation CSS
 * 回転ナビゲーション専用スタイル
 * 独立コンポーネント - front-page.php で使用
 */

/* ========================================
   Rotating Navigation - 水平配置
======================================== */

/* 回転ナビヘッダー */
.rotating-nav-header {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
    text-align: center;
}

/* ナビゲーション円弧コンテナ */
.nav-arc {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    width: 100%;
}

/* ナビゲーションアイテム */
.nav-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 55px;
    background: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    opacity: 0.6;
    z-index: 2;
}

/* アクティブ状態 */
.nav-item.active {
    opacity: 1;
    z-index: 5;
    transform: translate(-50%, -50%) scale(1.2);
}

/* ホバー効果 */
.nav-item:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 32px rgba(51, 102, 153, 0.3);
}

.nav-item.active:hover {
    transform: translate(-50%, -50%) scale(1.25);
}

/* ナビコンテンツ */
.nav-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

/* ナビアイコン */
.nav-icon {
    font-size: 20px;
    line-height: 1;
}

/* ナビラベル */
.nav-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* 位置指定 - JavaScriptで動的に変更 */
.nav-item[data-position="left"] {
    transform: translate(-50%, -50%) translateX(-280px) scale(0.8);
    opacity: 0.6;
    z-index: 2;
}

.nav-item[data-position="center"] {
    transform: translate(-50%, -50%) translateX(0px) scale(1.2);
    opacity: 1;
    z-index: 5;
}

.nav-item[data-position="right"] {
    transform: translate(-50%, -50%) translateX(280px) scale(0.8);
    opacity: 0.6;
    z-index: 3;
}

/* アニメーション中 */
.nav-item.nav-moving {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 矢印ナビゲーション */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: white;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.nav-arrow:hover {
    background: var(--primary-color-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 32px rgba(51, 102, 153, 0.3);
}

.nav-arrow-left {
    left: 20px;
}

.nav-arrow-right {
    right: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .rotating-nav-header {
        padding: 40px 0;
    }

    .nav-arc {
        height: 100px;
    }

    .nav-item {
        width: 160px;
        height: 45px;
        border-radius: 12px;
    }

    .nav-icon {
        font-size: 16px;
    }

    .nav-label {
        font-size: 12px;
    }

    /* レスポンシブ位置調整 */
    .nav-item[data-position="left"] {
        transform: translate(-50%, -50%) translateX(-170px) scale(0.75);
    }

    .nav-item[data-position="center"] {
        transform: translate(-50%, -50%) translateX(0px) scale(1.1);
    }

    .nav-item[data-position="right"] {
        transform: translate(-50%, -50%) translateX(170px) scale(0.75);
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .nav-arrow-left {
        left: 10px;
    }

    .nav-arrow-right {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .nav-arc {
        height: 80px;
    }

    .nav-item {
        width: 140px;
        height: 35px;
        border-radius: 10px;
    }

    .nav-icon {
        font-size: 14px;
    }

    .nav-label {
        font-size: 10px;
    }

    /* モバイル位置調整 */
    .nav-item[data-position="left"] {
        transform: translate(-50%, -50%) translateX(-140px) scale(0.7);
    }

    .nav-item[data-position="center"] {
        transform: translate(-50%, -50%) translateX(0px) scale(1.0);
    }

    .nav-item[data-position="right"] {
        transform: translate(-50%, -50%) translateX(140px) scale(0.7);
    }

    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .nav-arrow-left {
        left: 5px;
    }

    .nav-arrow-right {
        right: 5px;
    }
}