@charset "UTF-8";

/* =========================================
   1. GLOBAL & VARS
   ========================================= */
:root {
    --primary-color: #FE222C;
    --secondary-color: #2c5e4f;
    --accent-color: #eab308;
    --text-color: #333333;
    --bg-color: #ffffff;
    --gray-light: #f4f5f7;
    --gray-border: #ddd;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
}

/* =========================================
   3. COMMON LAYOUT & TYPOGRAPHY
   ========================================= */
section {
    padding: 100px 20px;
    position: relative;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Animation Classes */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   BLOG HERO
   ========================================= */
.blog-hero {
    height: 60vh;
    background: #fdfbf7;
    background-image: radial-gradient(#ddd 1px, transparent 1px);
    background-size: 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.blog-hero h1 {
    font-size: 56px;
    color: #333;
    margin-bottom: 10px;
}

.blog-hero p {
    font-size: 18px;
    color: #FE222C;
    letter-spacing: 0.1em;
}

/* =========================================
   BLOG CONTAINER
   ========================================= */
.blog-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    padding-top: 60px;
    padding-bottom: 80px;
}

/* =========================================
   BLOG LIST ITEMS
   ========================================= */
.blog-list-area {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-list-item {
    display: flex;
    gap: 30px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #eee;
}

.blog-list-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.blog-thumb-link {
    width: 35%;
    min-width: 250px;
    overflow: hidden;
}

.blog-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-list-item:hover .blog-thumb-link img {
    transform: scale(1.05);
}

.blog-item-content {
    padding: 30px 30px 30px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.article-category {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blog-item-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-item-title a {
    color: #333;
    transition: color 0.3s;
    text-decoration: none;
}

.blog-item-title a:hover {
    color: var(--primary-color);
}

.blog-item-excerpt {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s;
    text-decoration: none;
}

.read-more-btn:hover {
    gap: 10px;
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #eee;
    color: #666;
    font-weight: 600;
    transition: var(--transition);
    padding: 0 15px;
    text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-numbers.next {
    width: auto;
}

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    margin-bottom: 12px;
}

.widget-list li:last-child {
    margin-bottom: 0;
}

.widget-list a {
    color: #444;
    transition: color 0.3s;
    text-decoration: none;
}

.widget-list a:hover {
    color: var(--primary-color);
}

.widget-list span {
    color: #999;
    font-size: 13px;
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    margin-bottom: 20px;
}

.recent-posts-list li:last-child {
    margin-bottom: 0;
}

.recent-posts-list a {
    display: flex;
    gap: 15px;
    align-items: center;
    text-decoration: none;
}

.recent-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f4f5f7;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-post-thumb::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.recent-post-info {
    display: flex;
    flex-direction: column;
}

.recent-post-info .title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
    transition: color 0.3s;
}

.recent-posts-list a:hover .title {
    color: var(--primary-color);
}

.recent-post-info .date {
    font-size: 12px;
    color: #999;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .blog-list-item {
        flex-direction: column;
        gap: 0;
    }

    .blog-thumb-link {
        width: 100%;
        min-width: auto;
        height: 200px;
    }

    .blog-item-content {
        padding: 25px;
    }

    .blog-item-title {
        font-size: 20px;
    }
}