/*
Theme Name: Fleet
Theme URI: https://example.com
Author: Antigravity
Description: A high-performance, COZUCHI-style terracotta list-based theme.
Version: 1.0.0
*/

:root {
    --fleet-primary: #de5d50; /* テラコッタオレンジ */
    --fleet-text: #333333;
    --fleet-bg: #ffffff;
    --fleet-meta: #888888;
    --fleet-border: #eeeeee;
    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-base); color: var(--fleet-text); background-color: var(--fleet-bg); line-height: 1.7; }
a { color: var(--fleet-text); text-decoration: none; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 40px; }
.site-header { padding: 20px 0; border-bottom: 1px solid var(--fleet-border); margin-bottom: 40px; text-align: center; }
.site-logo { font-size: 1.8em; font-weight: bold; color: var(--fleet-primary); }

.main-content { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }
@media (max-width: 768px) {
    .sidebar { width: 100%; }
}

/* リスト型レイアウト */
.section-title { font-size: 1.4em; margin-bottom: 24px; color: var(--fleet-primary); }
.post-list { display: flex; flex-direction: column; gap: 24px; }
.post-card { display: flex; gap: 20px; align-items: stretch; background: var(--fleet-bg); border: 1px solid var(--fleet-border); border-radius: 8px; overflow: hidden; }
.post-card:hover { opacity: 0.8; }
.post-img { flex: 0 0 240px; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
@media(max-width:600px) {
    .post-card { flex-direction: column; }
    .post-img { flex: 0 0 auto; aspect-ratio: 16/9; }
}
.post-meta-content { flex: 1; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.post-meta-content time { font-size: 0.85em; color: var(--fleet-meta); margin-bottom: 10px; display: block; }
.post-title { font-size: 1.15em; font-weight: bold; margin-bottom: 12px; line-height: 1.5; }

/* カテゴリー（ピル型） */
.category-tag { display: inline-block; border: 1px solid var(--fleet-primary); color: var(--fleet-primary); padding: 4px 16px; border-radius: 20px; font-size: 0.8em; font-weight: bold; }

/* 記事ページ */
.single .main-content { margin-bottom: 60px; }
.entry-header { margin-bottom: 30px; }
.entry-title { font-size: 2em; margin: 15px 0; line-height: 1.4; }
.entry-thumbnail img { width: 100%; border-radius: 8px; margin-bottom: 40px; }
.entry-content h2 { border-left: 5px solid var(--fleet-primary); padding-left: 12px; margin: 2em 0 1em; font-size: 1.4em;}
.entry-content p { margin-bottom: 1.5em; }

/* サイドバー */
.widget { margin-bottom: 50px; }
.widget-title { color: var(--fleet-primary); font-size: 1.2em; text-align: center; margin-bottom: 20px; font-weight: bold; }
.category-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.category-list a { border: 1px solid var(--fleet-primary); color: var(--fleet-primary); padding: 6px 16px; border-radius: 30px; font-size: 0.85em; background: #fff; }
.category-list a:hover { background: var(--fleet-primary); color: #fff; }

/* サイドバー（人気記事風リスト） */
.popular-list { display: flex; flex-direction: column; gap: 16px; }
.popular-post { display: flex; gap: 12px; position: relative; }
.rank-badge { position: absolute; top: -8px; left: -8px; background: #e6c86e; color: #fff; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.8em; font-weight: bold; z-index: 1;}
.popular-img { flex: 0 0 100px; }
.popular-img img { width: 100px; height: 75px; object-fit: cover; border-radius: 4px; }
.popular-info time { font-size: 0.75em; color: var(--fleet-meta); display: block; margin-bottom: 4px; }
.popular-info h4 { font-size: 0.9em; line-height: 1.4; margin-bottom: 6px; }

/* ページネーション */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination .page-numbers { display: flex; justify-content: center; align-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--fleet-primary); color: var(--fleet-primary); font-weight: bold; }
.pagination .current { background: var(--fleet-primary); color: #fff; }

/* ふきだしショートコード */
.fleet-balloon { display: flex; align-items: flex-start; margin-bottom: 2em; }
.fleet-balloon.right { flex-direction: row-reverse; }
.balloon-icon { flex: 0 0 60px; text-align: center; }
.balloon-icon img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.balloon-name { font-size: 0.75em; display: block; margin-top: 5px; color: var(--fleet-meta); }
.balloon-text { position: relative; max-width: 70%; background: #f4f4f4; padding: 16px; border-radius: 12px; margin: 0 20px; font-size: 0.95em; }
.fleet-balloon.left .balloon-text::before { content: ''; position: absolute; left: -10px; top: 20px; border: 10px solid transparent; border-right-color: #f4f4f4; margin-top: -10px; border-left: 0; }
.fleet-balloon.right .balloon-text::before { content: ''; position: absolute; right: -10px; top: 20px; border: 10px solid transparent; border-left-color: #f4f4f4; margin-top: -10px; border-right: 0; }
.balloon-text p:last-child { margin-bottom: 0; }

/* フッター */
.site-footer { background: #fafafa; border-top: 1px solid var(--fleet-border); padding: 50px 20px 20px; margin-top: 60px; font-size: 0.85em; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.copyright { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--fleet-border); color: var(--fleet-meta); }
