/* 全体のデザイン */
body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ヘッダー */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #a2d93b;
}

.logo {
    height: 40px;
}

.user-icon {
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.user-icon:hover {
    transform: scale(1.1);
}

.slider img {
    width: 100%;
    height: auto; /* 画像の比率を保つ */
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover; /* 画像が崩れないように */
}
/* スライダー */
.slider-container {
    width: 50%;
    margin: auto;
    padding-top: 20px;
    position: relative;
    z-index: 1;
}

/* スマホ用のスライダーサイズ調整 */
@media (max-width: 768px) {
    .slider-container {
        width: 80%; /* スマホでは幅を80%に拡大 */
    }
}

@media (max-width: 480px) {
    .slider-container {
        width: 90%; /* さらに小さいスマホでは90%に */
    }
}


/* ユーザーメニュー */
.user-menu {
    position: relative;
    display: inline-block;
    z-index: 1000; /* スライダーより前面に */
}

/* ドロップダウンメニュー */
.menu-dropdown {
    position: absolute;
    right: 0;
    top: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    width: 180px;
    display: none;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    overflow: hidden;
    z-index: 1010; /* スライダーより前面に */
}

/* ヘッダー */
.header-container {
    position: relative;
    z-index: 2000; /* ヘッダーを最前面に */
}


/* カテゴリーリスト */
.category-selection {
    text-align: center;
    margin: 40px 0;
}

.category-selection h2 {
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.category-item {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid #a2d93b;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
    width: 200px;
    font-weight: bold;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 12px rgba(162, 217, 59, 0.4);
}

.category-item a {
    text-decoration: none;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

/* ボタン */
button {
    background: #a2d93b;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    box-shadow: 0px 4px 10px rgba(162, 217, 59, 0.2);
}

button:hover {
    background: #8fcf2d;
    transform: translateY(-3px);
    box-shadow: 0px 6px 12px rgba(162, 217, 59, 0.4);
}

/* フッター */
footer {
    text-align: center;
    padding: 15px;
    background: #fff;
    color: #333;
    font-size: 14px;
    margin-top: 40px;
    border-top: 3px solid #a2d93b;
}
/* カテゴリーセクション */
.category-selection {
    text-align: center;
    margin: 40px 0;
}

.category-selection h2 {
    font-size: 24px;
    color: #333;
}

/* カテゴリーリスト */
.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.category-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    width: 250px;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(162, 217, 59, 0.4);
}

.category-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

/* コンテンツメニュー */
.category-content {
    text-align: center;
    margin-top: 30px;
}

.content-menu button {
    background: #a2d93b;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
}

.content-menu button:hover {
    background: #8fcf2d;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 管理ページボタン */
.admin-button {
    background-color: #80C78A;  /* 少し薄い緑 */
    color: white;
    padding: 10px 15px;
    border-radius: 50px;  /* 角を完全に丸く */
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.admin-button:hover {
    background-color: #72B07A;  /* ホバー時に少し濃く */
}
.user-dashboard {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 5px solid #8BC34A;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.user-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.user-dashboard h2 {
    font-size: 24px;
    color: #4A7C29;
    margin-bottom: 20px;
    font-weight: bold;
}

.user-dashboard ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-dashboard li {
    background: #F1F8E9;
    padding: 12px 20px;
    margin: 8px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    border-left: 5px solid #8BC34A;
    transition: background 0.3s ease-in-out;
}

.user-dashboard li:hover {
    background: #DCEDC8;
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    background: #C5E1A5;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 5px;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #8BC34A;
    transition: width 0.5s ease-in-out;
}

.study-date {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .user-dashboard {
        width: 90%;
        padding: 15px;
    }

    .user-dashboard h2 {
        font-size: 20px;
    }

    .user-dashboard li {
        font-size: 14px;
        flex-direction: column;
        text-align: left;
    }

    .study-date {
        font-size: 12px;
    }
}






/* ========================= */
/* 📌 ユーザーダッシュボード関連 */
/* ========================= */
.user-dashboard {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 5px solid #8BC34A;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.user-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.user-dashboard h2 {
    font-size: 24px;
    color: #4A7C29;
    margin-bottom: 20px;
    font-weight: bold;
}

.user-dashboard ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-dashboard li {
    background: #F1F8E9;
    padding: 12px 20px;
    margin: 8px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    border-left: 5px solid #8BC34A;
    transition: background 0.3s ease-in-out;
}

.user-dashboard li:hover {
    background: #DCEDC8;
}

/* 進捗バー */
.progress-bar {
    height: 8px;
    border-radius: 4px;
    background: #C5E1A5;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 5px;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #8BC34A;
    transition: width 0.5s ease-in-out;
}

/* 最終学習日 */
.study-date {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* 📌 レスポンシブ対応 */
@media (max-width: 600px) {
    .user-dashboard {
        width: 90%;
        padding: 15px;
    }

    .user-dashboard h2 {
        font-size: 20px;
    }

    .user-dashboard li {
        font-size: 14px;
        flex-direction: column;
        text-align: left;
    }

    .study-date {
        font-size: 12px;
    }
}

/* ========================= */
/* 📌 マイル特典関連 */
/* ========================= */
.mile-benefit, .study-support, .invite-friends {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 5px solid #a2d93b;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.mile-benefit:hover, .study-support:hover, .invite-friends:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.mile-benefit h2, .study-support h2, .invite-friends h2 {
    font-size: 22px;
    color: #4A7C29;
    font-weight: bold;
    margin-bottom: 15px;
}

.mile-benefit p, .study-support p, .invite-friends p {
    font-size: 16px;
    color: #555;
}

/* 特典ボタン */
.btn-download, .btn-study, .btn-invite {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: #8BC34A;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    box-shadow: 0px 4px 10px rgba(162, 217, 59, 0.2);
}

.btn-download:hover, .btn-study:hover, .btn-invite:hover {
    background: #72B07A;
    transform: translateY(-3px);
    box-shadow: 0px 6px 12px rgba(162, 217, 59, 0.4);
}

/* ========================= */
/* 📌 レスポンシブ対応 */
/* ========================= */
@media (max-width: 768px) {
    .mile-benefit, .study-support, .invite-friends {
        width: 90%;
        padding: 15px;
    }

    .mile-benefit h2, .study-support h2, .invite-friends h2 {
        font-size: 20px;
    }

    .btn-download, .btn-study, .btn-invite {
        font-size: 14px;
        padding: 10px 16px;
    }
}



.invite-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 5px solid #a2d93b;
}

.invite-container h2 {
    font-size: 24px;
    color: #4A7C29;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 招待リンク */
.invite-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.invite-link input {
    width: 70%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.invite-link button {
    background: #8BC34A;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.invite-link button:hover {
    background: #72B07A;
}

/* SNS共有ボタン */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.sns-btn {
    display: inline-block;
    width: 50px;
    height: 50px;
}

.sns-btn img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: opacity 0.3s ease-in-out;
}

.sns-btn:hover img {
    opacity: 0.8;
}

/* 招待履歴 */
.invite-history {
    list-style: none;
    padding: 0;
}

.invite-history li {
    background: #F1F8E9;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    border-left: 5px solid #8BC34A;
}



/* 🔹 管理者エリアのコンテナ */
.admin-container {
    display: flex;
    justify-content: center; /* 横方向の中央配置 */
    align-items: center; /* 縦方向の中央配置 */
    min-height: 50vh; /* コンテンツが少ない場合でも中央に配置 */
    margin: 40px 0;
}

/* 🔹 管理者用のボックス */
.admin-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 5px solid #4CAF50;
    max-width: 600px;
    width: 90%;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.admin-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.admin-box h2 {
    font-size: 20px;
    color: #4A7C29;
    margin-bottom: 10px;
    font-weight: bold;
}

.admin-box p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

/* 🔹 管理者ボタン */
.admin-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.admin-button i {
    font-size: 18px;
}

.admin-button:hover {
    background: linear-gradient(135deg, #45a049, #3e8e41);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ✅ モバイル対応 */
@media (max-width: 600px) {
    .admin-box {
        width: 95%;
    }

    .admin-button {
        font-size: 14px;
        padding: 10px 20px;
    }
}
/* 🔹 BlackDiamond会員専用カード */
.blackdiamond-card {
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    margin: 20px auto;
    border: 2px solid #FFD700; /* ゴールドの縁 */
}

/* 🔹 特典ボタン */
.special-access-btn {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: black;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease-in-out;
}

.special-access-btn:hover {
    background: linear-gradient(135deg, #FFC107, #FFA000);
    transform: translateY(-2px);
}


.digital-textbook {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 5px solid #a2d93b;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.digital-textbook:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.digital-textbook h2 {
    font-size: 22px;
    color: #4A7C29;
    font-weight: bold;
    margin-bottom: 15px;
}

.digital-textbook p {
    font-size: 16px;
    color: #555;
}
