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

:root {
    --base-color: #ffffff;
    --base-light: #f9f9f9;
    --main-color: #dc143c;
    --main-dark: #b91c3c;
    --main-light: #ff4466;
    --accent-color: #d4af37;
    --accent-dark: #b8941f;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'メイリオ', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--base-color);
}

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

.site-header {
    background: linear-gradient(135deg, var(--main-color), var(--main-dark));
    color: var(--base-color);
    padding: 20px 0;
}

.site-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.site-header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.site-header nav a {
    color: var(--base-color);
    text-decoration: none;
    font-size: 1.1em;
    padding: 5px 10px;
    transition: all 0.3s ease;
    position: relative;
}

.site-header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.site-header nav a:hover::after {
    width: 100%;
}

.site-header nav a:hover {
    color: var(--accent-color);
}

.hero-section {
    background: linear-gradient(180deg, var(--base-light), var(--base-color));
    padding: 60px 0;
    text-align: center;
}

.hero-section h2 {
    font-size: 2.2em;
    color: var(--main-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.hero-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.lead {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 800px;
    margin: 30px auto 0;
    line-height: 1.8;
}

.hero-buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: var(--main-color);
    color: var(--base-color);
    border: 2px solid var(--main-color);
}

.btn-primary:hover {
    background: var(--main-dark);
    border-color: var(--main-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn-secondary:hover {
    background: var(--main-color);
    color: var(--base-color);
}

.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background-color: var(--base-light);
}

.content-section h2 {
    font-size: 2em;
    color: var(--main-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

.content-section h2 i {
    color: var(--accent-color);
    margin-right: 10px;
}

.hero-card, .battle-card, .strategy-card, .culture-card, .anecdote-card {
    background: var(--base-color);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 0;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--main-color);
}

.hero-card:hover, .battle-card:hover, .strategy-card:hover, .culture-card:hover, .anecdote-card:hover {
    transform: translateY(-2px);
    border-color: var(--main-color);
}

.hero-card h3, .battle-card h3, .strategy-card h3, .culture-card h3, .anecdote-card h3 {
    font-size: 1.5em;
    color: var(--main-dark);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.hero-card h3::after, .battle-card h3::after, .strategy-card h3::after, .culture-card h3::after, .anecdote-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.hero-card p, .battle-card p, .strategy-card p, .culture-card p, .anecdote-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.quote-section {
    background: linear-gradient(135deg, var(--main-dark), var(--main-color));
    color: var(--base-color);
    padding: 60px 0;
}

.quote-section h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.quote-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

.quote-section h2 i {
    color: var(--accent-color);
    margin-right: 10px;
}

blockquote {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 20px 30px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 4px;
}

blockquote p {
    font-size: 1.3em;
    font-style: italic;
    margin-bottom: 10px;
}

blockquote cite {
    display: block;
    text-align: right;
    color: var(--accent-color);
    font-size: 1.1em;
}

.site-footer {
    background: var(--text-color);
    color: var(--base-color);
    text-align: center;
    padding: 40px 0;
}

.site-footer p {
    margin: 5px 0;
}

.site-footer p:last-child {
    color: var(--accent-color);
    font-style: italic;
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2em;
    }
    
    .site-header nav ul {
        gap: 15px;
    }
    
    .site-header nav a {
        font-size: 1em;
    }
    
    .hero-section h2 {
        font-size: 1.8em;
    }
    
    .lead {
        font-size: 1.1em;
    }
    
    .content-section h2 {
        font-size: 1.7em;
    }
    
    .hero-card h3, .battle-card h3, .strategy-card h3, .culture-card h3, .anecdote-card h3 {
        font-size: 1.3em;
    }
    
    blockquote p {
        font-size: 1.1em;
    }
}

/* Article Styles */
.site-title a {
    color: var(--base-color);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--accent-color);
}

.article-main {
    background: var(--base-color);
    padding: 40px 0 60px;
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.blog-article {
    flex: 1;
    background: var(--base-color);
    text-align: left;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.article-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85em;
}

.article-meta time {
    color: var(--text-light);
}

.article-meta time i,
.article-meta .category i {
    color: var(--text-light);
    margin-right: 5px;
    font-size: 0.9em;
}

.article-meta .category {
    background: transparent;
    color: var(--text-light);
    padding: 0;
    border: none;
    font-weight: normal;
}

.article-title {
    font-size: 2em;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: left;
    font-weight: 600;
}

.article-lead {
    font-size: 1.05em;
    color: var(--text-light);
    line-height: 1.7;
    text-align: left;
    padding: 0;
    background: transparent;
    border: none;
}

.article-icatch {
    margin: 20px 0;
}

.article-icatch img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}

.toc-section {
    margin: 30px 0;
    padding: 25px;
    background: var(--base-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.toc-section h2 {
    font-size: 1.2em;
    color: var(--main-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.toc-section h2 i {
    color: var(--accent-color);
    margin-right: 8px;
}

.article-content {
    font-size: 1.05em;
    line-height: 1.9;
    color: var(--text-color);
}

.article-content h2 {
    font-size: 1.8em;
    color: var(--main-color);
    margin: 50px 0 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    text-align: left;
}

.article-content h2::after {
    display: none;
}

.article-content h3 {
    font-size: 1.4em;
    color: var(--main-dark);
    margin: 35px 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-ideograph;
}

.article-quote {
    background: var(--base-light);
    border-left: 4px solid var(--main-color);
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 0;
}

.article-quote p {
    font-size: 1.15em;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 10px;
    text-align: left;
}

.article-quote cite {
    display: block;
    text-align: right;
    color: var(--main-color);
    font-size: 0.95em;
    margin-top: 10px;
}

.article-list {
    margin: 20px 0;
    padding-left: 30px;
}

.article-list li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-color);
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--base-color);
    border: 1px solid var(--border-color);
}

.article-table thead {
    background: var(--main-color);
    color: var(--base-color);
}

.article-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.article-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.article-table tbody tr:hover {
    background: var(--base-light);
}

.article-table tbody tr:last-child td {
    border-bottom: none;
}

.article-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.article-tags {
    margin-bottom: 30px;
}

.article-tags .tag {
    display: inline-block;
    background: var(--base-light);
    color: var(--text-color);
    padding: 6px 15px;
    margin: 0 8px 8px 0;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.article-tags .tag:hover {
    background: var(--main-color);
    color: var(--base-color);
    border-color: var(--main-color);
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.article-nav a {
    color: var(--main-color);
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
}

.article-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.article-nav a:hover::after {
    width: 100%;
}

.article-nav a:hover {
    color: var(--main-dark);
}

.prev-article {
    text-align: left;
}

.next-article {
    text-align: right;
    margin-left: auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover .hero-card,
.card-link:hover .battle-card,
.card-link:hover .strategy-card,
.card-link:hover .anecdote-card {
    transform: translateY(-2px);
    border-color: var(--main-color);
}

.more-button-container {
    text-align: center;
    margin-top: 30px;
}

.article-sidebar {
    width: 300px;
    position: sticky;
    top: 20px;
}

.sidebar-section {
    background: var(--base-color);
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 0;
}

.sidebar-section h3 {
    font-size: 1.2em;
    color: var(--main-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.sidebar-section h3 i {
    color: var(--accent-color);
    margin-right: 8px;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 10px;
}

.toc > ul > li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.toc > ul > li:last-child {
    margin-bottom: 0;
}

.toc > ul > li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--main-color);
}

.toc > ul > li > a {
    font-weight: 600;
    color: var(--text-color);
}

.toc ul ul {
    margin-top: 8px;
    padding-left: 20px;
}

.toc ul ul li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.toc ul ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.toc a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.toc a:hover {
    color: var(--main-color);
}

.toc ul ul a:hover {
    padding-left: 5px;
}

.related-articles,
.popular-articles {
    padding-left: 0;
    list-style: none;
}

.popular-articles {
    counter-reset: article-counter;
}

.popular-articles li {
    counter-increment: article-counter;
    position: relative;
    padding-left: 30px;
}

.popular-articles li::before {
    content: counter(article-counter);
    position: absolute;
    left: 0;
    top: 5px;
    background: var(--main-color);
    color: var(--base-color);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85em;
    font-weight: bold;
}

.related-articles li,
.popular-articles li {
    margin-bottom: 12px;
}

.related-articles a,
.popular-articles a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.related-articles a:hover,
.popular-articles a:hover {
    color: var(--main-color);
}

@media (max-width: 1024px) {
    .article-container {
        flex-direction: column;
    }
    
    .article-sidebar {
        width: 100%;
        position: static;
        margin-top: 40px;
    }
    
    .sidebar-section {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2em;
    }
    
    .article-lead {
        font-size: 1.1em;
    }
    
    .article-content h2 {
        font-size: 1.5em;
        margin: 40px 0 20px;
    }
    
    .article-content h3 {
        font-size: 1.25em;
        margin: 30px 0 15px;
    }
    
    .article-table {
        font-size: 0.9em;
    }
    
    .article-table th,
    .article-table td {
        padding: 8px 10px;
    }
    
    .article-nav {
        flex-direction: column;
    }
    
    .next-article {
        margin-left: 0;
    }
}

/* Hero Detail Page Styles */
.hero-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.breadcrumb {
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--main-color);
}

.hero-detail h1 {
    font-size: 2.5em;
    color: var(--main-color);
    margin-bottom: 10px;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.2em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 30px;
}

.hero-intro {
    background: var(--base-light);
    padding: 30px;
    margin-bottom: 40px;
    border-left: 4px solid var(--main-color);
}

.hero-intro .lead {
    text-align: left;
    margin: 0;
}

.achievement-list {
    list-style: none;
    padding: 0;
}

.achievement-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 30px;
}

.achievement-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-size: 1.2em;
}

.achievement-list strong {
    color: var(--main-dark);
    display: inline-block;
    margin-right: 10px;
}

.subordinates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.subordinate-card {
    background: var(--base-light);
    padding: 20px;
    border-left: 3px solid var(--accent-color);
}

.subordinate-card h4 {
    color: var(--main-dark);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.subordinate-card p {
    color: var(--text-light);
    font-size: 0.95em;
    line-height: 1.6;
}

.famous-quote {
    background: var(--base-light);
    border-left: 4px solid var(--accent-color);
    padding: 25px 30px;
    margin: 30px 0;
    position: relative;
}

.famous-quote p {
    font-size: 1.3em;
    font-style: italic;
    color: var(--main-dark);
    margin: 0;
}

.famous-quote footer {
    margin-top: 15px;
    text-align: right;
    color: var(--text-light);
    font-size: 0.95em;
    font-style: normal;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.navigation-buttons .btn {
    flex: 1;
    text-align: center;
}

.fiction-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 20px 0;
    font-size: 0.95em;
}

.fiction-note::before {
    content: '📚 ';
    font-size: 1.2em;
}

.fiction-note strong {
    color: #856404;
}

.historical-fact {
    background: #d4edda;
    border: 1px solid #28a745;
    border-left: 4px solid #28a745;
    padding: 15px 20px;
    margin: 20px 0;
    font-size: 0.95em;
}

.historical-fact::before {
    content: '📜 ';
    font-size: 1.2em;
}

.historical-fact strong {
    color: #155724;
}

@media (max-width: 768px) {
    .hero-detail h1 {
        font-size: 2em;
    }
    
    .subordinates-grid {
        grid-template-columns: 1fr;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .navigation-buttons .btn {
        width: 100%;
    }
}