@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 (Shared structure)
   ========================================= */
.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-main {
    min-width: 0;
}

/* =========================================
   ARTICLE STYLES
   ========================================= */
.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.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;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.article-tags .tag,
.article-tags a {
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.article-tags a:hover {
    background: var(--primary-color);
    color: #fff;
}

.article-thumbnail {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Typography */
.article-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content p {
    margin-bottom: 30px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    background: #f9f9f9;
    padding: 20px 30px;
    border-left: 4px solid #ccc;
    margin-bottom: 30px;
    font-style: italic;
    color: #555;
}

/* =========================================
   POST NAVIGATION
   ========================================= */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    gap: 20px;
}

.post-navigation a {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: var(--transition);
    max-width: 48%;
    /* To ensure they don't stretch too much if only one exists */
    text-decoration: none;
}

.post-navigation a:hover {
    background: #f9f9f9;
    transform: translateY(-3px);
}

.nav-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 700;
}

/* WordPress generates specific classes for prev/next links if using standard functions,
   but we might need to target them if we use custom HTML structure.
   Reflecting the design proposal structure: */

.nav-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Align right for next post if we can distinguish them, 
   or just let flexbox handle it if we use standard WP nav */

/* =========================================
   SIDEBAR (Same as blog list)
   ========================================= */
.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-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) {

    .about-hero h1,
    .blog-hero h1 {
        /* Ensuring shared hero styles work */
        font-size: 40px;
    }

    .article-title {
        font-size: 24px;
    }
}