@charset "UTF-8";

/* =========================================================
   英検対策特訓ドリル一覧用 スタイル
========================================================= */

/* 全体コンテナ */
.eiken-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
}

/* =========================================
   パンくずリスト
========================================= */
.te-breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}
.te-breadcrumb a {
    color: #1a0dab; 
    text-decoration: none;
}
.te-breadcrumb a:hover {
    text-decoration: underline;
}

/* =========================================
   ヘッダーエリア
========================================= */
.eiken-header-area {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 10px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: left; /* 日本語の長文を読みやすくするため左寄せ */
}

/* =========================================
   級選択ナビゲーション
========================================= */
.grade-nav-area {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    text-align: center;
}

.grade-nav-title {
    font-size: 1.2rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

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

.grade-nav-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: var(--grade-color, #333);
    border: 2px solid var(--grade-color, #ccc);
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
}

.grade-nav-btn:hover {
    background-color: var(--grade-color, #ccc);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================
   広告エリア
========================================= */
.ad-container {
    width: 100%;
    overflow: hidden;
    text-align: center;
    margin: 40px 0;
}
.ad-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}
.ad-dummy {
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: bold;
    border-radius: 8px;
    font-size: 0.9rem;
}
.ad-dummy.in-article {
    height: 250px; /* インアーティクル広告は少し高めに設定 */
}

/* =========================================
   各級セクション
========================================= */
.grade-section {
    margin-bottom: 60px;
    padding-top: 20px; /* ジャンプ用オフセット */
}

.grade-header {
    border-left: 6px solid var(--grade-color, #ccc);
    padding-left: 15px;
    margin-bottom: 20px;
}

.grade-target {
    font-size: 0.85rem;
    color: #666;
    background: #f1f5f9;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: bold;
}

.grade-title {
    font-size: 1.6rem;
    color: #333;
    margin: 0 0 10px 0;
}

.grade-desc {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* =========================================
   クイズカードグリッド
========================================= */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.quiz-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s ease;
}

.quiz-card:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.quiz-title {
    font-size: 1.05rem;
    color: #1e293b;
    margin: 0 0 15px 0;
    line-height: 1.4;
    flex-grow: 1; /* ボタンを下部に揃えるため */
}

/* 挑戦ボタン */
.quiz-action {
    margin-top: auto;
    text-align: right;
}

.btn-play-quiz {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-family: 'Meiryo', 'メイリオ', sans-serif;
}

.btn-play-quiz:hover {
    background-color: #2980b9;
}

/* =========================================
   ページトップへ戻る
========================================= */
.back-to-top-wrap {
    text-align: right;
    margin-top: 15px;
}

.btn-back-to-top {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
}

.btn-back-to-top:hover {
    text-decoration: underline;
    color: #334155;
}

/* =========================================
   メッセージエリア（最下部）
========================================= */
.message-area {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 60px;
}

.message-area h3 {
    color: #0284c7;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.message-area p {
    color: #334155;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 800px;
    font-size: 0.95rem;
    text-align: left; /* 日本語の長文を読みやすくするため左寄せ */
}

/* =========================================
   スマホ対応
========================================= */
@media (max-width: 600px) {
    .page-title {
        font-size: 1.4rem;
    }
    
    .grade-nav-list {
        gap: 10px;
    }
    
    .grade-nav-btn {
        width: 48%; /* 2列にする */
        min-width: auto;
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .quiz-grid {
        grid-template-columns: 1fr; /* 1列にする */
    }
    
    .btn-play-quiz {
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
}