/*
Theme Name: Jiyukichi Base Blog
Theme URI: https://example.com/
Author: 自柚基地
Author URI: https://example.com/
Description: 元WordPress.comブログのレイアウトを参考にした、2カラムブログ用テーマ。
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jiyukichi-base-blog
*/

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
}

/* 全体の横幅と中央寄せ */
.site-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ヘッダー */
.site-header {
    padding: 24px 0 16px;
    border-bottom: 1px solid #e5e7eb;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
}

.site-title a {
    text-decoration: none;
    color: #111827;
}

.site-description {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* ナビゲーション */
.site-nav {
    margin-top: 16px;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-nav a {
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #1f2933;
    border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
    border-color: #3b82f6;
}

/* メイン + サイドバー（PCレイアウト） */
.site-main-wrapper {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.site-main {
    flex: 0 0 70%;
}

.site-sidebar {
    flex: 0 0 30%;
}

/* 記事一覧・記事本文 */
.post {
    margin-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 24px;
}

.post:last-child {
    border-bottom: none;
}

.post-title {
    margin: 0 0 4px;
    font-size: 1.4rem;
}

.post-title a {
    text-decoration: none;
    color: #111827;
}

.post-title a:hover {
    text-decoration: underline;
}

.post-meta {
    margin: 0 0 12px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* サイドバーのウィジェット */
.widget {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.widget-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: bold;
}

/* フッター */
.site-footer {
    margin-top: 40px;
    padding: 24px 0;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}

/* スマホ対応（幅768px以下） */
@media (max-width: 768px) {
    .site-main-wrapper {
        flex-direction: column;
    }

    .site-main,
    .site-sidebar {
        flex: 1 1 auto;
    }
}
