/* 全体スタイル */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 50px 0;
}

/* 合格者一覧タイトル */
.passed-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

/* タイトルの下線 */
.passed-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #d32f2f;
}

/* 合格者番号コンテナ */
.passed-numbers-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

/* 合格者番号 */
.passed-numbers {
    font-size: 60px;
    font-weight: bold;
    color: #d32f2f;
    padding: 10px 20px;
    border: 3px solid #d32f2f;
    border-radius: 10px;
    white-space: nowrap;
    text-align: center;
    animation: fade-in-out 2s infinite alternate; /* アニメーションを追加 */
}

/* フェードイン・フェードアウトのアニメーション */
@keyframes fade-in-out {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* 合格者情報 */
.passed-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* 合格者情報アイテム */
.passed-item {
    width: 300px;
    margin: 20px;
    padding: 25px;
    border-radius: 8px;
    background-color: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 合格者情報アイテムのマウスオーバー効果 */
.passed-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* 合格者情報アイテムのトグルボタン */
.passed-item-toggle {
    width: 100%;
    text-align: left;
    padding: 15px;
    border: none;
    background-color: #e0e0e0;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.3s ease;
}

/* 合格者情報アイテムのトグルボタンのマウスオーバー効果 */
.passed-item-toggle:hover {
    background-color: #d5d5d5;
}

/* 合格者情報アイテムの内容 */
.passed-item-content {
    padding: 20px;
    border-top: 1px solid #ddd;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* 合格者情報テーブル */
.passed-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

/* 合格者情報テーブルセル */
.passed-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
}

/* ダウンロードボタン */
.passed-download {
    display: inline-block;
    padding: 12px 25px;
    background-color: #d32f2f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

/* ダウンロードボタンのマウスオーバー効果 */
.passed-download:hover {
    background-color: #b71c1c;
}

/* 閉じるボタン */
.close-button {
    display: block;
    width: 120px;
    margin: 30px auto 0;
    padding: 12px 25px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

/* 閉じるボタンのマウスオーバー効果 */
.close-button:hover {
    background-color: #5a6268;
}

/* 携帯用サイト */
@media (max-width: 767px) {
    .passed-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .passed-numbers {
        font-size: 40px;
        padding: 8px 16px;
    }

    .passed-item {
        width: 100%;
        margin: 15px 0;
        padding: 20px;
    }

    .passed-item-toggle {
        font-size: 18px;
    }

    .passed-item-content {
        font-size: 14px;
        line-height: 1.6;
    }

    .passed-item-link {
        padding: 8px 16px;
        font-size: 14px;
    }

    .passed-download {
        padding: 10px 20px;
        font-size: 14px;
    }

    .close-button {
        width: 100px;
        padding: 10px 20px;
        font-size: 14px;
    }
}