@charset "UTF-8";

:root {
    --bg-color: #f9f8f6;
    --text-color: #333;
    --accent-color: #800;
    --sub-text-color: #555;
    --card-bg: #fff;
    --font-main: 'Shippori Mincho', serif;
    --header-height: 80px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 2.0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.site-header a {
    text-decoration: none;
    color: #333;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    font-weight: bold;
    transition: opacity 0.3s;
}

.site-header a:hover {
    opacity: 0.7;
}

/* Layout */
.content-wrapper {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Footer */
.site-footer {
    background-color: #f0f0f0;
    color: #888;
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    margin-top: 60px;
    border-top: 1px solid #ddd;
}

/* Article Styles */
.article-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: normal;
    letter-spacing: 0.1em;
    line-height: 1.4;
}

.article-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 60px;
    font-family: sans-serif;
    letter-spacing: 0.05em;
}

.article-body h2 {
    font-size: 1.4rem;
    margin-top: 60px;
    margin-bottom: 20px;
    font-weight: normal;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    letter-spacing: 0.1em;
}

.article-body p {
    line-height: 2.2;
    font-size: 1.05rem;
    margin-bottom: 1.5em;
    text-align: justify;
}

.img-box {
    text-align: center;
    margin: 30px 0;
}

.img-box img {
    max-width: 100%;
    width: 750px;
    height: auto;
    border-radius: 2px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    filter: sepia(10%) contrast(0.95);
}

/* Back to Home Button */
.back-to-home {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.back-to-home a {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    border-radius: 2px;
    font-size: 0.95rem;
    transition: all 0.3s;
    letter-spacing: 0.1em;
}

.back-to-home a:hover {
    background-color: #333;
    color: #fff;
}

/* Index Page Styles */
.site-description {
    text-align: center;
    margin-bottom: 50px;
    color: #555;
    font-size: 0.95rem;
    line-height: 2.2;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
}

.latest-btn {
    display: block;
    width: 220px;
    margin: 0 auto 50px auto;
    text-align: center;
    background: #333;
    color: #fff;
    padding: 15px;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 0.1em;
    transition: opacity 0.3s;
}

.latest-btn:hover {
    opacity: 0.8;
}

.archive-heading {
    text-align: left;
    font-weight: normal;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    font-size: 1.2rem;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

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

.archive-list li {
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.2s;
}

.archive-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.archive-list a {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 20px;
    text-decoration: none;
    color: #333;
}

.archive-list .story-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #800;
    margin-bottom: 5px;
    line-height: 1.5;
}

.archive-list li:hover .story-title {
    color: #a00;
}

.archive-list .story-date {
    font-size: 0.8rem;
    color: #999;
    font-family: sans-serif;
    margin-top: 0;
    text-align: left;
}

/* Thumbnails */
.story-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #eee;
}

.story-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    filter: sepia(20%);
}

.archive-list li:hover .story-thumbnail img {
    transform: scale(1.1);
}

.story-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    font-family: sans-serif;
}

.page-link {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.page-link:hover:not(.disabled) {
    background: #f0f0f0;
    border-color: #ccc;
}

.page-link.disabled {
    color: #ccc;
    pointer-events: none;
    background: #fafafa;
}

.page-info {
    font-weight: normal;
    color: #666;
    font-size: 0.9rem;
}