/*
Theme Name: o-chan.blog
Theme URI: https://o-chan.blog
Author: o-chan
Description: アーカイブタイトルのサイズ微調整・全体バランス統一版
Version: 2.9
*/

/* --- 1. 基本設定 --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

:root {
    --container-width: 1080px;
    --header-height: 70px;
    --sidebar-width: 280px;
}

/* --- 2. 基本要素 --- */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: 0.3s; }
a:hover { opacity: 0.7; }

/* --- 3. レイアウト構造 --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a { 
    font-weight: bold; 
    font-size: 1.2rem;
}

.container {
    max-width: var(--container-width);
    margin: var(--header-height) auto 80px;
    padding: 40px 20px 0;
    display: flex;
    justify-content: space-between;
}

.main-area {
    width: calc(100% - var(--sidebar-width) - 50px);
    min-width: 0;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

/* --- 4. カテゴリータブ & アーカイブタイトル --- */
.category-tabs { 
    margin-bottom: 40px; 
    border-bottom: 1px solid #eee; 
}

.tab-list { display: flex; padding: 0; margin: 0; list-style: none; }
.tab-item { margin-right: 25px; }
.tab-item a { 
    display: block; 
    padding: 0 0 10px 0; 
    color: #888; 
    font-size: 14px; 
    position: relative; 
}
.tab-item.is-active a { color: #333; font-weight: bold; }
.tab-item.is-active a::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
}

/* 【修正】サイズを18pxから14pxに落とし、他のパーツと統一 */
.archive-info-text {
    font-size: 14px; 
    font-weight: bold;
    color: #333;
    padding-bottom: 12px;
    margin-top: 0;
}

/* --- 5. 記事カード --- */
.post-card { margin-bottom: 60px; }

.post-thumbnail {
    margin-bottom: 22px; 
}

.post-meta-top {
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
    font-size: 12px;
    align-items: center;
}

.post-category a { 
    border: 1px solid #333; 
    padding: 2px 10px; 
    font-weight: bold; 
    display: inline-block; 
    font-size: 11px;
}

.tag-item {
    color: #999;
    font-size: 11px;
    margin-right: 12px;
    display: inline-block;
}

.post-title { 
    font-size: 22px; 
    margin: 10px 0; 
    line-height: 1.3; 
    font-weight: bold; 
}

.post-date {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 10px;
}

.post-excerpt {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

/* --- 6. サイドバー --- */
.sidebar section, .sidebar .widget { margin-bottom: 40px; }

.sidebar h2, .sidebar .widget-title {
    margin: 0 0 15px 0;
    font-size: 15px;
    font-weight: bold;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.sidebar ul {
    list-style: none;
    padding: 0 !important;
    margin: 0;
}

.sidebar li { 
    margin-bottom: 10px; 
    font-size: 14px; 
    padding-left: 0 !important;
}

/* --- 7. フッター --- */
.site-footer {
    padding: 50px 0;
    background: #fafafa;
    border-top: 1px solid #eee;
    margin-top: 100px;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-inner p, 
.footer-inner small {
    font-size: 14px;
    color: #666;
    text-align: left;
}

/* --- 8. レスポンシブ --- */
@media (max-width: 820px) {
    .container { flex-direction: column; padding-top: 20px; }
    .main-area, .sidebar { width: 100%; }
}