@charset "UTF-8";

/* =========================================================
   歴史年表 詳細ページ用スタイル (Timeline Event: te-)
========================================================= */

/* --- 全体・ベース --- */
.te-breadcrumb,
.te-card,
.te-footer-actions {
    font-family: 'Meiryo', 'メイリオ', sans-serif;
}

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

/* --- メインカード --- */
.te-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    overflow: hidden;
}

.te-card-inner {
    padding: 35px 40px;
}

/* --- ヘッダー領域 --- */
.te-card-header {
    border-bottom: 2px solid #fbeccf;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.te-title {
    font-size: 2.2rem;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: bold;
    line-height: 1.3;
}
.te-title ruby rt {
    font-size: 0.4em;
    color: #78909c;
    padding-bottom: 2px;
}

.te-lifespan-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.te-lifespan {
    font-size: 1.15rem;
    font-weight: bold;
    color: #455a64;
}

/* --- 時代バッジ（年表と色を統一） --- */
.te-period-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    background-color: #999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.period-kyusekki, .period-jomon, .period-yayoi { background-color: #8d6e63; }
.period-kofun { background-color: #5d4037; }
.period-asuka, .period-nara { background-color: #8e24aa; }
.period-heian { background-color: #ec407a; }
.period-kamakura { background-color: #3949ab; }
.period-nanboku, .period-muromachi { background-color: #1a237e; }
.period-sengoku, .period-azuchi { background-color: #e53935; }
.period-edo { background-color: #03a9f4; }
.period-meiji, .period-taisho, .period-showa, .period-heisei, .period-reiwa { background-color: #43a047; }

/* --- 基本情報タグ --- */
.te-profile-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}
.te-info-tag {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #495057;
    font-weight: bold;
}

/* --- 概要説明ボックス --- */
.te-desc-box {
    background: #fffdf7;
    border-left: 5px solid #d4a34b;
    padding: 20px 25px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 35px;
    border-radius: 0 8px 8px 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* 強調キーワード（赤字） */
.te-keyword-red {
    color: #d32f2f;
    font-weight: bold;
    text-decoration: none;
}
a.te-keyword-red:hover {
    text-decoration: underline;
}

/* --- エピソードタイムライン（縦並びのUI） --- */
.te-episode-timeline {
    position: relative;
    padding-left: 25px;
    margin-bottom: 40px;
}

/* 左側の縦ライン */
.te-episode-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 0;
    width: 3px;
    background: #fbeccf;
    border-radius: 2px;
}

.te-episode-item {
    position: relative;
    margin-bottom: 35px;
}
.te-episode-item:last-child {
    margin-bottom: 0;
}

.te-episode-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

/* アイコン（丸いバッジ） */
.te-episode-icon {
    position: absolute;
    left: -38px;
    background: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #d4a34b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.te-episode-title {
    font-size: 1.25rem;
    color: #2c3e50;
    margin: 0 0 0 10px;
    font-weight: bold;
}

.te-episode-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-left: 10px;
}

/* --- 検索キーワードハッシュタグ --- */
.te-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px 0 20px;
    padding-top: 25px;
    border-top: 1px dashed #e0e0e0;
}
.te-kw-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}
.te-kw-tag:hover {
    background: #bbdefb;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* --- クイズ連携セクション --- */
.te-quiz-links {
    background: #fffdf7;
    border: 2px solid #fbdc5e;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    margin-top: 35px;
}
.te-quiz-head {
    font-size: 1.3rem;
    font-weight: bold;
    color: #b3853d;
    margin-bottom: 20px;
}
.te-quiz-btn-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.te-quiz-gold-btn {
    display: inline-block;
    background: linear-gradient(135deg, #fbdc5e, #f5b041);
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.2s;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}
.te-quiz-gold-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    filter: brightness(1.05);
}

/* --- フッターアクションボタン --- */
.te-footer-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px 0;
}
.te-btn-primary {
    display: inline-block;
    background: #d8657a;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.te-btn-primary:hover {
    background: #c05266;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.te-btn-secondary {
    display: inline-block;
    background: #fff;
    color: #555;
    padding: 12px 25px;
    border: 1px solid #ccc;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.te-btn-secondary:hover {
    background: #f5f5f5;
    color: #333;
    transform: translateY(-2px);
}

/* --- 広告関連 --- */
.te-ad-container-article,
.te-ad-container-bottom {
    margin: 30px 0;
    text-align: center;
}
.te-ad-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}


/* =========================================================
   レスポンシブデザイン（スマートフォン対応）
========================================================= */
@media (max-width: 768px) {
    .te-card-inner {
        padding: 20px 15px;
    }
    .te-title {
        font-size: 1.6rem;
    }
    .te-lifespan {
        font-size: 1rem;
    }
    .te-desc-box {
        padding: 15px;
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    .te-episode-timeline {
        padding-left: 20px;
    }
    .te-episode-timeline::before {
        left: 6px;
    }
    .te-episode-icon {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
        left: -33px;
        border-width: 2px;
    }
    .te-episode-title {
        font-size: 1.1rem;
        margin-left: 8px;
    }
    .te-episode-text {
        font-size: 0.95rem;
        padding: 15px;
        margin-left: 8px;
    }
    .te-quiz-head {
        font-size: 1.1rem;
    }
    .te-quiz-gold-btn {
        width: 100%;
        padding: 14px 10px;
        font-size: 1rem;
        box-sizing: border-box;
    }
    .te-footer-actions {
        flex-direction: column;
        padding: 0 15px;
    }
    .te-btn-secondary, .te-btn-primary {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* =========================================================
   ⑫ 出来事タイトルの文字色（EVENT_CODEとの同期）
========================================================= */
.te-title.color-era { color: #00695c; }       /* 時代の境界（深緑） */
.te-title.color-battle { color: #c62828; }    /* 戦乱・合戦（濃い赤） */
.te-title.color-politics { color: #1565c0; }  /* 政治・制度（青） */
.te-title.color-incident { color: #ef6c00; }  /* 事件・変・乱（オレンジ） */
.te-title.color-event { color: #424242; }     /* 文化・行事（ダークグレー） */
.te-title.color-birth { color: #ec407a; }     /* 人物の生誕（ピンク） */
.te-title.color-death { color: #546e7a; }     /* 人物の死去（グレーブラウン） */
.te-title.color-position { color: #e65100; }  /* 官職・就任・改姓（濃い橙） */
