@charset "UTF-8";

/* 教育費記事専用CSS - 番号85（修正版）*/
/* 子テーマとの完全連携対応 */

/* ===== 1. ベース設定 ===== */
.main-content,
.post-content .main-content,
.single-post .main-content,
.entry-content .main-content {
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.7;
    color: #333;
}

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

/* ===== 2. ヘッダー（修正版）===== */
.article-header {
    background: linear-gradient(135deg, #E6F2FA 0%, #F0F4F8 100%);
    padding: 40px 0;
    margin-bottom: 30px;
    text-align: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.category-education-tag {
    display: inline-block;
    background: #E9F7EF;
    color: #2d5f3f;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-header h1 {
    font-size: 2.2em;
    color: #2c3e50;
    margin: 20px 0;
    font-weight: 700;
    line-height: 1.3;
    border-bottom: none;
    text-align: center;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-top: 20px;
    justify-content: center;
}

.publish-date,
.reading-time {
    display: inline-block;
}

/* ===== 3. 目次（修正版）===== */
.toc-container,
#table-of-contents-container {
    background: #F9F9F9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.toc-header h2 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 2px solid #E6F2FA;
    padding-bottom: 8px;
}

.toc-list,
#table-of-contents {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.toc-list li,
#table-of-contents li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
    counter-increment: toc-counter;
}

.toc-list li:before,
#table-of-contents li:before {
    content: counter(toc-counter);
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    background: #E6F2FA;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.toc-list a,
#table-of-contents a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toc-list a:hover,
#table-of-contents a:hover {
    color: #3498db;
}

.toc-list a.active,
#table-of-contents a.active {
    color: #3498db;
    font-weight: 600;
}

/* ===== 4. メイン記事コンテンツ ===== */
.article-content {
    margin: 40px 0;
}

.intro-section {
    background: linear-gradient(135deg, #E9F7EF 0%, #F0F4F8 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #2C3E50;
}

.content-section {
    margin: 40px 0;
}

.article-content h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #E6F2FA;
    position: relative;
}

.article-content h3 {
    font-size: 1.4em;
    color: #34495e;
    margin: 30px 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid #E9F7EF;
}

.article-content h4 {
    font-size: 1.2em;
    color: #2c3e50;
    margin: 25px 0 10px 0;
}

/* ===== 5. チャートコンテナ ===== */
.chart-container-85 {
    background: #F9F9F9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
    position: relative;
}

.chart-container-85 canvas,
.chart-container-85 svg {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#education-cost-chart-85,
#scholarship-chart-85,
#svg-chart-85 {
    display: block;
    margin: 0 auto;
    background: white;
    border-radius: 6px;
}

/* ===== 6. 教育費テーブル ===== */
.education-cost-table-85 {
    margin: 25px 0;
    overflow-x: auto;
}

.education-cost-table-85 table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.education-cost-table-85 th {
    background: #E6F2FA;
    color: #2c3e50;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.education-cost-table-85 td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.education-cost-table-85 tr:nth-child(even) {
    background: #fafafa;
}

.education-cost-table-85 tr:hover {
    background: #f0f8ff;
    transition: background 0.3s ease;
}

/* ===== 7. 奨学金カード ===== */
.scholarship-card-85 {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    position: relative;
}

.scholarship-card-85 h3 {
    color: #2c3e50;
    margin-top: 0;
    border-left: 4px solid #E9F7EF;
    padding-left: 15px;
}

/* ===== 8. 警告ボックス ===== */
.warning-box {
    background: #FFF5E5;
    border: 1px solid #f39c12;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    color: #e67e22;
    font-weight: 500;
}

/* ===== 9. インタラクティブカード ===== */
.interactive-card-85 {
    background: white;
    border: 2px solid #E6F2FA;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    transition: all 0.3s ease;
    position: relative;
}

