/* ================================ */
/* 1. 基本レイアウト設定 */
/* ================================ */
html, body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ヘッダーの固定と重なり順の設定 */
.main-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10000;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

/* ================================ */
/* 2. スライド表示制御 (表示・非表示) */
/* ================================ */
.single-talent-page {
    display: none; 
    width: 100%;
    /* ヘッダーの高さを考慮して画面いっぱいに広げる */
    min-height: calc(100vh - 80px); 
    box-sizing: border-box;
    /* フッターやドットとの間隔を確保 */
    padding-bottom: 80px; 
}

/* アクティブなスライドだけ表示 */
.single-talent-page.is-active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ================================ */
/* 3. 画像エリア (スマホ基準) */
/* ================================ */
.talent-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 30px;
}

.talent-img {
    width: 85%;
    max-width: 400px;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* ================================ */
/* 4. 情報エリア (名前・バッジ) */
/* ================================ */
.talent-info-wrapper {
    width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* 横中央寄せ */
    text-align: center;  /* 文字中央寄せ */
}

.talent-info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* 名前ロゴ画像 */
.talent-name img {
    max-width: 280px;
    width: 90%;
    height: auto;
    margin-bottom: 15px;
}

/* 世代名テキスト (例：くりあ0期生) */
.generation-text {
    font-size: 1.6rem;
    color: #666;
    font-weight: 800;
    margin-bottom: 10px;
}

/* 「卒業済み」バッジ */
.status-badge {
    display: inline-block;
    padding: 6px 25px;
    background-color: #f0f0f0;
    color: #999;
    border-radius: 50px;
    font-weight: bold;
    border: 1px solid #ddd;
}

/* ================================ */
/* 5. PC用レイアウト (768px以上) */
/* ================================ */
@media (min-width: 768px) {
    .single-talent-page.is-active {
        flex-direction: row !important; /* 横並びにする */
        align-items: center;
        justify-content: center;
        padding: 50px 5% 0;
        height: calc(100vh - 80px);
    }

    /* 左側：画像 */
    .talent-image-wrapper {
        flex: 1;
        padding-top: 0;
        justify-content: flex-end;
        padding-right: 50px;
    }

    .talent-img {
        width: auto !important;
        max-height: 80vh !important;
        max-width: 500px;
    }

    /* 右側：情報 */
    .talent-info-wrapper {
        flex: 1;
        padding: 0 0 0 50px !important;
        justify-content: center;
    }

    /* PCでの名前ロゴサイズ拡大 */
    .talent-name img {
        max-width: 500px !important;
        width: auto !important;
        margin: 0 auto 20px !important;
    }
}

/* ================================ */
/* 6. スライドナビゲーション (矢印・ドット) */
/* ================================ */

/* 左右の矢印ボタン */
.slide-nav {
    position: fixed;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none; /* 下の要素をクリック可能に */
    z-index: 9999;
    transform: translateY(-50%);
}

.nav-arrow {
    pointer-events: auto; /* ボタンのみクリックを有効化 */
    background: rgba(255, 133, 173, 0.6);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s, transform 0.3s;
}

.nav-arrow:hover {
    background: rgba(255, 133, 173, 0.9);
    transform: scale(1.1);
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.is-active {
    background: #ff85ad;
    width: 25px; /* 現在地を長くする */
    border-radius: 10px;
}

/* ================================ */
/* 7. アニメーション設定 (ふわっと浮き出る) */
/* ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-2 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

/* ================================ */
/* 8. フッターの表示調整 */
/* ================================ */
.main-footer {
    position: relative;
    z-index: 100;
    margin-top: auto; /* コンテンツが少なくても最下部に配置 */
}