/* =====================================================
   kids-reading-page.css
   小学生の読書記録ページ専用スタイル (kids-reading_ja.html / kids-reading_en.html)
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-base);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ページヘッダー（子供向けにカラフルに） */
.page-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    text-align: center;
    border: 3px solid #f59e0b;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #92400e !important;
}

.page-header h1 i {
    color: #f59e0b !important;
}

.page-header p {
    font-size: 1.2rem;
    color: #78350f !important;
}

/* メインコンテンツ */
main {
    padding: 60px 0 0 0;
}

.section {
    background: var(--color-bg-secondary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.section h2 {
    color: #1e3a5f !important;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #f59e0b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h2 i {
    color: #f59e0b;
}

.section h3 {
    color: #2d3748 !important;
    font-size: 1.3rem;
    margin: 25px 0 15px;
}

.section p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 対象者リスト */
.target-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.target-list li {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #f59e0b;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.target-list li i {
    font-size: 1.5rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.target-list li span {
    color: #78350f;
}

.target-list + .highlight-text {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 20px;
}

/* 使い方ステップ */
.steps-visual {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.step-item {
    flex: 1;
    min-width: 200px;
    background: var(--color-bg-light);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--color-border);
    position: relative;
}

.step-item::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #f59e0b;
}

.step-item:last-child::after {
    display: none;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step-item h4 {
    color: var(--color-text-primary);
    margin-bottom: 10px;
}

.step-item p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* 特徴カード */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feature-card {
    background: var(--color-bg-light);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid var(--color-border);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: #f59e0b;
    transform: translateY(-3px);
}

.feature-card i {
    font-size: 2rem;
    color: #f59e0b;
    margin-bottom: 15px;
}

.feature-card h4 {
    color: var(--color-text-primary);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* 保護者向けヒント */
.parent-tips {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #0284c7;
    margin: 20px 0;
}

.parent-tips h4 {
    color: #0369a1;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.parent-tips ul {
    list-style: none;
    padding: 0;
}

.parent-tips li {
    padding: 8px 0;
    color: #075985;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.parent-tips li::before {
    content: '✓';
    color: #0284c7;
    font-weight: bold;
}

/* 読書感想文セクション */
.essay-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px dashed #f59e0b;
}

.essay-section h3 {
    color: #92400e !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.essay-section p {
    color: #78350f !important;
}

.essay-tips {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.essay-tips ol {
    margin: 0;
    padding-left: 25px;
    color: #78350f;
}

.essay-tips li {
    padding: 5px 0;
}

/* FAQ */
.faq-item {
    background: var(--color-bg-light);
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #f59e0b;
}

.faq-item h4 {
    color: var(--color-text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h4 i {
    color: #f59e0b;
}

.faq-item p {
    color: var(--color-text-secondary);
    margin: 0;
}

/* CTAセクション */
.cta-section {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
    text-align: center;
    padding: 50px 40px;
    border-radius: 0;
    margin-bottom: 0;
}

.cta-section h2 {
    color: white !important;
    border-bottom: 3px solid white;
}

.cta-section p {
    color: white !important;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #92400e;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.small-text {
    font-size: 0.9rem !important;
    margin-top: 15px;
    opacity: 0.9;
}

/* パンくずリスト */
.breadcrumb {
    background: var(--color-bg-secondary);
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb-container {
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--color-btn-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--color-text-secondary);
    margin: 0 8px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 25px 20px;
    }

    .step-item::after {
        display: none;
    }

    .steps-visual {
        flex-direction: column;
    }
}

/* ダークモード対応 */
[data-theme="dark"] .page-header,
.dark-mode .page-header {
    background: linear-gradient(135deg, #451a03 0%, #78350f 100%) !important;
    border-color: #f59e0b;
}

[data-theme="dark"] .page-header h1,
.dark-mode .page-header h1 {
    color: #fef3c7 !important;
}

[data-theme="dark"] .page-header p,
.dark-mode .page-header p {
    color: #fde68a !important;
}

[data-theme="dark"] .section h2,
.dark-mode .section h2 {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .section h3,
.dark-mode .section h3 {
    color: #d0d0d0 !important;
}

[data-theme="dark"] .target-list li,
.dark-mode .target-list li {
    background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
}

[data-theme="dark"] .target-list li span,
.dark-mode .target-list li span {
    color: #fde68a;
}

[data-theme="dark"] .parent-tips,
.dark-mode .parent-tips {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
}

[data-theme="dark"] .parent-tips h4,
.dark-mode .parent-tips h4 {
    color: #bae6fd;
}

[data-theme="dark"] .parent-tips li,
.dark-mode .parent-tips li {
    color: #e0f2fe;
}

[data-theme="dark"] .essay-section,
.dark-mode .essay-section {
    background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
}

[data-theme="dark"] .essay-section h3,
.dark-mode .essay-section h3 {
    color: #fef3c7 !important;
}

[data-theme="dark"] .essay-section p,
.dark-mode .essay-section p {
    color: #fde68a !important;
}

[data-theme="dark"] .essay-tips,
.dark-mode .essay-tips {
    background: var(--color-bg-secondary);
}

[data-theme="dark"] .essay-tips ol,
.dark-mode .essay-tips ol {
    color: var(--color-text-primary);
}

[data-theme="dark"] .btn,
[data-theme="dark"] .cta-button,
.dark-mode .btn,
.dark-mode .cta-button {
    background: #6b7fd8 !important;
    color: #ffffff !important;
}

@media (prefers-color-scheme: dark) {
    .page-header {
        background: linear-gradient(135deg, #451a03 0%, #78350f 100%) !important;
        border-color: #f59e0b;
    }

    .page-header h1 {
        color: #fef3c7 !important;
    }

    .page-header p {
        color: #fde68a !important;
    }

    .section h2 {
        color: #e0e0e0 !important;
    }

    .section h3 {
        color: #d0d0d0 !important;
    }

    .target-list li {
        background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
    }

    .target-list li span {
        color: #fde68a;
    }

    .parent-tips {
        background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
    }

    .parent-tips h4 {
        color: #bae6fd;
    }

    .parent-tips li {
        color: #e0f2fe;
    }

    .essay-section {
        background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
    }

    .essay-section h3 {
        color: #fef3c7 !important;
    }

    .essay-section p {
        color: #fde68a !important;
    }

    .essay-tips {
        background: #2d2d2d;
    }

    .essay-tips ol {
        color: #e0e0e0;
    }

    .btn, .cta-button {
        background: #6b7fd8 !important;
        color: #ffffff !important;
    }
}
