/* 投稿一覧・詳細ページのスタイル */

/* メインコンテンツエリア */
.main {
    padding: 120px 0 60px;
}

@media screen and (max-width: 767px) {
    .main {
        padding: 100px 0 40px;
    }
}

/* 投稿一覧 */
.posts-list {
    margin-bottom: 60px;
}

.post-item {
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.post-header {
    margin-bottom: 20px;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #00b6cb;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.875rem;
    color: #666;
}

.post-date {
    color: #00b6cb;
    font-weight: 600;
}

.post-categories a {
    color: #666;
    text-decoration: none;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: background-color 0.3s ease;
}

.post-categories a:hover {
    background: #00b6cb;
    color: #fff;
}

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

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #444;
}

.post-more {
    text-align: right;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #00b6cb;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background: #00cce3;
}

/* 投稿詳細 */
.post-single {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.post-single .post-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #111;
}

.post-single .post-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-single .post-thumbnail {
    margin-bottom: 30px;
}

.post-single .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content {
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #111;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 25px 0 12px;
    color: #111;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content ul, .post-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f9f9f9;
    border-left: 4px solid #00b6cb;
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: #666;
}

.post-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.post-tags a:hover {
    background: #00b6cb;
    color: #fff;
}

/* ナビゲーション */
.post-navigation {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

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

.nav-previous, .nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-previous a, .nav-next a {
    display: inline-block;
    padding: 10px 20px;
    background: #00b6cb;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.nav-previous a:hover, .nav-next a:hover {
    background: #00cce3;
}

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

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #fff;
    color: #111;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #00b6cb;
    color: #fff;
    border-color: #00b6cb;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* 記事が見つからない場合 */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-posts h2 {
    font-size: 1.5rem;
    color: #111;
    margin-bottom: 15px;
}

.no-posts p {
    color: #666;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
    .post-item {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-single {
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .post-single .post-title {
        font-size: 1.5rem;
    }
    
    .post-navigation {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .pagination .page-numbers {
        padding: 6px 12px;
        margin: 0 3px;
        font-size: 0.875rem;
    }
}
