/*
Theme Name: 健康ブログテーマ
Description: シンプルで清潔な日本健康ブログテーマ
Version: 1.0
*/

/* ========================================
   リセット・ベーススタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Meiryo', 'メイリオ', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #2ECC71;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #27AE60;
}

/* ========================================
   レイアウト
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ヘッダー
======================================== */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #2ECC71;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: white;
    font-size: 14px;
}

.social-link:hover {
    opacity: 0.8;
}

.main-header {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #333333;
}

.site-description {
    font-size: 14px;
    color: #666666;
    margin-top: 5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    padding: 10px 0;
    color: #333333;
}

.nav-menu a:hover {
    color: #2ECC71;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero-section {
    background: #ffffff;
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #eeeeee;
}

.hero-title {
    font-size: 3em;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2em;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   メインコンテンツ
======================================== */
.latest-posts-section {
    padding: 80px 0;
    background: #ffffff;
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-bottom: 20px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: #2ECC71;
    margin: 0 auto 50px;
    border-radius: 2px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-top: 50px;
}

/* ========================================
   記事カード
======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.category-tag {
    display: inline-block;
    background: #2ECC71;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.post-title a {
    color: #333333;
}

.post-title a:hover {
    color: #2ECC71;
}

.post-meta {
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #666666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   サイドバー
======================================== */
.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.widget {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2ECC71;
}

/* ========================================
   ページネーション
======================================== */
.pagination-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-numbers {
    display: inline-flex;
    gap: 10px;
    list-style: none;
}

.page-numbers a,
.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-numbers a {
    background: #f8f9fa;
    color: #333333;
    border: 1px solid #eeeeee;
}

.page-numbers a:hover {
    background: #2ECC71;
    color: white;
    border-color: #2ECC71;
}

.page-numbers .current {
    background: #2ECC71;
    color: white;
    border: 1px solid #2ECC71;
}

/* ========================================
   投稿なし
======================================== */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
}

.no-posts h2 {
    color: #333333;
    margin-bottom: 15px;
}

.no-posts p {
    color: #666666;
}

/* ========================================
   レスポンシブデザイン
======================================== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.2em;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }
    
    .latest-posts-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .sidebar {
        position: static;
    }
    
    .widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        display: none;
    }
    
    .site-title {
        font-size: 1.5em;
    }
    
    .hero-title {
        font-size: 1.8em;
    }
    
    .hero-subtitle {
        font-size: 1em;
    }
    
    .section-title {
        font-size: 1.6em;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-title {
        font-size: 1.2em;
    }
    
    .widget {
        padding: 15px;
    }
    
    .nav-menu {
        gap: 15px;
    }
}