/* c:\xampp\htdocs\gakumasu\css\navigation_sp.css */

.navigation-sp-container {
    display: none; /* デフォルトでは非表示。メディアクエリで表示 */
    width: 100%;
    background-color: #ffffff;
    padding-top: 5px; /* タイトルとトラックの間の余白を少し確保 */
    padding-bottom: 5px; 
    position: fixed !important; /* 常に画面上部に固定 */
    top: 0 !important; /* 画面上部に配置 */
    z-index: 10000; /* PC版ナビゲーションと同じz-index */
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-family: Arial, sans-serif;
}
/* スマホ表示時に表示する */
@media (max-width: 768px) {
    .navigation-sp-container {
        display: block;
    }
}

.navigation-sp-title {
    display: none; /* 「ページ一覧」の文字を非表示にする */
    /*
    text-align: center;
    font-size: 18px; 
    font-weight: 700;
    color: #4a4a4a;
    padding: 5px 0;
    line-height: 1.2;
    */
}

.navigation-sp-buttons {
    display: flex; /* ボタンを横並びにする */
    width: 100%;
    padding: 5px; /* ボタンコンテナの上下左右の余白 */
    box-sizing: border-box;
}

.navigation-sp-button {
    flex-grow: 1; /* 各ボタンが利用可能なスペースを均等に分け合う */
    text-align: center;
    padding: 12px 5px; /* ボタンのパディング (上下を少し多めに、左右は少なめに) */
    margin: 0 2px; /* ボタン間のわずかなマージン */
    text-decoration: none;
    color: #333333; /* 非アクティブ時の文字色 */
    background-color: #f0f0f0; /* 非アクティブ時の背景色 */
    border-radius: 8px; /* ボタンの角丸 */
    font-size: 13px; /* スマホ向けにフォントサイズ調整 */
    font-weight: 700;
    white-space: nowrap; /* テキストを折り返さない */
    overflow: hidden; /* はみ出したテキストを隠す */
    text-overflow: ellipsis; /* はみ出したテキストを...で表示 */
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #ddd; /* ボタンに薄い枠線 */
}

.navigation-sp-button:first-child {
    margin-left: 0;
}

.navigation-sp-button:last-child {
    margin-right: 0;
}

.navigation-sp-button.active {
    background-color: #ff7eb9; /* アクティブ時の背景色 (例: ホームのピンク) */
    color: #ffffff; /* アクティブ時の文字色 */
}

/* 各アイテムに個別の色を付ける場合 (任意) */
/* .navigation-sp-item:nth-child(1).active { background-color: #74b9ff; } /* サポカtier */
/* .navigation-sp-item:nth-child(3).active { background-color: #55efc4; } /* フレンド掲示板 */
/* .navigation-sp-item:nth-child(4).active { background-color: #ffeaa7; } /* スキル一覧 */
/* .navigation-sp-item:nth-child(4).active a { color: #2d3436; } */
