/* c:\xampp\htdocs\gakumasu\css\navigation.css */
.navigation-title {
    display: none; /* 「ページ一覧」の文字を非表示にする */
    /* text-align: center; */
    /* font-size: 28px !important; */
    /* font-weight: 700; */
    /* color: #4a4a4a; */
    /* padding: 5px 0 2px 0; */
    /* text-shadow: 1px 1px 1px rgba(255,255,255,0.5); */
    /* width: 100%; */
    /* box-sizing: border-box; */
    /* line-height: 1.2; */
}
/* カルーセルコンテナ */
.carousel-container {
    width: 100%;
    overflow-x: hidden; /* 横方向のはみ出しは隠す */
    overflow-y: visible; /* 縦方向のはみ出しは表示する（タグの切れ対策） */
    background-color: #ffffff; /* 帯の色を白に変更して明るく */
    padding-top: 5px; /* タイトルがなくなったので、トラック上部の余白を調整 */
    padding-bottom: 5px; /* 下パディングも少し調整 */
    position: fixed !important; /* 常に画面上部に固定 */
    margin-top: 0 !important; /* 上の余白を確実に0にする */
    top: 0 !important; /* 画面上部に配置 */
    z-index: 10000 !important;      /* 他の要素より手前に表示するための高いz-index (JSでの制御と競合しないように!important) */
    display: flex; /* flexboxを有効にしてタイトルとトラックを縦に並べる */
    flex-direction: column; /* 子要素を縦方向に並べる */
    align-items: stretch; /* 子要素を横いっぱいに広げる */
    justify-content: flex-start !important; /* トラックを左端に配置 (JSで中央揃えを制御するため!important) */
    font-family: Arial, sans-serif;
    border-bottom: 1px solid #e0e0e0; /* 白背景なので薄い区切り線を追加 */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.07); /* 下方向に少し濃いめの影を追加して立体感を出す */
    min-height: 95px;    /* 高さを調整 (トラック + 上下余白) タイトル分約34px減らす */
    flex-shrink: 0; /* 親がflexコンテナの場合に縮小されないようにする */
    box-sizing: border-box;
}


/* カルーセルトラック (アイテムを横に並べる) */
.carousel-track {
    display: flex; /* タグを横並びにする */
    flex-wrap: nowrap; /* 折り返さない */
    align-items: center; /* アイテムの垂直位置を中央に */
    position: relative;
    height: 85px;    /* この高さは維持、またはコンテナの高さに合わせて調整 */
    opacity: 0; /* 初期状態では透明に (JSで変更するまで) */
    line-height: normal; /* 他のページと line-height を統一 */
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 2s ease-out; /* opacityの時間を2秒に */
}

/* カルーセルアイテム */
.carousel-item {
    border: 2px solid transparent; /* 非アクティブ時は透明ボーダー */
    border-radius: 16px; /* 角丸 */
    display: flex; /* Flexbox を有効にする */
    align-items: center; /* 垂直方向中央揃え */    
    justify-content: center; /* 水平方向中央揃え */
    padding: 25px 20px; /* 非アクティブ時のパディングを調整 (左右は小さめ) */
    white-space: nowrap; /* テキストを折り返さない */
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease, padding 0.4s ease;
    opacity: 0.5; /* 非アクティブなアイテムはより半透明に */
    transform: scale(0.8); /* 非アクティブなアイテムは少し小さくする */
    transform-origin: center center; /* スケーリングの基点を中央に */
    flex-shrink: 0; /* タグがコンテナ幅に応じて縮まないようにする */
    cursor: pointer; /* クリック可能であることを示す */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 0 5px; /* アイテム間の左右マージンを少し狭く */
    width: auto; /* 基本は内容に合わせる */
    text-align: center;
    box-sizing: border-box;
}

/* 各タグに異なる色を設定 (例) */
.carousel-item:nth-child(1) { background-color: #74b9ff; } /* ポップなライトブルー (サポカtier) */
.carousel-item:nth-child(1) a { color: #fff; }
.carousel-item:nth-child(2) { background-color: #ff7eb9; } /* ポップなピンク (ホーム) */
.carousel-item:nth-child(2) a { color: #fff; }
.carousel-item:nth-child(3) { background-color: #55efc4; } /* ポップなミントグリーン */
.carousel-item:nth-child(3) a { color: #2d3436; } /* 背景が明るいので文字色を濃いグレーに */
.carousel-item:nth-child(4) { background-color: #ffeaa7; } /* ポップなクリームイエロー */
.carousel-item:nth-child(4) a { color: #2d3436; } /* 背景が明るいので文字色を濃いグレーに */
.carousel-item.active {
    border: 2px solid rgba(0,0,0,0.1); /* アクティブ時に薄いグレーのボーダーを追加 */
    opacity: 1 !important; /* アクティブなアイテムは不透明に (JSでの初期設定より優先されるように) */
    transform: scale(1) !important; /* アクティブなアイテムは元の大きさに */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* 影を調整 */
    padding: 25px 20px !important; /* アクティブ時のパディングを大きく */
}

.carousel-item a {
    text-decoration: none;
    font-weight: 700;
    font-size: 24px;  /* フォントサイズを大きく */
    line-height: 1.2;
    pointer-events: none; /* aタグ自体はクリックさせず、親の.carousel-itemでイベントを拾う */
}


.carousel-item.active a {
    pointer-events: none; /* aタグ自体はクリックさせず、親の.carousel-itemでイベントを拾う */
}


.carousel-item:not(.active):hover {
    background-color: #dee2e6;
    border-color: #adb5bd;
    opacity: 0.7;
}
/* スマホ表示時にはPC版ナビゲーションを非表示にする */
@media (max-width: 768px) {
    .carousel-container {
        display: none !important; /* !importantで確実に非表示にする */
    }
}