﻿@charset "utf-8";

/* =================================================
    1. Base & Reset
================================================= */
:root {
    --primary-color: #1785e5;
    --text-main: #2c3e50;
    --text-sub: #7f8c8d;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
}

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

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-color); text-decoration: none; transition: 0.3s; }
a:hover { color: #0056b3; text-decoration: underline; }

/* =================================================
    2. Layout
================================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 25px; }

.main-layout { display: flex; gap: 40px; margin: 40px auto 60px; }

.content-area { flex: 1; min-width: 0; }

.sidebar { width: 320px; flex-shrink: 0; }

@media (max-width: 850px) {
    .main-layout { flex-direction: column; }
    .sidebar { width: 100%; }
}

/* =================================================
    3. Header & Footer
================================================= */
.site-header {
    background-color: #fff;
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.site-header h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 5px; }
.site-name a { color: var(--text-sub); font-size: 0.9rem; font-weight: 500; }

.site-footer {
    background: #fff; padding: 60px 0; text-align: center;
    font-size: 0.85rem; color: #888; border-top: 1px solid var(--border-color);
}

/* =================================================
    4. Common Article Card (TOP & Content 共通)
================================================= */
.article-card, .entry-card {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

/* コンテンツ詳細の装飾 */
.entry-header h1 {
    font-size: 2.2rem; color: #111; line-height: 1.3;
    margin-bottom: 30px; font-weight: 800;
    border-bottom: 2px solid #eee; padding-bottom: 20px;
}

.entry-body h2 {
    font-size: 1.6rem; margin: 45px 0 20px; padding: 15px 25px;
    background: #f8f9fa; border-left: 8px solid var(--primary-color);
    border-radius: 0 4px 4px 0; font-weight: 700;
}

.entry-body p { font-size: 1.1rem; line-height: 2.1; margin-bottom: 1.8em; }

/* =================================================
    5. List Designs (TOPの記事リスト & サイドバー)
================================================= */
/* リスト共通設定 */
.entry-list, .link-list { list-style: none; padding: 0; }

/* TOPページ用のリッチなリスト */
.entry-item {
    display: block; padding: 20px 0; border-bottom: 1px solid #f0f0f0;
    text-decoration: none; transition: 0.3s;
}
.entry-item:last-child { border-bottom: none; }
.entry-item:hover { transform: translateX(5px); }
.entry-date { display: block; font-size: 0.85rem; color: var(--text-sub); font-weight: 700; margin-bottom: 5px; }
.entry-title { display: block; font-size: 1.15rem; font-weight: 700; color: var(--text-main); }

/* サイドバー用のシンプルなリスト */
.sidebar-widget {
    background: var(--card-bg); padding: 25px; border-radius: 12px;
    margin-bottom: 30px; border: 1px solid var(--border-color);
}
.sidebar-widget h3 { font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; border-left: 4px solid var(--text-main); padding-left: 12px; }

.link-list li { padding: 10px 0; border-bottom: 1px dashed #eee; }
.link-list li:last-child { border-bottom: none; }
.link-list a { font-size: 0.95rem; color: var(--text-main); font-weight: 500; }
.link-list a:hover { color: var(--primary-color); }

/* 戻るボタン */
.back-link {
    display: inline-block; margin-top: 30px; padding: 12px 25px;
    background: #f0f0f0; border-radius: 50px; font-size: 0.9rem; color: #666;
}
.back-link:hover { background: var(--primary-color); color: #fff; text-decoration: none; }