.interactive-card-85:hover {
    border-color: #3498db;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.interactive-card-85 h3,
.interactive-card-85 h4 {
    margin-top: 0;
    color: #2c3e50;
}

.interactive-card-85 ul {
    margin: 15px 0;
    padding-left: 20px;
}

.interactive-card-85 li {
    margin: 8px 0;
    line-height: 1.6;
}

.interactive-card-85 strong {
    color: #e74c3c;
    font-weight: 600;
}

/* ===== 10. 大学無償化情報 ===== */
.university-free-info-85 {
    background: linear-gradient(145deg, #F0F4F8, #E6F2FA);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #b3d9f2;
}

.university-free-info-85 h3 {
    color: #2c3e50;
    margin-top: 0;
}

#university-free-interactive-85 {
    background: white;
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

/* ===== 11. フィルターボタン ===== */
.filter-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-button-85 {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin: 5px;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.filter-button-85:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(41, 128, 185, 0.3);
}

.filter-button-85.active {
    background: #e74c3c;
}

/* ===== 12. コンテンツ表示/非表示 ===== */
.content-current,
.content-expansion {
    margin-top: 15px;
    transition: all 0.3s ease;
}

.content-expansion[style*="display: none"] {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* ===== 13. ハイライトボックス ===== */
.highlight-box {
    background: #FFF5E5;
    border: 1px solid #f39c12;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    position: relative;
}

.highlight-box:before {
    content: "💡";
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 18px;
}

.highlight-box p {
    margin-left: 35px;
    margin-bottom: 0;
    color: #d68910;
    font-weight: 500;
}

/* ===== 14. サマリーボックス ===== */
.summary-box {
    background: #E9F7EF;
    border: 1px solid #27ae60;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
}

.summary-box h4 {
    color: #27ae60;
    margin-top: 0;
    font-size: 1.3em;
}

.summary-box ol {
    color: #2d5f3f;
    line-height: 1.8;
}

.summary-box li {
    margin: 12px 0;
}

/* ===== 15. モーダルオーバーレイ ===== */
.modal-overlay-85,
#modal-overlay-85 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay-85.show,
#modal-overlay-85.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: 20px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

/* ===== 16. フッター ===== */
.article-footer {
    background: #F0F4F8;
    border-top: 1px solid #e0e0e0;
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin: 10px 0;
}

/* ===== 17. レスポンシブデザイン ===== */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.6em;
    }

    .container {
        padding: 0 15px;
    }

    .chart-container-85 {
        padding: 15px;
    }

    .education-cost-table-85 {
        font-size: 12px;
    }

    .filter-button-85 {
        display: block;
        margin: 10px 0;
        text-align: center;
    }

    .modal-content {
        margin: 10px;
        padding: 20px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .header-content {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.4em;
    }

    .article-content h2 {
        font-size: 1.5em;
    }

    .interactive-card-85,
    .scholarship-card-85 {
        padding: 20px;
    }
}

/* ===== 18. 投稿環境対応 ===== */
.post-content .main-content,
.single-post .main-content,
.entry-content .main-content {
    font-family: inherit;
}

.post-content .chart-container-85,
.single-post .chart-container-85,
.entry-content .chart-container-85 {
    margin: 20px auto;
}

/* ===== 19. アニメーション ===== */
.animation-fade {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.animation-slide {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== 20. 子テーマとの連携強化 ===== */
.main-content h2::before, 
.main-content h2::after,
.main-content h3::before, 
.main-content h3::after,
.main-content h4::before, 
.main-content h4::after {
    content: none !important;
    display: none !important;
}
/* ===== 大学無償化比較テーブル ===== */
.university-comparison-table-85 {
    margin: 30px 0;
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.university-comparison-table-85 table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.university-comparison-table-85 th {
    padding: 20px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.university-comparison-table-85 th:first-child {
    background: #F0F4F8;
    color: #2c3e50;
    width: 20%;
}

.university-comparison-table-85 th.current-scheme {
    background: #E6F2FA;
    color: #2980b9;
    width: 40%;
}

.university-comparison-table-85 th.expansion-scheme {
    background: #E9F7EF;
    color: #27ae60;
    width: 40%;
}

.university-comparison-table-85 td {
    padding: 20px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    line-height: 1.6;
}

.university-comparison-table-85 .item-name {
    background: #fafafa;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    border-right: 2px solid #e0e0e0;
}

.university-comparison-table-85 .current-content {
    background: #fafbfc;
    border-right: 1px solid #e0e0e0;
}

.university-comparison-table-85 .expansion-content {
    background: #f9fdfb;
}

.university-comparison-table-85 tr:hover .current-content {
    background: #f0f8ff;
}

.university-comparison-table-85 tr:hover .expansion-content {
    background: #f0fff4;
}

/* 支援詳細スタイル */
.support-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-detail > div {
    padding: 5px 0;
    font-size: 14px;
}

.total-amount {
    font-weight: 600;
    color: #e74c3c;
    font-size: 16px !important;
    border-top: 1px solid #ddd;
    padding-top: 10px !important;
    margin-top: 5px;
}

/* ステータスバッジ */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.current-status {
    background: #E6F2FA;
    color: #2980b9;
}

.expansion-status {
    background: #E9F7EF;
    color: #27ae60;
}

/* リストスタイル調整 */
.university-comparison-table-85 ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.university-comparison-table-85 li {
    margin: 5px 0;
    font-size: 14px;
}

/* ===== 比較サマリー ===== */
.comparison-summary {
    background: linear-gradient(135deg, #F0F4F8 0%, #E6F2FA 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #b3d9f2;
}

.comparison-summary h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.3em;
    text-align: center;
}

.summary-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.point-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.point-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.point-number {
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.point-content {
    flex: 1;
    line-height: 1.6;
}

.point-content strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
    .university-comparison-table-85 {
        font-size: 13px;
    }
    
    .university-comparison-table-85 th,
    .university-comparison-table-85 td {
        padding: 12px 8px;
    }
    
    .university-comparison-table-85 th {
        font-size: 14px;
    }
    
    .support-detail > div {
        font-size: 13px;
    }
    
    .total-amount {
        font-size: 14px !important;
    }
    
    .summary-points {
        gap: 15px;
    }
    
    .point-item {
        padding: 15px;
    }
    
    .point-number {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .university-comparison-table-85 table {
        min-width: 600px;
    }
    
    .point-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .point-number {
        align-self: center;
    }
}
